pulp_ansible_client 0.15.1 → 0.15.2

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