pulp_ansible_client 0.17.4 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,52 +15,55 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
19
- attr_accessor :proxy_password
20
-
21
- # 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.
22
- attr_accessor :sock_connect_timeout
18
+ # 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.
19
+ attr_accessor :sock_read_timeout
23
20
 
24
- # Limits requests per second for each concurrent downloader
25
- attr_accessor :rate_limit
21
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
22
+ attr_accessor :max_retries
26
23
 
27
- # A unique name for this remote.
28
- attr_accessor :name
24
+ # Total number of simultaneous connections. If not set then the default value will be used.
25
+ attr_accessor :download_concurrency
29
26
 
30
27
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
31
28
  attr_accessor :connect_timeout
32
29
 
33
- # If True, TLS peer validation must be performed.
34
- attr_accessor :tls_validation
30
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
31
+ attr_accessor :proxy_password
32
+
33
+ # The username to be used for authentication when syncing.
34
+ attr_accessor :username
35
35
 
36
36
  # A PEM encoded client certificate used for authentication.
37
37
  attr_accessor :client_cert
38
38
 
39
+ # A PEM encoded private key used for authentication.
40
+ attr_accessor :client_key
41
+
42
+ # A unique name for this remote.
43
+ attr_accessor :name
44
+
45
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
46
+ attr_accessor :total_timeout
47
+
39
48
  # Headers for aiohttp.Clientsession
40
49
  attr_accessor :headers
41
50
 
42
- # A PEM encoded private key used for authentication.
43
- attr_accessor :client_key
51
+ # If True, TLS peer validation must be performed.
52
+ attr_accessor :tls_validation
44
53
 
45
54
  # The username to authenticte to the proxy.
46
55
  attr_accessor :proxy_username
47
56
 
48
- # Total number of simultaneous connections. If not set then the default value will be used.
49
- attr_accessor :download_concurrency
50
-
51
57
  attr_accessor :pulp_labels
52
58
 
53
- # 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.
54
- attr_accessor :sock_read_timeout
55
-
56
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
- attr_accessor :max_retries
59
+ # Limits requests per second for each concurrent downloader
60
+ attr_accessor :rate_limit
58
61
 
59
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
- attr_accessor :total_timeout
62
+ # The URL of an external content source.
63
+ attr_accessor :url
61
64
 
62
- # The username to be used for authentication when syncing.
63
- attr_accessor :username
65
+ # 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.
66
+ attr_accessor :sock_connect_timeout
64
67
 
65
68
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
66
69
  attr_accessor :ca_cert
@@ -68,9 +71,6 @@ module PulpAnsibleClient
68
71
  # The proxy URL. Format: scheme://host:port
69
72
  attr_accessor :proxy_url
70
73
 
71
- # The URL of an external content source.
72
- attr_accessor :url
73
-
74
74
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
75
75
  attr_accessor :password
76
76
 
@@ -83,25 +83,25 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'proxy_password' => :'proxy_password',
87
- :'sock_connect_timeout' => :'sock_connect_timeout',
88
- :'rate_limit' => :'rate_limit',
89
- :'name' => :'name',
86
+ :'sock_read_timeout' => :'sock_read_timeout',
87
+ :'max_retries' => :'max_retries',
88
+ :'download_concurrency' => :'download_concurrency',
90
89
  :'connect_timeout' => :'connect_timeout',
91
- :'tls_validation' => :'tls_validation',
90
+ :'proxy_password' => :'proxy_password',
91
+ :'username' => :'username',
92
92
  :'client_cert' => :'client_cert',
93
- :'headers' => :'headers',
94
93
  :'client_key' => :'client_key',
94
+ :'name' => :'name',
95
+ :'total_timeout' => :'total_timeout',
96
+ :'headers' => :'headers',
97
+ :'tls_validation' => :'tls_validation',
95
98
  :'proxy_username' => :'proxy_username',
96
- :'download_concurrency' => :'download_concurrency',
97
99
  :'pulp_labels' => :'pulp_labels',
98
- :'sock_read_timeout' => :'sock_read_timeout',
99
- :'max_retries' => :'max_retries',
100
- :'total_timeout' => :'total_timeout',
101
- :'username' => :'username',
100
+ :'rate_limit' => :'rate_limit',
101
+ :'url' => :'url',
102
+ :'sock_connect_timeout' => :'sock_connect_timeout',
102
103
  :'ca_cert' => :'ca_cert',
103
104
  :'proxy_url' => :'proxy_url',
104
- :'url' => :'url',
105
105
  :'password' => :'password',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
@@ -111,25 +111,25 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'proxy_password' => :'String',
115
- :'sock_connect_timeout' => :'Float',
116
- :'rate_limit' => :'Integer',
117
- :'name' => :'String',
114
+ :'sock_read_timeout' => :'Float',
115
+ :'max_retries' => :'Integer',
116
+ :'download_concurrency' => :'Integer',
118
117
  :'connect_timeout' => :'Float',
119
- :'tls_validation' => :'Boolean',
118
+ :'proxy_password' => :'String',
119
+ :'username' => :'String',
120
120
  :'client_cert' => :'String',
121
- :'headers' => :'Array<Object>',
122
121
  :'client_key' => :'String',
122
+ :'name' => :'String',
123
+ :'total_timeout' => :'Float',
124
+ :'headers' => :'Array<Object>',
125
+ :'tls_validation' => :'Boolean',
123
126
  :'proxy_username' => :'String',
124
- :'download_concurrency' => :'Integer',
125
127
  :'pulp_labels' => :'Hash<String, String>',
126
- :'sock_read_timeout' => :'Float',
127
- :'max_retries' => :'Integer',
128
- :'total_timeout' => :'Float',
129
- :'username' => :'String',
128
+ :'rate_limit' => :'Integer',
129
+ :'url' => :'String',
130
+ :'sock_connect_timeout' => :'Float',
130
131
  :'ca_cert' => :'String',
131
132
  :'proxy_url' => :'String',
132
- :'url' => :'String',
133
133
  :'password' => :'String',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
@@ -139,18 +139,18 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
- :'proxy_password',
143
- :'sock_connect_timeout',
144
- :'rate_limit',
142
+ :'sock_read_timeout',
143
+ :'max_retries',
144
+ :'download_concurrency',
145
145
  :'connect_timeout',
146
+ :'proxy_password',
147
+ :'username',
146
148
  :'client_cert',
147
149
  :'client_key',
148
- :'proxy_username',
149
- :'download_concurrency',
150
- :'sock_read_timeout',
151
- :'max_retries',
152
150
  :'total_timeout',
153
- :'username',
151
+ :'proxy_username',
152
+ :'rate_limit',
153
+ :'sock_connect_timeout',
154
154
  :'ca_cert',
155
155
  :'proxy_url',
156
156
  :'password',
@@ -172,72 +172,76 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'proxy_password')
176
- self.proxy_password = attributes[:'proxy_password']
177
- end
178
-
179
- if attributes.key?(:'sock_connect_timeout')
180
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
175
+ if attributes.key?(:'sock_read_timeout')
176
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
181
177
  end
182
178
 
183
- if attributes.key?(:'rate_limit')
184
- self.rate_limit = attributes[:'rate_limit']
179
+ if attributes.key?(:'max_retries')
180
+ self.max_retries = attributes[:'max_retries']
185
181
  end
186
182
 
187
- if attributes.key?(:'name')
188
- self.name = attributes[:'name']
183
+ if attributes.key?(:'download_concurrency')
184
+ self.download_concurrency = attributes[:'download_concurrency']
189
185
  end
190
186
 
191
187
  if attributes.key?(:'connect_timeout')
192
188
  self.connect_timeout = attributes[:'connect_timeout']
193
189
  end
194
190
 
195
- if attributes.key?(:'tls_validation')
196
- self.tls_validation = attributes[:'tls_validation']
191
+ if attributes.key?(:'proxy_password')
192
+ self.proxy_password = attributes[:'proxy_password']
193
+ end
194
+
195
+ if attributes.key?(:'username')
196
+ self.username = attributes[:'username']
197
197
  end
198
198
 
199
199
  if attributes.key?(:'client_cert')
200
200
  self.client_cert = attributes[:'client_cert']
201
201
  end
202
202
 
203
+ if attributes.key?(:'client_key')
204
+ self.client_key = attributes[:'client_key']
205
+ end
206
+
207
+ if attributes.key?(:'name')
208
+ self.name = attributes[:'name']
209
+ end
210
+
211
+ if attributes.key?(:'total_timeout')
212
+ self.total_timeout = attributes[:'total_timeout']
213
+ end
214
+
203
215
  if attributes.key?(:'headers')
204
216
  if (value = attributes[:'headers']).is_a?(Array)
205
217
  self.headers = value
206
218
  end
207
219
  end
208
220
 
209
- if attributes.key?(:'client_key')
210
- self.client_key = attributes[:'client_key']
221
+ if attributes.key?(:'tls_validation')
222
+ self.tls_validation = attributes[:'tls_validation']
211
223
  end
212
224
 
213
225
  if attributes.key?(:'proxy_username')
214
226
  self.proxy_username = attributes[:'proxy_username']
215
227
  end
216
228
 
217
- if attributes.key?(:'download_concurrency')
218
- self.download_concurrency = attributes[:'download_concurrency']
219
- end
220
-
221
229
  if attributes.key?(:'pulp_labels')
222
230
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
223
231
  self.pulp_labels = value
224
232
  end
225
233
  end
226
234
 
227
- if attributes.key?(:'sock_read_timeout')
228
- self.sock_read_timeout = attributes[:'sock_read_timeout']
229
- end
230
-
231
- if attributes.key?(:'max_retries')
232
- self.max_retries = attributes[:'max_retries']
235
+ if attributes.key?(:'rate_limit')
236
+ self.rate_limit = attributes[:'rate_limit']
233
237
  end
234
238
 
235
- if attributes.key?(:'total_timeout')
236
- self.total_timeout = attributes[:'total_timeout']
239
+ if attributes.key?(:'url')
240
+ self.url = attributes[:'url']
237
241
  end
238
242
 
239
- if attributes.key?(:'username')
240
- self.username = attributes[:'username']
243
+ if attributes.key?(:'sock_connect_timeout')
244
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
241
245
  end
242
246
 
243
247
  if attributes.key?(:'ca_cert')
@@ -248,10 +252,6 @@ module PulpAnsibleClient
248
252
  self.proxy_url = attributes[:'proxy_url']
249
253
  end
250
254
 
251
- if attributes.key?(:'url')
252
- self.url = attributes[:'url']
253
- end
254
-
255
255
  if attributes.key?(:'password')
256
256
  self.password = attributes[:'password']
257
257
  end
@@ -269,22 +269,26 @@ module PulpAnsibleClient
269
269
  # @return Array for valid properties with the reasons
270
270
  def list_invalid_properties
271
271
  invalid_properties = Array.new
272
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
273
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
274
- end
275
-
276
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
273
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
278
274
  end
279
275
 
280
- if !@name.nil? && @name.to_s.length < 1
281
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
276
+ if !@download_concurrency.nil? && @download_concurrency < 1
277
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
282
278
  end
283
279
 
284
280
  if !@connect_timeout.nil? && @connect_timeout < 0.0
285
281
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
286
282
  end
287
283
 
284
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
285
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
286
+ end
287
+
288
+ if !@username.nil? && @username.to_s.length < 1
289
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
290
+ end
291
+
288
292
  if !@client_cert.nil? && @client_cert.to_s.length < 1
289
293
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
290
294
  end
@@ -293,24 +297,24 @@ module PulpAnsibleClient
293
297
  invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
294
298
  end
295
299
 
296
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
297
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
300
+ if !@name.nil? && @name.to_s.length < 1
301
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
298
302
  end
299
303
 
300
- if !@download_concurrency.nil? && @download_concurrency < 1
301
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
+ if !@total_timeout.nil? && @total_timeout < 0.0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
302
306
  end
303
307
 
304
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
305
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
308
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
309
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
306
310
  end
307
311
 
308
- if !@total_timeout.nil? && @total_timeout < 0.0
309
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
312
+ if !@url.nil? && @url.to_s.length < 1
313
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
310
314
  end
311
315
 
312
- if !@username.nil? && @username.to_s.length < 1
313
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
316
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
317
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
318
  end
315
319
 
316
320
  if !@ca_cert.nil? && @ca_cert.to_s.length < 1
@@ -321,10 +325,6 @@ module PulpAnsibleClient
321
325
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
322
326
  end
323
327
 
324
- if !@url.nil? && @url.to_s.length < 1
325
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
326
- end
327
-
328
328
  if !@password.nil? && @password.to_s.length < 1
329
329
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
330
330
  end
@@ -339,53 +339,43 @@ module PulpAnsibleClient
339
339
  # Check to see if the all the properties in the model are valid
340
340
  # @return true if the model is valid
341
341
  def valid?
342
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
343
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
344
- return false if !@name.nil? && @name.to_s.length < 1
342
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
343
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
345
344
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
345
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
346
+ return false if !@username.nil? && @username.to_s.length < 1
346
347
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
347
348
  return false if !@client_key.nil? && @client_key.to_s.length < 1
348
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
349
- return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
349
+ return false if !@name.nil? && @name.to_s.length < 1
351
350
  return false if !@total_timeout.nil? && @total_timeout < 0.0
352
- return false if !@username.nil? && @username.to_s.length < 1
351
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
352
+ return false if !@url.nil? && @url.to_s.length < 1
353
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
354
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
354
355
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
355
- return false if !@url.nil? && @url.to_s.length < 1
356
356
  return false if !@password.nil? && @password.to_s.length < 1
357
357
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
358
358
  true
359
359
  end
360
360
 
361
361
  # Custom attribute writer method with validation
362
- # @param [Object] proxy_password Value to be assigned
363
- def proxy_password=(proxy_password)
364
- if !proxy_password.nil? && proxy_password.to_s.length < 1
365
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
366
- end
367
-
368
- @proxy_password = proxy_password
369
- end
370
-
371
- # Custom attribute writer method with validation
372
- # @param [Object] sock_connect_timeout Value to be assigned
373
- def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
362
+ # @param [Object] sock_read_timeout Value to be assigned
363
+ def sock_read_timeout=(sock_read_timeout)
364
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
365
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
376
366
  end
377
367
 
378
- @sock_connect_timeout = sock_connect_timeout
368
+ @sock_read_timeout = sock_read_timeout
379
369
  end
380
370
 
381
371
  # Custom attribute writer method with validation
382
- # @param [Object] name Value to be assigned
383
- def name=(name)
384
- if !name.nil? && name.to_s.length < 1
385
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
372
+ # @param [Object] download_concurrency Value to be assigned
373
+ def download_concurrency=(download_concurrency)
374
+ if !download_concurrency.nil? && download_concurrency < 1
375
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
386
376
  end
387
377
 
388
- @name = name
378
+ @download_concurrency = download_concurrency
389
379
  end
390
380
 
391
381
  # Custom attribute writer method with validation
@@ -398,6 +388,26 @@ module PulpAnsibleClient
398
388
  @connect_timeout = connect_timeout
399
389
  end
400
390
 
391
+ # Custom attribute writer method with validation
392
+ # @param [Object] proxy_password Value to be assigned
393
+ def proxy_password=(proxy_password)
394
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
395
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
396
+ end
397
+
398
+ @proxy_password = proxy_password
399
+ end
400
+
401
+ # Custom attribute writer method with validation
402
+ # @param [Object] username Value to be assigned
403
+ def username=(username)
404
+ if !username.nil? && username.to_s.length < 1
405
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
406
+ end
407
+
408
+ @username = username
409
+ end
410
+
401
411
  # Custom attribute writer method with validation
402
412
  # @param [Object] client_cert Value to be assigned
403
413
  def client_cert=(client_cert)
@@ -419,53 +429,53 @@ module PulpAnsibleClient
419
429
  end
420
430
 
421
431
  # Custom attribute writer method with validation
422
- # @param [Object] proxy_username Value to be assigned
423
- def proxy_username=(proxy_username)
424
- if !proxy_username.nil? && proxy_username.to_s.length < 1
425
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
432
+ # @param [Object] name Value to be assigned
433
+ def name=(name)
434
+ if !name.nil? && name.to_s.length < 1
435
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
426
436
  end
427
437
 
428
- @proxy_username = proxy_username
438
+ @name = name
429
439
  end
430
440
 
431
441
  # Custom attribute writer method with validation
432
- # @param [Object] download_concurrency Value to be assigned
433
- def download_concurrency=(download_concurrency)
434
- if !download_concurrency.nil? && download_concurrency < 1
435
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
442
+ # @param [Object] total_timeout Value to be assigned
443
+ def total_timeout=(total_timeout)
444
+ if !total_timeout.nil? && total_timeout < 0.0
445
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
436
446
  end
437
447
 
438
- @download_concurrency = download_concurrency
448
+ @total_timeout = total_timeout
439
449
  end
440
450
 
441
451
  # Custom attribute writer method with validation
442
- # @param [Object] sock_read_timeout Value to be assigned
443
- def sock_read_timeout=(sock_read_timeout)
444
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
445
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
452
+ # @param [Object] proxy_username Value to be assigned
453
+ def proxy_username=(proxy_username)
454
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
455
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
446
456
  end
447
457
 
448
- @sock_read_timeout = sock_read_timeout
458
+ @proxy_username = proxy_username
449
459
  end
450
460
 
451
461
  # Custom attribute writer method with validation
452
- # @param [Object] total_timeout Value to be assigned
453
- def total_timeout=(total_timeout)
454
- if !total_timeout.nil? && total_timeout < 0.0
455
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
462
+ # @param [Object] url Value to be assigned
463
+ def url=(url)
464
+ if !url.nil? && url.to_s.length < 1
465
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
456
466
  end
457
467
 
458
- @total_timeout = total_timeout
468
+ @url = url
459
469
  end
460
470
 
461
471
  # Custom attribute writer method with validation
462
- # @param [Object] username Value to be assigned
463
- def username=(username)
464
- if !username.nil? && username.to_s.length < 1
465
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
472
+ # @param [Object] sock_connect_timeout Value to be assigned
473
+ def sock_connect_timeout=(sock_connect_timeout)
474
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
475
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
466
476
  end
467
477
 
468
- @username = username
478
+ @sock_connect_timeout = sock_connect_timeout
469
479
  end
470
480
 
471
481
  # Custom attribute writer method with validation
@@ -488,16 +498,6 @@ module PulpAnsibleClient
488
498
  @proxy_url = proxy_url
489
499
  end
490
500
 
491
- # Custom attribute writer method with validation
492
- # @param [Object] url Value to be assigned
493
- def url=(url)
494
- if !url.nil? && url.to_s.length < 1
495
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
496
- end
497
-
498
- @url = url
499
- end
500
-
501
501
  # Custom attribute writer method with validation
502
502
  # @param [Object] password Value to be assigned
503
503
  def password=(password)
@@ -523,25 +523,25 @@ module PulpAnsibleClient
523
523
  def ==(o)
524
524
  return true if self.equal?(o)
525
525
  self.class == o.class &&
526
- proxy_password == o.proxy_password &&
527
- sock_connect_timeout == o.sock_connect_timeout &&
528
- rate_limit == o.rate_limit &&
529
- name == o.name &&
526
+ sock_read_timeout == o.sock_read_timeout &&
527
+ max_retries == o.max_retries &&
528
+ download_concurrency == o.download_concurrency &&
530
529
  connect_timeout == o.connect_timeout &&
531
- tls_validation == o.tls_validation &&
530
+ proxy_password == o.proxy_password &&
531
+ username == o.username &&
532
532
  client_cert == o.client_cert &&
533
- headers == o.headers &&
534
533
  client_key == o.client_key &&
534
+ name == o.name &&
535
+ total_timeout == o.total_timeout &&
536
+ headers == o.headers &&
537
+ tls_validation == o.tls_validation &&
535
538
  proxy_username == o.proxy_username &&
536
- download_concurrency == o.download_concurrency &&
537
539
  pulp_labels == o.pulp_labels &&
538
- sock_read_timeout == o.sock_read_timeout &&
539
- max_retries == o.max_retries &&
540
- total_timeout == o.total_timeout &&
541
- username == o.username &&
540
+ rate_limit == o.rate_limit &&
541
+ url == o.url &&
542
+ sock_connect_timeout == o.sock_connect_timeout &&
542
543
  ca_cert == o.ca_cert &&
543
544
  proxy_url == o.proxy_url &&
544
- url == o.url &&
545
545
  password == o.password &&
546
546
  metadata_only == o.metadata_only &&
547
547
  git_ref == o.git_ref
@@ -556,7 +556,7 @@ module PulpAnsibleClient
556
556
  # Calculates hash code according to all attributes.
557
557
  # @return [Integer] Hash code
558
558
  def hash
559
- [proxy_password, sock_connect_timeout, rate_limit, name, connect_timeout, tls_validation, client_cert, headers, client_key, proxy_username, download_concurrency, pulp_labels, sock_read_timeout, max_retries, total_timeout, username, ca_cert, proxy_url, url, password, metadata_only, git_ref].hash
559
+ [sock_read_timeout, max_retries, download_concurrency, connect_timeout, proxy_password, username, client_cert, client_key, name, total_timeout, headers, tls_validation, proxy_username, pulp_labels, rate_limit, url, sock_connect_timeout, ca_cert, proxy_url, password, metadata_only, git_ref].hash
560
560
  end
561
561
 
562
562
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.17.4'
14
+ VERSION = '0.17.5'
15
15
  end
@@ -37,9 +37,9 @@ describe 'ContentCollectionVersionsApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
41
- # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
42
40
  # @option opts [String] :artifact Artifact file representing the physical content
41
+ # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
42
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
43
  # @option opts [String] :expected_name The name of the collection.
44
44
  # @option opts [String] :expected_namespace The namespace of the collection.
45
45
  # @option opts [String] :expected_version The version of the collection.