pulp_ansible_client 0.28.2 → 0.28.3

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