pulp_ansible_client 0.24.7 → 0.24.9

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