pulp_ansible_client 0.24.5 → 0.24.6

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