pulp_ansible_client 0.29.7 → 0.29.8

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +5 -3
  4. data/docs/AnsibleAnsibleDistributionResponse.md +13 -3
  5. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +30 -30
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +8 -8
  10. data/docs/ContentCollectionVersionsApi.md +8 -8
  11. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  12. data/docs/PatchedansibleGitRemote.md +26 -26
  13. data/docs/RemotesGitApi.md +2 -2
  14. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  16. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +67 -15
  17. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +31 -31
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  20. data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +33 -33
  22. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +210 -210
  24. data/lib/pulp_ansible_client/version.rb +1 -1
  25. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  26. data/spec/models/ansible_ansible_distribution_response_spec.rb +35 -5
  27. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  28. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  29. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  30. data/spec/models/ansible_git_remote_spec.rb +19 -19
  31. data/spec/models/ansible_role_response_spec.rb +7 -7
  32. data/spec/models/ansible_role_spec.rb +3 -3
  33. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  34. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  35. metadata +2 -2
@@ -16,64 +16,64 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemote
19
- # The username to authenticte to the proxy.
20
- attr_accessor :proxy_username
21
-
22
- # Limits requests per second for each concurrent downloader
23
- attr_accessor :rate_limit
24
-
25
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
26
- attr_accessor :max_retries
19
+ # The URL of an external content source.
20
+ attr_accessor :url
27
21
 
28
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
29
- attr_accessor :total_timeout
22
+ # Total number of simultaneous connections. If not set then the default value will be used.
23
+ attr_accessor :download_concurrency
30
24
 
31
- # A unique name for this remote.
32
- attr_accessor :name
25
+ # 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.
26
+ attr_accessor :sock_connect_timeout
33
27
 
34
28
  # A PEM encoded private key used for authentication.
35
29
  attr_accessor :client_key
36
30
 
31
+ # If True, TLS peer validation must be performed.
32
+ attr_accessor :tls_validation
33
+
34
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
35
+ attr_accessor :total_timeout
36
+
37
37
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
38
38
  attr_accessor :ca_cert
39
39
 
40
- # Total number of simultaneous connections. If not set then the default value will be used.
41
- attr_accessor :download_concurrency
42
-
43
40
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
44
41
  attr_accessor :proxy_password
45
42
 
46
- # The URL of an external content source.
47
- attr_accessor :url
48
-
49
43
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
44
  attr_accessor :password
51
45
 
52
- # The username to be used for authentication when syncing.
53
- attr_accessor :username
46
+ # Limits requests per second for each concurrent downloader
47
+ attr_accessor :rate_limit
54
48
 
55
- # A PEM encoded client certificate used for authentication.
56
- attr_accessor :client_cert
49
+ # The username to authenticte to the proxy.
50
+ attr_accessor :proxy_username
57
51
 
58
- # If True, TLS peer validation must be performed.
59
- attr_accessor :tls_validation
52
+ # 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.
53
+ attr_accessor :sock_read_timeout
60
54
 
61
55
  # Headers for aiohttp.Clientsession
62
56
  attr_accessor :headers
63
57
 
64
- # The proxy URL. Format: scheme://host:port
65
- attr_accessor :proxy_url
58
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
59
+ attr_accessor :max_retries
66
60
 
67
- # 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.
68
- attr_accessor :sock_connect_timeout
61
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
+ attr_accessor :connect_timeout
69
63
 
70
- # 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.
71
- attr_accessor :sock_read_timeout
64
+ # The username to be used for authentication when syncing.
65
+ attr_accessor :username
72
66
 
73
67
  attr_accessor :pulp_labels
74
68
 
75
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
76
- attr_accessor :connect_timeout
69
+ # A PEM encoded client certificate used for authentication.
70
+ attr_accessor :client_cert
71
+
72
+ # The proxy URL. Format: scheme://host:port
73
+ attr_accessor :proxy_url
74
+
75
+ # A unique name for this remote.
76
+ attr_accessor :name
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
- :'proxy_username' => :'proxy_username',
88
- :'rate_limit' => :'rate_limit',
89
- :'max_retries' => :'max_retries',
90
- :'total_timeout' => :'total_timeout',
91
- :'name' => :'name',
87
+ :'url' => :'url',
88
+ :'download_concurrency' => :'download_concurrency',
89
+ :'sock_connect_timeout' => :'sock_connect_timeout',
92
90
  :'client_key' => :'client_key',
91
+ :'tls_validation' => :'tls_validation',
92
+ :'total_timeout' => :'total_timeout',
93
93
  :'ca_cert' => :'ca_cert',
94
- :'download_concurrency' => :'download_concurrency',
95
94
  :'proxy_password' => :'proxy_password',
96
- :'url' => :'url',
97
95
  :'password' => :'password',
96
+ :'rate_limit' => :'rate_limit',
97
+ :'proxy_username' => :'proxy_username',
98
+ :'sock_read_timeout' => :'sock_read_timeout',
99
+ :'headers' => :'headers',
100
+ :'max_retries' => :'max_retries',
101
+ :'connect_timeout' => :'connect_timeout',
98
102
  :'username' => :'username',
103
+ :'pulp_labels' => :'pulp_labels',
99
104
  :'client_cert' => :'client_cert',
100
- :'tls_validation' => :'tls_validation',
101
- :'headers' => :'headers',
102
105
  :'proxy_url' => :'proxy_url',
103
- :'sock_connect_timeout' => :'sock_connect_timeout',
104
- :'sock_read_timeout' => :'sock_read_timeout',
105
- :'pulp_labels' => :'pulp_labels',
106
- :'connect_timeout' => :'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_username' => :'String',
121
- :'rate_limit' => :'Integer',
122
- :'max_retries' => :'Integer',
123
- :'total_timeout' => :'Float',
124
- :'name' => :'String',
120
+ :'url' => :'String',
121
+ :'download_concurrency' => :'Integer',
122
+ :'sock_connect_timeout' => :'Float',
125
123
  :'client_key' => :'String',
124
+ :'tls_validation' => :'Boolean',
125
+ :'total_timeout' => :'Float',
126
126
  :'ca_cert' => :'String',
127
- :'download_concurrency' => :'Integer',
128
127
  :'proxy_password' => :'String',
129
- :'url' => :'String',
130
128
  :'password' => :'String',
129
+ :'rate_limit' => :'Integer',
130
+ :'proxy_username' => :'String',
131
+ :'sock_read_timeout' => :'Float',
132
+ :'headers' => :'Array<Object>',
133
+ :'max_retries' => :'Integer',
134
+ :'connect_timeout' => :'Float',
131
135
  :'username' => :'String',
136
+ :'pulp_labels' => :'Hash<String, String>',
132
137
  :'client_cert' => :'String',
133
- :'tls_validation' => :'Boolean',
134
- :'headers' => :'Array<Object>',
135
138
  :'proxy_url' => :'String',
136
- :'sock_connect_timeout' => :'Float',
137
- :'sock_read_timeout' => :'Float',
138
- :'pulp_labels' => :'Hash<String, String>',
139
- :'connect_timeout' => :'Float',
139
+ :'name' => :'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
- :'proxy_username',
149
- :'rate_limit',
150
- :'max_retries',
151
- :'total_timeout',
148
+ :'download_concurrency',
149
+ :'sock_connect_timeout',
152
150
  :'client_key',
151
+ :'total_timeout',
153
152
  :'ca_cert',
154
- :'download_concurrency',
155
153
  :'proxy_password',
156
154
  :'password',
155
+ :'rate_limit',
156
+ :'proxy_username',
157
+ :'sock_read_timeout',
158
+ :'max_retries',
159
+ :'connect_timeout',
157
160
  :'username',
158
161
  :'client_cert',
159
162
  :'proxy_url',
160
- :'sock_connect_timeout',
161
- :'sock_read_timeout',
162
- :'connect_timeout',
163
163
  ])
164
164
  end
165
165
 
@@ -178,64 +178,54 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'proxy_username')
182
- self.proxy_username = attributes[:'proxy_username']
181
+ if attributes.key?(:'url')
182
+ self.url = attributes[:'url']
183
+ else
184
+ self.url = nil
183
185
  end
184
186
 
185
- if attributes.key?(:'rate_limit')
186
- self.rate_limit = attributes[:'rate_limit']
187
+ if attributes.key?(:'download_concurrency')
188
+ self.download_concurrency = attributes[:'download_concurrency']
187
189
  end
188
190
 
189
- if attributes.key?(:'max_retries')
190
- self.max_retries = attributes[:'max_retries']
191
+ if attributes.key?(:'sock_connect_timeout')
192
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
191
193
  end
192
194
 
193
- if attributes.key?(:'total_timeout')
194
- self.total_timeout = attributes[:'total_timeout']
195
+ if attributes.key?(:'client_key')
196
+ self.client_key = attributes[:'client_key']
195
197
  end
196
198
 
197
- if attributes.key?(:'name')
198
- self.name = attributes[:'name']
199
- else
200
- self.name = nil
199
+ if attributes.key?(:'tls_validation')
200
+ self.tls_validation = attributes[:'tls_validation']
201
201
  end
202
202
 
203
- if attributes.key?(:'client_key')
204
- self.client_key = attributes[:'client_key']
203
+ if attributes.key?(:'total_timeout')
204
+ self.total_timeout = attributes[:'total_timeout']
205
205
  end
206
206
 
207
207
  if attributes.key?(:'ca_cert')
208
208
  self.ca_cert = attributes[:'ca_cert']
209
209
  end
210
210
 
211
- if attributes.key?(:'download_concurrency')
212
- self.download_concurrency = attributes[:'download_concurrency']
213
- end
214
-
215
211
  if attributes.key?(:'proxy_password')
216
212
  self.proxy_password = attributes[:'proxy_password']
217
213
  end
218
214
 
219
- if attributes.key?(:'url')
220
- self.url = attributes[:'url']
221
- else
222
- self.url = nil
223
- end
224
-
225
215
  if attributes.key?(:'password')
226
216
  self.password = attributes[:'password']
227
217
  end
228
218
 
229
- if attributes.key?(:'username')
230
- self.username = attributes[:'username']
219
+ if attributes.key?(:'rate_limit')
220
+ self.rate_limit = attributes[:'rate_limit']
231
221
  end
232
222
 
233
- if attributes.key?(:'client_cert')
234
- self.client_cert = attributes[:'client_cert']
223
+ if attributes.key?(:'proxy_username')
224
+ self.proxy_username = attributes[:'proxy_username']
235
225
  end
236
226
 
237
- if attributes.key?(:'tls_validation')
238
- self.tls_validation = attributes[:'tls_validation']
227
+ if attributes.key?(:'sock_read_timeout')
228
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
239
229
  end
240
230
 
241
231
  if attributes.key?(:'headers')
@@ -244,16 +234,16 @@ module PulpAnsibleClient
244
234
  end
245
235
  end
246
236
 
247
- if attributes.key?(:'proxy_url')
248
- self.proxy_url = attributes[:'proxy_url']
237
+ if attributes.key?(:'max_retries')
238
+ self.max_retries = attributes[:'max_retries']
249
239
  end
250
240
 
251
- if attributes.key?(:'sock_connect_timeout')
252
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
241
+ if attributes.key?(:'connect_timeout')
242
+ self.connect_timeout = attributes[:'connect_timeout']
253
243
  end
254
244
 
255
- if attributes.key?(:'sock_read_timeout')
256
- self.sock_read_timeout = attributes[:'sock_read_timeout']
245
+ if attributes.key?(:'username')
246
+ self.username = attributes[:'username']
257
247
  end
258
248
 
259
249
  if attributes.key?(:'pulp_labels')
@@ -262,8 +252,18 @@ module PulpAnsibleClient
262
252
  end
263
253
  end
264
254
 
265
- if attributes.key?(:'connect_timeout')
266
- self.connect_timeout = attributes[:'connect_timeout']
255
+ if attributes.key?(:'client_cert')
256
+ self.client_cert = attributes[:'client_cert']
257
+ end
258
+
259
+ if attributes.key?(:'proxy_url')
260
+ self.proxy_url = attributes[:'proxy_url']
261
+ end
262
+
263
+ if attributes.key?(:'name')
264
+ self.name = attributes[:'name']
265
+ else
266
+ self.name = nil
267
267
  end
268
268
 
269
269
  if attributes.key?(:'metadata_only')
@@ -280,48 +280,52 @@ 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 !@proxy_username.nil? && @proxy_username.to_s.length < 1
284
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
283
+ if @url.nil?
284
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
285
285
  end
286
286
 
287
- if !@total_timeout.nil? && @total_timeout < 0.0
288
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
287
+ if @url.to_s.length < 1
288
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
289
289
  end
290
290
 
291
- if @name.nil?
292
- invalid_properties.push('invalid value for "name", name cannot be nil.')
291
+ if !@download_concurrency.nil? && @download_concurrency < 1
292
+ invalid_properties.push('invalid value for "download_concurrency", must be greater 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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
297
297
  end
298
298
 
299
299
  if !@client_key.nil? && @client_key.to_s.length < 1
300
300
  invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
301
301
  end
302
302
 
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.')
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.')
305
305
  end
306
306
 
307
- if !@download_concurrency.nil? && @download_concurrency < 1
308
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
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.')
309
309
  end
310
310
 
311
311
  if !@proxy_password.nil? && @proxy_password.to_s.length < 1
312
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 @url.nil?
316
- invalid_properties.push('invalid value for "url", url cannot be nil.')
315
+ if !@password.nil? && @password.to_s.length < 1
316
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
317
317
  end
318
318
 
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.')
319
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
320
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
321
321
  end
322
322
 
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.')
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.')
325
+ end
326
+
327
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
328
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
325
329
  end
326
330
 
327
331
  if !@username.nil? && @username.to_s.length < 1
@@ -336,16 +340,12 @@ module PulpAnsibleClient
336
340
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
337
341
  end
338
342
 
339
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
340
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
341
- end
342
-
343
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
344
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
343
+ if @name.nil?
344
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
345
345
  end
346
346
 
347
- if !@connect_timeout.nil? && @connect_timeout < 0.0
348
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
347
+ if @name.to_s.length < 1
348
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
349
349
  end
350
350
 
351
351
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -359,59 +359,59 @@ module PulpAnsibleClient
359
359
  # @return true if the model is valid
360
360
  def valid?
361
361
  warn '[DEPRECATED] the `valid?` method is obsolete'
362
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
363
- return false if !@total_timeout.nil? && @total_timeout < 0.0
364
- return false if @name.nil?
365
- return false if @name.to_s.length < 1
362
+ return false if @url.nil?
363
+ return false if @url.to_s.length < 1
364
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
365
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
366
  return false if !@client_key.nil? && @client_key.to_s.length < 1
367
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
367
368
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
368
- return false if !@download_concurrency.nil? && @download_concurrency < 1
369
369
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
370
- return false if @url.nil?
371
- return false if @url.to_s.length < 1
372
370
  return false if !@password.nil? && @password.to_s.length < 1
371
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
372
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
373
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
373
374
  return false if !@username.nil? && @username.to_s.length < 1
374
375
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
375
376
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
376
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
377
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
378
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
377
+ return false if @name.nil?
378
+ return false if @name.to_s.length < 1
379
379
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
380
380
  true
381
381
  end
382
382
 
383
383
  # Custom attribute writer method with validation
384
- # @param [Object] proxy_username Value to be assigned
385
- def proxy_username=(proxy_username)
386
- if !proxy_username.nil? && proxy_username.to_s.length < 1
387
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
384
+ # @param [Object] url Value to be assigned
385
+ def url=(url)
386
+ if url.nil?
387
+ fail ArgumentError, 'url cannot be nil'
388
388
  end
389
389
 
390
- @proxy_username = proxy_username
390
+ if url.to_s.length < 1
391
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
392
+ end
393
+
394
+ @url = url
391
395
  end
392
396
 
393
397
  # Custom attribute writer method with validation
394
- # @param [Object] total_timeout Value to be assigned
395
- def total_timeout=(total_timeout)
396
- if !total_timeout.nil? && total_timeout < 0.0
397
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
398
+ # @param [Object] download_concurrency Value to be assigned
399
+ def download_concurrency=(download_concurrency)
400
+ if !download_concurrency.nil? && download_concurrency < 1
401
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
398
402
  end
399
403
 
400
- @total_timeout = total_timeout
404
+ @download_concurrency = download_concurrency
401
405
  end
402
406
 
403
407
  # Custom attribute writer method with validation
404
- # @param [Object] name Value to be assigned
405
- def name=(name)
406
- if name.nil?
407
- fail ArgumentError, 'name cannot be nil'
408
- end
409
-
410
- if name.to_s.length < 1
411
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
408
+ # @param [Object] sock_connect_timeout Value to be assigned
409
+ def sock_connect_timeout=(sock_connect_timeout)
410
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
411
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
412
412
  end
413
413
 
414
- @name = name
414
+ @sock_connect_timeout = sock_connect_timeout
415
415
  end
416
416
 
417
417
  # Custom attribute writer method with validation
@@ -425,23 +425,23 @@ module PulpAnsibleClient
425
425
  end
426
426
 
427
427
  # Custom attribute writer method with validation
428
- # @param [Object] ca_cert Value to be assigned
429
- def ca_cert=(ca_cert)
430
- if !ca_cert.nil? && ca_cert.to_s.length < 1
431
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
428
+ # @param [Object] total_timeout Value to be assigned
429
+ def total_timeout=(total_timeout)
430
+ if !total_timeout.nil? && total_timeout < 0.0
431
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
432
432
  end
433
433
 
434
- @ca_cert = ca_cert
434
+ @total_timeout = total_timeout
435
435
  end
436
436
 
437
437
  # Custom attribute writer method with validation
438
- # @param [Object] download_concurrency Value to be assigned
439
- def download_concurrency=(download_concurrency)
440
- if !download_concurrency.nil? && download_concurrency < 1
441
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
438
+ # @param [Object] ca_cert Value to be assigned
439
+ def ca_cert=(ca_cert)
440
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
441
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
442
442
  end
443
443
 
444
- @download_concurrency = download_concurrency
444
+ @ca_cert = ca_cert
445
445
  end
446
446
 
447
447
  # Custom attribute writer method with validation
@@ -455,27 +455,43 @@ module PulpAnsibleClient
455
455
  end
456
456
 
457
457
  # Custom attribute writer method with validation
458
- # @param [Object] url Value to be assigned
459
- def url=(url)
460
- if url.nil?
461
- fail ArgumentError, 'url cannot be nil'
458
+ # @param [Object] password Value to be assigned
459
+ def password=(password)
460
+ if !password.nil? && password.to_s.length < 1
461
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
462
462
  end
463
463
 
464
- if url.to_s.length < 1
465
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
464
+ @password = password
465
+ end
466
+
467
+ # Custom attribute writer method with validation
468
+ # @param [Object] proxy_username Value to be assigned
469
+ def proxy_username=(proxy_username)
470
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
471
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
466
472
  end
467
473
 
468
- @url = url
474
+ @proxy_username = proxy_username
469
475
  end
470
476
 
471
477
  # Custom attribute writer method with validation
472
- # @param [Object] password Value to be assigned
473
- def password=(password)
474
- if !password.nil? && password.to_s.length < 1
475
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
478
+ # @param [Object] sock_read_timeout Value to be assigned
479
+ def sock_read_timeout=(sock_read_timeout)
480
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
481
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
476
482
  end
477
483
 
478
- @password = password
484
+ @sock_read_timeout = sock_read_timeout
485
+ end
486
+
487
+ # Custom attribute writer method with validation
488
+ # @param [Object] connect_timeout Value to be assigned
489
+ def connect_timeout=(connect_timeout)
490
+ if !connect_timeout.nil? && connect_timeout < 0.0
491
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
492
+ end
493
+
494
+ @connect_timeout = connect_timeout
479
495
  end
480
496
 
481
497
  # Custom attribute writer method with validation
@@ -509,33 +525,17 @@ module PulpAnsibleClient
509
525
  end
510
526
 
511
527
  # Custom attribute writer method with validation
512
- # @param [Object] sock_connect_timeout Value to be assigned
513
- def sock_connect_timeout=(sock_connect_timeout)
514
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
515
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
516
- end
517
-
518
- @sock_connect_timeout = sock_connect_timeout
519
- end
520
-
521
- # Custom attribute writer method with validation
522
- # @param [Object] sock_read_timeout Value to be assigned
523
- def sock_read_timeout=(sock_read_timeout)
524
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
525
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
528
+ # @param [Object] name Value to be assigned
529
+ def name=(name)
530
+ if name.nil?
531
+ fail ArgumentError, 'name cannot be nil'
526
532
  end
527
533
 
528
- @sock_read_timeout = sock_read_timeout
529
- end
530
-
531
- # Custom attribute writer method with validation
532
- # @param [Object] connect_timeout Value to be assigned
533
- def connect_timeout=(connect_timeout)
534
- if !connect_timeout.nil? && connect_timeout < 0.0
535
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
534
+ if name.to_s.length < 1
535
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
536
536
  end
537
537
 
538
- @connect_timeout = connect_timeout
538
+ @name = name
539
539
  end
540
540
 
541
541
  # Custom attribute writer method with validation
@@ -557,26 +557,26 @@ module PulpAnsibleClient
557
557
  def ==(o)
558
558
  return true if self.equal?(o)
559
559
  self.class == o.class &&
560
- proxy_username == o.proxy_username &&
561
- rate_limit == o.rate_limit &&
562
- max_retries == o.max_retries &&
563
- total_timeout == o.total_timeout &&
564
- name == o.name &&
560
+ url == o.url &&
561
+ download_concurrency == o.download_concurrency &&
562
+ sock_connect_timeout == o.sock_connect_timeout &&
565
563
  client_key == o.client_key &&
564
+ tls_validation == o.tls_validation &&
565
+ total_timeout == o.total_timeout &&
566
566
  ca_cert == o.ca_cert &&
567
- download_concurrency == o.download_concurrency &&
568
567
  proxy_password == o.proxy_password &&
569
- url == o.url &&
570
568
  password == o.password &&
569
+ rate_limit == o.rate_limit &&
570
+ proxy_username == o.proxy_username &&
571
+ sock_read_timeout == o.sock_read_timeout &&
572
+ headers == o.headers &&
573
+ max_retries == o.max_retries &&
574
+ connect_timeout == o.connect_timeout &&
571
575
  username == o.username &&
576
+ pulp_labels == o.pulp_labels &&
572
577
  client_cert == o.client_cert &&
573
- tls_validation == o.tls_validation &&
574
- headers == o.headers &&
575
578
  proxy_url == o.proxy_url &&
576
- sock_connect_timeout == o.sock_connect_timeout &&
577
- sock_read_timeout == o.sock_read_timeout &&
578
- pulp_labels == o.pulp_labels &&
579
- connect_timeout == o.connect_timeout &&
579
+ name == o.name &&
580
580
  metadata_only == o.metadata_only &&
581
581
  git_ref == o.git_ref
582
582
  end
@@ -590,7 +590,7 @@ module PulpAnsibleClient
590
590
  # Calculates hash code according to all attributes.
591
591
  # @return [Integer] Hash code
592
592
  def hash
593
- [proxy_username, rate_limit, max_retries, total_timeout, name, client_key, ca_cert, download_concurrency, proxy_password, url, password, username, client_cert, tls_validation, headers, proxy_url, sock_connect_timeout, sock_read_timeout, pulp_labels, connect_timeout, metadata_only, git_ref].hash
593
+ [url, download_concurrency, sock_connect_timeout, client_key, tls_validation, total_timeout, ca_cert, proxy_password, password, rate_limit, proxy_username, sock_read_timeout, headers, max_retries, connect_timeout, username, pulp_labels, client_cert, proxy_url, name, metadata_only, git_ref].hash
594
594
  end
595
595
 
596
596
  # Builds the object from hash