pulp_ansible_client 0.15.4 → 0.15.5

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