pulp_ansible_client 0.12.1 → 0.13.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 +52 -5
- data/docs/AnsibleAnsibleRepository.md +3 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionVersionSignature.md +21 -0
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionListResponse.md +25 -0
- data/docs/ContentCollectionSignaturesApi.md +64 -4
- data/docs/KeyringEnum.md +16 -0
- data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
- data/docs/PatchedansibleAnsibleRepository.md +3 -1
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/docs/PulpAnsibleApiV3Api.md +8 -2
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
- data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
- data/docs/PulpAnsibleDefaultApiApi.md +50 -0
- data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
- data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
- data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +27 -1
- data/spec/api/content_collection_signatures_api_spec.rb +16 -2
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
- data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_list_response_spec.rb +65 -0
- data/spec/models/keyring_enum_spec.rb +35 -0
- data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +109 -5
@@ -0,0 +1,295 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Trigger an asynchronous delete task
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param name [String]
|
25
|
+
# @param namespace [String]
|
26
|
+
# @param version [String]
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [AsyncOperationResponse]
|
29
|
+
def delete(distro_base_path, name, namespace, version, opts = {})
|
30
|
+
data, _status_code, _headers = delete_with_http_info(distro_base_path, name, namespace, version, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Trigger an asynchronous delete task
|
35
|
+
# @param distro_base_path [String]
|
36
|
+
# @param name [String]
|
37
|
+
# @param namespace [String]
|
38
|
+
# @param version [String]
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
41
|
+
def delete_with_http_info(distro_base_path, name, namespace, version, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'distro_base_path' is set
|
46
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'name' is set
|
50
|
+
if @api_client.config.client_side_validation && name.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'namespace' is set
|
54
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
|
56
|
+
end
|
57
|
+
# verify the required parameter 'version' is set
|
58
|
+
if @api_client.config.client_side_validation && version.nil?
|
59
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
|
60
|
+
end
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/'.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', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = opts[:query_params] || {}
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = opts[:header_params] || {}
|
69
|
+
# HTTP header 'Accept' (if needed)
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = opts[:form_params] || {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = opts[:body]
|
77
|
+
|
78
|
+
# return_type
|
79
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
80
|
+
|
81
|
+
# auth_names
|
82
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
83
|
+
|
84
|
+
new_options = opts.merge(
|
85
|
+
:header_params => header_params,
|
86
|
+
:query_params => query_params,
|
87
|
+
:form_params => form_params,
|
88
|
+
:body => post_body,
|
89
|
+
:auth_names => auth_names,
|
90
|
+
:return_type => return_type
|
91
|
+
)
|
92
|
+
|
93
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
96
|
+
end
|
97
|
+
return data, status_code, headers
|
98
|
+
end
|
99
|
+
|
100
|
+
# Returns paginated CollectionVersions list.
|
101
|
+
# @param distro_base_path [String]
|
102
|
+
# @param name [String]
|
103
|
+
# @param namespace [String]
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [Boolean] :is_highest
|
106
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
107
|
+
# @option opts [String] :name2
|
108
|
+
# @option opts [String] :namespace2
|
109
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
110
|
+
# @option opts [String] :q
|
111
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
112
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
113
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
114
|
+
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
115
|
+
# @option opts [String] :version Filter results where version matches value
|
116
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
117
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
118
|
+
# @return [PaginatedCollectionVersionListResponseList]
|
119
|
+
def list(distro_base_path, name, namespace, opts = {})
|
120
|
+
data, _status_code, _headers = list_with_http_info(distro_base_path, name, namespace, opts)
|
121
|
+
data
|
122
|
+
end
|
123
|
+
|
124
|
+
# Returns paginated CollectionVersions list.
|
125
|
+
# @param distro_base_path [String]
|
126
|
+
# @param name [String]
|
127
|
+
# @param namespace [String]
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [Boolean] :is_highest
|
130
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
131
|
+
# @option opts [String] :name2
|
132
|
+
# @option opts [String] :namespace2
|
133
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
134
|
+
# @option opts [String] :q
|
135
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
136
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
137
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
138
|
+
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
139
|
+
# @option opts [String] :version Filter results where version matches value
|
140
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
141
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
142
|
+
# @return [Array<(PaginatedCollectionVersionListResponseList, Integer, Hash)>] PaginatedCollectionVersionListResponseList data, response status code and response headers
|
143
|
+
def list_with_http_info(distro_base_path, name, namespace, opts = {})
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list ...'
|
146
|
+
end
|
147
|
+
# verify the required parameter 'distro_base_path' is set
|
148
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
|
150
|
+
end
|
151
|
+
# verify the required parameter 'name' is set
|
152
|
+
if @api_client.config.client_side_validation && name.nil?
|
153
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
|
154
|
+
end
|
155
|
+
# verify the required parameter 'namespace' is set
|
156
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
157
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
|
158
|
+
end
|
159
|
+
# resource path
|
160
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/'.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', '/'))
|
161
|
+
|
162
|
+
# query parameters
|
163
|
+
query_params = opts[:query_params] || {}
|
164
|
+
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
165
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
166
|
+
query_params[:'name'] = opts[:'name2'] if !opts[:'name2'].nil?
|
167
|
+
query_params[:'namespace'] = opts[:'namespace2'] if !opts[:'namespace2'].nil?
|
168
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
169
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
170
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
171
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
172
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
173
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
174
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
175
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
176
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = opts[:header_params] || {}
|
180
|
+
# HTTP header 'Accept' (if needed)
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
182
|
+
|
183
|
+
# form parameters
|
184
|
+
form_params = opts[:form_params] || {}
|
185
|
+
|
186
|
+
# http body (model)
|
187
|
+
post_body = opts[:body]
|
188
|
+
|
189
|
+
# return_type
|
190
|
+
return_type = opts[:return_type] || 'PaginatedCollectionVersionListResponseList'
|
191
|
+
|
192
|
+
# auth_names
|
193
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
194
|
+
|
195
|
+
new_options = opts.merge(
|
196
|
+
:header_params => header_params,
|
197
|
+
:query_params => query_params,
|
198
|
+
:form_params => form_params,
|
199
|
+
:body => post_body,
|
200
|
+
:auth_names => auth_names,
|
201
|
+
:return_type => return_type
|
202
|
+
)
|
203
|
+
|
204
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
207
|
+
end
|
208
|
+
return data, status_code, headers
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns a CollectionVersion object.
|
212
|
+
# @param distro_base_path [String]
|
213
|
+
# @param name [String]
|
214
|
+
# @param namespace [String]
|
215
|
+
# @param version [String]
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
218
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
219
|
+
# @return [CollectionVersionResponse]
|
220
|
+
def read(distro_base_path, name, namespace, version, opts = {})
|
221
|
+
data, _status_code, _headers = read_with_http_info(distro_base_path, name, namespace, version, opts)
|
222
|
+
data
|
223
|
+
end
|
224
|
+
|
225
|
+
# Returns a CollectionVersion object.
|
226
|
+
# @param distro_base_path [String]
|
227
|
+
# @param name [String]
|
228
|
+
# @param namespace [String]
|
229
|
+
# @param version [String]
|
230
|
+
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
232
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
233
|
+
# @return [Array<(CollectionVersionResponse, Integer, Hash)>] CollectionVersionResponse data, response status code and response headers
|
234
|
+
def read_with_http_info(distro_base_path, name, namespace, version, opts = {})
|
235
|
+
if @api_client.config.debugging
|
236
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read ...'
|
237
|
+
end
|
238
|
+
# verify the required parameter 'distro_base_path' is set
|
239
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
240
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
|
241
|
+
end
|
242
|
+
# verify the required parameter 'name' is set
|
243
|
+
if @api_client.config.client_side_validation && name.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
|
245
|
+
end
|
246
|
+
# verify the required parameter 'namespace' is set
|
247
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
|
249
|
+
end
|
250
|
+
# verify the required parameter 'version' is set
|
251
|
+
if @api_client.config.client_side_validation && version.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
|
253
|
+
end
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/'.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', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
|
256
|
+
|
257
|
+
# query parameters
|
258
|
+
query_params = opts[:query_params] || {}
|
259
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
260
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
261
|
+
|
262
|
+
# header parameters
|
263
|
+
header_params = opts[:header_params] || {}
|
264
|
+
# HTTP header 'Accept' (if needed)
|
265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
266
|
+
|
267
|
+
# form parameters
|
268
|
+
form_params = opts[:form_params] || {}
|
269
|
+
|
270
|
+
# http body (model)
|
271
|
+
post_body = opts[:body]
|
272
|
+
|
273
|
+
# return_type
|
274
|
+
return_type = opts[:return_type] || 'CollectionVersionResponse'
|
275
|
+
|
276
|
+
# auth_names
|
277
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
278
|
+
|
279
|
+
new_options = opts.merge(
|
280
|
+
:header_params => header_params,
|
281
|
+
:query_params => query_params,
|
282
|
+
:form_params => form_params,
|
283
|
+
:body => post_body,
|
284
|
+
:auth_names => auth_names,
|
285
|
+
:return_type => return_type
|
286
|
+
)
|
287
|
+
|
288
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
291
|
+
end
|
292
|
+
return data, status_code, headers
|
293
|
+
end
|
294
|
+
end
|
295
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns a CollectionVersion object.
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param name [String]
|
25
|
+
# @param namespace [String]
|
26
|
+
# @param version [String]
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
29
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
30
|
+
# @return [CollectionVersionDocsResponse]
|
31
|
+
def read(distro_base_path, name, namespace, version, opts = {})
|
32
|
+
data, _status_code, _headers = read_with_http_info(distro_base_path, name, namespace, version, opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns a CollectionVersion object.
|
37
|
+
# @param distro_base_path [String]
|
38
|
+
# @param name [String]
|
39
|
+
# @param namespace [String]
|
40
|
+
# @param version [String]
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
43
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
44
|
+
# @return [Array<(CollectionVersionDocsResponse, Integer, Hash)>] CollectionVersionDocsResponse data, response status code and response headers
|
45
|
+
def read_with_http_info(distro_base_path, name, namespace, version, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.read ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'distro_base_path' is set
|
50
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.read"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'name' is set
|
54
|
+
if @api_client.config.client_side_validation && name.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.read"
|
56
|
+
end
|
57
|
+
# verify the required parameter 'namespace' is set
|
58
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
59
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.read"
|
60
|
+
end
|
61
|
+
# verify the required parameter 'version' is set
|
62
|
+
if @api_client.config.client_side_validation && version.nil?
|
63
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.read"
|
64
|
+
end
|
65
|
+
# resource path
|
66
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/'.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', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
|
67
|
+
|
68
|
+
# query parameters
|
69
|
+
query_params = opts[:query_params] || {}
|
70
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
71
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = opts[:header_params] || {}
|
75
|
+
# HTTP header 'Accept' (if needed)
|
76
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = opts[:form_params] || {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = opts[:body]
|
83
|
+
|
84
|
+
# return_type
|
85
|
+
return_type = opts[:return_type] || 'CollectionVersionDocsResponse'
|
86
|
+
|
87
|
+
# auth_names
|
88
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
89
|
+
|
90
|
+
new_options = opts.merge(
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => return_type
|
97
|
+
)
|
98
|
+
|
99
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
102
|
+
end
|
103
|
+
return data, status_code, headers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -32,6 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Last synced metadata time.
|
33
33
|
attr_accessor :last_synced_metadata_time
|
34
34
|
|
35
|
+
# Location of keyring used to verify signatures uploaded to this repository
|
36
|
+
attr_accessor :keyring
|
37
|
+
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
39
|
def self.attribute_map
|
37
40
|
{
|
@@ -40,7 +43,8 @@ module PulpAnsibleClient
|
|
40
43
|
:'description' => :'description',
|
41
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
42
45
|
:'remote' => :'remote',
|
43
|
-
:'last_synced_metadata_time' => :'last_synced_metadata_time'
|
46
|
+
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
47
|
+
:'keyring' => :'keyring'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -52,7 +56,8 @@ module PulpAnsibleClient
|
|
52
56
|
:'description' => :'String',
|
53
57
|
:'retain_repo_versions' => :'Integer',
|
54
58
|
:'remote' => :'String',
|
55
|
-
:'last_synced_metadata_time' => :'DateTime'
|
59
|
+
:'last_synced_metadata_time' => :'DateTime',
|
60
|
+
:'keyring' => :'KeyringEnum'
|
56
61
|
}
|
57
62
|
end
|
58
63
|
|
@@ -62,7 +67,7 @@ module PulpAnsibleClient
|
|
62
67
|
:'description',
|
63
68
|
:'retain_repo_versions',
|
64
69
|
:'remote',
|
65
|
-
:'last_synced_metadata_time'
|
70
|
+
:'last_synced_metadata_time',
|
66
71
|
])
|
67
72
|
end
|
68
73
|
|
@@ -104,6 +109,10 @@ module PulpAnsibleClient
|
|
104
109
|
if attributes.key?(:'last_synced_metadata_time')
|
105
110
|
self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
|
106
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'keyring')
|
114
|
+
self.keyring = attributes[:'keyring']
|
115
|
+
end
|
107
116
|
end
|
108
117
|
|
109
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -183,7 +192,8 @@ module PulpAnsibleClient
|
|
183
192
|
description == o.description &&
|
184
193
|
retain_repo_versions == o.retain_repo_versions &&
|
185
194
|
remote == o.remote &&
|
186
|
-
last_synced_metadata_time == o.last_synced_metadata_time
|
195
|
+
last_synced_metadata_time == o.last_synced_metadata_time &&
|
196
|
+
keyring == o.keyring
|
187
197
|
end
|
188
198
|
|
189
199
|
# @see the `==` method
|
@@ -195,7 +205,7 @@ module PulpAnsibleClient
|
|
195
205
|
# Calculates hash code according to all attributes.
|
196
206
|
# @return [Integer] Hash code
|
197
207
|
def hash
|
198
|
-
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time].hash
|
208
|
+
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, keyring].hash
|
199
209
|
end
|
200
210
|
|
201
211
|
# Builds the object from hash
|
@@ -41,6 +41,9 @@ module PulpAnsibleClient
|
|
41
41
|
# Last synced metadata time.
|
42
42
|
attr_accessor :last_synced_metadata_time
|
43
43
|
|
44
|
+
# Location of keyring used to verify signatures uploaded to this repository
|
45
|
+
attr_accessor :keyring
|
46
|
+
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
48
|
def self.attribute_map
|
46
49
|
{
|
@@ -53,7 +56,8 @@ module PulpAnsibleClient
|
|
53
56
|
:'description' => :'description',
|
54
57
|
:'retain_repo_versions' => :'retain_repo_versions',
|
55
58
|
:'remote' => :'remote',
|
56
|
-
:'last_synced_metadata_time' => :'last_synced_metadata_time'
|
59
|
+
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
60
|
+
:'keyring' => :'keyring'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -69,7 +73,8 @@ module PulpAnsibleClient
|
|
69
73
|
:'description' => :'String',
|
70
74
|
:'retain_repo_versions' => :'Integer',
|
71
75
|
:'remote' => :'String',
|
72
|
-
:'last_synced_metadata_time' => :'DateTime'
|
76
|
+
:'last_synced_metadata_time' => :'DateTime',
|
77
|
+
:'keyring' => :'KeyringEnum'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -79,7 +84,7 @@ module PulpAnsibleClient
|
|
79
84
|
:'description',
|
80
85
|
:'retain_repo_versions',
|
81
86
|
:'remote',
|
82
|
-
:'last_synced_metadata_time'
|
87
|
+
:'last_synced_metadata_time',
|
83
88
|
])
|
84
89
|
end
|
85
90
|
|
@@ -137,6 +142,10 @@ module PulpAnsibleClient
|
|
137
142
|
if attributes.key?(:'last_synced_metadata_time')
|
138
143
|
self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
|
139
144
|
end
|
145
|
+
|
146
|
+
if attributes.key?(:'keyring')
|
147
|
+
self.keyring = attributes[:'keyring']
|
148
|
+
end
|
140
149
|
end
|
141
150
|
|
142
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -186,7 +195,8 @@ module PulpAnsibleClient
|
|
186
195
|
description == o.description &&
|
187
196
|
retain_repo_versions == o.retain_repo_versions &&
|
188
197
|
remote == o.remote &&
|
189
|
-
last_synced_metadata_time == o.last_synced_metadata_time
|
198
|
+
last_synced_metadata_time == o.last_synced_metadata_time &&
|
199
|
+
keyring == o.keyring
|
190
200
|
end
|
191
201
|
|
192
202
|
# @see the `==` method
|
@@ -198,7 +208,7 @@ module PulpAnsibleClient
|
|
198
208
|
# Calculates hash code according to all attributes.
|
199
209
|
# @return [Integer] Hash code
|
200
210
|
def hash
|
201
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time].hash
|
211
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, keyring].hash
|
202
212
|
end
|
203
213
|
|
204
214
|
# 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
|
+
# Artifact file representing the physical content
|
19
|
+
attr_accessor :artifact
|
19
20
|
|
20
21
|
# Timestamp of creation.
|
21
22
|
attr_accessor :pulp_created
|
22
23
|
|
23
|
-
|
24
|
-
attr_accessor :artifact
|
24
|
+
attr_accessor :pulp_href
|
25
25
|
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
@@ -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
|
-
:'pulp_created' => :'pulp_created',
|
102
100
|
:'artifact' => :'artifact',
|
101
|
+
:'pulp_created' => :'pulp_created',
|
102
|
+
:'pulp_href' => :'pulp_href',
|
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_href' => :'String',
|
134
|
-
:'pulp_created' => :'DateTime',
|
135
133
|
:'artifact' => :'String',
|
134
|
+
:'pulp_created' => :'DateTime',
|
135
|
+
:'pulp_href' => :'String',
|
136
136
|
:'md5' => :'String',
|
137
137
|
:'sha1' => :'String',
|
138
138
|
:'sha224' => :'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?(:'artifact')
|
186
|
+
self.artifact = attributes[:'artifact']
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'pulp_created')
|
190
190
|
self.pulp_created = attributes[:'pulp_created']
|
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?(:'md5')
|
@@ -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_href == o.pulp_href &&
|
547
|
-
pulp_created == o.pulp_created &&
|
548
546
|
artifact == o.artifact &&
|
547
|
+
pulp_created == o.pulp_created &&
|
548
|
+
pulp_href == o.pulp_href &&
|
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
|
-
[
|
584
|
+
[artifact, pulp_created, pulp_href, 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
|