pulp_ansible_client 0.18.0 → 0.19.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 +6 -4
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionVersionSignature.md +3 -3
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionNamespaceResponse.md +1 -1
- data/docs/CollectionResponse.md +5 -3
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/CollectionVersionSignatureResponse.md +23 -0
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/DistributionsAnsibleApi.md +2 -2
- data/docs/PatchedCollection.md +17 -0
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -4
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
- data/docs/TaskResponse.md +2 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +255 -255
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +158 -158
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/models/collection_version_signature_response.rb +259 -0
- data/lib/pulp_ansible_client/models/patched_collection.rb +207 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +241 -241
- data/lib/pulp_ansible_client/models/task_response.rb +11 -1
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +2 -0
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/ansible_role_spec.rb +6 -0
- data/spec/models/collection_response_spec.rb +6 -0
- data/spec/models/collection_version_signature_response_spec.rb +59 -0
- data/spec/models/patched_collection_spec.rb +41 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/task_response_spec.rb +6 -0
- metadata +139 -131
@@ -114,7 +114,7 @@ module PulpAnsibleClient
|
|
114
114
|
# @option opts [String] :name2
|
115
115
|
# @option opts [String] :namespace2
|
116
116
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
117
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
117
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
118
118
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
119
119
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
120
120
|
# @option opts [String] :q
|
@@ -142,7 +142,7 @@ module PulpAnsibleClient
|
|
142
142
|
# @option opts [String] :name2
|
143
143
|
# @option opts [String] :namespace2
|
144
144
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
145
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
145
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
146
146
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
147
147
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
148
148
|
# @option opts [String] :q
|
@@ -174,7 +174,7 @@ module PulpAnsibleClient
|
|
174
174
|
if @api_client.config.client_side_validation && path.nil?
|
175
175
|
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
|
176
176
|
end
|
177
|
-
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version"]
|
177
|
+
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
|
178
178
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
179
179
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
180
180
|
end
|
@@ -248,21 +248,21 @@ module PulpAnsibleClient
|
|
248
248
|
# Legacy v3 endpoint.
|
249
249
|
# @param name [String]
|
250
250
|
# @param namespace [String]
|
251
|
-
# @param
|
251
|
+
# @param patched_collection [PatchedCollection]
|
252
252
|
# @param [Hash] opts the optional parameters
|
253
253
|
# @return [AsyncOperationResponse]
|
254
|
-
def update(name, namespace,
|
255
|
-
data, _status_code, _headers = update_with_http_info(name, namespace,
|
254
|
+
def update(name, namespace, patched_collection, opts = {})
|
255
|
+
data, _status_code, _headers = update_with_http_info(name, namespace, patched_collection, opts)
|
256
256
|
data
|
257
257
|
end
|
258
258
|
|
259
259
|
# Legacy v3 endpoint.
|
260
260
|
# @param name [String]
|
261
261
|
# @param namespace [String]
|
262
|
-
# @param
|
262
|
+
# @param patched_collection [PatchedCollection]
|
263
263
|
# @param [Hash] opts the optional parameters
|
264
264
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
265
|
-
def update_with_http_info(name, namespace,
|
265
|
+
def update_with_http_info(name, namespace, patched_collection, opts = {})
|
266
266
|
if @api_client.config.debugging
|
267
267
|
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3CollectionsApi.update ...'
|
268
268
|
end
|
@@ -274,9 +274,9 @@ module PulpAnsibleClient
|
|
274
274
|
if @api_client.config.client_side_validation && namespace.nil?
|
275
275
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsApi.update"
|
276
276
|
end
|
277
|
-
# verify the required parameter '
|
278
|
-
if @api_client.config.client_side_validation &&
|
279
|
-
fail ArgumentError, "Missing the required parameter '
|
277
|
+
# verify the required parameter 'patched_collection' is set
|
278
|
+
if @api_client.config.client_side_validation && patched_collection.nil?
|
279
|
+
fail ArgumentError, "Missing the required parameter 'patched_collection' when calling PulpAnsibleDefaultApiV3CollectionsApi.update"
|
280
280
|
end
|
281
281
|
# resource path
|
282
282
|
local_var_path = '/pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/'))
|
@@ -295,7 +295,7 @@ module PulpAnsibleClient
|
|
295
295
|
form_params = opts[:form_params] || {}
|
296
296
|
|
297
297
|
# http body (model)
|
298
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
298
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_collection)
|
299
299
|
|
300
300
|
# return_type
|
301
301
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
@@ -100,7 +100,7 @@ module PulpAnsibleClient
|
|
100
100
|
# @option opts [String] :name2
|
101
101
|
# @option opts [String] :namespace2
|
102
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
103
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
103
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
104
104
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
105
105
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
106
106
|
# @option opts [String] :q
|
@@ -126,7 +126,7 @@ module PulpAnsibleClient
|
|
126
126
|
# @option opts [String] :name2
|
127
127
|
# @option opts [String] :namespace2
|
128
128
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
129
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
129
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
130
130
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
131
131
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
132
132
|
# @option opts [String] :q
|
@@ -150,7 +150,7 @@ module PulpAnsibleClient
|
|
150
150
|
if @api_client.config.client_side_validation && namespace.nil?
|
151
151
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.list"
|
152
152
|
end
|
153
|
-
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version"]
|
153
|
+
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
|
154
154
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
155
155
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
156
156
|
end
|
@@ -267,11 +267,11 @@ module PulpAnsibleClient
|
|
267
267
|
# @param distro_base_path [String]
|
268
268
|
# @param name [String]
|
269
269
|
# @param namespace [String]
|
270
|
-
# @param
|
270
|
+
# @param patched_collection [PatchedCollection]
|
271
271
|
# @param [Hash] opts the optional parameters
|
272
272
|
# @return [AsyncOperationResponse]
|
273
|
-
def update(distro_base_path, name, namespace,
|
274
|
-
data, _status_code, _headers = update_with_http_info(distro_base_path, name, namespace,
|
273
|
+
def update(distro_base_path, name, namespace, patched_collection, opts = {})
|
274
|
+
data, _status_code, _headers = update_with_http_info(distro_base_path, name, namespace, patched_collection, opts)
|
275
275
|
data
|
276
276
|
end
|
277
277
|
|
@@ -279,10 +279,10 @@ module PulpAnsibleClient
|
|
279
279
|
# @param distro_base_path [String]
|
280
280
|
# @param name [String]
|
281
281
|
# @param namespace [String]
|
282
|
-
# @param
|
282
|
+
# @param patched_collection [PatchedCollection]
|
283
283
|
# @param [Hash] opts the optional parameters
|
284
284
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
285
|
-
def update_with_http_info(distro_base_path, name, namespace,
|
285
|
+
def update_with_http_info(distro_base_path, name, namespace, patched_collection, opts = {})
|
286
286
|
if @api_client.config.debugging
|
287
287
|
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.update ...'
|
288
288
|
end
|
@@ -298,9 +298,9 @@ module PulpAnsibleClient
|
|
298
298
|
if @api_client.config.client_side_validation && namespace.nil?
|
299
299
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.update"
|
300
300
|
end
|
301
|
-
# verify the required parameter '
|
302
|
-
if @api_client.config.client_side_validation &&
|
303
|
-
fail ArgumentError, "Missing the required parameter '
|
301
|
+
# verify the required parameter 'patched_collection' is set
|
302
|
+
if @api_client.config.client_side_validation && patched_collection.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'patched_collection' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.update"
|
304
304
|
end
|
305
305
|
# resource path
|
306
306
|
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/'))
|
@@ -319,7 +319,7 @@ module PulpAnsibleClient
|
|
319
319
|
form_params = opts[:form_params] || {}
|
320
320
|
|
321
321
|
# http body (model)
|
322
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
322
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_collection)
|
323
323
|
|
324
324
|
# return_type
|
325
325
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
@@ -107,7 +107,7 @@ module PulpAnsibleClient
|
|
107
107
|
# @option opts [String] :name2
|
108
108
|
# @option opts [String] :namespace2
|
109
109
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
110
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
110
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
111
111
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
112
112
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
113
113
|
# @option opts [String] :q
|
@@ -134,7 +134,7 @@ module PulpAnsibleClient
|
|
134
134
|
# @option opts [String] :name2
|
135
135
|
# @option opts [String] :namespace2
|
136
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
137
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `version` - Version * `-version` - Version (descending) * `
|
137
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `authors` - Authors * `-authors` - Authors (descending) * `contents` - Contents * `-contents` - Contents (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `description` - Description * `-description` - Description (descending) * `docs_blob` - Docs blob * `-docs_blob` - Docs blob (descending) * `manifest` - Manifest * `-manifest` - Manifest (descending) * `files` - Files * `-files` - Files (descending) * `documentation` - Documentation * `-documentation` - Documentation (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `issues` - Issues * `-issues` - Issues (descending) * `license` - License * `-license` - License (descending) * `name` - Name * `-name` - Name (descending) * `namespace` - Namespace * `-namespace` - Namespace (descending) * `repository` - Repository * `-repository` - Repository (descending) * `requires_ansible` - Requires ansible * `-requires_ansible` - Requires ansible (descending) * `version` - Version * `-version` - Version (descending) * `version_major` - Version major * `-version_major` - Version major (descending) * `version_minor` - Version minor * `-version_minor` - Version minor (descending) * `version_patch` - Version patch * `-version_patch` - Version patch (descending) * `version_prerelease` - Version prerelease * `-version_prerelease` - Version prerelease (descending) * `is_highest` - Is highest * `-is_highest` - Is highest (descending) * `search_vector` - Search vector * `-search_vector` - Search vector (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
138
138
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
139
139
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
140
140
|
# @option opts [String] :q
|
@@ -162,7 +162,7 @@ module PulpAnsibleClient
|
|
162
162
|
if @api_client.config.client_side_validation && namespace.nil?
|
163
163
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
|
164
164
|
end
|
165
|
-
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version"]
|
165
|
+
allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
|
166
166
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
167
167
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
168
168
|
end
|
@@ -15,18 +15,18 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
# Artifact file representing the physical content
|
19
|
-
attr_accessor :artifact
|
20
|
-
|
21
18
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
22
19
|
attr_accessor :upload
|
23
20
|
|
24
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
25
|
-
attr_accessor :file
|
26
|
-
|
27
21
|
# A URI of a repository the new content unit should be associated with.
|
28
22
|
attr_accessor :repository
|
29
23
|
|
24
|
+
# Artifact file representing the physical content
|
25
|
+
attr_accessor :artifact
|
26
|
+
|
27
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
28
|
+
attr_accessor :file
|
29
|
+
|
30
30
|
# The name of the collection.
|
31
31
|
attr_accessor :expected_name
|
32
32
|
|
@@ -39,10 +39,10 @@ module PulpAnsibleClient
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'artifact' => :'artifact',
|
43
42
|
:'upload' => :'upload',
|
44
|
-
:'file' => :'file',
|
45
43
|
:'repository' => :'repository',
|
44
|
+
:'artifact' => :'artifact',
|
45
|
+
:'file' => :'file',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
48
48
|
:'expected_version' => :'expected_version'
|
@@ -52,10 +52,10 @@ module PulpAnsibleClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'artifact' => :'String',
|
56
55
|
:'upload' => :'String',
|
57
|
-
:'file' => :'File',
|
58
56
|
:'repository' => :'String',
|
57
|
+
:'artifact' => :'String',
|
58
|
+
:'file' => :'File',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
61
61
|
:'expected_version' => :'String'
|
@@ -83,22 +83,22 @@ module PulpAnsibleClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'artifact')
|
87
|
-
self.artifact = attributes[:'artifact']
|
88
|
-
end
|
89
|
-
|
90
86
|
if attributes.key?(:'upload')
|
91
87
|
self.upload = attributes[:'upload']
|
92
88
|
end
|
93
89
|
|
94
|
-
if attributes.key?(:'file')
|
95
|
-
self.file = attributes[:'file']
|
96
|
-
end
|
97
|
-
|
98
90
|
if attributes.key?(:'repository')
|
99
91
|
self.repository = attributes[:'repository']
|
100
92
|
end
|
101
93
|
|
94
|
+
if attributes.key?(:'artifact')
|
95
|
+
self.artifact = attributes[:'artifact']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'file')
|
99
|
+
self.file = attributes[:'file']
|
100
|
+
end
|
101
|
+
|
102
102
|
if attributes.key?(:'expected_name')
|
103
103
|
self.expected_name = attributes[:'expected_name']
|
104
104
|
end
|
@@ -202,10 +202,10 @@ module PulpAnsibleClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
artifact == o.artifact &&
|
206
205
|
upload == o.upload &&
|
207
|
-
file == o.file &&
|
208
206
|
repository == o.repository &&
|
207
|
+
artifact == o.artifact &&
|
208
|
+
file == o.file &&
|
209
209
|
expected_name == o.expected_name &&
|
210
210
|
expected_namespace == o.expected_namespace &&
|
211
211
|
expected_version == o.expected_version
|
@@ -220,7 +220,7 @@ module PulpAnsibleClient
|
|
220
220
|
# Calculates hash code according to all attributes.
|
221
221
|
# @return [Integer] Hash code
|
222
222
|
def hash
|
223
|
-
[
|
223
|
+
[upload, repository, artifact, file, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
19
20
|
|
20
21
|
# Artifact file representing the physical content
|
21
22
|
attr_accessor :artifact
|
22
23
|
|
23
|
-
|
24
|
-
attr_accessor :pulp_created
|
24
|
+
attr_accessor :pulp_href
|
25
25
|
|
26
26
|
# The SHA-256 checksum if available.
|
27
27
|
attr_accessor :sha256
|
@@ -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_href' => :'pulp_href',
|
101
|
-
:'artifact' => :'artifact',
|
102
100
|
:'pulp_created' => :'pulp_created',
|
101
|
+
:'artifact' => :'artifact',
|
102
|
+
:'pulp_href' => :'pulp_href',
|
103
103
|
:'sha256' => :'sha256',
|
104
104
|
:'md5' => :'md5',
|
105
105
|
:'sha1' => :'sha1',
|
@@ -130,9 +130,9 @@ module PulpAnsibleClient
|
|
130
130
|
# Attribute type mapping.
|
131
131
|
def self.openapi_types
|
132
132
|
{
|
133
|
-
:'pulp_href' => :'String',
|
134
|
-
:'artifact' => :'String',
|
135
133
|
:'pulp_created' => :'DateTime',
|
134
|
+
:'artifact' => :'String',
|
135
|
+
:'pulp_href' => :'String',
|
136
136
|
:'sha256' => :'String',
|
137
137
|
:'md5' => :'String',
|
138
138
|
:'sha1' => :'String',
|
@@ -182,16 +182,16 @@ module PulpAnsibleClient
|
|
182
182
|
h[k.to_sym] = v
|
183
183
|
}
|
184
184
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
self.
|
185
|
+
if attributes.key?(:'pulp_created')
|
186
|
+
self.pulp_created = attributes[:'pulp_created']
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'artifact')
|
190
190
|
self.artifact = attributes[:'artifact']
|
191
191
|
end
|
192
192
|
|
193
|
-
if attributes.key?(:'
|
194
|
-
self.
|
193
|
+
if attributes.key?(:'pulp_href')
|
194
|
+
self.pulp_href = attributes[:'pulp_href']
|
195
195
|
end
|
196
196
|
|
197
197
|
if attributes.key?(:'sha256')
|
@@ -435,9 +435,9 @@ module PulpAnsibleClient
|
|
435
435
|
def ==(o)
|
436
436
|
return true if self.equal?(o)
|
437
437
|
self.class == o.class &&
|
438
|
-
pulp_href == o.pulp_href &&
|
439
|
-
artifact == o.artifact &&
|
440
438
|
pulp_created == o.pulp_created &&
|
439
|
+
artifact == o.artifact &&
|
440
|
+
pulp_href == o.pulp_href &&
|
441
441
|
sha256 == o.sha256 &&
|
442
442
|
md5 == o.md5 &&
|
443
443
|
sha1 == o.sha1 &&
|
@@ -473,7 +473,7 @@ module PulpAnsibleClient
|
|
473
473
|
# Calculates hash code according to all attributes.
|
474
474
|
# @return [Integer] Hash code
|
475
475
|
def hash
|
476
|
-
[
|
476
|
+
[pulp_created, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
477
477
|
end
|
478
478
|
|
479
479
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for signature models.
|
17
17
|
class AnsibleCollectionVersionSignature
|
18
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
-
attr_accessor :file
|
20
|
-
|
21
18
|
# A URI of a repository the new content unit should be associated with.
|
22
19
|
attr_accessor :repository
|
23
20
|
|
21
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
22
|
+
attr_accessor :file
|
23
|
+
|
24
24
|
# The content this signature is pointing to.
|
25
25
|
attr_accessor :signed_collection
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'file' => :'file',
|
31
30
|
:'repository' => :'repository',
|
31
|
+
:'file' => :'file',
|
32
32
|
:'signed_collection' => :'signed_collection'
|
33
33
|
}
|
34
34
|
end
|
@@ -36,8 +36,8 @@ module PulpAnsibleClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'file' => :'File',
|
40
39
|
:'repository' => :'String',
|
40
|
+
:'file' => :'File',
|
41
41
|
:'signed_collection' => :'String'
|
42
42
|
}
|
43
43
|
end
|
@@ -63,14 +63,14 @@ module PulpAnsibleClient
|
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
65
65
|
|
66
|
-
if attributes.key?(:'file')
|
67
|
-
self.file = attributes[:'file']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'repository')
|
71
67
|
self.repository = attributes[:'repository']
|
72
68
|
end
|
73
69
|
|
70
|
+
if attributes.key?(:'file')
|
71
|
+
self.file = attributes[:'file']
|
72
|
+
end
|
73
|
+
|
74
74
|
if attributes.key?(:'signed_collection')
|
75
75
|
self.signed_collection = attributes[:'signed_collection']
|
76
76
|
end
|
@@ -104,8 +104,8 @@ module PulpAnsibleClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
-
file == o.file &&
|
108
107
|
repository == o.repository &&
|
108
|
+
file == o.file &&
|
109
109
|
signed_collection == o.signed_collection
|
110
110
|
end
|
111
111
|
|
@@ -118,7 +118,7 @@ module PulpAnsibleClient
|
|
118
118
|
# Calculates hash code according to all attributes.
|
119
119
|
# @return [Integer] Hash code
|
120
120
|
def hash
|
121
|
-
[
|
121
|
+
[repository, file, signed_collection].hash
|
122
122
|
end
|
123
123
|
|
124
124
|
# Builds the object from hash
|