pulp_ansible_client 0.30.2 → 0.30.3

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.
@@ -19,61 +19,61 @@ module PulpAnsibleClient
19
19
  # A unique name for this remote.
20
20
  attr_accessor :name
21
21
 
22
- # A PEM encoded client certificate used for authentication.
23
- attr_accessor :client_cert
24
-
25
- attr_accessor :pulp_labels
26
-
27
- # A PEM encoded private key used for authentication.
28
- attr_accessor :client_key
29
-
30
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
- attr_accessor :max_retries
32
-
33
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
- attr_accessor :total_timeout
35
-
36
22
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
37
23
  attr_accessor :password
38
24
 
39
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
- attr_accessor :connect_timeout
41
-
42
25
  # Limits requests per second for each concurrent downloader
43
26
  attr_accessor :rate_limit
44
27
 
45
- # 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.
46
- attr_accessor :sock_connect_timeout
28
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
29
+ attr_accessor :ca_cert
47
30
 
48
31
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
49
32
  attr_accessor :proxy_password
50
33
 
34
+ # Headers for aiohttp.Clientsession
35
+ attr_accessor :headers
36
+
51
37
  # The username to be used for authentication when syncing.
52
38
  attr_accessor :username
53
39
 
54
- # 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.
55
- attr_accessor :sock_read_timeout
40
+ # If True, TLS peer validation must be performed.
41
+ attr_accessor :tls_validation
42
+
43
+ # The proxy URL. Format: scheme://host:port
44
+ attr_accessor :proxy_url
56
45
 
57
46
  # The URL of an external content source.
58
47
  attr_accessor :url
59
48
 
60
- # Headers for aiohttp.Clientsession
61
- attr_accessor :headers
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
62
51
 
63
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
64
- attr_accessor :ca_cert
52
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
+ attr_accessor :connect_timeout
54
+
55
+ # Total number of simultaneous connections. If not set then the default value will be used.
56
+ attr_accessor :download_concurrency
57
+
58
+ # A PEM encoded private key used for authentication.
59
+ attr_accessor :client_key
60
+
61
+ attr_accessor :pulp_labels
65
62
 
66
63
  # The username to authenticte to the proxy.
67
64
  attr_accessor :proxy_username
68
65
 
69
- # Total number of simultaneous connections. If not set then the default value will be used.
70
- attr_accessor :download_concurrency
66
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
67
+ attr_accessor :total_timeout
71
68
 
72
- # The proxy URL. Format: scheme://host:port
73
- attr_accessor :proxy_url
69
+ # 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.
70
+ attr_accessor :sock_connect_timeout
74
71
 
75
- # If True, TLS peer validation must be performed.
76
- attr_accessor :tls_validation
72
+ # 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.
73
+ attr_accessor :sock_read_timeout
74
+
75
+ # A PEM encoded client certificate used for authentication.
76
+ attr_accessor :client_cert
77
77
 
78
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
79
79
  attr_accessor :metadata_only
@@ -85,25 +85,25 @@ module PulpAnsibleClient
85
85
  def self.attribute_map
86
86
  {
87
87
  :'name' => :'name',
88
- :'client_cert' => :'client_cert',
89
- :'pulp_labels' => :'pulp_labels',
90
- :'client_key' => :'client_key',
91
- :'max_retries' => :'max_retries',
92
- :'total_timeout' => :'total_timeout',
93
88
  :'password' => :'password',
94
- :'connect_timeout' => :'connect_timeout',
95
89
  :'rate_limit' => :'rate_limit',
96
- :'sock_connect_timeout' => :'sock_connect_timeout',
90
+ :'ca_cert' => :'ca_cert',
97
91
  :'proxy_password' => :'proxy_password',
92
+ :'headers' => :'headers',
98
93
  :'username' => :'username',
99
- :'sock_read_timeout' => :'sock_read_timeout',
94
+ :'tls_validation' => :'tls_validation',
95
+ :'proxy_url' => :'proxy_url',
100
96
  :'url' => :'url',
101
- :'headers' => :'headers',
102
- :'ca_cert' => :'ca_cert',
103
- :'proxy_username' => :'proxy_username',
97
+ :'max_retries' => :'max_retries',
98
+ :'connect_timeout' => :'connect_timeout',
104
99
  :'download_concurrency' => :'download_concurrency',
105
- :'proxy_url' => :'proxy_url',
106
- :'tls_validation' => :'tls_validation',
100
+ :'client_key' => :'client_key',
101
+ :'pulp_labels' => :'pulp_labels',
102
+ :'proxy_username' => :'proxy_username',
103
+ :'total_timeout' => :'total_timeout',
104
+ :'sock_connect_timeout' => :'sock_connect_timeout',
105
+ :'sock_read_timeout' => :'sock_read_timeout',
106
+ :'client_cert' => :'client_cert',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
109
109
  }
@@ -118,25 +118,25 @@ module PulpAnsibleClient
118
118
  def self.openapi_types
119
119
  {
120
120
  :'name' => :'String',
121
- :'client_cert' => :'String',
122
- :'pulp_labels' => :'Hash<String, String>',
123
- :'client_key' => :'String',
124
- :'max_retries' => :'Integer',
125
- :'total_timeout' => :'Float',
126
121
  :'password' => :'String',
127
- :'connect_timeout' => :'Float',
128
122
  :'rate_limit' => :'Integer',
129
- :'sock_connect_timeout' => :'Float',
123
+ :'ca_cert' => :'String',
130
124
  :'proxy_password' => :'String',
125
+ :'headers' => :'Array<Object>',
131
126
  :'username' => :'String',
132
- :'sock_read_timeout' => :'Float',
127
+ :'tls_validation' => :'Boolean',
128
+ :'proxy_url' => :'String',
133
129
  :'url' => :'String',
134
- :'headers' => :'Array<Object>',
135
- :'ca_cert' => :'String',
136
- :'proxy_username' => :'String',
130
+ :'max_retries' => :'Integer',
131
+ :'connect_timeout' => :'Float',
137
132
  :'download_concurrency' => :'Integer',
138
- :'proxy_url' => :'String',
139
- :'tls_validation' => :'Boolean',
133
+ :'client_key' => :'String',
134
+ :'pulp_labels' => :'Hash<String, String>',
135
+ :'proxy_username' => :'String',
136
+ :'total_timeout' => :'Float',
137
+ :'sock_connect_timeout' => :'Float',
138
+ :'sock_read_timeout' => :'Float',
139
+ :'client_cert' => :'String',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
142
142
  }
@@ -145,21 +145,21 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
- :'client_cert',
149
- :'client_key',
150
- :'max_retries',
151
- :'total_timeout',
152
148
  :'password',
153
- :'connect_timeout',
154
149
  :'rate_limit',
155
- :'sock_connect_timeout',
150
+ :'ca_cert',
156
151
  :'proxy_password',
157
152
  :'username',
158
- :'sock_read_timeout',
159
- :'ca_cert',
160
- :'proxy_username',
161
- :'download_concurrency',
162
153
  :'proxy_url',
154
+ :'max_retries',
155
+ :'connect_timeout',
156
+ :'download_concurrency',
157
+ :'client_key',
158
+ :'proxy_username',
159
+ :'total_timeout',
160
+ :'sock_connect_timeout',
161
+ :'sock_read_timeout',
162
+ :'client_cert',
163
163
  ])
164
164
  end
165
165
 
@@ -184,54 +184,38 @@ module PulpAnsibleClient
184
184
  self.name = nil
185
185
  end
186
186
 
187
- if attributes.key?(:'client_cert')
188
- self.client_cert = attributes[:'client_cert']
189
- end
190
-
191
- if attributes.key?(:'pulp_labels')
192
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
193
- self.pulp_labels = value
194
- end
195
- end
196
-
197
- if attributes.key?(:'client_key')
198
- self.client_key = attributes[:'client_key']
199
- end
200
-
201
- if attributes.key?(:'max_retries')
202
- self.max_retries = attributes[:'max_retries']
203
- end
204
-
205
- if attributes.key?(:'total_timeout')
206
- self.total_timeout = attributes[:'total_timeout']
207
- end
208
-
209
187
  if attributes.key?(:'password')
210
188
  self.password = attributes[:'password']
211
189
  end
212
190
 
213
- if attributes.key?(:'connect_timeout')
214
- self.connect_timeout = attributes[:'connect_timeout']
215
- end
216
-
217
191
  if attributes.key?(:'rate_limit')
218
192
  self.rate_limit = attributes[:'rate_limit']
219
193
  end
220
194
 
221
- if attributes.key?(:'sock_connect_timeout')
222
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
195
+ if attributes.key?(:'ca_cert')
196
+ self.ca_cert = attributes[:'ca_cert']
223
197
  end
224
198
 
225
199
  if attributes.key?(:'proxy_password')
226
200
  self.proxy_password = attributes[:'proxy_password']
227
201
  end
228
202
 
203
+ if attributes.key?(:'headers')
204
+ if (value = attributes[:'headers']).is_a?(Array)
205
+ self.headers = value
206
+ end
207
+ end
208
+
229
209
  if attributes.key?(:'username')
230
210
  self.username = attributes[:'username']
231
211
  end
232
212
 
233
- if attributes.key?(:'sock_read_timeout')
234
- self.sock_read_timeout = attributes[:'sock_read_timeout']
213
+ if attributes.key?(:'tls_validation')
214
+ self.tls_validation = attributes[:'tls_validation']
215
+ end
216
+
217
+ if attributes.key?(:'proxy_url')
218
+ self.proxy_url = attributes[:'proxy_url']
235
219
  end
236
220
 
237
221
  if attributes.key?(:'url')
@@ -240,30 +224,46 @@ module PulpAnsibleClient
240
224
  self.url = nil
241
225
  end
242
226
 
243
- if attributes.key?(:'headers')
244
- if (value = attributes[:'headers']).is_a?(Array)
245
- self.headers = value
246
- end
227
+ if attributes.key?(:'max_retries')
228
+ self.max_retries = attributes[:'max_retries']
247
229
  end
248
230
 
249
- if attributes.key?(:'ca_cert')
250
- self.ca_cert = attributes[:'ca_cert']
231
+ if attributes.key?(:'connect_timeout')
232
+ self.connect_timeout = attributes[:'connect_timeout']
233
+ end
234
+
235
+ if attributes.key?(:'download_concurrency')
236
+ self.download_concurrency = attributes[:'download_concurrency']
237
+ end
238
+
239
+ if attributes.key?(:'client_key')
240
+ self.client_key = attributes[:'client_key']
241
+ end
242
+
243
+ if attributes.key?(:'pulp_labels')
244
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
245
+ self.pulp_labels = value
246
+ end
251
247
  end
252
248
 
253
249
  if attributes.key?(:'proxy_username')
254
250
  self.proxy_username = attributes[:'proxy_username']
255
251
  end
256
252
 
257
- if attributes.key?(:'download_concurrency')
258
- self.download_concurrency = attributes[:'download_concurrency']
253
+ if attributes.key?(:'total_timeout')
254
+ self.total_timeout = attributes[:'total_timeout']
259
255
  end
260
256
 
261
- if attributes.key?(:'proxy_url')
262
- self.proxy_url = attributes[:'proxy_url']
257
+ if attributes.key?(:'sock_connect_timeout')
258
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
263
259
  end
264
260
 
265
- if attributes.key?(:'tls_validation')
266
- self.tls_validation = attributes[:'tls_validation']
261
+ if attributes.key?(:'sock_read_timeout')
262
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
263
+ end
264
+
265
+ if attributes.key?(:'client_cert')
266
+ self.client_cert = attributes[:'client_cert']
267
267
  end
268
268
 
269
269
  if attributes.key?(:'metadata_only')
@@ -288,28 +288,12 @@ module PulpAnsibleClient
288
288
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
289
289
  end
290
290
 
291
- if !@client_cert.nil? && @client_cert.to_s.length < 1
292
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
293
- end
294
-
295
- if !@client_key.nil? && @client_key.to_s.length < 1
296
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
297
- end
298
-
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.')
301
- end
302
-
303
291
  if !@password.nil? && @password.to_s.length < 1
304
292
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
305
293
  end
306
294
 
307
- if !@connect_timeout.nil? && @connect_timeout < 0.0
308
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
309
- end
310
-
311
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
312
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
295
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
296
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
313
297
  end
314
298
 
315
299
  if !@proxy_password.nil? && @proxy_password.to_s.length < 1
@@ -320,8 +304,8 @@ module PulpAnsibleClient
320
304
  invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
321
305
  end
322
306
 
323
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
324
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
307
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
308
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
325
309
  end
326
310
 
327
311
  if @url.nil?
@@ -332,20 +316,36 @@ module PulpAnsibleClient
332
316
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
333
317
  end
334
318
 
335
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
336
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
321
+ end
322
+
323
+ if !@download_concurrency.nil? && @download_concurrency < 1
324
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
325
+ end
326
+
327
+ if !@client_key.nil? && @client_key.to_s.length < 1
328
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
337
329
  end
338
330
 
339
331
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
340
332
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
341
333
  end
342
334
 
343
- if !@download_concurrency.nil? && @download_concurrency < 1
344
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
335
+ if !@total_timeout.nil? && @total_timeout < 0.0
336
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
345
337
  end
346
338
 
347
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
348
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
339
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
340
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
341
+ end
342
+
343
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
344
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
345
+ end
346
+
347
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
348
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
349
349
  end
350
350
 
351
351
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -361,21 +361,21 @@ module PulpAnsibleClient
361
361
  warn '[DEPRECATED] the `valid?` method is obsolete'
362
362
  return false if @name.nil?
363
363
  return false if @name.to_s.length < 1
364
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
365
- return false if !@client_key.nil? && @client_key.to_s.length < 1
366
- return false if !@total_timeout.nil? && @total_timeout < 0.0
367
364
  return false if !@password.nil? && @password.to_s.length < 1
368
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
369
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
365
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
370
366
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
371
367
  return false if !@username.nil? && @username.to_s.length < 1
372
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
368
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
373
369
  return false if @url.nil?
374
370
  return false if @url.to_s.length < 1
375
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
376
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
371
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
377
372
  return false if !@download_concurrency.nil? && @download_concurrency < 1
378
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
373
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
374
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
375
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
376
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
377
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
378
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
379
379
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
380
380
  true
381
381
  end
@@ -394,36 +394,6 @@ module PulpAnsibleClient
394
394
  @name = name
395
395
  end
396
396
 
397
- # Custom attribute writer method with validation
398
- # @param [Object] client_cert Value to be assigned
399
- def client_cert=(client_cert)
400
- if !client_cert.nil? && client_cert.to_s.length < 1
401
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
402
- end
403
-
404
- @client_cert = client_cert
405
- end
406
-
407
- # Custom attribute writer method with validation
408
- # @param [Object] client_key Value to be assigned
409
- def client_key=(client_key)
410
- if !client_key.nil? && client_key.to_s.length < 1
411
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
412
- end
413
-
414
- @client_key = client_key
415
- end
416
-
417
- # Custom attribute writer method with validation
418
- # @param [Object] total_timeout Value to be assigned
419
- def total_timeout=(total_timeout)
420
- if !total_timeout.nil? && total_timeout < 0.0
421
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
422
- end
423
-
424
- @total_timeout = total_timeout
425
- end
426
-
427
397
  # Custom attribute writer method with validation
428
398
  # @param [Object] password Value to be assigned
429
399
  def password=(password)
@@ -435,23 +405,13 @@ module PulpAnsibleClient
435
405
  end
436
406
 
437
407
  # Custom attribute writer method with validation
438
- # @param [Object] connect_timeout Value to be assigned
439
- def connect_timeout=(connect_timeout)
440
- if !connect_timeout.nil? && connect_timeout < 0.0
441
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
442
- end
443
-
444
- @connect_timeout = connect_timeout
445
- end
446
-
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.'
408
+ # @param [Object] ca_cert Value to be assigned
409
+ def ca_cert=(ca_cert)
410
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
411
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
452
412
  end
453
413
 
454
- @sock_connect_timeout = sock_connect_timeout
414
+ @ca_cert = ca_cert
455
415
  end
456
416
 
457
417
  # Custom attribute writer method with validation
@@ -475,13 +435,13 @@ module PulpAnsibleClient
475
435
  end
476
436
 
477
437
  # Custom attribute writer method with validation
478
- # @param [Object] sock_read_timeout Value to be assigned
479
- def sock_read_timeout=(sock_read_timeout)
480
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
481
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
438
+ # @param [Object] proxy_url Value to be assigned
439
+ def proxy_url=(proxy_url)
440
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
441
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
482
442
  end
483
443
 
484
- @sock_read_timeout = sock_read_timeout
444
+ @proxy_url = proxy_url
485
445
  end
486
446
 
487
447
  # Custom attribute writer method with validation
@@ -499,13 +459,33 @@ module PulpAnsibleClient
499
459
  end
500
460
 
501
461
  # Custom attribute writer method with validation
502
- # @param [Object] ca_cert Value to be assigned
503
- def ca_cert=(ca_cert)
504
- if !ca_cert.nil? && ca_cert.to_s.length < 1
505
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
462
+ # @param [Object] connect_timeout Value to be assigned
463
+ def connect_timeout=(connect_timeout)
464
+ if !connect_timeout.nil? && connect_timeout < 0.0
465
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
506
466
  end
507
467
 
508
- @ca_cert = ca_cert
468
+ @connect_timeout = connect_timeout
469
+ end
470
+
471
+ # Custom attribute writer method with validation
472
+ # @param [Object] download_concurrency Value to be assigned
473
+ def download_concurrency=(download_concurrency)
474
+ if !download_concurrency.nil? && download_concurrency < 1
475
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
476
+ end
477
+
478
+ @download_concurrency = download_concurrency
479
+ end
480
+
481
+ # Custom attribute writer method with validation
482
+ # @param [Object] client_key Value to be assigned
483
+ def client_key=(client_key)
484
+ if !client_key.nil? && client_key.to_s.length < 1
485
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
486
+ end
487
+
488
+ @client_key = client_key
509
489
  end
510
490
 
511
491
  # Custom attribute writer method with validation
@@ -519,23 +499,43 @@ module PulpAnsibleClient
519
499
  end
520
500
 
521
501
  # Custom attribute writer method with validation
522
- # @param [Object] download_concurrency Value to be assigned
523
- def download_concurrency=(download_concurrency)
524
- if !download_concurrency.nil? && download_concurrency < 1
525
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
502
+ # @param [Object] total_timeout Value to be assigned
503
+ def total_timeout=(total_timeout)
504
+ if !total_timeout.nil? && total_timeout < 0.0
505
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
526
506
  end
527
507
 
528
- @download_concurrency = download_concurrency
508
+ @total_timeout = total_timeout
529
509
  end
530
510
 
531
511
  # Custom attribute writer method with validation
532
- # @param [Object] proxy_url Value to be assigned
533
- def proxy_url=(proxy_url)
534
- if !proxy_url.nil? && proxy_url.to_s.length < 1
535
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
512
+ # @param [Object] sock_connect_timeout Value to be assigned
513
+ def sock_connect_timeout=(sock_connect_timeout)
514
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
515
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
536
516
  end
537
517
 
538
- @proxy_url = proxy_url
518
+ @sock_connect_timeout = sock_connect_timeout
519
+ end
520
+
521
+ # Custom attribute writer method with validation
522
+ # @param [Object] sock_read_timeout Value to be assigned
523
+ def sock_read_timeout=(sock_read_timeout)
524
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
525
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
526
+ end
527
+
528
+ @sock_read_timeout = sock_read_timeout
529
+ end
530
+
531
+ # Custom attribute writer method with validation
532
+ # @param [Object] client_cert Value to be assigned
533
+ def client_cert=(client_cert)
534
+ if !client_cert.nil? && client_cert.to_s.length < 1
535
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
536
+ end
537
+
538
+ @client_cert = client_cert
539
539
  end
540
540
 
541
541
  # Custom attribute writer method with validation
@@ -558,25 +558,25 @@ module PulpAnsibleClient
558
558
  return true if self.equal?(o)
559
559
  self.class == o.class &&
560
560
  name == o.name &&
561
- client_cert == o.client_cert &&
562
- pulp_labels == o.pulp_labels &&
563
- client_key == o.client_key &&
564
- max_retries == o.max_retries &&
565
- total_timeout == o.total_timeout &&
566
561
  password == o.password &&
567
- connect_timeout == o.connect_timeout &&
568
562
  rate_limit == o.rate_limit &&
569
- sock_connect_timeout == o.sock_connect_timeout &&
563
+ ca_cert == o.ca_cert &&
570
564
  proxy_password == o.proxy_password &&
565
+ headers == o.headers &&
571
566
  username == o.username &&
572
- sock_read_timeout == o.sock_read_timeout &&
567
+ tls_validation == o.tls_validation &&
568
+ proxy_url == o.proxy_url &&
573
569
  url == o.url &&
574
- headers == o.headers &&
575
- ca_cert == o.ca_cert &&
576
- proxy_username == o.proxy_username &&
570
+ max_retries == o.max_retries &&
571
+ connect_timeout == o.connect_timeout &&
577
572
  download_concurrency == o.download_concurrency &&
578
- proxy_url == o.proxy_url &&
579
- tls_validation == o.tls_validation &&
573
+ client_key == o.client_key &&
574
+ pulp_labels == o.pulp_labels &&
575
+ proxy_username == o.proxy_username &&
576
+ total_timeout == o.total_timeout &&
577
+ sock_connect_timeout == o.sock_connect_timeout &&
578
+ sock_read_timeout == o.sock_read_timeout &&
579
+ client_cert == o.client_cert &&
580
580
  metadata_only == o.metadata_only &&
581
581
  git_ref == o.git_ref
582
582
  end
@@ -590,7 +590,7 @@ module PulpAnsibleClient
590
590
  # Calculates hash code according to all attributes.
591
591
  # @return [Integer] Hash code
592
592
  def hash
593
- [name, client_cert, pulp_labels, client_key, max_retries, total_timeout, password, connect_timeout, rate_limit, sock_connect_timeout, proxy_password, username, sock_read_timeout, url, headers, ca_cert, proxy_username, download_concurrency, proxy_url, tls_validation, metadata_only, git_ref].hash
593
+ [name, password, rate_limit, ca_cert, proxy_password, headers, username, tls_validation, proxy_url, url, max_retries, connect_timeout, download_concurrency, client_key, pulp_labels, proxy_username, total_timeout, sock_connect_timeout, sock_read_timeout, client_cert, metadata_only, git_ref].hash
594
594
  end
595
595
 
596
596
  # Builds the object from hash