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,103 @@
|
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Unpaginated ViewSet for Collections.
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param path [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Boolean] :deprecated
|
27
|
+
# @option opts [String] :name
|
28
|
+
# @option opts [String] :namespace
|
29
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
30
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
31
|
+
# @return [Array<CollectionResponse>]
|
32
|
+
def list(distro_base_path, path, opts = {})
|
33
|
+
data, _status_code, _headers = list_with_http_info(distro_base_path, path, opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
# Unpaginated ViewSet for Collections.
|
38
|
+
# @param distro_base_path [String]
|
39
|
+
# @param path [String]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [Boolean] :deprecated
|
42
|
+
# @option opts [String] :name
|
43
|
+
# @option opts [String] :namespace
|
44
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
45
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
46
|
+
# @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
|
47
|
+
def list_with_http_info(distro_base_path, path, opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list ...'
|
50
|
+
end
|
51
|
+
# verify the required parameter 'distro_base_path' is set
|
52
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list"
|
54
|
+
end
|
55
|
+
# verify the required parameter 'path' is set
|
56
|
+
if @api_client.config.client_side_validation && path.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = opts[:query_params] || {}
|
64
|
+
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
65
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
66
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
67
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
68
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
69
|
+
|
70
|
+
# header parameters
|
71
|
+
header_params = opts[:header_params] || {}
|
72
|
+
# HTTP header 'Accept' (if needed)
|
73
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
|
+
|
75
|
+
# form parameters
|
76
|
+
form_params = opts[:form_params] || {}
|
77
|
+
|
78
|
+
# http body (model)
|
79
|
+
post_body = opts[:body]
|
80
|
+
|
81
|
+
# return_type
|
82
|
+
return_type = opts[:return_type] || 'Array<CollectionResponse>'
|
83
|
+
|
84
|
+
# auth_names
|
85
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
86
|
+
|
87
|
+
new_options = opts.merge(
|
88
|
+
:header_params => header_params,
|
89
|
+
:query_params => query_params,
|
90
|
+
:form_params => form_params,
|
91
|
+
:body => post_body,
|
92
|
+
:auth_names => auth_names,
|
93
|
+
:return_type => return_type
|
94
|
+
)
|
95
|
+
|
96
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns paginated CollectionVersions list.
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param path [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
27
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
28
|
+
# @return [Array<UnpaginatedCollectionVersionResponse>]
|
29
|
+
def list(distro_base_path, path, opts = {})
|
30
|
+
data, _status_code, _headers = list_with_http_info(distro_base_path, path, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Returns paginated CollectionVersions list.
|
35
|
+
# @param distro_base_path [String]
|
36
|
+
# @param path [String]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
39
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
40
|
+
# @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
|
41
|
+
def list_with_http_info(distro_base_path, path, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list ...'
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'path' is set
|
50
|
+
if @api_client.config.client_side_validation && path.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-versions/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
59
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:return_type] || 'Array<UnpaginatedCollectionVersionResponse>'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => return_type
|
85
|
+
)
|
86
|
+
|
87
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb
ADDED
@@ -0,0 +1,94 @@
|
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# ViewSet for Repository Metadata.
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param path [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
27
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
28
|
+
# @return [RepoMetadataResponse]
|
29
|
+
def read(distro_base_path, path, opts = {})
|
30
|
+
data, _status_code, _headers = read_with_http_info(distro_base_path, path, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# ViewSet for Repository Metadata.
|
35
|
+
# @param distro_base_path [String]
|
36
|
+
# @param path [String]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
39
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
40
|
+
# @return [Array<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
|
41
|
+
def read_with_http_info(distro_base_path, path, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read ...'
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'path' is set
|
50
|
+
if @api_client.config.client_side_validation && path.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
59
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:return_type] || 'RepoMetadataResponse'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => return_type
|
85
|
+
)
|
86
|
+
|
87
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Collection download endpoint.
|
23
|
+
# @param distro_base_path [String]
|
24
|
+
# @param filename [String]
|
25
|
+
# @param path [String]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
28
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
29
|
+
# @return [nil]
|
30
|
+
def download(distro_base_path, filename, path, opts = {})
|
31
|
+
download_with_http_info(distro_base_path, filename, path, opts)
|
32
|
+
nil
|
33
|
+
end
|
34
|
+
|
35
|
+
# Collection download endpoint.
|
36
|
+
# @param distro_base_path [String]
|
37
|
+
# @param filename [String]
|
38
|
+
# @param path [String]
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
41
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
42
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
43
|
+
def download_with_http_info(distro_base_path, filename, path, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download ...'
|
46
|
+
end
|
47
|
+
# verify the required parameter 'distro_base_path' is set
|
48
|
+
if @api_client.config.client_side_validation && distro_base_path.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'filename' is set
|
52
|
+
if @api_client.config.client_side_validation && filename.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'filename' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
|
54
|
+
end
|
55
|
+
# verify the required parameter 'path' is set
|
56
|
+
if @api_client.config.client_side_validation && path.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/artifacts/{filename}'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'filename' + '}', CGI.escape(filename.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = opts[:query_params] || {}
|
64
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
65
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = opts[:header_params] || {}
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = opts[:form_params] || {}
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = opts[:body]
|
75
|
+
|
76
|
+
# return_type
|
77
|
+
return_type = opts[:return_type]
|
78
|
+
|
79
|
+
# auth_names
|
80
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
81
|
+
|
82
|
+
new_options = opts.merge(
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => return_type
|
89
|
+
)
|
90
|
+
|
91
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi#download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
end
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|