pulp_ansible_client 0.25.5 → 0.25.7

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