pulp_ansible_client 0.2.0b15 → 0.2.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 +88 -61
- data/docs/AnsibleAnsibleDistribution.md +2 -8
- data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
- data/docs/AnsibleAnsibleRepository.md +4 -10
- data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
- data/docs/AnsibleCollectionRemote.md +4 -10
- data/docs/AnsibleCollectionRemoteResponse.md +49 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -25
- data/docs/AnsibleCollectionVersionResponse.md +67 -0
- data/docs/AnsibleCollectionsApi.md +47 -47
- data/docs/AnsibleRole.md +1 -5
- data/docs/AnsibleRoleRemote.md +37 -0
- data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
- data/docs/AnsibleRoleResponse.md +27 -0
- data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
- data/docs/CertificationEnum.md +16 -0
- data/docs/Collection.md +2 -12
- data/docs/CollectionImportApi.md +70 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
- data/docs/CollectionMetadata.md +1 -19
- data/docs/CollectionMetadataResponse.md +35 -0
- data/docs/CollectionNamespaceResponse.md +17 -0
- data/docs/CollectionOneShot.md +25 -0
- data/docs/CollectionRef.md +1 -3
- data/docs/CollectionRefResponse.md +21 -0
- data/docs/CollectionResponse.md +31 -0
- data/docs/CollectionVersion.md +3 -19
- data/docs/CollectionVersionResponse.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +42 -42
- data/docs/ContentRolesApi.md +32 -32
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsAnsibleApi.md +108 -60
- data/docs/GalaxyCollection.md +1 -5
- data/docs/GalaxyCollectionListApi.md +65 -0
- data/docs/GalaxyCollectionResponse.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
- data/docs/GalaxyDetailApi.md +61 -0
- data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +3 -3
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/PatchedansibleAnsibleDistribution.md +25 -0
- data/docs/PatchedansibleAnsibleRepository.md +21 -0
- data/docs/PatchedansibleCollectionRemote.md +43 -0
- data/docs/PatchedansibleRoleRemote.md +37 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PulpAnsibleApiApi.md +6 -12
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
- data/docs/PulpAnsibleTagsApi.md +4 -4
- data/docs/RemotesCollectionApi.md +127 -67
- data/docs/RemotesRoleApi.md +428 -0
- data/docs/RepositoriesAnsibleApi.md +100 -76
- data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
- data/docs/{Tag.md → TagResponse.md} +2 -2
- data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
- data/docs/V2CollectionsApi.md +112 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
- data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
- data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
- data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
- data/lib/pulp_ansible_client/api_client.rb +2 -2
- data/lib/pulp_ansible_client/api_error.rb +2 -2
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
- data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
- data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
- data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
- data/lib/pulp_ansible_client/models/collection.rb +7 -81
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
- data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
- data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
- data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
- data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
- data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
- data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
- data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
- data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
- data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
- data/lib/pulp_ansible_client/version.rb +3 -3
- data/lib/pulp_ansible_client.rb +41 -13
- data/pulp_ansible_client.gemspec +4 -4
- data/spec/api/ansible_collections_api_spec.rb +21 -21
- data/spec/api/collection_import_api_spec.rb +50 -0
- data/spec/api/content_collection_versions_api_spec.rb +18 -18
- data/spec/api/content_roles_api_spec.rb +13 -13
- data/spec/api/distributions_ansible_api_spec.rb +39 -18
- data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
- data/spec/api/galaxy_detail_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
- data/spec/api/remotes_collection_api_spec.rb +49 -22
- data/spec/api/remotes_role_api_spec.rb +150 -0
- data/spec/api/repositories_ansible_api_spec.rb +31 -22
- data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
- data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
- data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
- data/spec/api/v2_collections_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
- data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
- data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_spec.rb +5 -23
- data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
- data/spec/models/ansible_collection_remote_spec.rb +2 -24
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
- data/spec/models/ansible_collection_version_response_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -62
- data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
- data/spec/models/ansible_role_remote_spec.rb +101 -0
- data/spec/models/ansible_role_response_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -14
- data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/certification_enum_spec.rb +35 -0
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
- data/spec/models/collection_metadata_response_spec.rb +95 -0
- data/spec/models/collection_metadata_spec.rb +2 -56
- data/spec/models/collection_namespace_response_spec.rb +41 -0
- data/spec/models/collection_namespace_spec.rb +2 -2
- data/spec/models/collection_one_shot_spec.rb +65 -0
- data/spec/models/collection_ref_response_spec.rb +53 -0
- data/spec/models/collection_ref_spec.rb +2 -8
- data/spec/models/collection_response_spec.rb +83 -0
- data/spec/models/collection_spec.rb +2 -32
- data/spec/models/collection_version_response_spec.rb +101 -0
- data/spec/models/collection_version_spec.rb +2 -54
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/galaxy_collection_response_spec.rb +59 -0
- data/spec/models/galaxy_collection_spec.rb +2 -14
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +2 -2
- data/spec/models/inline_response20011_spec.rb +2 -2
- data/spec/models/inline_response20012_spec.rb +2 -2
- data/spec/models/inline_response20013_spec.rb +2 -2
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
- data/spec/models/patchedansible_role_remote_spec.rb +101 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +192 -80
- data/docs/RemotesAnsibleApi.md +0 -368
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
- data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -19,66 +19,66 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
22
|
+
# Upload a collection
|
23
|
+
# Create an artifact and trigger an asynchronous task to create Collection content from it.
|
24
|
+
# @param file [File] The Collection tarball.
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :
|
26
|
-
# @option opts [String] :namespace
|
27
|
-
# @option opts [String] :name
|
28
|
-
# @option opts [
|
29
|
-
# @
|
30
|
-
|
31
|
-
|
32
|
-
# @return [InlineResponse200]
|
33
|
-
def list(opts = {})
|
34
|
-
data, _status_code, _headers = list_with_http_info(opts)
|
26
|
+
# @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
|
27
|
+
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
28
|
+
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
29
|
+
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
30
|
+
# @return [AsyncOperationResponse]
|
31
|
+
def create(file, opts = {})
|
32
|
+
data, _status_code, _headers = create_with_http_info(file, opts)
|
35
33
|
data
|
36
34
|
end
|
37
35
|
|
38
|
-
#
|
39
|
-
#
|
36
|
+
# Upload a collection
|
37
|
+
# Create an artifact and trigger an asynchronous task to create Collection content from it.
|
38
|
+
# @param file [File] The Collection tarball.
|
40
39
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :
|
42
|
-
# @option opts [String] :namespace
|
43
|
-
# @option opts [String] :name
|
44
|
-
# @option opts [
|
45
|
-
# @
|
46
|
-
|
47
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
48
|
-
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
49
|
-
def list_with_http_info(opts = {})
|
40
|
+
# @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
|
41
|
+
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
42
|
+
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
43
|
+
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
44
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
|
+
def create_with_http_info(file, opts = {})
|
50
46
|
if @api_client.config.debugging
|
51
|
-
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.
|
47
|
+
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.create ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'file' is set
|
50
|
+
if @api_client.config.client_side_validation && file.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.create"
|
52
52
|
end
|
53
53
|
# resource path
|
54
|
-
local_var_path = '/
|
54
|
+
local_var_path = '/ansible/collections/'
|
55
55
|
|
56
56
|
# query parameters
|
57
57
|
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
59
|
-
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
60
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
61
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
62
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
63
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
64
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
65
58
|
|
66
59
|
# header parameters
|
67
60
|
header_params = opts[:header_params] || {}
|
68
61
|
# HTTP header 'Accept' (if needed)
|
69
62
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
63
|
+
# HTTP header 'Content-Type'
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
70
65
|
|
71
66
|
# form parameters
|
72
67
|
form_params = opts[:form_params] || {}
|
68
|
+
form_params['file'] = file
|
69
|
+
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
70
|
+
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
71
|
+
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
72
|
+
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
73
73
|
|
74
74
|
# http body (model)
|
75
75
|
post_body = opts[:body]
|
76
76
|
|
77
77
|
# return_type
|
78
|
-
return_type = opts[:return_type] || '
|
78
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
79
79
|
|
80
80
|
# auth_names
|
81
|
-
auth_names = opts[:auth_names] || ['
|
81
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
82
82
|
|
83
83
|
new_options = opts.merge(
|
84
84
|
:header_params => header_params,
|
@@ -89,89 +89,73 @@ module PulpAnsibleClient
|
|
89
89
|
:return_type => return_type
|
90
90
|
)
|
91
91
|
|
92
|
-
data, status_code, headers = @api_client.call_api(:
|
92
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
93
93
|
if @api_client.config.debugging
|
94
|
-
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#
|
94
|
+
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
95
|
end
|
96
96
|
return data, status_code, headers
|
97
97
|
end
|
98
98
|
|
99
|
-
#
|
100
|
-
#
|
101
|
-
# @param file [File] The Collection tarball.
|
99
|
+
# List collections
|
100
|
+
# Viewset for Ansible Collections.
|
102
101
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [String] :
|
105
|
-
# @option opts [String] :
|
106
|
-
# @option opts [
|
107
|
-
# @
|
108
|
-
|
109
|
-
|
102
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
103
|
+
# @option opts [String] :name name
|
104
|
+
# @option opts [String] :namespace namespace
|
105
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
106
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
107
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
108
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
109
|
+
# @return [InlineResponse200]
|
110
|
+
def list(opts = {})
|
111
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
110
112
|
data
|
111
113
|
end
|
112
114
|
|
113
|
-
#
|
114
|
-
#
|
115
|
-
# @param file [File] The Collection tarball.
|
115
|
+
# List collections
|
116
|
+
# Viewset for Ansible Collections.
|
116
117
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [
|
118
|
-
# @option opts [String] :
|
119
|
-
# @option opts [String] :
|
120
|
-
# @option opts [
|
121
|
-
# @
|
122
|
-
|
118
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
119
|
+
# @option opts [String] :name name
|
120
|
+
# @option opts [String] :namespace namespace
|
121
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
122
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
123
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
124
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
125
|
+
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
126
|
+
def list_with_http_info(opts = {})
|
123
127
|
if @api_client.config.debugging
|
124
|
-
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.
|
125
|
-
end
|
126
|
-
# verify the required parameter 'file' is set
|
127
|
-
if @api_client.config.client_side_validation && file.nil?
|
128
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.upload_collection"
|
129
|
-
end
|
130
|
-
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
131
|
-
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
132
|
-
end
|
133
|
-
|
134
|
-
if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
|
135
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
136
|
-
end
|
137
|
-
|
138
|
-
if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
|
139
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
140
|
-
end
|
141
|
-
|
142
|
-
if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
|
143
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
128
|
+
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.list ...'
|
144
129
|
end
|
145
|
-
|
146
130
|
# resource path
|
147
|
-
local_var_path = '/ansible/collections/'
|
131
|
+
local_var_path = '/pulp/api/v3/ansible/collections/'
|
148
132
|
|
149
133
|
# query parameters
|
150
134
|
query_params = opts[:query_params] || {}
|
135
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
136
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
137
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
138
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
139
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
140
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
141
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
151
142
|
|
152
143
|
# header parameters
|
153
144
|
header_params = opts[:header_params] || {}
|
154
145
|
# HTTP header 'Accept' (if needed)
|
155
146
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
156
|
-
# HTTP header 'Content-Type'
|
157
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
158
147
|
|
159
148
|
# form parameters
|
160
149
|
form_params = opts[:form_params] || {}
|
161
|
-
form_params['file'] = file
|
162
|
-
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
163
|
-
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
164
|
-
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
165
|
-
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
166
150
|
|
167
151
|
# http body (model)
|
168
152
|
post_body = opts[:body]
|
169
153
|
|
170
154
|
# return_type
|
171
|
-
return_type = opts[:return_type] || '
|
155
|
+
return_type = opts[:return_type] || 'InlineResponse200'
|
172
156
|
|
173
157
|
# auth_names
|
174
|
-
auth_names = opts[:auth_names] || ['
|
158
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
175
159
|
|
176
160
|
new_options = opts.merge(
|
177
161
|
:header_params => header_params,
|
@@ -182,9 +166,9 @@ module PulpAnsibleClient
|
|
182
166
|
:return_type => return_type
|
183
167
|
)
|
184
168
|
|
185
|
-
data, status_code, headers = @api_client.call_api(:
|
169
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
186
170
|
if @api_client.config.debugging
|
187
|
-
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#
|
171
|
+
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
172
|
end
|
189
173
|
return data, status_code, headers
|
190
174
|
end
|
@@ -0,0 +1,93 @@
|
|
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 CollectionImportApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Inspect a collection import
|
23
|
+
# Returns a CollectionImport object.
|
24
|
+
# @param ansible_collection_import_href [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :since Filter messages since a given timestamp
|
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 [CollectionImportDetailResponse]
|
30
|
+
def read(ansible_collection_import_href, opts = {})
|
31
|
+
data, _status_code, _headers = read_with_http_info(ansible_collection_import_href, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Inspect a collection import
|
36
|
+
# Returns a CollectionImport object.
|
37
|
+
# @param ansible_collection_import_href [String]
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :since Filter messages since a given timestamp
|
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<(CollectionImportDetailResponse, Integer, Hash)>] CollectionImportDetailResponse data, response status code and response headers
|
43
|
+
def read_with_http_info(ansible_collection_import_href, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: CollectionImportApi.read ...'
|
46
|
+
end
|
47
|
+
# verify the required parameter 'ansible_collection_import_href' is set
|
48
|
+
if @api_client.config.client_side_validation && ansible_collection_import_href.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_import_href' when calling CollectionImportApi.read"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{ansible_collection_import_href}'.sub('{' + 'ansible_collection_import_href' + '}', CGI.escape(ansible_collection_import_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
57
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
58
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = opts[:header_params] || {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = opts[:form_params] || {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = opts[:body]
|
70
|
+
|
71
|
+
# return_type
|
72
|
+
return_type = opts[:return_type] || 'CollectionImportDetailResponse'
|
73
|
+
|
74
|
+
# auth_names
|
75
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
76
|
+
|
77
|
+
new_options = opts.merge(
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => return_type
|
84
|
+
)
|
85
|
+
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: CollectionImportApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -21,26 +21,26 @@ module PulpAnsibleClient
|
|
21
21
|
end
|
22
22
|
# Create a collection version
|
23
23
|
# ViewSet for Ansible Collection.
|
24
|
-
# @param
|
24
|
+
# @param ansible_collection_version [AnsibleCollectionVersion]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [AnsibleCollectionVersionResponse]
|
27
|
+
def create(ansible_collection_version, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(ansible_collection_version, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create a collection version
|
33
33
|
# ViewSet for Ansible Collection.
|
34
|
-
# @param
|
34
|
+
# @param ansible_collection_version [AnsibleCollectionVersion]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(ansible_collection_version, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.create ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'ansible_collection_version' is set
|
42
|
+
if @api_client.config.client_side_validation && ansible_collection_version.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version' when calling ContentCollectionVersionsApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
@@ -53,19 +53,19 @@ module PulpAnsibleClient
|
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
60
|
|
61
61
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection_version)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AnsibleCollectionVersionResponse'
|
66
66
|
|
67
67
|
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
69
|
|
70
70
|
new_options = opts.merge(
|
71
71
|
:header_params => header_params,
|
@@ -86,20 +86,20 @@ module PulpAnsibleClient
|
|
86
86
|
# List collection versions
|
87
87
|
# ViewSet for Ansible Collection.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [String] :
|
90
|
-
# @option opts [String] :
|
91
|
-
# @option opts [String] :
|
92
|
-
# @option opts [String] :version Filter results where version matches value
|
93
|
-
# @option opts [String] :q
|
94
|
-
# @option opts [String] :is_highest
|
95
|
-
# @option opts [String] :certification
|
96
|
-
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
97
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
-
# @option opts [String] :deprecated
|
89
|
+
# @option opts [String] :certification certification
|
90
|
+
# @option opts [String] :deprecated deprecated
|
91
|
+
# @option opts [String] :is_highest is_highest
|
101
92
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
|
+
# @option opts [String] :name name
|
94
|
+
# @option opts [String] :namespace namespace
|
102
95
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
97
|
+
# @option opts [String] :q q
|
98
|
+
# @option opts [String] :repository_version repository_version
|
99
|
+
# @option opts [String] :repository_version_added repository_version_added
|
100
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
101
|
+
# @option opts [String] :tags tags
|
102
|
+
# @option opts [String] :version version
|
103
103
|
# @option opts [String] :fields A list of fields to include in the response.
|
104
104
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
105
105
|
# @return [InlineResponse2001]
|
@@ -111,20 +111,20 @@ module PulpAnsibleClient
|
|
111
111
|
# List collection versions
|
112
112
|
# ViewSet for Ansible Collection.
|
113
113
|
# @param [Hash] opts the optional parameters
|
114
|
-
# @option opts [String] :
|
115
|
-
# @option opts [String] :
|
116
|
-
# @option opts [String] :
|
117
|
-
# @option opts [String] :version Filter results where version matches value
|
118
|
-
# @option opts [String] :q
|
119
|
-
# @option opts [String] :is_highest
|
120
|
-
# @option opts [String] :certification
|
121
|
-
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
122
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
123
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
124
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
125
|
-
# @option opts [String] :deprecated
|
114
|
+
# @option opts [String] :certification certification
|
115
|
+
# @option opts [String] :deprecated deprecated
|
116
|
+
# @option opts [String] :is_highest is_highest
|
126
117
|
# @option opts [Integer] :limit Number of results to return per page.
|
118
|
+
# @option opts [String] :name name
|
119
|
+
# @option opts [String] :namespace namespace
|
127
120
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
121
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
122
|
+
# @option opts [String] :q q
|
123
|
+
# @option opts [String] :repository_version repository_version
|
124
|
+
# @option opts [String] :repository_version_added repository_version_added
|
125
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
126
|
+
# @option opts [String] :tags tags
|
127
|
+
# @option opts [String] :version version
|
128
128
|
# @option opts [String] :fields A list of fields to include in the response.
|
129
129
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
130
130
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
@@ -132,25 +132,29 @@ module PulpAnsibleClient
|
|
132
132
|
if @api_client.config.debugging
|
133
133
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
|
134
134
|
end
|
135
|
+
allowable_values = ["certified", "not_certified", "needs_review"]
|
136
|
+
if @api_client.config.client_side_validation && opts[:'certification'] && !allowable_values.include?(opts[:'certification'])
|
137
|
+
fail ArgumentError, "invalid value for \"certification\", must be one of #{allowable_values}"
|
138
|
+
end
|
135
139
|
# resource path
|
136
140
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
137
141
|
|
138
142
|
# query parameters
|
139
143
|
query_params = opts[:query_params] || {}
|
140
|
-
query_params[:'
|
141
|
-
query_params[:'
|
144
|
+
query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
|
145
|
+
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
146
|
+
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
147
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
142
148
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
143
|
-
query_params[:'
|
149
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
150
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
151
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
144
152
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
145
|
-
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
146
|
-
query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
|
147
|
-
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
148
153
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
149
154
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
150
155
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
151
|
-
query_params[:'
|
152
|
-
query_params[:'
|
153
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
156
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
157
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
154
158
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
155
159
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
156
160
|
|
@@ -169,7 +173,7 @@ module PulpAnsibleClient
|
|
169
173
|
return_type = opts[:return_type] || 'InlineResponse2001'
|
170
174
|
|
171
175
|
# auth_names
|
172
|
-
auth_names = opts[:auth_names] || ['
|
176
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
173
177
|
|
174
178
|
new_options = opts.merge(
|
175
179
|
:header_params => header_params,
|
@@ -189,33 +193,33 @@ module PulpAnsibleClient
|
|
189
193
|
|
190
194
|
# Inspect a collection version
|
191
195
|
# ViewSet for Ansible Collection.
|
192
|
-
# @param
|
196
|
+
# @param ansible_collection_version_href [String]
|
193
197
|
# @param [Hash] opts the optional parameters
|
194
198
|
# @option opts [String] :fields A list of fields to include in the response.
|
195
199
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
196
|
-
# @return [
|
197
|
-
def read(
|
198
|
-
data, _status_code, _headers = read_with_http_info(
|
200
|
+
# @return [AnsibleCollectionVersionResponse]
|
201
|
+
def read(ansible_collection_version_href, opts = {})
|
202
|
+
data, _status_code, _headers = read_with_http_info(ansible_collection_version_href, opts)
|
199
203
|
data
|
200
204
|
end
|
201
205
|
|
202
206
|
# Inspect a collection version
|
203
207
|
# ViewSet for Ansible Collection.
|
204
|
-
# @param
|
208
|
+
# @param ansible_collection_version_href [String]
|
205
209
|
# @param [Hash] opts the optional parameters
|
206
210
|
# @option opts [String] :fields A list of fields to include in the response.
|
207
211
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
208
|
-
# @return [Array<(
|
209
|
-
def read_with_http_info(
|
212
|
+
# @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
|
213
|
+
def read_with_http_info(ansible_collection_version_href, opts = {})
|
210
214
|
if @api_client.config.debugging
|
211
215
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.read ...'
|
212
216
|
end
|
213
|
-
# verify the required parameter '
|
214
|
-
if @api_client.config.client_side_validation &&
|
215
|
-
fail ArgumentError, "Missing the required parameter '
|
217
|
+
# verify the required parameter 'ansible_collection_version_href' is set
|
218
|
+
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
219
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling ContentCollectionVersionsApi.read"
|
216
220
|
end
|
217
221
|
# resource path
|
218
|
-
local_var_path = '{
|
222
|
+
local_var_path = '{ansible_collection_version_href}'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
219
223
|
|
220
224
|
# query parameters
|
221
225
|
query_params = opts[:query_params] || {}
|
@@ -234,10 +238,10 @@ module PulpAnsibleClient
|
|
234
238
|
post_body = opts[:body]
|
235
239
|
|
236
240
|
# return_type
|
237
|
-
return_type = opts[:return_type] || '
|
241
|
+
return_type = opts[:return_type] || 'AnsibleCollectionVersionResponse'
|
238
242
|
|
239
243
|
# auth_names
|
240
|
-
auth_names = opts[:auth_names] || ['
|
244
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
241
245
|
|
242
246
|
new_options = opts.merge(
|
243
247
|
:header_params => header_params,
|