pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1638328524
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleGitRemote.md +30 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -26
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/CollectionVersionResponse.md +4 -0
- data/docs/PatchedansibleGitRemote.md +30 -28
- data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +191 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -16
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +336 -153
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -143
- data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +158 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +183 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +323 -148
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +150 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +22 -16
- data/spec/models/ansible_git_remote_spec.rb +24 -18
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +12 -0
- data/spec/models/patchedansible_git_remote_spec.rb +24 -18
- data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
- metadata +70 -70
@@ -15,140 +15,145 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class PatchedansibleGitRemote
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# The proxy URL. Format: scheme://host:port
|
22
|
-
attr_accessor :proxy_url
|
23
|
-
|
24
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
25
|
-
attr_accessor :total_timeout
|
18
|
+
# The password to authenticte to the proxy.
|
19
|
+
attr_accessor :proxy_password
|
26
20
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
21
|
+
# A unique name for this remote.
|
22
|
+
attr_accessor :name
|
29
23
|
|
30
24
|
# The username to be used for authentication when syncing.
|
31
25
|
attr_accessor :username
|
32
26
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
27
|
+
# A PEM encoded private key used for authentication.
|
28
|
+
attr_accessor :client_key
|
35
29
|
|
36
|
-
# The
|
37
|
-
attr_accessor :
|
30
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
31
|
+
attr_accessor :sock_read_timeout
|
38
32
|
|
39
33
|
# A PEM encoded client certificate used for authentication.
|
40
34
|
attr_accessor :client_cert
|
41
35
|
|
42
|
-
#
|
43
|
-
attr_accessor :
|
36
|
+
# Headers for aiohttp.Clientsession
|
37
|
+
attr_accessor :headers
|
44
38
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
39
|
+
# The proxy URL. Format: scheme://host:port
|
40
|
+
attr_accessor :proxy_url
|
47
41
|
|
48
|
-
#
|
49
|
-
attr_accessor :
|
42
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
43
|
+
attr_accessor :ca_cert
|
44
|
+
|
45
|
+
# The password to be used for authentication when syncing.
|
46
|
+
attr_accessor :password
|
47
|
+
|
48
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
49
|
+
attr_accessor :sock_connect_timeout
|
50
50
|
|
51
51
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
52
52
|
attr_accessor :max_retries
|
53
53
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
54
|
+
# Limits total download rate in requests per second
|
55
|
+
attr_accessor :rate_limit
|
56
56
|
|
57
|
-
# The
|
58
|
-
attr_accessor :
|
57
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
58
|
+
attr_accessor :total_timeout
|
59
59
|
|
60
|
-
#
|
61
|
-
attr_accessor :
|
60
|
+
# The username to authenticte to the proxy.
|
61
|
+
attr_accessor :proxy_username
|
62
62
|
|
63
|
-
#
|
64
|
-
attr_accessor :
|
63
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
64
|
+
attr_accessor :connect_timeout
|
65
65
|
|
66
|
-
#
|
67
|
-
attr_accessor :
|
66
|
+
# If True, TLS peer validation must be performed.
|
67
|
+
attr_accessor :tls_validation
|
68
68
|
|
69
69
|
attr_accessor :pulp_labels
|
70
70
|
|
71
|
+
# The URL of an external content source.
|
72
|
+
attr_accessor :url
|
73
|
+
|
71
74
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
72
75
|
attr_accessor :download_concurrency
|
73
76
|
|
74
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
75
|
-
attr_accessor :connect_timeout
|
76
|
-
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
78
78
|
attr_accessor :metadata_only
|
79
79
|
|
80
|
+
# A git ref. e.g.: branch, tag, or commit sha.
|
81
|
+
attr_accessor :git_ref
|
82
|
+
|
80
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
84
|
def self.attribute_map
|
82
85
|
{
|
86
|
+
:'proxy_password' => :'proxy_password',
|
87
|
+
:'name' => :'name',
|
88
|
+
:'username' => :'username',
|
89
|
+
:'client_key' => :'client_key',
|
90
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
91
|
+
:'client_cert' => :'client_cert',
|
83
92
|
:'headers' => :'headers',
|
84
93
|
:'proxy_url' => :'proxy_url',
|
85
|
-
:'
|
86
|
-
:'url' => :'url',
|
87
|
-
:'username' => :'username',
|
94
|
+
:'ca_cert' => :'ca_cert',
|
88
95
|
:'password' => :'password',
|
89
|
-
:'proxy_username' => :'proxy_username',
|
90
|
-
:'client_cert' => :'client_cert',
|
91
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
92
|
-
:'tls_validation' => :'tls_validation',
|
93
|
-
:'rate_limit' => :'rate_limit',
|
94
97
|
:'max_retries' => :'max_retries',
|
95
|
-
:'
|
96
|
-
:'
|
97
|
-
:'
|
98
|
-
:'
|
99
|
-
:'
|
98
|
+
:'rate_limit' => :'rate_limit',
|
99
|
+
:'total_timeout' => :'total_timeout',
|
100
|
+
:'proxy_username' => :'proxy_username',
|
101
|
+
:'connect_timeout' => :'connect_timeout',
|
102
|
+
:'tls_validation' => :'tls_validation',
|
100
103
|
:'pulp_labels' => :'pulp_labels',
|
104
|
+
:'url' => :'url',
|
101
105
|
:'download_concurrency' => :'download_concurrency',
|
102
|
-
:'
|
103
|
-
:'
|
106
|
+
:'metadata_only' => :'metadata_only',
|
107
|
+
:'git_ref' => :'git_ref'
|
104
108
|
}
|
105
109
|
end
|
106
110
|
|
107
111
|
# Attribute type mapping.
|
108
112
|
def self.openapi_types
|
109
113
|
{
|
114
|
+
:'proxy_password' => :'String',
|
115
|
+
:'name' => :'String',
|
116
|
+
:'username' => :'String',
|
117
|
+
:'client_key' => :'String',
|
118
|
+
:'sock_read_timeout' => :'Float',
|
119
|
+
:'client_cert' => :'String',
|
110
120
|
:'headers' => :'Array<Object>',
|
111
121
|
:'proxy_url' => :'String',
|
112
|
-
:'
|
113
|
-
:'url' => :'String',
|
114
|
-
:'username' => :'String',
|
122
|
+
:'ca_cert' => :'String',
|
115
123
|
:'password' => :'String',
|
116
|
-
:'proxy_username' => :'String',
|
117
|
-
:'client_cert' => :'String',
|
118
124
|
:'sock_connect_timeout' => :'Float',
|
119
|
-
:'tls_validation' => :'Boolean',
|
120
|
-
:'rate_limit' => :'Integer',
|
121
125
|
:'max_retries' => :'Integer',
|
122
|
-
:'
|
123
|
-
:'
|
124
|
-
:'
|
125
|
-
:'
|
126
|
-
:'
|
126
|
+
:'rate_limit' => :'Integer',
|
127
|
+
:'total_timeout' => :'Float',
|
128
|
+
:'proxy_username' => :'String',
|
129
|
+
:'connect_timeout' => :'Float',
|
130
|
+
:'tls_validation' => :'Boolean',
|
127
131
|
:'pulp_labels' => :'Object',
|
132
|
+
:'url' => :'String',
|
128
133
|
:'download_concurrency' => :'Integer',
|
129
|
-
:'
|
130
|
-
:'
|
134
|
+
:'metadata_only' => :'Boolean',
|
135
|
+
:'git_ref' => :'String'
|
131
136
|
}
|
132
137
|
end
|
133
138
|
|
134
139
|
# List of attributes with nullable: true
|
135
140
|
def self.openapi_nullable
|
136
141
|
Set.new([
|
137
|
-
:'
|
138
|
-
:'total_timeout',
|
142
|
+
:'proxy_password',
|
139
143
|
:'username',
|
140
|
-
:'password',
|
141
|
-
:'proxy_username',
|
142
|
-
:'client_cert',
|
143
|
-
:'sock_connect_timeout',
|
144
|
-
:'rate_limit',
|
145
|
-
:'max_retries',
|
146
144
|
:'client_key',
|
147
|
-
:'proxy_password',
|
148
145
|
:'sock_read_timeout',
|
146
|
+
:'client_cert',
|
147
|
+
:'proxy_url',
|
149
148
|
:'ca_cert',
|
150
|
-
:'
|
149
|
+
:'password',
|
150
|
+
:'sock_connect_timeout',
|
151
|
+
:'max_retries',
|
152
|
+
:'rate_limit',
|
153
|
+
:'total_timeout',
|
154
|
+
:'proxy_username',
|
151
155
|
:'connect_timeout',
|
156
|
+
:'download_concurrency',
|
152
157
|
])
|
153
158
|
end
|
154
159
|
|
@@ -167,149 +172,228 @@ module PulpAnsibleClient
|
|
167
172
|
h[k.to_sym] = v
|
168
173
|
}
|
169
174
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
|
172
|
-
self.headers = value
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.key?(:'proxy_url')
|
177
|
-
self.proxy_url = attributes[:'proxy_url']
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.key?(:'total_timeout')
|
181
|
-
self.total_timeout = attributes[:'total_timeout']
|
175
|
+
if attributes.key?(:'proxy_password')
|
176
|
+
self.proxy_password = attributes[:'proxy_password']
|
182
177
|
end
|
183
178
|
|
184
|
-
if attributes.key?(:'
|
185
|
-
self.
|
179
|
+
if attributes.key?(:'name')
|
180
|
+
self.name = attributes[:'name']
|
186
181
|
end
|
187
182
|
|
188
183
|
if attributes.key?(:'username')
|
189
184
|
self.username = attributes[:'username']
|
190
185
|
end
|
191
186
|
|
192
|
-
if attributes.key?(:'
|
193
|
-
self.
|
187
|
+
if attributes.key?(:'client_key')
|
188
|
+
self.client_key = attributes[:'client_key']
|
194
189
|
end
|
195
190
|
|
196
|
-
if attributes.key?(:'
|
197
|
-
self.
|
191
|
+
if attributes.key?(:'sock_read_timeout')
|
192
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
198
193
|
end
|
199
194
|
|
200
195
|
if attributes.key?(:'client_cert')
|
201
196
|
self.client_cert = attributes[:'client_cert']
|
202
197
|
end
|
203
198
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
|
199
|
+
if attributes.key?(:'headers')
|
200
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
201
|
+
self.headers = value
|
202
|
+
end
|
206
203
|
end
|
207
204
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
self.
|
205
|
+
if attributes.key?(:'proxy_url')
|
206
|
+
self.proxy_url = attributes[:'proxy_url']
|
210
207
|
end
|
211
208
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
209
|
+
if attributes.key?(:'ca_cert')
|
210
|
+
self.ca_cert = attributes[:'ca_cert']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'password')
|
214
|
+
self.password = attributes[:'password']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.key?(:'sock_connect_timeout')
|
218
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
214
219
|
end
|
215
220
|
|
216
221
|
if attributes.key?(:'max_retries')
|
217
222
|
self.max_retries = attributes[:'max_retries']
|
218
223
|
end
|
219
224
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
225
|
+
if attributes.key?(:'rate_limit')
|
226
|
+
self.rate_limit = attributes[:'rate_limit']
|
222
227
|
end
|
223
228
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
229
|
+
if attributes.key?(:'total_timeout')
|
230
|
+
self.total_timeout = attributes[:'total_timeout']
|
226
231
|
end
|
227
232
|
|
228
|
-
if attributes.key?(:'
|
229
|
-
self.
|
233
|
+
if attributes.key?(:'proxy_username')
|
234
|
+
self.proxy_username = attributes[:'proxy_username']
|
230
235
|
end
|
231
236
|
|
232
|
-
if attributes.key?(:'
|
233
|
-
self.
|
237
|
+
if attributes.key?(:'connect_timeout')
|
238
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
234
239
|
end
|
235
240
|
|
236
|
-
if attributes.key?(:'
|
237
|
-
self.
|
241
|
+
if attributes.key?(:'tls_validation')
|
242
|
+
self.tls_validation = attributes[:'tls_validation']
|
238
243
|
end
|
239
244
|
|
240
245
|
if attributes.key?(:'pulp_labels')
|
241
246
|
self.pulp_labels = attributes[:'pulp_labels']
|
242
247
|
end
|
243
248
|
|
244
|
-
if attributes.key?(:'
|
245
|
-
self.
|
249
|
+
if attributes.key?(:'url')
|
250
|
+
self.url = attributes[:'url']
|
246
251
|
end
|
247
252
|
|
248
|
-
if attributes.key?(:'
|
249
|
-
self.
|
253
|
+
if attributes.key?(:'download_concurrency')
|
254
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
250
255
|
end
|
251
256
|
|
252
257
|
if attributes.key?(:'metadata_only')
|
253
258
|
self.metadata_only = attributes[:'metadata_only']
|
254
259
|
end
|
260
|
+
|
261
|
+
if attributes.key?(:'git_ref')
|
262
|
+
self.git_ref = attributes[:'git_ref']
|
263
|
+
end
|
255
264
|
end
|
256
265
|
|
257
266
|
# Show invalid properties with the reasons. Usually used together with valid?
|
258
267
|
# @return Array for valid properties with the reasons
|
259
268
|
def list_invalid_properties
|
260
269
|
invalid_properties = Array.new
|
261
|
-
if !@
|
262
|
-
invalid_properties.push('invalid value for "
|
270
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
271
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
263
272
|
end
|
264
273
|
|
265
|
-
if !@
|
266
|
-
invalid_properties.push('invalid value for "
|
274
|
+
if !@name.nil? && @name.to_s.length < 1
|
275
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
276
|
+
end
|
277
|
+
|
278
|
+
if !@username.nil? && @username.to_s.length < 1
|
279
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
280
|
+
end
|
281
|
+
|
282
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
283
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
267
284
|
end
|
268
285
|
|
269
286
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
270
287
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
271
288
|
end
|
272
289
|
|
273
|
-
if !@
|
274
|
-
invalid_properties.push('invalid value for "
|
290
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
291
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
292
|
+
end
|
293
|
+
|
294
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
295
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
296
|
+
end
|
297
|
+
|
298
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
299
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
300
|
+
end
|
301
|
+
|
302
|
+
if !@password.nil? && @password.to_s.length < 1
|
303
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
304
|
+
end
|
305
|
+
|
306
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
307
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
308
|
+
end
|
309
|
+
|
310
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
311
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
312
|
+
end
|
313
|
+
|
314
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
315
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
275
316
|
end
|
276
317
|
|
277
318
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
278
319
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
279
320
|
end
|
280
321
|
|
322
|
+
if !@url.nil? && @url.to_s.length < 1
|
323
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
324
|
+
end
|
325
|
+
|
326
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
327
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
328
|
+
end
|
329
|
+
|
330
|
+
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
331
|
+
invalid_properties.push('invalid value for "git_ref", the character length must be great than or equal to 1.')
|
332
|
+
end
|
333
|
+
|
281
334
|
invalid_properties
|
282
335
|
end
|
283
336
|
|
284
337
|
# Check to see if the all the properties in the model are valid
|
285
338
|
# @return true if the model is valid
|
286
339
|
def valid?
|
287
|
-
return false if !@
|
288
|
-
return false if !@
|
340
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
341
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
342
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
343
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
289
344
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
290
|
-
return false if !@
|
345
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
346
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
347
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
348
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
349
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
351
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
291
352
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
353
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
354
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
355
|
+
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
292
356
|
true
|
293
357
|
end
|
294
358
|
|
295
359
|
# Custom attribute writer method with validation
|
296
|
-
# @param [Object]
|
297
|
-
def
|
298
|
-
if !
|
299
|
-
fail ArgumentError, 'invalid value for "
|
360
|
+
# @param [Object] proxy_password Value to be assigned
|
361
|
+
def proxy_password=(proxy_password)
|
362
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
363
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
300
364
|
end
|
301
365
|
|
302
|
-
@
|
366
|
+
@proxy_password = proxy_password
|
303
367
|
end
|
304
368
|
|
305
369
|
# Custom attribute writer method with validation
|
306
|
-
# @param [Object]
|
307
|
-
def
|
308
|
-
if !
|
309
|
-
fail ArgumentError, 'invalid value for "
|
370
|
+
# @param [Object] name Value to be assigned
|
371
|
+
def name=(name)
|
372
|
+
if !name.nil? && name.to_s.length < 1
|
373
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
310
374
|
end
|
311
375
|
|
312
|
-
@
|
376
|
+
@name = name
|
377
|
+
end
|
378
|
+
|
379
|
+
# Custom attribute writer method with validation
|
380
|
+
# @param [Object] username Value to be assigned
|
381
|
+
def username=(username)
|
382
|
+
if !username.nil? && username.to_s.length < 1
|
383
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
384
|
+
end
|
385
|
+
|
386
|
+
@username = username
|
387
|
+
end
|
388
|
+
|
389
|
+
# Custom attribute writer method with validation
|
390
|
+
# @param [Object] client_key Value to be assigned
|
391
|
+
def client_key=(client_key)
|
392
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
394
|
+
end
|
395
|
+
|
396
|
+
@client_key = client_key
|
313
397
|
end
|
314
398
|
|
315
399
|
# Custom attribute writer method with validation
|
@@ -323,13 +407,73 @@ module PulpAnsibleClient
|
|
323
407
|
end
|
324
408
|
|
325
409
|
# Custom attribute writer method with validation
|
326
|
-
# @param [Object]
|
327
|
-
def
|
328
|
-
if !
|
329
|
-
fail ArgumentError, 'invalid value for "
|
410
|
+
# @param [Object] client_cert Value to be assigned
|
411
|
+
def client_cert=(client_cert)
|
412
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
413
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
330
414
|
end
|
331
415
|
|
332
|
-
@
|
416
|
+
@client_cert = client_cert
|
417
|
+
end
|
418
|
+
|
419
|
+
# Custom attribute writer method with validation
|
420
|
+
# @param [Object] proxy_url Value to be assigned
|
421
|
+
def proxy_url=(proxy_url)
|
422
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
423
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
424
|
+
end
|
425
|
+
|
426
|
+
@proxy_url = proxy_url
|
427
|
+
end
|
428
|
+
|
429
|
+
# Custom attribute writer method with validation
|
430
|
+
# @param [Object] ca_cert Value to be assigned
|
431
|
+
def ca_cert=(ca_cert)
|
432
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
433
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
434
|
+
end
|
435
|
+
|
436
|
+
@ca_cert = ca_cert
|
437
|
+
end
|
438
|
+
|
439
|
+
# Custom attribute writer method with validation
|
440
|
+
# @param [Object] password Value to be assigned
|
441
|
+
def password=(password)
|
442
|
+
if !password.nil? && password.to_s.length < 1
|
443
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
444
|
+
end
|
445
|
+
|
446
|
+
@password = password
|
447
|
+
end
|
448
|
+
|
449
|
+
# Custom attribute writer method with validation
|
450
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
451
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
452
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
453
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
454
|
+
end
|
455
|
+
|
456
|
+
@sock_connect_timeout = sock_connect_timeout
|
457
|
+
end
|
458
|
+
|
459
|
+
# Custom attribute writer method with validation
|
460
|
+
# @param [Object] total_timeout Value to be assigned
|
461
|
+
def total_timeout=(total_timeout)
|
462
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
463
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
464
|
+
end
|
465
|
+
|
466
|
+
@total_timeout = total_timeout
|
467
|
+
end
|
468
|
+
|
469
|
+
# Custom attribute writer method with validation
|
470
|
+
# @param [Object] proxy_username Value to be assigned
|
471
|
+
def proxy_username=(proxy_username)
|
472
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
473
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
474
|
+
end
|
475
|
+
|
476
|
+
@proxy_username = proxy_username
|
333
477
|
end
|
334
478
|
|
335
479
|
# Custom attribute writer method with validation
|
@@ -342,32 +486,63 @@ module PulpAnsibleClient
|
|
342
486
|
@connect_timeout = connect_timeout
|
343
487
|
end
|
344
488
|
|
489
|
+
# Custom attribute writer method with validation
|
490
|
+
# @param [Object] url Value to be assigned
|
491
|
+
def url=(url)
|
492
|
+
if !url.nil? && url.to_s.length < 1
|
493
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
494
|
+
end
|
495
|
+
|
496
|
+
@url = url
|
497
|
+
end
|
498
|
+
|
499
|
+
# Custom attribute writer method with validation
|
500
|
+
# @param [Object] download_concurrency Value to be assigned
|
501
|
+
def download_concurrency=(download_concurrency)
|
502
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
503
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
504
|
+
end
|
505
|
+
|
506
|
+
@download_concurrency = download_concurrency
|
507
|
+
end
|
508
|
+
|
509
|
+
# Custom attribute writer method with validation
|
510
|
+
# @param [Object] git_ref Value to be assigned
|
511
|
+
def git_ref=(git_ref)
|
512
|
+
if !git_ref.nil? && git_ref.to_s.length < 1
|
513
|
+
fail ArgumentError, 'invalid value for "git_ref", the character length must be great than or equal to 1.'
|
514
|
+
end
|
515
|
+
|
516
|
+
@git_ref = git_ref
|
517
|
+
end
|
518
|
+
|
345
519
|
# Checks equality by comparing each attribute.
|
346
520
|
# @param [Object] Object to be compared
|
347
521
|
def ==(o)
|
348
522
|
return true if self.equal?(o)
|
349
523
|
self.class == o.class &&
|
524
|
+
proxy_password == o.proxy_password &&
|
525
|
+
name == o.name &&
|
526
|
+
username == o.username &&
|
527
|
+
client_key == o.client_key &&
|
528
|
+
sock_read_timeout == o.sock_read_timeout &&
|
529
|
+
client_cert == o.client_cert &&
|
350
530
|
headers == o.headers &&
|
351
531
|
proxy_url == o.proxy_url &&
|
352
|
-
|
353
|
-
url == o.url &&
|
354
|
-
username == o.username &&
|
532
|
+
ca_cert == o.ca_cert &&
|
355
533
|
password == o.password &&
|
356
|
-
proxy_username == o.proxy_username &&
|
357
|
-
client_cert == o.client_cert &&
|
358
534
|
sock_connect_timeout == o.sock_connect_timeout &&
|
359
|
-
tls_validation == o.tls_validation &&
|
360
|
-
rate_limit == o.rate_limit &&
|
361
535
|
max_retries == o.max_retries &&
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
536
|
+
rate_limit == o.rate_limit &&
|
537
|
+
total_timeout == o.total_timeout &&
|
538
|
+
proxy_username == o.proxy_username &&
|
539
|
+
connect_timeout == o.connect_timeout &&
|
540
|
+
tls_validation == o.tls_validation &&
|
367
541
|
pulp_labels == o.pulp_labels &&
|
542
|
+
url == o.url &&
|
368
543
|
download_concurrency == o.download_concurrency &&
|
369
|
-
|
370
|
-
|
544
|
+
metadata_only == o.metadata_only &&
|
545
|
+
git_ref == o.git_ref
|
371
546
|
end
|
372
547
|
|
373
548
|
# @see the `==` method
|
@@ -379,7 +554,7 @@ module PulpAnsibleClient
|
|
379
554
|
# Calculates hash code according to all attributes.
|
380
555
|
# @return [Integer] Hash code
|
381
556
|
def hash
|
382
|
-
[
|
557
|
+
[proxy_password, name, username, client_key, sock_read_timeout, client_cert, headers, proxy_url, ca_cert, password, sock_connect_timeout, max_retries, rate_limit, total_timeout, proxy_username, connect_timeout, tls_validation, pulp_labels, url, download_concurrency, metadata_only, git_ref].hash
|
383
558
|
end
|
384
559
|
|
385
560
|
# Builds the object from hash
|