pulp_ansible_client 0.28.1 → 0.28.2

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