pulp_ansible_client 0.24.1 → 0.24.3

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