pulp_ansible_client 0.21.18 → 0.21.19

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