pulp_ansible_client 0.24.0 → 0.24.2

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