pulp_ansible_client 0.14.2 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/docs/AnsibleAnsibleRepository.md +2 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
- data/docs/AnsibleCollectionRemoteResponse.md +0 -2
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/AnsibleRepositoryRebuild.md +21 -0
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ClientConfigurationResponse.md +17 -0
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleAnsibleRepository.md +2 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +67 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +57 -0
- data/docs/RepositoriesAnsibleApi.md +55 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +55 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +4 -4
- data/lib/pulp_ansible_client/api/content_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +76 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +69 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +69 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +24 -10
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +9 -10
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -2
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -29
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +224 -224
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
- data/lib/pulp_ansible_client/models/ansible_repository_rebuild.rb +273 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/client_configuration_response.rb +208 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +24 -10
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -2
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +213 -213
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -0
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +45 -0
- data/spec/api/repositories_ansible_api_spec.rb +12 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +16 -16
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_repository_rebuild_spec.rb +53 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/client_configuration_response_spec.rb +41 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +18 -2
@@ -142,7 +142,7 @@ module PulpAnsibleClient
|
|
142
142
|
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleVersionsApi.list"
|
144
144
|
end
|
145
|
-
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-download_logs", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "download_logs", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
146
146
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
147
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
148
|
end
|
@@ -272,6 +272,74 @@ module PulpAnsibleClient
|
|
272
272
|
return data, status_code, headers
|
273
273
|
end
|
274
274
|
|
275
|
+
# Trigger an asynchronous task to rebuild Ansible content meta.
|
276
|
+
# @param ansible_ansible_repository_version_href [String]
|
277
|
+
# @param ansible_repository_rebuild [AnsibleRepositoryRebuild]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [AsyncOperationResponse]
|
280
|
+
def rebuild_metadata(ansible_ansible_repository_version_href, ansible_repository_rebuild, opts = {})
|
281
|
+
data, _status_code, _headers = rebuild_metadata_with_http_info(ansible_ansible_repository_version_href, ansible_repository_rebuild, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Trigger an asynchronous task to rebuild Ansible content meta.
|
286
|
+
# @param ansible_ansible_repository_version_href [String]
|
287
|
+
# @param ansible_repository_rebuild [AnsibleRepositoryRebuild]
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
290
|
+
def rebuild_metadata_with_http_info(ansible_ansible_repository_version_href, ansible_repository_rebuild, opts = {})
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleVersionsApi.rebuild_metadata ...'
|
293
|
+
end
|
294
|
+
# verify the required parameter 'ansible_ansible_repository_version_href' is set
|
295
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_version_href.nil?
|
296
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_version_href' when calling RepositoriesAnsibleVersionsApi.rebuild_metadata"
|
297
|
+
end
|
298
|
+
# verify the required parameter 'ansible_repository_rebuild' is set
|
299
|
+
if @api_client.config.client_side_validation && ansible_repository_rebuild.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_rebuild' when calling RepositoriesAnsibleVersionsApi.rebuild_metadata"
|
301
|
+
end
|
302
|
+
# resource path
|
303
|
+
local_var_path = '{ansible_ansible_repository_version_href}rebuild_metadata/'.sub('{' + 'ansible_ansible_repository_version_href' + '}', CGI.escape(ansible_ansible_repository_version_href.to_s).gsub('%2F', '/'))
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = opts[:query_params] || {}
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = opts[:header_params] || {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
312
|
+
# HTTP header 'Content-Type'
|
313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
314
|
+
|
315
|
+
# form parameters
|
316
|
+
form_params = opts[:form_params] || {}
|
317
|
+
|
318
|
+
# http body (model)
|
319
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_rebuild)
|
320
|
+
|
321
|
+
# return_type
|
322
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
323
|
+
|
324
|
+
# auth_names
|
325
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
326
|
+
|
327
|
+
new_options = opts.merge(
|
328
|
+
:header_params => header_params,
|
329
|
+
:query_params => query_params,
|
330
|
+
:form_params => form_params,
|
331
|
+
:body => post_body,
|
332
|
+
:auth_names => auth_names,
|
333
|
+
:return_type => return_type
|
334
|
+
)
|
335
|
+
|
336
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
337
|
+
if @api_client.config.debugging
|
338
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleVersionsApi#rebuild_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
339
|
+
end
|
340
|
+
return data, status_code, headers
|
341
|
+
end
|
342
|
+
|
275
343
|
# Trigger an asynchronous task to repair a repository version.
|
276
344
|
# @param ansible_ansible_repository_version_href [String]
|
277
345
|
# @param repair [Repair]
|
@@ -32,8 +32,8 @@ module PulpAnsibleClient
|
|
32
32
|
# Last synced metadata time.
|
33
33
|
attr_accessor :last_synced_metadata_time
|
34
34
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
35
|
+
# Gpg public key to verify collection signatures against
|
36
|
+
attr_accessor :gpgkey
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
@@ -44,7 +44,7 @@ module PulpAnsibleClient
|
|
44
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
45
45
|
:'remote' => :'remote',
|
46
46
|
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
47
|
-
:'
|
47
|
+
:'gpgkey' => :'gpgkey'
|
48
48
|
}
|
49
49
|
end
|
50
50
|
|
@@ -57,7 +57,7 @@ module PulpAnsibleClient
|
|
57
57
|
:'retain_repo_versions' => :'Integer',
|
58
58
|
:'remote' => :'String',
|
59
59
|
:'last_synced_metadata_time' => :'DateTime',
|
60
|
-
:'
|
60
|
+
:'gpgkey' => :'String'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
@@ -68,6 +68,7 @@ module PulpAnsibleClient
|
|
68
68
|
:'retain_repo_versions',
|
69
69
|
:'remote',
|
70
70
|
:'last_synced_metadata_time',
|
71
|
+
:'gpgkey'
|
71
72
|
])
|
72
73
|
end
|
73
74
|
|
@@ -110,10 +111,8 @@ module PulpAnsibleClient
|
|
110
111
|
self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
|
111
112
|
end
|
112
113
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
115
|
-
else
|
116
|
-
self.keyring = ''
|
114
|
+
if attributes.key?(:'gpgkey')
|
115
|
+
self.gpgkey = attributes[:'gpgkey']
|
117
116
|
end
|
118
117
|
end
|
119
118
|
|
@@ -137,6 +136,10 @@ module PulpAnsibleClient
|
|
137
136
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
138
137
|
end
|
139
138
|
|
139
|
+
if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
140
|
+
invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
140
143
|
invalid_properties
|
141
144
|
end
|
142
145
|
|
@@ -147,6 +150,7 @@ module PulpAnsibleClient
|
|
147
150
|
return false if @name.to_s.length < 1
|
148
151
|
return false if !@description.nil? && @description.to_s.length < 1
|
149
152
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
|
+
return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
150
154
|
true
|
151
155
|
end
|
152
156
|
|
@@ -184,6 +188,16 @@ module PulpAnsibleClient
|
|
184
188
|
@retain_repo_versions = retain_repo_versions
|
185
189
|
end
|
186
190
|
|
191
|
+
# Custom attribute writer method with validation
|
192
|
+
# @param [Object] gpgkey Value to be assigned
|
193
|
+
def gpgkey=(gpgkey)
|
194
|
+
if !gpgkey.nil? && gpgkey.to_s.length < 1
|
195
|
+
fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
|
196
|
+
end
|
197
|
+
|
198
|
+
@gpgkey = gpgkey
|
199
|
+
end
|
200
|
+
|
187
201
|
# Checks equality by comparing each attribute.
|
188
202
|
# @param [Object] Object to be compared
|
189
203
|
def ==(o)
|
@@ -195,7 +209,7 @@ module PulpAnsibleClient
|
|
195
209
|
retain_repo_versions == o.retain_repo_versions &&
|
196
210
|
remote == o.remote &&
|
197
211
|
last_synced_metadata_time == o.last_synced_metadata_time &&
|
198
|
-
|
212
|
+
gpgkey == o.gpgkey
|
199
213
|
end
|
200
214
|
|
201
215
|
# @see the `==` method
|
@@ -207,7 +221,7 @@ module PulpAnsibleClient
|
|
207
221
|
# Calculates hash code according to all attributes.
|
208
222
|
# @return [Integer] Hash code
|
209
223
|
def hash
|
210
|
-
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time,
|
224
|
+
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
|
211
225
|
end
|
212
226
|
|
213
227
|
# Builds the object from hash
|
@@ -41,8 +41,8 @@ module PulpAnsibleClient
|
|
41
41
|
# Last synced metadata time.
|
42
42
|
attr_accessor :last_synced_metadata_time
|
43
43
|
|
44
|
-
#
|
45
|
-
attr_accessor :
|
44
|
+
# Gpg public key to verify collection signatures against
|
45
|
+
attr_accessor :gpgkey
|
46
46
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
@@ -57,7 +57,7 @@ module PulpAnsibleClient
|
|
57
57
|
:'retain_repo_versions' => :'retain_repo_versions',
|
58
58
|
:'remote' => :'remote',
|
59
59
|
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
60
|
-
:'
|
60
|
+
:'gpgkey' => :'gpgkey'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
@@ -74,7 +74,7 @@ module PulpAnsibleClient
|
|
74
74
|
:'retain_repo_versions' => :'Integer',
|
75
75
|
:'remote' => :'String',
|
76
76
|
:'last_synced_metadata_time' => :'DateTime',
|
77
|
-
:'
|
77
|
+
:'gpgkey' => :'String'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -85,6 +85,7 @@ module PulpAnsibleClient
|
|
85
85
|
:'retain_repo_versions',
|
86
86
|
:'remote',
|
87
87
|
:'last_synced_metadata_time',
|
88
|
+
:'gpgkey'
|
88
89
|
])
|
89
90
|
end
|
90
91
|
|
@@ -143,10 +144,8 @@ module PulpAnsibleClient
|
|
143
144
|
self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
|
144
145
|
end
|
145
146
|
|
146
|
-
if attributes.key?(:'
|
147
|
-
self.
|
148
|
-
else
|
149
|
-
self.keyring = ''
|
147
|
+
if attributes.key?(:'gpgkey')
|
148
|
+
self.gpgkey = attributes[:'gpgkey']
|
150
149
|
end
|
151
150
|
end
|
152
151
|
|
@@ -198,7 +197,7 @@ module PulpAnsibleClient
|
|
198
197
|
retain_repo_versions == o.retain_repo_versions &&
|
199
198
|
remote == o.remote &&
|
200
199
|
last_synced_metadata_time == o.last_synced_metadata_time &&
|
201
|
-
|
200
|
+
gpgkey == o.gpgkey
|
202
201
|
end
|
203
202
|
|
204
203
|
# @see the `==` method
|
@@ -210,7 +209,7 @@ module PulpAnsibleClient
|
|
210
209
|
# Calculates hash code according to all attributes.
|
211
210
|
# @return [Integer] Hash code
|
212
211
|
def hash
|
213
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time,
|
212
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
|
214
213
|
end
|
215
214
|
|
216
215
|
# Builds the object from hash
|
@@ -76,9 +76,6 @@ module PulpAnsibleClient
|
|
76
76
|
# The URL to receive a session token from, e.g. used with Automation Hub.
|
77
77
|
attr_accessor :auth_url
|
78
78
|
|
79
|
-
# The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details
|
80
|
-
attr_accessor :token
|
81
|
-
|
82
79
|
# Sync dependencies for collections specified via requirements file
|
83
80
|
attr_accessor :sync_dependencies
|
84
81
|
|
@@ -109,7 +106,6 @@ module PulpAnsibleClient
|
|
109
106
|
:'rate_limit' => :'rate_limit',
|
110
107
|
:'requirements_file' => :'requirements_file',
|
111
108
|
:'auth_url' => :'auth_url',
|
112
|
-
:'token' => :'token',
|
113
109
|
:'sync_dependencies' => :'sync_dependencies',
|
114
110
|
:'signed_only' => :'signed_only'
|
115
111
|
}
|
@@ -139,7 +135,6 @@ module PulpAnsibleClient
|
|
139
135
|
:'rate_limit' => :'Integer',
|
140
136
|
:'requirements_file' => :'String',
|
141
137
|
:'auth_url' => :'String',
|
142
|
-
:'token' => :'String',
|
143
138
|
:'sync_dependencies' => :'Boolean',
|
144
139
|
:'signed_only' => :'Boolean'
|
145
140
|
}
|
@@ -160,9 +155,6 @@ module PulpAnsibleClient
|
|
160
155
|
:'rate_limit',
|
161
156
|
:'requirements_file',
|
162
157
|
:'auth_url',
|
163
|
-
:'token',
|
164
|
-
:'sync_dependencies',
|
165
|
-
:'signed_only'
|
166
158
|
])
|
167
159
|
end
|
168
160
|
|
@@ -267,10 +259,6 @@ module PulpAnsibleClient
|
|
267
259
|
self.auth_url = attributes[:'auth_url']
|
268
260
|
end
|
269
261
|
|
270
|
-
if attributes.key?(:'token')
|
271
|
-
self.token = attributes[:'token']
|
272
|
-
end
|
273
|
-
|
274
262
|
if attributes.key?(:'sync_dependencies')
|
275
263
|
self.sync_dependencies = attributes[:'sync_dependencies']
|
276
264
|
else
|
@@ -320,10 +308,6 @@ module PulpAnsibleClient
|
|
320
308
|
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
321
309
|
end
|
322
310
|
|
323
|
-
if !@token.nil? && @token.to_s.length > 2000
|
324
|
-
invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
|
325
|
-
end
|
326
|
-
|
327
311
|
invalid_properties
|
328
312
|
end
|
329
313
|
|
@@ -338,7 +322,6 @@ module PulpAnsibleClient
|
|
338
322
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
339
323
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
340
324
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
341
|
-
return false if !@token.nil? && @token.to_s.length > 2000
|
342
325
|
true
|
343
326
|
end
|
344
327
|
|
@@ -402,16 +385,6 @@ module PulpAnsibleClient
|
|
402
385
|
@auth_url = auth_url
|
403
386
|
end
|
404
387
|
|
405
|
-
# Custom attribute writer method with validation
|
406
|
-
# @param [Object] token Value to be assigned
|
407
|
-
def token=(token)
|
408
|
-
if !token.nil? && token.to_s.length > 2000
|
409
|
-
fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
|
410
|
-
end
|
411
|
-
|
412
|
-
@token = token
|
413
|
-
end
|
414
|
-
|
415
388
|
# Checks equality by comparing each attribute.
|
416
389
|
# @param [Object] Object to be compared
|
417
390
|
def ==(o)
|
@@ -438,7 +411,6 @@ module PulpAnsibleClient
|
|
438
411
|
rate_limit == o.rate_limit &&
|
439
412
|
requirements_file == o.requirements_file &&
|
440
413
|
auth_url == o.auth_url &&
|
441
|
-
token == o.token &&
|
442
414
|
sync_dependencies == o.sync_dependencies &&
|
443
415
|
signed_only == o.signed_only
|
444
416
|
end
|
@@ -452,7 +424,7 @@ module PulpAnsibleClient
|
|
452
424
|
# Calculates hash code according to all attributes.
|
453
425
|
# @return [Integer] Hash code
|
454
426
|
def hash
|
455
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url,
|
427
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only].hash
|
456
428
|
end
|
457
429
|
|
458
430
|
# Builds the object from hash
|
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
+
attr_accessor :file
|
20
|
+
|
18
21
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
19
22
|
attr_accessor :upload
|
20
23
|
|
21
24
|
# A URI of a repository the new content unit should be associated with.
|
22
25
|
attr_accessor :repository
|
23
26
|
|
24
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
25
|
-
attr_accessor :file
|
26
|
-
|
27
27
|
# The name of the collection.
|
28
28
|
attr_accessor :name
|
29
29
|
|
@@ -36,9 +36,9 @@ module PulpAnsibleClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
+
:'file' => :'file',
|
39
40
|
:'upload' => :'upload',
|
40
41
|
:'repository' => :'repository',
|
41
|
-
:'file' => :'file',
|
42
42
|
:'name' => :'name',
|
43
43
|
:'namespace' => :'namespace',
|
44
44
|
:'version' => :'version'
|
@@ -48,9 +48,9 @@ module PulpAnsibleClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
+
:'file' => :'File',
|
51
52
|
:'upload' => :'String',
|
52
53
|
:'repository' => :'String',
|
53
|
-
:'file' => :'File',
|
54
54
|
:'name' => :'String',
|
55
55
|
:'namespace' => :'String',
|
56
56
|
:'version' => :'String'
|
@@ -78,6 +78,10 @@ module PulpAnsibleClient
|
|
78
78
|
h[k.to_sym] = v
|
79
79
|
}
|
80
80
|
|
81
|
+
if attributes.key?(:'file')
|
82
|
+
self.file = attributes[:'file']
|
83
|
+
end
|
84
|
+
|
81
85
|
if attributes.key?(:'upload')
|
82
86
|
self.upload = attributes[:'upload']
|
83
87
|
end
|
@@ -86,10 +90,6 @@ module PulpAnsibleClient
|
|
86
90
|
self.repository = attributes[:'repository']
|
87
91
|
end
|
88
92
|
|
89
|
-
if attributes.key?(:'file')
|
90
|
-
self.file = attributes[:'file']
|
91
|
-
end
|
92
|
-
|
93
93
|
if attributes.key?(:'name')
|
94
94
|
self.name = attributes[:'name']
|
95
95
|
end
|
@@ -220,9 +220,9 @@ module PulpAnsibleClient
|
|
220
220
|
def ==(o)
|
221
221
|
return true if self.equal?(o)
|
222
222
|
self.class == o.class &&
|
223
|
+
file == o.file &&
|
223
224
|
upload == o.upload &&
|
224
225
|
repository == o.repository &&
|
225
|
-
file == o.file &&
|
226
226
|
name == o.name &&
|
227
227
|
namespace == o.namespace &&
|
228
228
|
version == o.version
|
@@ -237,7 +237,7 @@ module PulpAnsibleClient
|
|
237
237
|
# Calculates hash code according to all attributes.
|
238
238
|
# @return [Integer] Hash code
|
239
239
|
def hash
|
240
|
-
[upload, repository,
|
240
|
+
[file, upload, repository, name, namespace, version].hash
|
241
241
|
end
|
242
242
|
|
243
243
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
18
21
|
attr_accessor :pulp_href
|
19
22
|
|
20
23
|
# Artifact file representing the physical content
|
21
24
|
attr_accessor :artifact
|
22
25
|
|
23
|
-
# Timestamp of creation.
|
24
|
-
attr_accessor :pulp_created
|
25
|
-
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
28
28
|
|
@@ -97,9 +97,9 @@ module PulpAnsibleClient
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
98
98
|
def self.attribute_map
|
99
99
|
{
|
100
|
+
:'pulp_created' => :'pulp_created',
|
100
101
|
:'pulp_href' => :'pulp_href',
|
101
102
|
:'artifact' => :'artifact',
|
102
|
-
:'pulp_created' => :'pulp_created',
|
103
103
|
:'md5' => :'md5',
|
104
104
|
:'sha1' => :'sha1',
|
105
105
|
:'sha224' => :'sha224',
|
@@ -130,9 +130,9 @@ module PulpAnsibleClient
|
|
130
130
|
# Attribute type mapping.
|
131
131
|
def self.openapi_types
|
132
132
|
{
|
133
|
+
:'pulp_created' => :'DateTime',
|
133
134
|
:'pulp_href' => :'String',
|
134
135
|
:'artifact' => :'String',
|
135
|
-
:'pulp_created' => :'DateTime',
|
136
136
|
:'md5' => :'String',
|
137
137
|
:'sha1' => :'String',
|
138
138
|
:'sha224' => :'String',
|
@@ -182,6 +182,10 @@ module PulpAnsibleClient
|
|
182
182
|
h[k.to_sym] = v
|
183
183
|
}
|
184
184
|
|
185
|
+
if attributes.key?(:'pulp_created')
|
186
|
+
self.pulp_created = attributes[:'pulp_created']
|
187
|
+
end
|
188
|
+
|
185
189
|
if attributes.key?(:'pulp_href')
|
186
190
|
self.pulp_href = attributes[:'pulp_href']
|
187
191
|
end
|
@@ -190,10 +194,6 @@ module PulpAnsibleClient
|
|
190
194
|
self.artifact = attributes[:'artifact']
|
191
195
|
end
|
192
196
|
|
193
|
-
if attributes.key?(:'pulp_created')
|
194
|
-
self.pulp_created = attributes[:'pulp_created']
|
195
|
-
end
|
196
|
-
|
197
197
|
if attributes.key?(:'md5')
|
198
198
|
self.md5 = attributes[:'md5']
|
199
199
|
end
|
@@ -543,9 +543,9 @@ module PulpAnsibleClient
|
|
543
543
|
def ==(o)
|
544
544
|
return true if self.equal?(o)
|
545
545
|
self.class == o.class &&
|
546
|
+
pulp_created == o.pulp_created &&
|
546
547
|
pulp_href == o.pulp_href &&
|
547
548
|
artifact == o.artifact &&
|
548
|
-
pulp_created == o.pulp_created &&
|
549
549
|
md5 == o.md5 &&
|
550
550
|
sha1 == o.sha1 &&
|
551
551
|
sha224 == o.sha224 &&
|
@@ -581,7 +581,7 @@ module PulpAnsibleClient
|
|
581
581
|
# Calculates hash code according to all attributes.
|
582
582
|
# @return [Integer] Hash code
|
583
583
|
def hash
|
584
|
-
[pulp_href, artifact,
|
584
|
+
[pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
|
585
585
|
end
|
586
586
|
|
587
587
|
# Builds the object from hash
|