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,60 +273,60 @@ 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? && @name.to_s.length < 1
301
305
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
302
306
  end
303
307
 
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.')
308
+ if !@download_concurrency.nil? && @download_concurrency < 1
309
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
306
310
  end
307
311
 
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.')
312
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
313
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
310
314
  end
311
315
 
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.')
316
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
317
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
314
318
  end
315
319
 
316
320
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
317
321
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
318
322
  end
319
323
 
320
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
321
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
322
- end
323
-
324
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
325
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
324
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
325
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
326
326
  end
327
327
 
328
- if !@password.nil? && @password.to_s.length < 1
329
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
328
+ if !@url.nil? && @url.to_s.length < 1
329
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
330
330
  end
331
331
 
332
332
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -340,20 +340,20 @@ module PulpAnsibleClient
340
340
  # @return true if the model is valid
341
341
  def valid?
342
342
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
343
- return false if !@download_concurrency.nil? && @download_concurrency < 1
344
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
345
343
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
346
- return false if !@username.nil? && @username.to_s.length < 1
347
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
348
344
  return false if !@client_key.nil? && @client_key.to_s.length < 1
349
- return false if !@name.nil? && @name.to_s.length < 1
345
+ return false if !@password.nil? && @password.to_s.length < 1
346
+ return false if !@username.nil? && @username.to_s.length < 1
350
347
  return false if !@total_timeout.nil? && @total_timeout < 0.0
348
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
349
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
350
+ return false if !@name.nil? && @name.to_s.length < 1
351
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
352
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
351
353
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
352
- return false if !@url.nil? && @url.to_s.length < 1
353
354
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
354
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
355
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
356
- return false if !@password.nil? && @password.to_s.length < 1
355
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
356
+ return false if !@url.nil? && @url.to_s.length < 1
357
357
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
358
358
  true
359
359
  end
@@ -369,33 +369,33 @@ module PulpAnsibleClient
369
369
  end
370
370
 
371
371
  # Custom attribute writer method with validation
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.'
372
+ # @param [Object] proxy_password Value to be assigned
373
+ def proxy_password=(proxy_password)
374
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
375
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
376
376
  end
377
377
 
378
- @download_concurrency = download_concurrency
378
+ @proxy_password = proxy_password
379
379
  end
380
380
 
381
381
  # Custom attribute writer method with validation
382
- # @param [Object] connect_timeout Value to be assigned
383
- def connect_timeout=(connect_timeout)
384
- if !connect_timeout.nil? && connect_timeout < 0.0
385
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
382
+ # @param [Object] client_key Value to be assigned
383
+ def client_key=(client_key)
384
+ if !client_key.nil? && client_key.to_s.length < 1
385
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
386
386
  end
387
387
 
388
- @connect_timeout = connect_timeout
388
+ @client_key = client_key
389
389
  end
390
390
 
391
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.'
392
+ # @param [Object] password Value to be assigned
393
+ def password=(password)
394
+ if !password.nil? && password.to_s.length < 1
395
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
396
396
  end
397
397
 
398
- @proxy_password = proxy_password
398
+ @password = password
399
399
  end
400
400
 
401
401
  # Custom attribute writer method with validation
@@ -409,23 +409,33 @@ module PulpAnsibleClient
409
409
  end
410
410
 
411
411
  # Custom attribute writer method with validation
412
- # @param [Object] client_cert Value to be assigned
413
- def client_cert=(client_cert)
414
- if !client_cert.nil? && client_cert.to_s.length < 1
415
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
412
+ # @param [Object] total_timeout Value to be assigned
413
+ def total_timeout=(total_timeout)
414
+ if !total_timeout.nil? && total_timeout < 0.0
415
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
416
416
  end
417
417
 
418
- @client_cert = client_cert
418
+ @total_timeout = total_timeout
419
419
  end
420
420
 
421
421
  # Custom attribute writer method with validation
422
- # @param [Object] client_key Value to be assigned
423
- def client_key=(client_key)
424
- if !client_key.nil? && client_key.to_s.length < 1
425
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
422
+ # @param [Object] proxy_url Value to be assigned
423
+ def proxy_url=(proxy_url)
424
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
425
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
426
426
  end
427
427
 
428
- @client_key = client_key
428
+ @proxy_url = proxy_url
429
+ end
430
+
431
+ # Custom attribute writer method with validation
432
+ # @param [Object] connect_timeout Value to be assigned
433
+ def connect_timeout=(connect_timeout)
434
+ if !connect_timeout.nil? && connect_timeout < 0.0
435
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
436
+ end
437
+
438
+ @connect_timeout = connect_timeout
429
439
  end
430
440
 
431
441
  # Custom attribute writer method with validation
@@ -439,33 +449,33 @@ module PulpAnsibleClient
439
449
  end
440
450
 
441
451
  # Custom attribute writer method with validation
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.'
452
+ # @param [Object] download_concurrency Value to be assigned
453
+ def download_concurrency=(download_concurrency)
454
+ if !download_concurrency.nil? && download_concurrency < 1
455
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
446
456
  end
447
457
 
448
- @total_timeout = total_timeout
458
+ @download_concurrency = download_concurrency
449
459
  end
450
460
 
451
461
  # Custom attribute writer method with validation
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.'
462
+ # @param [Object] ca_cert Value to be assigned
463
+ def ca_cert=(ca_cert)
464
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
465
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
456
466
  end
457
467
 
458
- @proxy_username = proxy_username
468
+ @ca_cert = ca_cert
459
469
  end
460
470
 
461
471
  # Custom attribute writer method with validation
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.'
472
+ # @param [Object] proxy_username Value to be assigned
473
+ def proxy_username=(proxy_username)
474
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
475
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
466
476
  end
467
477
 
468
- @url = url
478
+ @proxy_username = proxy_username
469
479
  end
470
480
 
471
481
  # Custom attribute writer method with validation
@@ -479,33 +489,23 @@ module PulpAnsibleClient
479
489
  end
480
490
 
481
491
  # Custom attribute writer method with validation
482
- # @param [Object] ca_cert Value to be assigned
483
- def ca_cert=(ca_cert)
484
- if !ca_cert.nil? && ca_cert.to_s.length < 1
485
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
486
- end
487
-
488
- @ca_cert = ca_cert
489
- end
490
-
491
- # Custom attribute writer method with validation
492
- # @param [Object] proxy_url Value to be assigned
493
- def proxy_url=(proxy_url)
494
- if !proxy_url.nil? && proxy_url.to_s.length < 1
495
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
492
+ # @param [Object] client_cert Value to be assigned
493
+ def client_cert=(client_cert)
494
+ if !client_cert.nil? && client_cert.to_s.length < 1
495
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
496
496
  end
497
497
 
498
- @proxy_url = proxy_url
498
+ @client_cert = client_cert
499
499
  end
500
500
 
501
501
  # Custom attribute writer method with validation
502
- # @param [Object] password Value to be assigned
503
- def password=(password)
504
- if !password.nil? && password.to_s.length < 1
505
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
502
+ # @param [Object] url Value to be assigned
503
+ def url=(url)
504
+ if !url.nil? && url.to_s.length < 1
505
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
506
506
  end
507
507
 
508
- @password = password
508
+ @url = url
509
509
  end
510
510
 
511
511
  # Custom attribute writer method with validation
@@ -524,25 +524,25 @@ module PulpAnsibleClient
524
524
  return true if self.equal?(o)
525
525
  self.class == o.class &&
526
526
  sock_read_timeout == o.sock_read_timeout &&
527
+ pulp_labels == o.pulp_labels &&
527
528
  max_retries == o.max_retries &&
528
- download_concurrency == o.download_concurrency &&
529
- connect_timeout == o.connect_timeout &&
530
529
  proxy_password == o.proxy_password &&
531
- username == o.username &&
532
- client_cert == o.client_cert &&
533
- client_key == o.client_key &&
534
- name == o.name &&
535
- total_timeout == o.total_timeout &&
530
+ rate_limit == o.rate_limit &&
536
531
  headers == o.headers &&
532
+ client_key == o.client_key &&
533
+ password == o.password &&
534
+ username == o.username &&
537
535
  tls_validation == o.tls_validation &&
536
+ total_timeout == o.total_timeout &&
537
+ proxy_url == o.proxy_url &&
538
+ connect_timeout == o.connect_timeout &&
539
+ name == o.name &&
540
+ download_concurrency == o.download_concurrency &&
541
+ ca_cert == o.ca_cert &&
538
542
  proxy_username == o.proxy_username &&
539
- pulp_labels == o.pulp_labels &&
540
- rate_limit == o.rate_limit &&
541
- url == o.url &&
542
543
  sock_connect_timeout == o.sock_connect_timeout &&
543
- ca_cert == o.ca_cert &&
544
- proxy_url == o.proxy_url &&
545
- password == o.password &&
544
+ client_cert == o.client_cert &&
545
+ url == o.url &&
546
546
  metadata_only == o.metadata_only &&
547
547
  git_ref == o.git_ref
548
548
  end
@@ -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
- [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
559
+ [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
560
560
  end
561
561
 
562
562
  # Builds the object from hash