pulp_ansible_client 0.24.4 → 0.24.5

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