pulp_ansible_client 0.17.5 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,61 +18,61 @@ module PulpAnsibleClient
18
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
19
  attr_accessor :sock_read_timeout
20
20
 
21
+ attr_accessor :pulp_labels
22
+
21
23
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
22
24
  attr_accessor :max_retries
23
25
 
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
26
-
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.
28
- attr_accessor :connect_timeout
29
-
30
26
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
31
27
  attr_accessor :proxy_password
32
28
 
33
- # The username to be used for authentication when syncing.
34
- attr_accessor :username
29
+ # Limits requests per second for each concurrent downloader
30
+ attr_accessor :rate_limit
35
31
 
36
- # A PEM encoded client certificate used for authentication.
37
- attr_accessor :client_cert
32
+ # Headers for aiohttp.Clientsession
33
+ attr_accessor :headers
38
34
 
39
35
  # A PEM encoded private key used for authentication.
40
36
  attr_accessor :client_key
41
37
 
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
38
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
39
+ attr_accessor :password
47
40
 
48
- # Headers for aiohttp.Clientsession
49
- attr_accessor :headers
41
+ # The username to be used for authentication when syncing.
42
+ attr_accessor :username
50
43
 
51
44
  # If True, TLS peer validation must be performed.
52
45
  attr_accessor :tls_validation
53
46
 
54
- # The username to authenticte to the proxy.
55
- attr_accessor :proxy_username
47
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
+ attr_accessor :total_timeout
56
49
 
57
- attr_accessor :pulp_labels
50
+ # The proxy URL. Format: scheme://host:port
51
+ attr_accessor :proxy_url
58
52
 
59
- # Limits requests per second for each concurrent downloader
60
- attr_accessor :rate_limit
53
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
+ attr_accessor :connect_timeout
61
55
 
62
- # The URL of an external content source.
63
- attr_accessor :url
56
+ # A unique name for this remote.
57
+ attr_accessor :name
64
58
 
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
59
+ # Total number of simultaneous connections. If not set then the default value will be used.
60
+ attr_accessor :download_concurrency
67
61
 
68
62
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
69
63
  attr_accessor :ca_cert
70
64
 
71
- # The proxy URL. Format: scheme://host:port
72
- attr_accessor :proxy_url
65
+ # The username to authenticte to the proxy.
66
+ attr_accessor :proxy_username
73
67
 
74
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
75
- attr_accessor :password
68
+ # 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.
69
+ attr_accessor :sock_connect_timeout
70
+
71
+ # A PEM encoded client certificate used for authentication.
72
+ attr_accessor :client_cert
73
+
74
+ # The URL of an external content source.
75
+ attr_accessor :url
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -84,25 +84,25 @@ module PulpAnsibleClient
84
84
  def self.attribute_map
85
85
  {
86
86
  :'sock_read_timeout' => :'sock_read_timeout',
87
+ :'pulp_labels' => :'pulp_labels',
87
88
  :'max_retries' => :'max_retries',
88
- :'download_concurrency' => :'download_concurrency',
89
- :'connect_timeout' => :'connect_timeout',
90
89
  :'proxy_password' => :'proxy_password',
91
- :'username' => :'username',
92
- :'client_cert' => :'client_cert',
93
- :'client_key' => :'client_key',
94
- :'name' => :'name',
95
- :'total_timeout' => :'total_timeout',
90
+ :'rate_limit' => :'rate_limit',
96
91
  :'headers' => :'headers',
92
+ :'client_key' => :'client_key',
93
+ :'password' => :'password',
94
+ :'username' => :'username',
97
95
  :'tls_validation' => :'tls_validation',
96
+ :'total_timeout' => :'total_timeout',
97
+ :'proxy_url' => :'proxy_url',
98
+ :'connect_timeout' => :'connect_timeout',
99
+ :'name' => :'name',
100
+ :'download_concurrency' => :'download_concurrency',
101
+ :'ca_cert' => :'ca_cert',
98
102
  :'proxy_username' => :'proxy_username',
99
- :'pulp_labels' => :'pulp_labels',
100
- :'rate_limit' => :'rate_limit',
101
- :'url' => :'url',
102
103
  :'sock_connect_timeout' => :'sock_connect_timeout',
103
- :'ca_cert' => :'ca_cert',
104
- :'proxy_url' => :'proxy_url',
105
- :'password' => :'password',
104
+ :'client_cert' => :'client_cert',
105
+ :'url' => :'url',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -112,25 +112,25 @@ module PulpAnsibleClient
112
112
  def self.openapi_types
113
113
  {
114
114
  :'sock_read_timeout' => :'Float',
115
+ :'pulp_labels' => :'Hash<String, String>',
115
116
  :'max_retries' => :'Integer',
116
- :'download_concurrency' => :'Integer',
117
- :'connect_timeout' => :'Float',
118
117
  :'proxy_password' => :'String',
119
- :'username' => :'String',
120
- :'client_cert' => :'String',
121
- :'client_key' => :'String',
122
- :'name' => :'String',
123
- :'total_timeout' => :'Float',
118
+ :'rate_limit' => :'Integer',
124
119
  :'headers' => :'Array<Object>',
120
+ :'client_key' => :'String',
121
+ :'password' => :'String',
122
+ :'username' => :'String',
125
123
  :'tls_validation' => :'Boolean',
124
+ :'total_timeout' => :'Float',
125
+ :'proxy_url' => :'String',
126
+ :'connect_timeout' => :'Float',
127
+ :'name' => :'String',
128
+ :'download_concurrency' => :'Integer',
129
+ :'ca_cert' => :'String',
126
130
  :'proxy_username' => :'String',
127
- :'pulp_labels' => :'Hash<String, String>',
128
- :'rate_limit' => :'Integer',
129
- :'url' => :'String',
130
131
  :'sock_connect_timeout' => :'Float',
131
- :'ca_cert' => :'String',
132
- :'proxy_url' => :'String',
133
- :'password' => :'String',
132
+ :'client_cert' => :'String',
133
+ :'url' => :'String',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -141,19 +141,19 @@ module PulpAnsibleClient
141
141
  Set.new([
142
142
  :'sock_read_timeout',
143
143
  :'max_retries',
144
- :'download_concurrency',
145
- :'connect_timeout',
146
144
  :'proxy_password',
147
- :'username',
148
- :'client_cert',
145
+ :'rate_limit',
149
146
  :'client_key',
147
+ :'password',
148
+ :'username',
150
149
  :'total_timeout',
150
+ :'proxy_url',
151
+ :'connect_timeout',
152
+ :'download_concurrency',
153
+ :'ca_cert',
151
154
  :'proxy_username',
152
- :'rate_limit',
153
155
  :'sock_connect_timeout',
154
- :'ca_cert',
155
- :'proxy_url',
156
- :'password',
156
+ :'client_cert',
157
157
  ])
158
158
  end
159
159
 
@@ -176,84 +176,84 @@ module PulpAnsibleClient
176
176
  self.sock_read_timeout = attributes[:'sock_read_timeout']
177
177
  end
178
178
 
179
- if attributes.key?(:'max_retries')
180
- self.max_retries = attributes[:'max_retries']
181
- end
182
-
183
- if attributes.key?(:'download_concurrency')
184
- self.download_concurrency = attributes[:'download_concurrency']
179
+ if attributes.key?(:'pulp_labels')
180
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
181
+ self.pulp_labels = value
182
+ end
185
183
  end
186
184
 
187
- if attributes.key?(:'connect_timeout')
188
- self.connect_timeout = attributes[:'connect_timeout']
185
+ if attributes.key?(:'max_retries')
186
+ self.max_retries = attributes[:'max_retries']
189
187
  end
190
188
 
191
189
  if attributes.key?(:'proxy_password')
192
190
  self.proxy_password = attributes[:'proxy_password']
193
191
  end
194
192
 
195
- if attributes.key?(:'username')
196
- self.username = attributes[:'username']
193
+ if attributes.key?(:'rate_limit')
194
+ self.rate_limit = attributes[:'rate_limit']
197
195
  end
198
196
 
199
- if attributes.key?(:'client_cert')
200
- self.client_cert = attributes[:'client_cert']
197
+ if attributes.key?(:'headers')
198
+ if (value = attributes[:'headers']).is_a?(Array)
199
+ self.headers = value
200
+ end
201
201
  end
202
202
 
203
203
  if attributes.key?(:'client_key')
204
204
  self.client_key = attributes[:'client_key']
205
205
  end
206
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']
207
+ if attributes.key?(:'password')
208
+ self.password = attributes[:'password']
213
209
  end
214
210
 
215
- if attributes.key?(:'headers')
216
- if (value = attributes[:'headers']).is_a?(Array)
217
- self.headers = value
218
- end
211
+ if attributes.key?(:'username')
212
+ self.username = attributes[:'username']
219
213
  end
220
214
 
221
215
  if attributes.key?(:'tls_validation')
222
216
  self.tls_validation = attributes[:'tls_validation']
223
217
  end
224
218
 
225
- if attributes.key?(:'proxy_username')
226
- self.proxy_username = attributes[:'proxy_username']
219
+ if attributes.key?(:'total_timeout')
220
+ self.total_timeout = attributes[:'total_timeout']
227
221
  end
228
222
 
229
- if attributes.key?(:'pulp_labels')
230
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
231
- self.pulp_labels = value
232
- end
223
+ if attributes.key?(:'proxy_url')
224
+ self.proxy_url = attributes[:'proxy_url']
233
225
  end
234
226
 
235
- if attributes.key?(:'rate_limit')
236
- self.rate_limit = attributes[:'rate_limit']
227
+ if attributes.key?(:'connect_timeout')
228
+ self.connect_timeout = attributes[:'connect_timeout']
237
229
  end
238
230
 
239
- if attributes.key?(:'url')
240
- self.url = attributes[:'url']
231
+ if attributes.key?(:'name')
232
+ self.name = attributes[:'name']
241
233
  end
242
234
 
243
- if attributes.key?(:'sock_connect_timeout')
244
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
235
+ if attributes.key?(:'download_concurrency')
236
+ self.download_concurrency = attributes[:'download_concurrency']
245
237
  end
246
238
 
247
239
  if attributes.key?(:'ca_cert')
248
240
  self.ca_cert = attributes[:'ca_cert']
249
241
  end
250
242
 
251
- if attributes.key?(:'proxy_url')
252
- self.proxy_url = attributes[:'proxy_url']
243
+ if attributes.key?(:'proxy_username')
244
+ self.proxy_username = attributes[:'proxy_username']
253
245
  end
254
246
 
255
- if attributes.key?(:'password')
256
- self.password = attributes[:'password']
247
+ if attributes.key?(:'sock_connect_timeout')
248
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
249
+ end
250
+
251
+ if attributes.key?(:'client_cert')
252
+ self.client_cert = attributes[:'client_cert']
253
+ end
254
+
255
+ if attributes.key?(:'url')
256
+ self.url = attributes[:'url']
257
257
  end
258
258
 
259
259
  if attributes.key?(:'metadata_only')
@@ -273,28 +273,32 @@ module PulpAnsibleClient
273
273
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
274
274
  end
275
275
 
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.')
276
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
277
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
278
278
  end
279
279
 
280
- if !@connect_timeout.nil? && @connect_timeout < 0.0
281
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
280
+ if !@client_key.nil? && @client_key.to_s.length < 1
281
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
282
282
  end
283
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.')
284
+ if !@password.nil? && @password.to_s.length < 1
285
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
286
286
  end
287
287
 
288
288
  if !@username.nil? && @username.to_s.length < 1
289
289
  invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
290
290
  end
291
291
 
292
- if !@client_cert.nil? && @client_cert.to_s.length < 1
293
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
292
+ if !@total_timeout.nil? && @total_timeout < 0.0
293
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
294
294
  end
295
295
 
296
- if !@client_key.nil? && @client_key.to_s.length < 1
297
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
296
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
297
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
298
+ end
299
+
300
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
301
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
298
302
  end
299
303
 
300
304
  if @name.nil?
@@ -305,36 +309,32 @@ module PulpAnsibleClient
305
309
  invalid_properties.push('invalid value for "name", 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.')
310
- end
311
-
312
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
313
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
312
+ if !@download_concurrency.nil? && @download_concurrency < 1
313
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
314
314
  end
315
315
 
316
- if @url.nil?
317
- invalid_properties.push('invalid value for "url", url cannot be nil.')
316
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
317
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
318
318
  end
319
319
 
320
- if @url.to_s.length < 1
321
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
320
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
321
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
322
322
  end
323
323
 
324
324
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
325
325
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
326
326
  end
327
327
 
328
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
329
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
328
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
329
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
330
330
  end
331
331
 
332
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
333
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
332
+ if @url.nil?
333
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
334
334
  end
335
335
 
336
- if !@password.nil? && @password.to_s.length < 1
337
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
336
+ if @url.to_s.length < 1
337
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
338
338
  end
339
339
 
340
340
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -348,22 +348,22 @@ module PulpAnsibleClient
348
348
  # @return true if the model is valid
349
349
  def valid?
350
350
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
- return false if !@download_concurrency.nil? && @download_concurrency < 1
352
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
353
351
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
354
- return false if !@username.nil? && @username.to_s.length < 1
355
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
356
352
  return false if !@client_key.nil? && @client_key.to_s.length < 1
353
+ return false if !@password.nil? && @password.to_s.length < 1
354
+ return false if !@username.nil? && @username.to_s.length < 1
355
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
356
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
357
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
357
358
  return false if @name.nil?
358
359
  return false if @name.to_s.length < 1
359
- return false if !@total_timeout.nil? && @total_timeout < 0.0
360
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
361
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
360
362
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
363
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
364
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
361
365
  return false if @url.nil?
362
366
  return false if @url.to_s.length < 1
363
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
364
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
365
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
366
- return false if !@password.nil? && @password.to_s.length < 1
367
367
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
368
368
  true
369
369
  end
@@ -379,33 +379,33 @@ module PulpAnsibleClient
379
379
  end
380
380
 
381
381
  # Custom attribute writer method with validation
382
- # @param [Object] download_concurrency Value to be assigned
383
- def download_concurrency=(download_concurrency)
384
- if !download_concurrency.nil? && download_concurrency < 1
385
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
382
+ # @param [Object] proxy_password Value to be assigned
383
+ def proxy_password=(proxy_password)
384
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
385
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
386
386
  end
387
387
 
388
- @download_concurrency = download_concurrency
388
+ @proxy_password = proxy_password
389
389
  end
390
390
 
391
391
  # Custom attribute writer method with validation
392
- # @param [Object] connect_timeout Value to be assigned
393
- def connect_timeout=(connect_timeout)
394
- if !connect_timeout.nil? && connect_timeout < 0.0
395
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
392
+ # @param [Object] client_key Value to be assigned
393
+ def client_key=(client_key)
394
+ if !client_key.nil? && client_key.to_s.length < 1
395
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
396
396
  end
397
397
 
398
- @connect_timeout = connect_timeout
398
+ @client_key = client_key
399
399
  end
400
400
 
401
401
  # Custom attribute writer method with validation
402
- # @param [Object] proxy_password Value to be assigned
403
- def proxy_password=(proxy_password)
404
- if !proxy_password.nil? && proxy_password.to_s.length < 1
405
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
402
+ # @param [Object] password Value to be assigned
403
+ def password=(password)
404
+ if !password.nil? && password.to_s.length < 1
405
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
406
406
  end
407
407
 
408
- @proxy_password = proxy_password
408
+ @password = password
409
409
  end
410
410
 
411
411
  # Custom attribute writer method with validation
@@ -419,23 +419,33 @@ module PulpAnsibleClient
419
419
  end
420
420
 
421
421
  # Custom attribute writer method with validation
422
- # @param [Object] client_cert Value to be assigned
423
- def client_cert=(client_cert)
424
- if !client_cert.nil? && client_cert.to_s.length < 1
425
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
422
+ # @param [Object] total_timeout Value to be assigned
423
+ def total_timeout=(total_timeout)
424
+ if !total_timeout.nil? && total_timeout < 0.0
425
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
426
426
  end
427
427
 
428
- @client_cert = client_cert
428
+ @total_timeout = total_timeout
429
429
  end
430
430
 
431
431
  # Custom attribute writer method with validation
432
- # @param [Object] client_key Value to be assigned
433
- def client_key=(client_key)
434
- if !client_key.nil? && client_key.to_s.length < 1
435
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
432
+ # @param [Object] proxy_url Value to be assigned
433
+ def proxy_url=(proxy_url)
434
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
435
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
436
436
  end
437
437
 
438
- @client_key = client_key
438
+ @proxy_url = proxy_url
439
+ end
440
+
441
+ # Custom attribute writer method with validation
442
+ # @param [Object] connect_timeout Value to be assigned
443
+ def connect_timeout=(connect_timeout)
444
+ if !connect_timeout.nil? && connect_timeout < 0.0
445
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
446
+ end
447
+
448
+ @connect_timeout = connect_timeout
439
449
  end
440
450
 
441
451
  # Custom attribute writer method with validation
@@ -453,37 +463,33 @@ module PulpAnsibleClient
453
463
  end
454
464
 
455
465
  # Custom attribute writer method with validation
456
- # @param [Object] total_timeout Value to be assigned
457
- def total_timeout=(total_timeout)
458
- if !total_timeout.nil? && total_timeout < 0.0
459
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
466
+ # @param [Object] download_concurrency Value to be assigned
467
+ def download_concurrency=(download_concurrency)
468
+ if !download_concurrency.nil? && download_concurrency < 1
469
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
460
470
  end
461
471
 
462
- @total_timeout = total_timeout
472
+ @download_concurrency = download_concurrency
463
473
  end
464
474
 
465
475
  # Custom attribute writer method with validation
466
- # @param [Object] proxy_username Value to be assigned
467
- def proxy_username=(proxy_username)
468
- if !proxy_username.nil? && proxy_username.to_s.length < 1
469
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
476
+ # @param [Object] ca_cert Value to be assigned
477
+ def ca_cert=(ca_cert)
478
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
479
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
470
480
  end
471
481
 
472
- @proxy_username = proxy_username
482
+ @ca_cert = ca_cert
473
483
  end
474
484
 
475
485
  # Custom attribute writer method with validation
476
- # @param [Object] url Value to be assigned
477
- def url=(url)
478
- if url.nil?
479
- fail ArgumentError, 'url cannot be nil'
480
- end
481
-
482
- if url.to_s.length < 1
483
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
486
+ # @param [Object] proxy_username Value to be assigned
487
+ def proxy_username=(proxy_username)
488
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
489
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
484
490
  end
485
491
 
486
- @url = url
492
+ @proxy_username = proxy_username
487
493
  end
488
494
 
489
495
  # Custom attribute writer method with validation
@@ -497,33 +503,27 @@ module PulpAnsibleClient
497
503
  end
498
504
 
499
505
  # Custom attribute writer method with validation
500
- # @param [Object] ca_cert Value to be assigned
501
- def ca_cert=(ca_cert)
502
- if !ca_cert.nil? && ca_cert.to_s.length < 1
503
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
506
+ # @param [Object] client_cert Value to be assigned
507
+ def client_cert=(client_cert)
508
+ if !client_cert.nil? && client_cert.to_s.length < 1
509
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
504
510
  end
505
511
 
506
- @ca_cert = ca_cert
512
+ @client_cert = client_cert
507
513
  end
508
514
 
509
515
  # Custom attribute writer method with validation
510
- # @param [Object] proxy_url Value to be assigned
511
- def proxy_url=(proxy_url)
512
- if !proxy_url.nil? && proxy_url.to_s.length < 1
513
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
516
+ # @param [Object] url Value to be assigned
517
+ def url=(url)
518
+ if url.nil?
519
+ fail ArgumentError, 'url cannot be nil'
514
520
  end
515
521
 
516
- @proxy_url = proxy_url
517
- end
518
-
519
- # Custom attribute writer method with validation
520
- # @param [Object] password Value to be assigned
521
- def password=(password)
522
- if !password.nil? && password.to_s.length < 1
523
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
522
+ if url.to_s.length < 1
523
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
524
524
  end
525
525
 
526
- @password = password
526
+ @url = url
527
527
  end
528
528
 
529
529
  # Custom attribute writer method with validation
@@ -542,25 +542,25 @@ module PulpAnsibleClient
542
542
  return true if self.equal?(o)
543
543
  self.class == o.class &&
544
544
  sock_read_timeout == o.sock_read_timeout &&
545
+ pulp_labels == o.pulp_labels &&
545
546
  max_retries == o.max_retries &&
546
- download_concurrency == o.download_concurrency &&
547
- connect_timeout == o.connect_timeout &&
548
547
  proxy_password == o.proxy_password &&
549
- username == o.username &&
550
- client_cert == o.client_cert &&
551
- client_key == o.client_key &&
552
- name == o.name &&
553
- total_timeout == o.total_timeout &&
548
+ rate_limit == o.rate_limit &&
554
549
  headers == o.headers &&
550
+ client_key == o.client_key &&
551
+ password == o.password &&
552
+ username == o.username &&
555
553
  tls_validation == o.tls_validation &&
554
+ total_timeout == o.total_timeout &&
555
+ proxy_url == o.proxy_url &&
556
+ connect_timeout == o.connect_timeout &&
557
+ name == o.name &&
558
+ download_concurrency == o.download_concurrency &&
559
+ ca_cert == o.ca_cert &&
556
560
  proxy_username == o.proxy_username &&
557
- pulp_labels == o.pulp_labels &&
558
- rate_limit == o.rate_limit &&
559
- url == o.url &&
560
561
  sock_connect_timeout == o.sock_connect_timeout &&
561
- ca_cert == o.ca_cert &&
562
- proxy_url == o.proxy_url &&
563
- password == o.password &&
562
+ client_cert == o.client_cert &&
563
+ url == o.url &&
564
564
  metadata_only == o.metadata_only &&
565
565
  git_ref == o.git_ref
566
566
  end
@@ -574,7 +574,7 @@ module PulpAnsibleClient
574
574
  # Calculates hash code according to all attributes.
575
575
  # @return [Integer] Hash code
576
576
  def hash
577
- [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
577
+ [sock_read_timeout, pulp_labels, max_retries, proxy_password, rate_limit, headers, client_key, password, username, tls_validation, total_timeout, proxy_url, connect_timeout, name, download_concurrency, ca_cert, proxy_username, sock_connect_timeout, client_cert, url, metadata_only, git_ref].hash
578
578
  end
579
579
 
580
580
  # Builds the object from hash