pulp_ansible_client 0.3.0 → 0.4.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 +9 -9
- data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/{V2CollectionsApi.md → ApiCollectionsApi.md} +7 -7
- data/docs/{V1RolesApi.md → ApiRolesApi.md} +4 -4
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +3 -3
- data/docs/CollectionVersionResponse.md +3 -3
- data/docs/DistributionsAnsibleApi.md +6 -54
- data/docs/GalaxyCollectionResponse.md +2 -2
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.md +1 -1
- data/docs/InlineResponse20013.md +6 -8
- data/docs/InlineResponse20014.md +6 -8
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +0 -22
- data/docs/RemotesCollectionApi.md +6 -66
- data/docs/RemotesRoleApi.md +6 -66
- data/docs/RepositoriesAnsibleApi.md +6 -30
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -34
- data/docs/VersionsApi.md +120 -0
- data/lib/pulp_ansible_client/api/{v2_collections_api.rb → api_collections_api.rb} +8 -8
- data/lib/pulp_ansible_client/api/{v1_roles_api.rb → api_roles_api.rb} +4 -4
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -63
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +0 -37
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -81
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -81
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -27
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -45
- data/lib/pulp_ansible_client/api/{role_list_api.rb → versions_api.rb} +73 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_response.rb +3 -3
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +2 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +4 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20013.rb +20 -31
- data/lib/pulp_ansible_client/models/inline_response20014.rb +20 -31
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -4
- data/spec/api/{v2_collections_api_spec.rb → api_collections_api_spec.rb} +6 -6
- data/spec/api/{v1_roles_api_spec.rb → api_roles_api_spec.rb} +6 -6
- data/spec/api/distributions_ansible_api_spec.rb +0 -21
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +0 -11
- data/spec/api/remotes_collection_api_spec.rb +0 -27
- data/spec/api/remotes_role_api_spec.rb +0 -27
- data/spec/api/repositories_ansible_api_spec.rb +0 -9
- data/spec/api/repositories_ansible_versions_api_spec.rb +0 -15
- data/spec/api/{role_list_api_spec.rb → versions_api_spec.rb} +20 -6
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/inline_response20013_spec.rb +3 -9
- data/spec/models/inline_response20014_spec.rb +3 -9
- metadata +14 -18
- data/docs/GalaxyCollectionListApi.md +0 -63
- data/docs/RoleListApi.md +0 -65
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +0 -91
- data/spec/api/galaxy_collection_list_api_spec.rb +0 -49
@@ -1,91 +0,0 @@
|
|
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.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module PulpAnsibleClient
|
16
|
-
class GalaxyCollectionListApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# APIView for Collections by namespace/name.
|
23
|
-
# @param ansible_collection_version_href [String]
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
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 [InlineResponse20012]
|
29
|
-
def get(ansible_collection_version_href, opts = {})
|
30
|
-
data, _status_code, _headers = get_with_http_info(ansible_collection_version_href, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# APIView for Collections by namespace/name.
|
35
|
-
# @param ansible_collection_version_href [String]
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
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<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
|
41
|
-
def get_with_http_info(ansible_collection_version_href, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: GalaxyCollectionListApi.get ...'
|
44
|
-
end
|
45
|
-
# verify the required parameter 'ansible_collection_version_href' is set
|
46
|
-
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling GalaxyCollectionListApi.get"
|
48
|
-
end
|
49
|
-
# resource path
|
50
|
-
local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
51
|
-
|
52
|
-
# query parameters
|
53
|
-
query_params = opts[:query_params] || {}
|
54
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
55
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
56
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
57
|
-
|
58
|
-
# header parameters
|
59
|
-
header_params = opts[:header_params] || {}
|
60
|
-
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
-
|
63
|
-
# form parameters
|
64
|
-
form_params = opts[:form_params] || {}
|
65
|
-
|
66
|
-
# http body (model)
|
67
|
-
post_body = opts[:body]
|
68
|
-
|
69
|
-
# return_type
|
70
|
-
return_type = opts[:return_type] || 'InlineResponse20012'
|
71
|
-
|
72
|
-
# auth_names
|
73
|
-
auth_names = opts[:auth_names] || []
|
74
|
-
|
75
|
-
new_options = opts.merge(
|
76
|
-
:header_params => header_params,
|
77
|
-
:query_params => query_params,
|
78
|
-
:form_params => form_params,
|
79
|
-
:body => post_body,
|
80
|
-
:auth_names => auth_names,
|
81
|
-
:return_type => return_type
|
82
|
-
)
|
83
|
-
|
84
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: GalaxyCollectionListApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
@@ -1,49 +0,0 @@
|
|
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.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for PulpAnsibleClient::GalaxyCollectionListApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'GalaxyCollectionListApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpAnsibleClient::GalaxyCollectionListApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of GalaxyCollectionListApi' do
|
30
|
-
it 'should create an instance of GalaxyCollectionListApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpAnsibleClient::GalaxyCollectionListApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for get
|
36
|
-
# APIView for Collections by namespace/name.
|
37
|
-
# @param ansible_collection_version_href
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
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 [InlineResponse20012]
|
43
|
-
describe 'get test' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
end
|