pulp_ansible_client 0.15.4 → 0.15.5

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