pulp_ansible_client 0.29.7 → 0.29.8

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