pulp_ansible_client 0.24.0 → 0.24.1

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.
@@ -16,46 +16,55 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class PatchedansibleGitRemote
19
- attr_accessor :pulp_labels
19
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
20
+ attr_accessor :password
21
+
22
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
23
+ attr_accessor :max_retries
20
24
 
21
25
  # A unique name for this remote.
22
26
  attr_accessor :name
23
27
 
28
+ attr_accessor :pulp_labels
29
+
24
30
  # The username to authenticte to the proxy.
25
31
  attr_accessor :proxy_username
26
32
 
27
- # The proxy URL. Format: scheme://host:port
28
- attr_accessor :proxy_url
29
-
30
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
31
- attr_accessor :sock_read_timeout
33
+ # 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.
34
+ attr_accessor :sock_connect_timeout
32
35
 
33
36
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
37
  attr_accessor :connect_timeout
35
38
 
36
- # Total number of simultaneous connections. If not set then the default value will be used.
37
- attr_accessor :download_concurrency
38
-
39
- # The URL of an external content source.
40
- attr_accessor :url
41
-
42
- # 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.
43
- attr_accessor :sock_connect_timeout
39
+ # If True, TLS peer validation must be performed.
40
+ attr_accessor :tls_validation
44
41
 
45
42
  # Headers for aiohttp.Clientsession
46
43
  attr_accessor :headers
47
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
+
48
+ # A PEM encoded private key used for authentication.
49
+ attr_accessor :client_key
50
+
48
51
  # A PEM encoded client certificate used for authentication.
49
52
  attr_accessor :client_cert
50
53
 
54
+ # Total number of simultaneous connections. If not set then the default value will be used.
55
+ attr_accessor :download_concurrency
56
+
57
+ # 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.
58
+ attr_accessor :sock_read_timeout
59
+
60
+ # The URL of an external content source.
61
+ attr_accessor :url
62
+
51
63
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
52
64
  attr_accessor :ca_cert
53
65
 
54
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
55
- attr_accessor :total_timeout
56
-
57
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
- attr_accessor :max_retries
66
+ # The proxy URL. Format: scheme://host:port
67
+ attr_accessor :proxy_url
59
68
 
60
69
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
61
70
  attr_accessor :proxy_password
@@ -63,15 +72,6 @@ module PulpAnsibleClient
63
72
  # The username to be used for authentication when syncing.
64
73
  attr_accessor :username
65
74
 
66
- # If True, TLS peer validation must be performed.
67
- attr_accessor :tls_validation
68
-
69
- # A PEM encoded private key used for authentication.
70
- attr_accessor :client_key
71
-
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
75
  # Limits requests per second for each concurrent downloader
76
76
  attr_accessor :rate_limit
77
77
 
@@ -84,25 +84,25 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
- :'pulp_labels' => :'pulp_labels',
87
+ :'password' => :'password',
88
+ :'max_retries' => :'max_retries',
88
89
  :'name' => :'name',
90
+ :'pulp_labels' => :'pulp_labels',
89
91
  :'proxy_username' => :'proxy_username',
90
- :'proxy_url' => :'proxy_url',
91
- :'sock_read_timeout' => :'sock_read_timeout',
92
- :'connect_timeout' => :'connect_timeout',
93
- :'download_concurrency' => :'download_concurrency',
94
- :'url' => :'url',
95
92
  :'sock_connect_timeout' => :'sock_connect_timeout',
93
+ :'connect_timeout' => :'connect_timeout',
94
+ :'tls_validation' => :'tls_validation',
96
95
  :'headers' => :'headers',
96
+ :'total_timeout' => :'total_timeout',
97
+ :'client_key' => :'client_key',
97
98
  :'client_cert' => :'client_cert',
99
+ :'download_concurrency' => :'download_concurrency',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
101
+ :'url' => :'url',
98
102
  :'ca_cert' => :'ca_cert',
99
- :'total_timeout' => :'total_timeout',
100
- :'max_retries' => :'max_retries',
103
+ :'proxy_url' => :'proxy_url',
101
104
  :'proxy_password' => :'proxy_password',
102
105
  :'username' => :'username',
103
- :'tls_validation' => :'tls_validation',
104
- :'client_key' => :'client_key',
105
- :'password' => :'password',
106
106
  :'rate_limit' => :'rate_limit',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
@@ -117,25 +117,25 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
- :'pulp_labels' => :'Hash<String, String>',
120
+ :'password' => :'String',
121
+ :'max_retries' => :'Integer',
121
122
  :'name' => :'String',
123
+ :'pulp_labels' => :'Hash<String, String>',
122
124
  :'proxy_username' => :'String',
123
- :'proxy_url' => :'String',
124
- :'sock_read_timeout' => :'Float',
125
- :'connect_timeout' => :'Float',
126
- :'download_concurrency' => :'Integer',
127
- :'url' => :'String',
128
125
  :'sock_connect_timeout' => :'Float',
126
+ :'connect_timeout' => :'Float',
127
+ :'tls_validation' => :'Boolean',
129
128
  :'headers' => :'Array<Object>',
129
+ :'total_timeout' => :'Float',
130
+ :'client_key' => :'String',
130
131
  :'client_cert' => :'String',
132
+ :'download_concurrency' => :'Integer',
133
+ :'sock_read_timeout' => :'Float',
134
+ :'url' => :'String',
131
135
  :'ca_cert' => :'String',
132
- :'total_timeout' => :'Float',
133
- :'max_retries' => :'Integer',
136
+ :'proxy_url' => :'String',
134
137
  :'proxy_password' => :'String',
135
138
  :'username' => :'String',
136
- :'tls_validation' => :'Boolean',
137
- :'client_key' => :'String',
138
- :'password' => :'String',
139
139
  :'rate_limit' => :'Integer',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
@@ -145,20 +145,20 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
+ :'password',
149
+ :'max_retries',
148
150
  :'proxy_username',
149
- :'proxy_url',
150
- :'sock_read_timeout',
151
- :'connect_timeout',
152
- :'download_concurrency',
153
151
  :'sock_connect_timeout',
152
+ :'connect_timeout',
153
+ :'total_timeout',
154
+ :'client_key',
154
155
  :'client_cert',
156
+ :'download_concurrency',
157
+ :'sock_read_timeout',
155
158
  :'ca_cert',
156
- :'total_timeout',
157
- :'max_retries',
159
+ :'proxy_url',
158
160
  :'proxy_password',
159
161
  :'username',
160
- :'client_key',
161
- :'password',
162
162
  :'rate_limit',
163
163
  ])
164
164
  end
@@ -178,42 +178,38 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'pulp_labels')
182
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
183
- self.pulp_labels = value
184
- end
181
+ if attributes.key?(:'password')
182
+ self.password = attributes[:'password']
183
+ end
184
+
185
+ if attributes.key?(:'max_retries')
186
+ self.max_retries = attributes[:'max_retries']
185
187
  end
186
188
 
187
189
  if attributes.key?(:'name')
188
190
  self.name = attributes[:'name']
189
191
  end
190
192
 
191
- if attributes.key?(:'proxy_username')
192
- self.proxy_username = attributes[:'proxy_username']
193
+ if attributes.key?(:'pulp_labels')
194
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
195
+ self.pulp_labels = value
196
+ end
193
197
  end
194
198
 
195
- if attributes.key?(:'proxy_url')
196
- self.proxy_url = attributes[:'proxy_url']
199
+ if attributes.key?(:'proxy_username')
200
+ self.proxy_username = attributes[:'proxy_username']
197
201
  end
198
202
 
199
- if attributes.key?(:'sock_read_timeout')
200
- self.sock_read_timeout = attributes[:'sock_read_timeout']
203
+ if attributes.key?(:'sock_connect_timeout')
204
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
201
205
  end
202
206
 
203
207
  if attributes.key?(:'connect_timeout')
204
208
  self.connect_timeout = attributes[:'connect_timeout']
205
209
  end
206
210
 
207
- if attributes.key?(:'download_concurrency')
208
- self.download_concurrency = attributes[:'download_concurrency']
209
- end
210
-
211
- if attributes.key?(:'url')
212
- self.url = attributes[:'url']
213
- end
214
-
215
- if attributes.key?(:'sock_connect_timeout')
216
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
211
+ if attributes.key?(:'tls_validation')
212
+ self.tls_validation = attributes[:'tls_validation']
217
213
  end
218
214
 
219
215
  if attributes.key?(:'headers')
@@ -222,40 +218,44 @@ module PulpAnsibleClient
222
218
  end
223
219
  end
224
220
 
225
- if attributes.key?(:'client_cert')
226
- self.client_cert = attributes[:'client_cert']
221
+ if attributes.key?(:'total_timeout')
222
+ self.total_timeout = attributes[:'total_timeout']
227
223
  end
228
224
 
229
- if attributes.key?(:'ca_cert')
230
- self.ca_cert = attributes[:'ca_cert']
225
+ if attributes.key?(:'client_key')
226
+ self.client_key = attributes[:'client_key']
231
227
  end
232
228
 
233
- if attributes.key?(:'total_timeout')
234
- self.total_timeout = attributes[:'total_timeout']
229
+ if attributes.key?(:'client_cert')
230
+ self.client_cert = attributes[:'client_cert']
235
231
  end
236
232
 
237
- if attributes.key?(:'max_retries')
238
- self.max_retries = attributes[:'max_retries']
233
+ if attributes.key?(:'download_concurrency')
234
+ self.download_concurrency = attributes[:'download_concurrency']
239
235
  end
240
236
 
241
- if attributes.key?(:'proxy_password')
242
- self.proxy_password = attributes[:'proxy_password']
237
+ if attributes.key?(:'sock_read_timeout')
238
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
243
239
  end
244
240
 
245
- if attributes.key?(:'username')
246
- self.username = attributes[:'username']
241
+ if attributes.key?(:'url')
242
+ self.url = attributes[:'url']
247
243
  end
248
244
 
249
- if attributes.key?(:'tls_validation')
250
- self.tls_validation = attributes[:'tls_validation']
245
+ if attributes.key?(:'ca_cert')
246
+ self.ca_cert = attributes[:'ca_cert']
251
247
  end
252
248
 
253
- if attributes.key?(:'client_key')
254
- self.client_key = attributes[:'client_key']
249
+ if attributes.key?(:'proxy_url')
250
+ self.proxy_url = attributes[:'proxy_url']
255
251
  end
256
252
 
257
- if attributes.key?(:'password')
258
- self.password = attributes[:'password']
253
+ if attributes.key?(:'proxy_password')
254
+ self.proxy_password = attributes[:'proxy_password']
255
+ end
256
+
257
+ if attributes.key?(:'username')
258
+ self.username = attributes[:'username']
259
259
  end
260
260
 
261
261
  if attributes.key?(:'rate_limit')
@@ -276,6 +276,10 @@ 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 !@password.nil? && @password.to_s.length < 1
280
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
281
+ end
282
+
279
283
  if !@name.nil? && @name.to_s.length < 1
280
284
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
281
285
  end
@@ -284,40 +288,44 @@ module PulpAnsibleClient
284
288
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
285
289
  end
286
290
 
287
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
288
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
289
- end
290
-
291
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
292
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
291
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
292
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
293
293
  end
294
294
 
295
295
  if !@connect_timeout.nil? && @connect_timeout < 0.0
296
296
  invalid_properties.push('invalid value for "connect_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.')
301
- end
302
-
303
- if !@url.nil? && @url.to_s.length < 1
304
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
299
+ if !@total_timeout.nil? && @total_timeout < 0.0
300
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
305
301
  end
306
302
 
307
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
308
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
303
+ if !@client_key.nil? && @client_key.to_s.length < 1
304
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
309
305
  end
310
306
 
311
307
  if !@client_cert.nil? && @client_cert.to_s.length < 1
312
308
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
313
309
  end
314
310
 
311
+ if !@download_concurrency.nil? && @download_concurrency < 1
312
+ invalid_properties.push('invalid value for "download_concurrency", must be greater 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 !@url.nil? && @url.to_s.length < 1
320
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
321
+ end
322
+
315
323
  if !@ca_cert.nil? && @ca_cert.to_s.length < 1
316
324
  invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
317
325
  end
318
326
 
319
- if !@total_timeout.nil? && @total_timeout < 0.0
320
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
327
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
328
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
321
329
  end
322
330
 
323
331
  if !@proxy_password.nil? && @proxy_password.to_s.length < 1
@@ -328,14 +336,6 @@ module PulpAnsibleClient
328
336
  invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
329
337
  end
330
338
 
331
- if !@client_key.nil? && @client_key.to_s.length < 1
332
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
333
- end
334
-
335
- if !@password.nil? && @password.to_s.length < 1
336
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
337
- end
338
-
339
339
  if !@git_ref.nil? && @git_ref.to_s.length < 1
340
340
  invalid_properties.push('invalid value for "git_ref", the character length must be great than or equal to 1.')
341
341
  end
@@ -347,25 +347,35 @@ 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 !@password.nil? && @password.to_s.length < 1
350
351
  return false if !@name.nil? && @name.to_s.length < 1
351
352
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
352
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
353
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
354
354
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
355
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
356
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
357
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
355
358
  return false if !@download_concurrency.nil? && @download_concurrency < 1
359
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
356
360
  return false if !@url.nil? && @url.to_s.length < 1
357
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
359
361
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
360
- return false if !@total_timeout.nil? && @total_timeout < 0.0
362
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
361
363
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
362
364
  return false if !@username.nil? && @username.to_s.length < 1
363
- return false if !@client_key.nil? && @client_key.to_s.length < 1
364
- return false if !@password.nil? && @password.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
+ # Custom attribute writer method with validation
370
+ # @param [Object] password Value to be assigned
371
+ def password=(password)
372
+ if !password.nil? && password.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
374
+ end
375
+
376
+ @password = password
377
+ end
378
+
369
379
  # Custom attribute writer method with validation
370
380
  # @param [Object] name Value to be assigned
371
381
  def name=(name)
@@ -391,23 +401,13 @@ module PulpAnsibleClient
391
401
  end
392
402
 
393
403
  # Custom attribute writer method with validation
394
- # @param [Object] proxy_url Value to be assigned
395
- def proxy_url=(proxy_url)
396
- if !proxy_url.nil? && proxy_url.to_s.length < 1
397
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
398
- end
399
-
400
- @proxy_url = proxy_url
401
- end
402
-
403
- # Custom attribute writer method with validation
404
- # @param [Object] sock_read_timeout Value to be assigned
405
- def sock_read_timeout=(sock_read_timeout)
406
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
407
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
404
+ # @param [Object] sock_connect_timeout Value to be assigned
405
+ def sock_connect_timeout=(sock_connect_timeout)
406
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
407
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
408
408
  end
409
409
 
410
- @sock_read_timeout = sock_read_timeout
410
+ @sock_connect_timeout = sock_connect_timeout
411
411
  end
412
412
 
413
413
  # Custom attribute writer method with validation
@@ -420,6 +420,36 @@ module PulpAnsibleClient
420
420
  @connect_timeout = connect_timeout
421
421
  end
422
422
 
423
+ # Custom attribute writer method with validation
424
+ # @param [Object] total_timeout Value to be assigned
425
+ def total_timeout=(total_timeout)
426
+ if !total_timeout.nil? && total_timeout < 0.0
427
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
428
+ end
429
+
430
+ @total_timeout = total_timeout
431
+ end
432
+
433
+ # Custom attribute writer method with validation
434
+ # @param [Object] client_key Value to be assigned
435
+ def client_key=(client_key)
436
+ if !client_key.nil? && client_key.to_s.length < 1
437
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
438
+ end
439
+
440
+ @client_key = client_key
441
+ end
442
+
443
+ # Custom attribute writer method with validation
444
+ # @param [Object] client_cert Value to be assigned
445
+ def client_cert=(client_cert)
446
+ if !client_cert.nil? && client_cert.to_s.length < 1
447
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
448
+ end
449
+
450
+ @client_cert = client_cert
451
+ end
452
+
423
453
  # Custom attribute writer method with validation
424
454
  # @param [Object] download_concurrency Value to be assigned
425
455
  def download_concurrency=(download_concurrency)
@@ -430,6 +460,16 @@ module PulpAnsibleClient
430
460
  @download_concurrency = download_concurrency
431
461
  end
432
462
 
463
+ # Custom attribute writer method with validation
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.'
468
+ end
469
+
470
+ @sock_read_timeout = sock_read_timeout
471
+ end
472
+
433
473
  # Custom attribute writer method with validation
434
474
  # @param [Object] url Value to be assigned
435
475
  def url=(url)
@@ -444,26 +484,6 @@ module PulpAnsibleClient
444
484
  @url = url
445
485
  end
446
486
 
447
- # Custom attribute writer method with validation
448
- # @param [Object] sock_connect_timeout Value to be assigned
449
- def sock_connect_timeout=(sock_connect_timeout)
450
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
451
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
452
- end
453
-
454
- @sock_connect_timeout = sock_connect_timeout
455
- end
456
-
457
- # Custom attribute writer method with validation
458
- # @param [Object] client_cert Value to be assigned
459
- def client_cert=(client_cert)
460
- if !client_cert.nil? && client_cert.to_s.length < 1
461
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
462
- end
463
-
464
- @client_cert = client_cert
465
- end
466
-
467
487
  # Custom attribute writer method with validation
468
488
  # @param [Object] ca_cert Value to be assigned
469
489
  def ca_cert=(ca_cert)
@@ -475,13 +495,13 @@ module PulpAnsibleClient
475
495
  end
476
496
 
477
497
  # Custom attribute writer method with validation
478
- # @param [Object] total_timeout Value to be assigned
479
- def total_timeout=(total_timeout)
480
- if !total_timeout.nil? && total_timeout < 0.0
481
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
498
+ # @param [Object] proxy_url Value to be assigned
499
+ def proxy_url=(proxy_url)
500
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
501
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
482
502
  end
483
503
 
484
- @total_timeout = total_timeout
504
+ @proxy_url = proxy_url
485
505
  end
486
506
 
487
507
  # Custom attribute writer method with validation
@@ -504,26 +524,6 @@ module PulpAnsibleClient
504
524
  @username = username
505
525
  end
506
526
 
507
- # Custom attribute writer method with validation
508
- # @param [Object] client_key Value to be assigned
509
- def client_key=(client_key)
510
- if !client_key.nil? && client_key.to_s.length < 1
511
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
512
- end
513
-
514
- @client_key = client_key
515
- end
516
-
517
- # Custom attribute writer method with validation
518
- # @param [Object] password Value to be assigned
519
- def password=(password)
520
- if !password.nil? && password.to_s.length < 1
521
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
522
- end
523
-
524
- @password = password
525
- end
526
-
527
527
  # Custom attribute writer method with validation
528
528
  # @param [Object] git_ref Value to be assigned
529
529
  def git_ref=(git_ref)
@@ -543,25 +543,25 @@ module PulpAnsibleClient
543
543
  def ==(o)
544
544
  return true if self.equal?(o)
545
545
  self.class == o.class &&
546
- pulp_labels == o.pulp_labels &&
546
+ password == o.password &&
547
+ max_retries == o.max_retries &&
547
548
  name == o.name &&
549
+ pulp_labels == o.pulp_labels &&
548
550
  proxy_username == o.proxy_username &&
549
- proxy_url == o.proxy_url &&
550
- sock_read_timeout == o.sock_read_timeout &&
551
- connect_timeout == o.connect_timeout &&
552
- download_concurrency == o.download_concurrency &&
553
- url == o.url &&
554
551
  sock_connect_timeout == o.sock_connect_timeout &&
552
+ connect_timeout == o.connect_timeout &&
553
+ tls_validation == o.tls_validation &&
555
554
  headers == o.headers &&
555
+ total_timeout == o.total_timeout &&
556
+ client_key == o.client_key &&
556
557
  client_cert == o.client_cert &&
558
+ download_concurrency == o.download_concurrency &&
559
+ sock_read_timeout == o.sock_read_timeout &&
560
+ url == o.url &&
557
561
  ca_cert == o.ca_cert &&
558
- total_timeout == o.total_timeout &&
559
- max_retries == o.max_retries &&
562
+ proxy_url == o.proxy_url &&
560
563
  proxy_password == o.proxy_password &&
561
564
  username == o.username &&
562
- tls_validation == o.tls_validation &&
563
- client_key == o.client_key &&
564
- password == o.password &&
565
565
  rate_limit == o.rate_limit &&
566
566
  metadata_only == o.metadata_only &&
567
567
  git_ref == o.git_ref
@@ -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
- [pulp_labels, name, proxy_username, proxy_url, sock_read_timeout, connect_timeout, download_concurrency, url, sock_connect_timeout, headers, client_cert, ca_cert, total_timeout, max_retries, proxy_password, username, tls_validation, client_key, password, rate_limit, metadata_only, git_ref].hash
579
+ [password, max_retries, name, pulp_labels, proxy_username, sock_connect_timeout, connect_timeout, tls_validation, headers, total_timeout, client_key, client_cert, download_concurrency, sock_read_timeout, url, ca_cert, proxy_url, proxy_password, username, rate_limit, metadata_only, git_ref].hash
580
580
  end
581
581
 
582
582
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.24.0'
14
+ VERSION = '0.24.1'
15
15
  end
@@ -37,10 +37,10 @@ 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 [File] :file An uploaded file that may be turned into the content unit.
40
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
- # @option opts [String] :artifact Artifact file representing the physical content
42
40
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
43
41
  # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
42
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [String] :artifact Artifact file representing the physical content
44
44
  # @option opts [String] :expected_name The name of the collection.
45
45
  # @option opts [String] :expected_namespace The namespace of the collection.
46
46
  # @option opts [String] :expected_version The version of the collection.