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