pulp_ansible_client 0.29.9 → 0.30.1

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +3 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/AnsibleRepositorySyncURL.md +1 -1
  9. data/docs/AnsibleRole.md +4 -4
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionSummaryResponse.md +1 -1
  12. data/docs/ContentCollectionDeprecationsApi.md +4 -0
  13. data/docs/ContentCollectionMarksApi.md +4 -0
  14. data/docs/ContentCollectionSignaturesApi.md +4 -0
  15. data/docs/ContentCollectionVersionsApi.md +12 -8
  16. data/docs/ContentNamespacesApi.md +4 -0
  17. data/docs/ContentRolesApi.md +4 -0
  18. data/docs/PatchedansibleCollectionRemote.md +3 -1
  19. data/docs/PatchedansibleGitRemote.md +26 -26
  20. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -0
  21. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
  22. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -0
  23. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
  24. data/docs/RemotesCollectionApi.md +2 -2
  25. data/docs/RemotesGitApi.md +2 -2
  26. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +6 -0
  27. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +6 -0
  28. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +6 -0
  29. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +18 -12
  30. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -0
  31. data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -0
  32. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -0
  33. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
  34. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -0
  35. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
  36. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
  37. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
  38. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  39. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
  40. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +227 -227
  41. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +158 -158
  42. data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
  43. data/lib/pulp_ansible_client/models/ansible_role.rb +18 -18
  44. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  45. data/lib/pulp_ansible_client/models/collection_summary_response.rb +1 -1
  46. data/lib/pulp_ansible_client/models/nested_role.rb +1 -1
  47. data/lib/pulp_ansible_client/models/nested_role_response.rb +1 -1
  48. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
  49. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
  50. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  51. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  52. data/lib/pulp_ansible_client/models/repository_response.rb +1 -1
  53. data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
  54. data/lib/pulp_ansible_client/version.rb +1 -1
  55. data/spec/api/content_collection_deprecations_api_spec.rb +2 -0
  56. data/spec/api/content_collection_marks_api_spec.rb +2 -0
  57. data/spec/api/content_collection_signatures_api_spec.rb +2 -0
  58. data/spec/api/content_collection_versions_api_spec.rb +6 -4
  59. data/spec/api/content_namespaces_api_spec.rb +2 -0
  60. data/spec/api/content_roles_api_spec.rb +2 -0
  61. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -0
  62. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
  63. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -0
  64. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
  65. data/spec/api/remotes_collection_api_spec.rb +1 -1
  66. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  67. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  68. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  69. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  70. data/spec/models/ansible_git_remote_spec.rb +18 -18
  71. data/spec/models/ansible_role_response_spec.rb +6 -6
  72. data/spec/models/ansible_role_spec.rb +4 -4
  73. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  74. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  75. metadata +125 -125
@@ -16,61 +16,61 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class PatchedansibleGitRemote
19
- # A PEM encoded private key used for authentication.
20
- attr_accessor :client_key
21
-
22
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
23
- attr_accessor :proxy_password
24
-
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
19
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
20
+ attr_accessor :password
27
21
 
28
- # The username to be used for authentication when syncing.
29
- attr_accessor :username
22
+ # 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.
23
+ attr_accessor :sock_read_timeout
30
24
 
31
- # The proxy URL. Format: scheme://host:port
32
- attr_accessor :proxy_url
25
+ # The URL of an external content source.
26
+ attr_accessor :url
33
27
 
34
28
  # The username to authenticte to the proxy.
35
29
  attr_accessor :proxy_username
36
30
 
37
- # Headers for aiohttp.Clientsession
38
- attr_accessor :headers
31
+ # The proxy URL. Format: scheme://host:port
32
+ attr_accessor :proxy_url
39
33
 
40
34
  attr_accessor :pulp_labels
41
35
 
42
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
43
- attr_accessor :connect_timeout
44
-
45
- # 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.
46
- attr_accessor :sock_read_timeout
47
-
48
36
  # A unique name for this remote.
49
37
  attr_accessor :name
50
38
 
51
- # The URL of an external content source.
52
- attr_accessor :url
39
+ # Total number of simultaneous connections. If not set then the default value will be used.
40
+ attr_accessor :download_concurrency
41
+
42
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
43
+ attr_accessor :max_retries
53
44
 
54
45
  # 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.
55
46
  attr_accessor :sock_connect_timeout
56
47
 
48
+ # 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
+ attr_accessor :total_timeout
50
+
51
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
52
+ attr_accessor :proxy_password
53
+
57
54
  # A PEM encoded client certificate used for authentication.
58
55
  attr_accessor :client_cert
59
56
 
60
- # If True, TLS peer validation must be performed.
61
- attr_accessor :tls_validation
57
+ # A PEM encoded private key used for authentication.
58
+ attr_accessor :client_key
59
+
60
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
61
+ attr_accessor :connect_timeout
62
+
63
+ # Headers for aiohttp.Clientsession
64
+ attr_accessor :headers
62
65
 
63
66
  # Limits requests per second for each concurrent downloader
64
67
  attr_accessor :rate_limit
65
68
 
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
- # Total number of simultaneous connections. If not set then the default value will be used.
70
- attr_accessor :download_concurrency
69
+ # The username to be used for authentication when syncing.
70
+ attr_accessor :username
71
71
 
72
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
73
- attr_accessor :password
72
+ # If True, TLS peer validation must be performed.
73
+ attr_accessor :tls_validation
74
74
 
75
75
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
76
76
  attr_accessor :ca_cert
@@ -84,25 +84,25 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
- :'client_key' => :'client_key',
88
- :'proxy_password' => :'proxy_password',
89
- :'total_timeout' => :'total_timeout',
90
- :'username' => :'username',
91
- :'proxy_url' => :'proxy_url',
87
+ :'password' => :'password',
88
+ :'sock_read_timeout' => :'sock_read_timeout',
89
+ :'url' => :'url',
92
90
  :'proxy_username' => :'proxy_username',
93
- :'headers' => :'headers',
91
+ :'proxy_url' => :'proxy_url',
94
92
  :'pulp_labels' => :'pulp_labels',
95
- :'connect_timeout' => :'connect_timeout',
96
- :'sock_read_timeout' => :'sock_read_timeout',
97
93
  :'name' => :'name',
98
- :'url' => :'url',
94
+ :'download_concurrency' => :'download_concurrency',
95
+ :'max_retries' => :'max_retries',
99
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'proxy_password' => :'proxy_password',
100
99
  :'client_cert' => :'client_cert',
101
- :'tls_validation' => :'tls_validation',
100
+ :'client_key' => :'client_key',
101
+ :'connect_timeout' => :'connect_timeout',
102
+ :'headers' => :'headers',
102
103
  :'rate_limit' => :'rate_limit',
103
- :'max_retries' => :'max_retries',
104
- :'download_concurrency' => :'download_concurrency',
105
- :'password' => :'password',
104
+ :'username' => :'username',
105
+ :'tls_validation' => :'tls_validation',
106
106
  :'ca_cert' => :'ca_cert',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
@@ -117,25 +117,25 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
- :'client_key' => :'String',
121
- :'proxy_password' => :'String',
122
- :'total_timeout' => :'Float',
123
- :'username' => :'String',
124
- :'proxy_url' => :'String',
120
+ :'password' => :'String',
121
+ :'sock_read_timeout' => :'Float',
122
+ :'url' => :'String',
125
123
  :'proxy_username' => :'String',
126
- :'headers' => :'Array<Object>',
124
+ :'proxy_url' => :'String',
127
125
  :'pulp_labels' => :'Hash<String, String>',
128
- :'connect_timeout' => :'Float',
129
- :'sock_read_timeout' => :'Float',
130
126
  :'name' => :'String',
131
- :'url' => :'String',
127
+ :'download_concurrency' => :'Integer',
128
+ :'max_retries' => :'Integer',
132
129
  :'sock_connect_timeout' => :'Float',
130
+ :'total_timeout' => :'Float',
131
+ :'proxy_password' => :'String',
133
132
  :'client_cert' => :'String',
134
- :'tls_validation' => :'Boolean',
133
+ :'client_key' => :'String',
134
+ :'connect_timeout' => :'Float',
135
+ :'headers' => :'Array<Object>',
135
136
  :'rate_limit' => :'Integer',
136
- :'max_retries' => :'Integer',
137
- :'download_concurrency' => :'Integer',
138
- :'password' => :'String',
137
+ :'username' => :'String',
138
+ :'tls_validation' => :'Boolean',
139
139
  :'ca_cert' => :'String',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
@@ -145,20 +145,20 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
- :'client_key',
149
- :'proxy_password',
150
- :'total_timeout',
151
- :'username',
152
- :'proxy_url',
153
- :'proxy_username',
154
- :'connect_timeout',
148
+ :'password',
155
149
  :'sock_read_timeout',
150
+ :'proxy_username',
151
+ :'proxy_url',
152
+ :'download_concurrency',
153
+ :'max_retries',
156
154
  :'sock_connect_timeout',
155
+ :'total_timeout',
156
+ :'proxy_password',
157
157
  :'client_cert',
158
+ :'client_key',
159
+ :'connect_timeout',
158
160
  :'rate_limit',
159
- :'max_retries',
160
- :'download_concurrency',
161
- :'password',
161
+ :'username',
162
162
  :'ca_cert',
163
163
  ])
164
164
  end
@@ -178,34 +178,24 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'client_key')
182
- self.client_key = attributes[:'client_key']
183
- end
184
-
185
- if attributes.key?(:'proxy_password')
186
- self.proxy_password = attributes[:'proxy_password']
187
- end
188
-
189
- if attributes.key?(:'total_timeout')
190
- self.total_timeout = attributes[:'total_timeout']
181
+ if attributes.key?(:'password')
182
+ self.password = attributes[:'password']
191
183
  end
192
184
 
193
- if attributes.key?(:'username')
194
- self.username = attributes[:'username']
185
+ if attributes.key?(:'sock_read_timeout')
186
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
195
187
  end
196
188
 
197
- if attributes.key?(:'proxy_url')
198
- self.proxy_url = attributes[:'proxy_url']
189
+ if attributes.key?(:'url')
190
+ self.url = attributes[:'url']
199
191
  end
200
192
 
201
193
  if attributes.key?(:'proxy_username')
202
194
  self.proxy_username = attributes[:'proxy_username']
203
195
  end
204
196
 
205
- if attributes.key?(:'headers')
206
- if (value = attributes[:'headers']).is_a?(Array)
207
- self.headers = value
208
- end
197
+ if attributes.key?(:'proxy_url')
198
+ self.proxy_url = attributes[:'proxy_url']
209
199
  end
210
200
 
211
201
  if attributes.key?(:'pulp_labels')
@@ -214,48 +204,58 @@ module PulpAnsibleClient
214
204
  end
215
205
  end
216
206
 
217
- if attributes.key?(:'connect_timeout')
218
- self.connect_timeout = attributes[:'connect_timeout']
219
- end
220
-
221
- if attributes.key?(:'sock_read_timeout')
222
- self.sock_read_timeout = attributes[:'sock_read_timeout']
223
- end
224
-
225
207
  if attributes.key?(:'name')
226
208
  self.name = attributes[:'name']
227
209
  end
228
210
 
229
- if attributes.key?(:'url')
230
- self.url = attributes[:'url']
211
+ if attributes.key?(:'download_concurrency')
212
+ self.download_concurrency = attributes[:'download_concurrency']
213
+ end
214
+
215
+ if attributes.key?(:'max_retries')
216
+ self.max_retries = attributes[:'max_retries']
231
217
  end
232
218
 
233
219
  if attributes.key?(:'sock_connect_timeout')
234
220
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
235
221
  end
236
222
 
223
+ if attributes.key?(:'total_timeout')
224
+ self.total_timeout = attributes[:'total_timeout']
225
+ end
226
+
227
+ if attributes.key?(:'proxy_password')
228
+ self.proxy_password = attributes[:'proxy_password']
229
+ end
230
+
237
231
  if attributes.key?(:'client_cert')
238
232
  self.client_cert = attributes[:'client_cert']
239
233
  end
240
234
 
241
- if attributes.key?(:'tls_validation')
242
- self.tls_validation = attributes[:'tls_validation']
235
+ if attributes.key?(:'client_key')
236
+ self.client_key = attributes[:'client_key']
243
237
  end
244
238
 
245
- if attributes.key?(:'rate_limit')
246
- self.rate_limit = attributes[:'rate_limit']
239
+ if attributes.key?(:'connect_timeout')
240
+ self.connect_timeout = attributes[:'connect_timeout']
247
241
  end
248
242
 
249
- if attributes.key?(:'max_retries')
250
- self.max_retries = attributes[:'max_retries']
243
+ if attributes.key?(:'headers')
244
+ if (value = attributes[:'headers']).is_a?(Array)
245
+ self.headers = value
246
+ end
251
247
  end
252
248
 
253
- if attributes.key?(:'download_concurrency')
254
- self.download_concurrency = attributes[:'download_concurrency']
249
+ if attributes.key?(:'rate_limit')
250
+ self.rate_limit = attributes[:'rate_limit']
255
251
  end
256
252
 
257
- if attributes.key?(:'password')
258
- self.password = attributes[:'password']
253
+ if attributes.key?(:'username')
254
+ self.username = attributes[:'username']
255
+ end
256
+
257
+ if attributes.key?(:'tls_validation')
258
+ self.tls_validation = attributes[:'tls_validation']
259
259
  end
260
260
 
261
261
  if attributes.key?(:'ca_cert')
@@ -276,60 +276,60 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@client_key.nil? && @client_key.to_s.length < 1
280
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
281
- end
282
-
283
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
284
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
285
- end
286
-
287
- if !@total_timeout.nil? && @total_timeout < 0.0
288
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
279
+ if !@password.nil? && @password.to_s.length < 1
280
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
289
281
  end
290
282
 
291
- if !@username.nil? && @username.to_s.length < 1
292
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
293
285
  end
294
286
 
295
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
296
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
287
+ if !@url.nil? && @url.to_s.length < 1
288
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
297
289
  end
298
290
 
299
291
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
300
292
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
301
293
  end
302
294
 
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.')
305
- end
306
-
307
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
308
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
295
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
296
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
309
297
  end
310
298
 
311
299
  if !@name.nil? && @name.to_s.length < 1
312
300
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
313
301
  end
314
302
 
315
- if !@url.nil? && @url.to_s.length < 1
316
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
303
+ if !@download_concurrency.nil? && @download_concurrency < 1
304
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
317
305
  end
318
306
 
319
307
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
320
308
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
321
309
  end
322
310
 
311
+ if !@total_timeout.nil? && @total_timeout < 0.0
312
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
313
+ end
314
+
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.')
317
+ end
318
+
323
319
  if !@client_cert.nil? && @client_cert.to_s.length < 1
324
320
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
325
321
  end
326
322
 
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.')
323
+ if !@client_key.nil? && @client_key.to_s.length < 1
324
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
329
325
  end
330
326
 
331
- if !@password.nil? && @password.to_s.length < 1
332
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
327
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
328
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
329
+ end
330
+
331
+ if !@username.nil? && @username.to_s.length < 1
332
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
333
333
  end
334
334
 
335
335
  if !@ca_cert.nil? && @ca_cert.to_s.length < 1
@@ -347,73 +347,57 @@ module PulpAnsibleClient
347
347
  # @return true if the model is valid
348
348
  def valid?
349
349
  warn '[DEPRECATED] the `valid?` method is obsolete'
350
- return false if !@client_key.nil? && @client_key.to_s.length < 1
351
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
352
- return false if !@total_timeout.nil? && @total_timeout < 0.0
353
- return false if !@username.nil? && @username.to_s.length < 1
354
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
355
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
356
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
350
+ return false if !@password.nil? && @password.to_s.length < 1
357
351
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
358
- return false if !@name.nil? && @name.to_s.length < 1
359
352
  return false if !@url.nil? && @url.to_s.length < 1
353
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
354
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
355
+ return false if !@name.nil? && @name.to_s.length < 1
356
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
360
357
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
359
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
361
360
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
362
- return false if !@download_concurrency.nil? && @download_concurrency < 1
363
- return false if !@password.nil? && @password.to_s.length < 1
361
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
362
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
363
+ return false if !@username.nil? && @username.to_s.length < 1
364
364
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
365
365
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
366
  true
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] client_key Value to be assigned
371
- def client_key=(client_key)
372
- if !client_key.nil? && client_key.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
374
- end
375
-
376
- @client_key = client_key
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] proxy_password Value to be assigned
381
- def proxy_password=(proxy_password)
382
- if !proxy_password.nil? && proxy_password.to_s.length < 1
383
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
370
+ # @param [Object] password Value to be assigned
371
+ def password=(password)
372
+ if !password.nil? && password.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
384
374
  end
385
375
 
386
- @proxy_password = proxy_password
376
+ @password = password
387
377
  end
388
378
 
389
379
  # Custom attribute writer method with validation
390
- # @param [Object] total_timeout Value to be assigned
391
- def total_timeout=(total_timeout)
392
- if !total_timeout.nil? && total_timeout < 0.0
393
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
380
+ # @param [Object] sock_read_timeout Value to be assigned
381
+ def sock_read_timeout=(sock_read_timeout)
382
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
383
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
394
384
  end
395
385
 
396
- @total_timeout = total_timeout
386
+ @sock_read_timeout = sock_read_timeout
397
387
  end
398
388
 
399
389
  # Custom attribute writer method with validation
400
- # @param [Object] username Value to be assigned
401
- def username=(username)
402
- if !username.nil? && username.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
390
+ # @param [Object] url Value to be assigned
391
+ def url=(url)
392
+ if url.nil?
393
+ fail ArgumentError, 'url cannot be nil'
404
394
  end
405
395
 
406
- @username = username
407
- end
408
-
409
- # Custom attribute writer method with validation
410
- # @param [Object] proxy_url Value to be assigned
411
- def proxy_url=(proxy_url)
412
- if !proxy_url.nil? && proxy_url.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
396
+ if url.to_s.length < 1
397
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
414
398
  end
415
399
 
416
- @proxy_url = proxy_url
400
+ @url = url
417
401
  end
418
402
 
419
403
  # Custom attribute writer method with validation
@@ -427,23 +411,13 @@ module PulpAnsibleClient
427
411
  end
428
412
 
429
413
  # Custom attribute writer method with validation
430
- # @param [Object] connect_timeout Value to be assigned
431
- def connect_timeout=(connect_timeout)
432
- if !connect_timeout.nil? && connect_timeout < 0.0
433
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
434
- end
435
-
436
- @connect_timeout = connect_timeout
437
- end
438
-
439
- # Custom attribute writer method with validation
440
- # @param [Object] sock_read_timeout Value to be assigned
441
- def sock_read_timeout=(sock_read_timeout)
442
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
443
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
414
+ # @param [Object] proxy_url Value to be assigned
415
+ def proxy_url=(proxy_url)
416
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
417
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
444
418
  end
445
419
 
446
- @sock_read_timeout = sock_read_timeout
420
+ @proxy_url = proxy_url
447
421
  end
448
422
 
449
423
  # Custom attribute writer method with validation
@@ -461,17 +435,13 @@ module PulpAnsibleClient
461
435
  end
462
436
 
463
437
  # Custom attribute writer method with validation
464
- # @param [Object] url Value to be assigned
465
- def url=(url)
466
- if url.nil?
467
- fail ArgumentError, 'url cannot be nil'
468
- end
469
-
470
- if url.to_s.length < 1
471
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
438
+ # @param [Object] download_concurrency Value to be assigned
439
+ def download_concurrency=(download_concurrency)
440
+ if !download_concurrency.nil? && download_concurrency < 1
441
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
472
442
  end
473
443
 
474
- @url = url
444
+ @download_concurrency = download_concurrency
475
445
  end
476
446
 
477
447
  # Custom attribute writer method with validation
@@ -484,6 +454,26 @@ module PulpAnsibleClient
484
454
  @sock_connect_timeout = sock_connect_timeout
485
455
  end
486
456
 
457
+ # Custom attribute writer method with validation
458
+ # @param [Object] total_timeout Value to be assigned
459
+ def total_timeout=(total_timeout)
460
+ if !total_timeout.nil? && total_timeout < 0.0
461
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
462
+ end
463
+
464
+ @total_timeout = total_timeout
465
+ end
466
+
467
+ # Custom attribute writer method with validation
468
+ # @param [Object] proxy_password Value to be assigned
469
+ def proxy_password=(proxy_password)
470
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
471
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
472
+ end
473
+
474
+ @proxy_password = proxy_password
475
+ end
476
+
487
477
  # Custom attribute writer method with validation
488
478
  # @param [Object] client_cert Value to be assigned
489
479
  def client_cert=(client_cert)
@@ -495,23 +485,33 @@ module PulpAnsibleClient
495
485
  end
496
486
 
497
487
  # Custom attribute writer method with validation
498
- # @param [Object] download_concurrency Value to be assigned
499
- def download_concurrency=(download_concurrency)
500
- if !download_concurrency.nil? && download_concurrency < 1
501
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
488
+ # @param [Object] client_key Value to be assigned
489
+ def client_key=(client_key)
490
+ if !client_key.nil? && client_key.to_s.length < 1
491
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
502
492
  end
503
493
 
504
- @download_concurrency = download_concurrency
494
+ @client_key = client_key
505
495
  end
506
496
 
507
497
  # Custom attribute writer method with validation
508
- # @param [Object] password Value to be assigned
509
- def password=(password)
510
- if !password.nil? && password.to_s.length < 1
511
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
498
+ # @param [Object] connect_timeout Value to be assigned
499
+ def connect_timeout=(connect_timeout)
500
+ if !connect_timeout.nil? && connect_timeout < 0.0
501
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
512
502
  end
513
503
 
514
- @password = password
504
+ @connect_timeout = connect_timeout
505
+ end
506
+
507
+ # Custom attribute writer method with validation
508
+ # @param [Object] username Value to be assigned
509
+ def username=(username)
510
+ if !username.nil? && username.to_s.length < 1
511
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
512
+ end
513
+
514
+ @username = username
515
515
  end
516
516
 
517
517
  # Custom attribute writer method with validation
@@ -543,25 +543,25 @@ module PulpAnsibleClient
543
543
  def ==(o)
544
544
  return true if self.equal?(o)
545
545
  self.class == o.class &&
546
- client_key == o.client_key &&
547
- proxy_password == o.proxy_password &&
548
- total_timeout == o.total_timeout &&
549
- username == o.username &&
550
- proxy_url == o.proxy_url &&
546
+ password == o.password &&
547
+ sock_read_timeout == o.sock_read_timeout &&
548
+ url == o.url &&
551
549
  proxy_username == o.proxy_username &&
552
- headers == o.headers &&
550
+ proxy_url == o.proxy_url &&
553
551
  pulp_labels == o.pulp_labels &&
554
- connect_timeout == o.connect_timeout &&
555
- sock_read_timeout == o.sock_read_timeout &&
556
552
  name == o.name &&
557
- url == o.url &&
553
+ download_concurrency == o.download_concurrency &&
554
+ max_retries == o.max_retries &&
558
555
  sock_connect_timeout == o.sock_connect_timeout &&
556
+ total_timeout == o.total_timeout &&
557
+ proxy_password == o.proxy_password &&
559
558
  client_cert == o.client_cert &&
560
- tls_validation == o.tls_validation &&
559
+ client_key == o.client_key &&
560
+ connect_timeout == o.connect_timeout &&
561
+ headers == o.headers &&
561
562
  rate_limit == o.rate_limit &&
562
- max_retries == o.max_retries &&
563
- download_concurrency == o.download_concurrency &&
564
- password == o.password &&
563
+ username == o.username &&
564
+ tls_validation == o.tls_validation &&
565
565
  ca_cert == o.ca_cert &&
566
566
  metadata_only == o.metadata_only &&
567
567
  git_ref == o.git_ref
@@ -576,7 +576,7 @@ module PulpAnsibleClient
576
576
  # Calculates hash code according to all attributes.
577
577
  # @return [Integer] Hash code
578
578
  def hash
579
- [client_key, proxy_password, total_timeout, username, proxy_url, proxy_username, headers, pulp_labels, connect_timeout, sock_read_timeout, name, url, sock_connect_timeout, client_cert, tls_validation, rate_limit, max_retries, download_concurrency, password, ca_cert, metadata_only, git_ref].hash
579
+ [password, sock_read_timeout, url, proxy_username, proxy_url, pulp_labels, name, download_concurrency, max_retries, sock_connect_timeout, total_timeout, proxy_password, client_cert, client_key, connect_timeout, headers, rate_limit, username, tls_validation, ca_cert, metadata_only, git_ref].hash
580
580
  end
581
581
 
582
582
  # Builds the object from hash