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