pulp_ansible_client 0.13.2 → 0.13.4

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