pulp_ansible_client 0.17.4 → 0.17.5

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