pulp_ansible_client 0.25.3 → 0.25.4

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