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