pulp_ansible_client 0.25.1 → 0.26.0

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