pulp_ansible_client 0.24.2 → 0.24.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  4. data/docs/AnsibleGitRemote.md +24 -24
  5. data/docs/AnsibleGitRemoteResponse.md +24 -24
  6. data/docs/AnsibleRoleResponse.md +6 -6
  7. data/docs/ContentCollectionVersionsApi.md +4 -4
  8. data/docs/ContentNamespacesApi.md +146 -0
  9. data/docs/DistributionsAnsibleApi.md +4 -2
  10. data/docs/PatchedansibleGitRemote.md +24 -24
  11. data/docs/RemotesGitApi.md +2 -2
  12. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  13. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +148 -0
  14. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -3
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +27 -27
  16. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  17. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +146 -146
  18. data/lib/pulp_ansible_client/models/ansible_role_response.rb +27 -27
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +213 -213
  20. data/lib/pulp_ansible_client/models/unset_label.rb +1 -1
  21. data/lib/pulp_ansible_client/models/unset_label_response.rb +1 -1
  22. data/lib/pulp_ansible_client/version.rb +1 -1
  23. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  24. data/spec/api/content_namespaces_api_spec.rb +26 -0
  25. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  26. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  27. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  28. data/spec/models/ansible_git_remote_spec.rb +18 -18
  29. data/spec/models/ansible_role_response_spec.rb +5 -5
  30. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  31. metadata +2 -2
@@ -16,64 +16,64 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class PatchedansibleGitRemote
19
- # 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.
20
- attr_accessor :sock_connect_timeout
21
-
22
19
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
23
20
  attr_accessor :ca_cert
24
21
 
25
- # Limits requests per second for each concurrent downloader
26
- attr_accessor :rate_limit
22
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
23
+ attr_accessor :connect_timeout
27
24
 
28
- # The URL of an external content source.
29
- attr_accessor :url
25
+ # The username to be used for authentication when syncing.
26
+ attr_accessor :username
30
27
 
31
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
32
- attr_accessor :password
28
+ # Headers for aiohttp.Clientsession
29
+ attr_accessor :headers
30
+
31
+ # A PEM encoded private key used for authentication.
32
+ attr_accessor :client_key
33
33
 
34
34
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
35
35
  attr_accessor :proxy_password
36
36
 
37
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
38
- attr_accessor :connect_timeout
37
+ # The proxy URL. Format: scheme://host:port
38
+ attr_accessor :proxy_url
39
39
 
40
- # Headers for aiohttp.Clientsession
41
- attr_accessor :headers
40
+ # Limits requests per second for each concurrent downloader
41
+ attr_accessor :rate_limit
42
+
43
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
44
+ attr_accessor :max_retries
42
45
 
43
46
  # If True, TLS peer validation must be performed.
44
47
  attr_accessor :tls_validation
45
48
 
46
- # The proxy URL. Format: scheme://host:port
47
- attr_accessor :proxy_url
48
-
49
- # A PEM encoded private key used for authentication.
50
- attr_accessor :client_key
49
+ # 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.
50
+ attr_accessor :sock_connect_timeout
51
51
 
52
- # A PEM encoded client certificate used for authentication.
53
- attr_accessor :client_cert
52
+ # The username to authenticte to the proxy.
53
+ attr_accessor :proxy_username
54
54
 
55
55
  # 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.
56
56
  attr_accessor :sock_read_timeout
57
57
 
58
- # Total number of simultaneous connections. If not set then the default value will be used.
59
- attr_accessor :download_concurrency
60
-
61
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
62
- attr_accessor :max_retries
63
-
64
58
  # A unique name for this remote.
65
59
  attr_accessor :name
66
60
 
61
+ # A PEM encoded client certificate used for authentication.
62
+ attr_accessor :client_cert
63
+
67
64
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
68
65
  attr_accessor :total_timeout
69
66
 
70
- # The username to be used for authentication when syncing.
71
- attr_accessor :username
67
+ attr_accessor :pulp_labels
72
68
 
73
- # The username to authenticte to the proxy.
74
- attr_accessor :proxy_username
69
+ # The URL of an external content source.
70
+ attr_accessor :url
75
71
 
76
- attr_accessor :pulp_labels
72
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
73
+ attr_accessor :password
74
+
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
77
 
78
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
79
79
  attr_accessor :metadata_only
@@ -84,26 +84,26 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
- :'sock_connect_timeout' => :'sock_connect_timeout',
88
87
  :'ca_cert' => :'ca_cert',
89
- :'rate_limit' => :'rate_limit',
90
- :'url' => :'url',
91
- :'password' => :'password',
92
- :'proxy_password' => :'proxy_password',
93
88
  :'connect_timeout' => :'connect_timeout',
89
+ :'username' => :'username',
94
90
  :'headers' => :'headers',
95
- :'tls_validation' => :'tls_validation',
96
- :'proxy_url' => :'proxy_url',
97
91
  :'client_key' => :'client_key',
98
- :'client_cert' => :'client_cert',
99
- :'sock_read_timeout' => :'sock_read_timeout',
100
- :'download_concurrency' => :'download_concurrency',
92
+ :'proxy_password' => :'proxy_password',
93
+ :'proxy_url' => :'proxy_url',
94
+ :'rate_limit' => :'rate_limit',
101
95
  :'max_retries' => :'max_retries',
96
+ :'tls_validation' => :'tls_validation',
97
+ :'sock_connect_timeout' => :'sock_connect_timeout',
98
+ :'proxy_username' => :'proxy_username',
99
+ :'sock_read_timeout' => :'sock_read_timeout',
102
100
  :'name' => :'name',
101
+ :'client_cert' => :'client_cert',
103
102
  :'total_timeout' => :'total_timeout',
104
- :'username' => :'username',
105
- :'proxy_username' => :'proxy_username',
106
103
  :'pulp_labels' => :'pulp_labels',
104
+ :'url' => :'url',
105
+ :'password' => :'password',
106
+ :'download_concurrency' => :'download_concurrency',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
109
109
  }
@@ -117,26 +117,26 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
- :'sock_connect_timeout' => :'Float',
121
120
  :'ca_cert' => :'String',
122
- :'rate_limit' => :'Integer',
123
- :'url' => :'String',
124
- :'password' => :'String',
125
- :'proxy_password' => :'String',
126
121
  :'connect_timeout' => :'Float',
122
+ :'username' => :'String',
127
123
  :'headers' => :'Array<Object>',
128
- :'tls_validation' => :'Boolean',
129
- :'proxy_url' => :'String',
130
124
  :'client_key' => :'String',
131
- :'client_cert' => :'String',
132
- :'sock_read_timeout' => :'Float',
133
- :'download_concurrency' => :'Integer',
125
+ :'proxy_password' => :'String',
126
+ :'proxy_url' => :'String',
127
+ :'rate_limit' => :'Integer',
134
128
  :'max_retries' => :'Integer',
129
+ :'tls_validation' => :'Boolean',
130
+ :'sock_connect_timeout' => :'Float',
131
+ :'proxy_username' => :'String',
132
+ :'sock_read_timeout' => :'Float',
135
133
  :'name' => :'String',
134
+ :'client_cert' => :'String',
136
135
  :'total_timeout' => :'Float',
137
- :'username' => :'String',
138
- :'proxy_username' => :'String',
139
136
  :'pulp_labels' => :'Hash<String, String>',
137
+ :'url' => :'String',
138
+ :'password' => :'String',
139
+ :'download_concurrency' => :'Integer',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
142
142
  }
@@ -145,21 +145,21 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
- :'sock_connect_timeout',
149
148
  :'ca_cert',
150
- :'rate_limit',
151
- :'password',
152
- :'proxy_password',
153
149
  :'connect_timeout',
154
- :'proxy_url',
150
+ :'username',
155
151
  :'client_key',
156
- :'client_cert',
157
- :'sock_read_timeout',
158
- :'download_concurrency',
152
+ :'proxy_password',
153
+ :'proxy_url',
154
+ :'rate_limit',
159
155
  :'max_retries',
160
- :'total_timeout',
161
- :'username',
156
+ :'sock_connect_timeout',
162
157
  :'proxy_username',
158
+ :'sock_read_timeout',
159
+ :'client_cert',
160
+ :'total_timeout',
161
+ :'password',
162
+ :'download_concurrency',
163
163
  ])
164
164
  end
165
165
 
@@ -178,82 +178,70 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'sock_connect_timeout')
182
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
183
- end
184
-
185
181
  if attributes.key?(:'ca_cert')
186
182
  self.ca_cert = attributes[:'ca_cert']
187
183
  end
188
184
 
189
- if attributes.key?(:'rate_limit')
190
- self.rate_limit = attributes[:'rate_limit']
191
- end
192
-
193
- if attributes.key?(:'url')
194
- self.url = attributes[:'url']
195
- end
196
-
197
- if attributes.key?(:'password')
198
- self.password = attributes[:'password']
199
- end
200
-
201
- if attributes.key?(:'proxy_password')
202
- self.proxy_password = attributes[:'proxy_password']
203
- end
204
-
205
185
  if attributes.key?(:'connect_timeout')
206
186
  self.connect_timeout = attributes[:'connect_timeout']
207
187
  end
208
188
 
189
+ if attributes.key?(:'username')
190
+ self.username = attributes[:'username']
191
+ end
192
+
209
193
  if attributes.key?(:'headers')
210
194
  if (value = attributes[:'headers']).is_a?(Array)
211
195
  self.headers = value
212
196
  end
213
197
  end
214
198
 
215
- if attributes.key?(:'tls_validation')
216
- self.tls_validation = attributes[:'tls_validation']
199
+ if attributes.key?(:'client_key')
200
+ self.client_key = attributes[:'client_key']
201
+ end
202
+
203
+ if attributes.key?(:'proxy_password')
204
+ self.proxy_password = attributes[:'proxy_password']
217
205
  end
218
206
 
219
207
  if attributes.key?(:'proxy_url')
220
208
  self.proxy_url = attributes[:'proxy_url']
221
209
  end
222
210
 
223
- if attributes.key?(:'client_key')
224
- self.client_key = attributes[:'client_key']
211
+ if attributes.key?(:'rate_limit')
212
+ self.rate_limit = attributes[:'rate_limit']
225
213
  end
226
214
 
227
- if attributes.key?(:'client_cert')
228
- self.client_cert = attributes[:'client_cert']
215
+ if attributes.key?(:'max_retries')
216
+ self.max_retries = attributes[:'max_retries']
229
217
  end
230
218
 
231
- if attributes.key?(:'sock_read_timeout')
232
- self.sock_read_timeout = attributes[:'sock_read_timeout']
219
+ if attributes.key?(:'tls_validation')
220
+ self.tls_validation = attributes[:'tls_validation']
233
221
  end
234
222
 
235
- if attributes.key?(:'download_concurrency')
236
- self.download_concurrency = attributes[:'download_concurrency']
223
+ if attributes.key?(:'sock_connect_timeout')
224
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
237
225
  end
238
226
 
239
- if attributes.key?(:'max_retries')
240
- self.max_retries = attributes[:'max_retries']
227
+ if attributes.key?(:'proxy_username')
228
+ self.proxy_username = attributes[:'proxy_username']
241
229
  end
242
230
 
243
- if attributes.key?(:'name')
244
- self.name = attributes[:'name']
231
+ if attributes.key?(:'sock_read_timeout')
232
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
245
233
  end
246
234
 
247
- if attributes.key?(:'total_timeout')
248
- self.total_timeout = attributes[:'total_timeout']
235
+ if attributes.key?(:'name')
236
+ self.name = attributes[:'name']
249
237
  end
250
238
 
251
- if attributes.key?(:'username')
252
- self.username = attributes[:'username']
239
+ if attributes.key?(:'client_cert')
240
+ self.client_cert = attributes[:'client_cert']
253
241
  end
254
242
 
255
- if attributes.key?(:'proxy_username')
256
- self.proxy_username = attributes[:'proxy_username']
243
+ if attributes.key?(:'total_timeout')
244
+ self.total_timeout = attributes[:'total_timeout']
257
245
  end
258
246
 
259
247
  if attributes.key?(:'pulp_labels')
@@ -262,6 +250,18 @@ module PulpAnsibleClient
262
250
  end
263
251
  end
264
252
 
253
+ if attributes.key?(:'url')
254
+ self.url = attributes[:'url']
255
+ end
256
+
257
+ if attributes.key?(:'password')
258
+ self.password = attributes[:'password']
259
+ end
260
+
261
+ if attributes.key?(:'download_concurrency')
262
+ self.download_concurrency = attributes[:'download_concurrency']
263
+ end
264
+
265
265
  if attributes.key?(:'metadata_only')
266
266
  self.metadata_only = attributes[:'metadata_only']
267
267
  end
@@ -276,64 +276,64 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
281
- end
282
-
283
279
  if !@ca_cert.nil? && @ca_cert.to_s.length < 1
284
280
  invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
285
281
  end
286
282
 
287
- if !@url.nil? && @url.to_s.length < 1
288
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
283
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
284
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
289
285
  end
290
286
 
291
- if !@password.nil? && @password.to_s.length < 1
292
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
287
+ if !@username.nil? && @username.to_s.length < 1
288
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
293
289
  end
294
290
 
295
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
296
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
291
+ if !@client_key.nil? && @client_key.to_s.length < 1
292
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
297
293
  end
298
294
 
299
- if !@connect_timeout.nil? && @connect_timeout < 0.0
300
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
295
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
296
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
301
297
  end
302
298
 
303
299
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
304
300
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
305
301
  end
306
302
 
307
- if !@client_key.nil? && @client_key.to_s.length < 1
308
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
303
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
304
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
309
305
  end
310
306
 
311
- if !@client_cert.nil? && @client_cert.to_s.length < 1
312
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
307
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
308
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
313
309
  end
314
310
 
315
311
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
316
312
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
317
313
  end
318
314
 
319
- if !@download_concurrency.nil? && @download_concurrency < 1
320
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
321
- end
322
-
323
315
  if !@name.nil? && @name.to_s.length < 1
324
316
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
325
317
  end
326
318
 
319
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
320
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
321
+ end
322
+
327
323
  if !@total_timeout.nil? && @total_timeout < 0.0
328
324
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
329
325
  end
330
326
 
331
- if !@username.nil? && @username.to_s.length < 1
332
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
327
+ if !@url.nil? && @url.to_s.length < 1
328
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
333
329
  end
334
330
 
335
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
336
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
331
+ if !@password.nil? && @password.to_s.length < 1
332
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
333
+ end
334
+
335
+ if !@download_concurrency.nil? && @download_concurrency < 1
336
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
337
337
  end
338
338
 
339
339
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -347,35 +347,25 @@ module PulpAnsibleClient
347
347
  # @return true if the model is valid
348
348
  def valid?
349
349
  warn '[DEPRECATED] the `valid?` method is obsolete'
350
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
351
350
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
352
- return false if !@url.nil? && @url.to_s.length < 1
353
- return false if !@password.nil? && @password.to_s.length < 1
354
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
355
351
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
356
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
352
+ return false if !@username.nil? && @username.to_s.length < 1
357
353
  return false if !@client_key.nil? && @client_key.to_s.length < 1
358
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
354
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
355
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
356
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
357
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
359
358
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
360
- return false if !@download_concurrency.nil? && @download_concurrency < 1
361
359
  return false if !@name.nil? && @name.to_s.length < 1
360
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
362
361
  return false if !@total_timeout.nil? && @total_timeout < 0.0
363
- return false if !@username.nil? && @username.to_s.length < 1
364
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
362
+ return false if !@url.nil? && @url.to_s.length < 1
363
+ return false if !@password.nil? && @password.to_s.length < 1
364
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
365
365
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
366
  true
367
367
  end
368
368
 
369
- # Custom attribute writer method with validation
370
- # @param [Object] sock_connect_timeout Value to be assigned
371
- def sock_connect_timeout=(sock_connect_timeout)
372
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
373
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
374
- end
375
-
376
- @sock_connect_timeout = sock_connect_timeout
377
- end
378
-
379
369
  # Custom attribute writer method with validation
380
370
  # @param [Object] ca_cert Value to be assigned
381
371
  def ca_cert=(ca_cert)
@@ -387,27 +377,33 @@ module PulpAnsibleClient
387
377
  end
388
378
 
389
379
  # Custom attribute writer method with validation
390
- # @param [Object] url Value to be assigned
391
- def url=(url)
392
- if url.nil?
393
- fail ArgumentError, 'url cannot be nil'
380
+ # @param [Object] connect_timeout Value to be assigned
381
+ def connect_timeout=(connect_timeout)
382
+ if !connect_timeout.nil? && connect_timeout < 0.0
383
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
394
384
  end
395
385
 
396
- if url.to_s.length < 1
397
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
386
+ @connect_timeout = connect_timeout
387
+ end
388
+
389
+ # Custom attribute writer method with validation
390
+ # @param [Object] username Value to be assigned
391
+ def username=(username)
392
+ if !username.nil? && username.to_s.length < 1
393
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
398
394
  end
399
395
 
400
- @url = url
396
+ @username = username
401
397
  end
402
398
 
403
399
  # Custom attribute writer method with validation
404
- # @param [Object] password Value to be assigned
405
- def password=(password)
406
- if !password.nil? && password.to_s.length < 1
407
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
400
+ # @param [Object] client_key Value to be assigned
401
+ def client_key=(client_key)
402
+ if !client_key.nil? && client_key.to_s.length < 1
403
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
408
404
  end
409
405
 
410
- @password = password
406
+ @client_key = client_key
411
407
  end
412
408
 
413
409
  # Custom attribute writer method with validation
@@ -420,16 +416,6 @@ module PulpAnsibleClient
420
416
  @proxy_password = proxy_password
421
417
  end
422
418
 
423
- # Custom attribute writer method with validation
424
- # @param [Object] connect_timeout Value to be assigned
425
- def connect_timeout=(connect_timeout)
426
- if !connect_timeout.nil? && connect_timeout < 0.0
427
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
428
- end
429
-
430
- @connect_timeout = connect_timeout
431
- end
432
-
433
419
  # Custom attribute writer method with validation
434
420
  # @param [Object] proxy_url Value to be assigned
435
421
  def proxy_url=(proxy_url)
@@ -441,23 +427,23 @@ module PulpAnsibleClient
441
427
  end
442
428
 
443
429
  # Custom attribute writer method with validation
444
- # @param [Object] client_key Value to be assigned
445
- def client_key=(client_key)
446
- if !client_key.nil? && client_key.to_s.length < 1
447
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
430
+ # @param [Object] sock_connect_timeout Value to be assigned
431
+ def sock_connect_timeout=(sock_connect_timeout)
432
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
433
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
448
434
  end
449
435
 
450
- @client_key = client_key
436
+ @sock_connect_timeout = sock_connect_timeout
451
437
  end
452
438
 
453
439
  # Custom attribute writer method with validation
454
- # @param [Object] client_cert Value to be assigned
455
- def client_cert=(client_cert)
456
- if !client_cert.nil? && client_cert.to_s.length < 1
457
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
440
+ # @param [Object] proxy_username Value to be assigned
441
+ def proxy_username=(proxy_username)
442
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
443
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
458
444
  end
459
445
 
460
- @client_cert = client_cert
446
+ @proxy_username = proxy_username
461
447
  end
462
448
 
463
449
  # Custom attribute writer method with validation
@@ -470,16 +456,6 @@ module PulpAnsibleClient
470
456
  @sock_read_timeout = sock_read_timeout
471
457
  end
472
458
 
473
- # Custom attribute writer method with validation
474
- # @param [Object] download_concurrency Value to be assigned
475
- def download_concurrency=(download_concurrency)
476
- if !download_concurrency.nil? && download_concurrency < 1
477
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
478
- end
479
-
480
- @download_concurrency = download_concurrency
481
- end
482
-
483
459
  # Custom attribute writer method with validation
484
460
  # @param [Object] name Value to be assigned
485
461
  def name=(name)
@@ -494,6 +470,16 @@ module PulpAnsibleClient
494
470
  @name = name
495
471
  end
496
472
 
473
+ # Custom attribute writer method with validation
474
+ # @param [Object] client_cert Value to be assigned
475
+ def client_cert=(client_cert)
476
+ if !client_cert.nil? && client_cert.to_s.length < 1
477
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
478
+ end
479
+
480
+ @client_cert = client_cert
481
+ end
482
+
497
483
  # Custom attribute writer method with validation
498
484
  # @param [Object] total_timeout Value to be assigned
499
485
  def total_timeout=(total_timeout)
@@ -505,23 +491,37 @@ module PulpAnsibleClient
505
491
  end
506
492
 
507
493
  # Custom attribute writer method with validation
508
- # @param [Object] username Value to be assigned
509
- def username=(username)
510
- if !username.nil? && username.to_s.length < 1
511
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
494
+ # @param [Object] url Value to be assigned
495
+ def url=(url)
496
+ if url.nil?
497
+ fail ArgumentError, 'url cannot be nil'
512
498
  end
513
499
 
514
- @username = username
500
+ if url.to_s.length < 1
501
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
502
+ end
503
+
504
+ @url = url
515
505
  end
516
506
 
517
507
  # Custom attribute writer method with validation
518
- # @param [Object] proxy_username Value to be assigned
519
- def proxy_username=(proxy_username)
520
- if !proxy_username.nil? && proxy_username.to_s.length < 1
521
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
508
+ # @param [Object] password Value to be assigned
509
+ def password=(password)
510
+ if !password.nil? && password.to_s.length < 1
511
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
522
512
  end
523
513
 
524
- @proxy_username = proxy_username
514
+ @password = password
515
+ end
516
+
517
+ # Custom attribute writer method with validation
518
+ # @param [Object] download_concurrency Value to be assigned
519
+ def download_concurrency=(download_concurrency)
520
+ if !download_concurrency.nil? && download_concurrency < 1
521
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
522
+ end
523
+
524
+ @download_concurrency = download_concurrency
525
525
  end
526
526
 
527
527
  # Custom attribute writer method with validation
@@ -543,26 +543,26 @@ module PulpAnsibleClient
543
543
  def ==(o)
544
544
  return true if self.equal?(o)
545
545
  self.class == o.class &&
546
- sock_connect_timeout == o.sock_connect_timeout &&
547
546
  ca_cert == o.ca_cert &&
548
- rate_limit == o.rate_limit &&
549
- url == o.url &&
550
- password == o.password &&
551
- proxy_password == o.proxy_password &&
552
547
  connect_timeout == o.connect_timeout &&
548
+ username == o.username &&
553
549
  headers == o.headers &&
554
- tls_validation == o.tls_validation &&
555
- proxy_url == o.proxy_url &&
556
550
  client_key == o.client_key &&
557
- client_cert == o.client_cert &&
558
- sock_read_timeout == o.sock_read_timeout &&
559
- download_concurrency == o.download_concurrency &&
551
+ proxy_password == o.proxy_password &&
552
+ proxy_url == o.proxy_url &&
553
+ rate_limit == o.rate_limit &&
560
554
  max_retries == o.max_retries &&
555
+ tls_validation == o.tls_validation &&
556
+ sock_connect_timeout == o.sock_connect_timeout &&
557
+ proxy_username == o.proxy_username &&
558
+ sock_read_timeout == o.sock_read_timeout &&
561
559
  name == o.name &&
560
+ client_cert == o.client_cert &&
562
561
  total_timeout == o.total_timeout &&
563
- username == o.username &&
564
- proxy_username == o.proxy_username &&
565
562
  pulp_labels == o.pulp_labels &&
563
+ url == o.url &&
564
+ password == o.password &&
565
+ download_concurrency == o.download_concurrency &&
566
566
  metadata_only == o.metadata_only &&
567
567
  git_ref == o.git_ref
568
568
  end
@@ -576,7 +576,7 @@ module PulpAnsibleClient
576
576
  # Calculates hash code according to all attributes.
577
577
  # @return [Integer] Hash code
578
578
  def hash
579
- [sock_connect_timeout, ca_cert, rate_limit, url, password, proxy_password, connect_timeout, headers, tls_validation, proxy_url, client_key, client_cert, sock_read_timeout, download_concurrency, max_retries, name, total_timeout, username, proxy_username, pulp_labels, metadata_only, git_ref].hash
579
+ [ca_cert, connect_timeout, username, headers, client_key, proxy_password, proxy_url, rate_limit, max_retries, tls_validation, sock_connect_timeout, proxy_username, sock_read_timeout, name, client_cert, total_timeout, pulp_labels, url, password, download_concurrency, metadata_only, git_ref].hash
580
580
  end
581
581
 
582
582
  # Builds the object from hash