pulp_ansible_client 0.13.4 → 0.13.6

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