pulp_ansible_client 0.24.1 → 0.24.2

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