pulp_ansible_client 0.2.0b5 → 0.2.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -23
- data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
- data/docs/AnsibleAnsibleRemote.md +39 -0
- data/docs/AnsibleAnsibleRepository.md +27 -0
- data/docs/AnsibleCollection.md +19 -0
- data/docs/AnsibleCollectionRemote.md +41 -0
- data/docs/AnsibleCollectionVersion.md +67 -0
- data/docs/AnsibleCollectionsApi.md +80 -18
- data/docs/AnsibleRole.md +27 -0
- data/docs/AnsibleTag.md +17 -0
- data/docs/Collection.md +31 -0
- data/docs/CollectionImportDetail.md +2 -2
- data/docs/CollectionMetadata.md +9 -9
- data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
- data/docs/CollectionRef.md +21 -0
- data/docs/CollectionVersion.md +19 -59
- data/docs/ContentCollectionVersionsApi.md +25 -27
- data/docs/ContentRolesApi.md +17 -25
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsAnsibleApi.md +16 -12
- data/docs/GalaxyCollection.md +2 -2
- data/docs/GalaxyCollectionVersion.md +4 -4
- data/docs/GalaxyRole.md +1 -1
- data/docs/GalaxyRoleVersion.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +3 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
- data/docs/PulpAnsibleTagsApi.md +5 -3
- data/docs/RemotesAnsibleApi.md +30 -81
- data/docs/RemotesCollectionApi.md +30 -81
- data/docs/RepositoriesAnsibleApi.md +409 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/Tag.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
- data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +1 -1
- data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
- data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
- data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
- data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
- data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
- data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_ansible_client/models/collection.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
- data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
- data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
- data/lib/pulp_ansible_client/models/tag.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +20 -6
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +25 -10
- data/spec/api/content_collection_versions_api_spec.rb +12 -12
- data/spec/api/content_roles_api_spec.rb +8 -11
- data/spec/api/distributions_ansible_api_spec.rb +5 -3
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
- data/spec/api/remotes_ansible_api_spec.rb +12 -22
- data/spec/api/remotes_collection_api_spec.rb +12 -22
- data/spec/api/repositories_ansible_api_spec.rb +128 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
- data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
- data/spec/models/ansible_ansible_repository_spec.rb +71 -0
- data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
- data/spec/models/ansible_collection_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +191 -0
- data/spec/models/ansible_role_spec.rb +71 -0
- data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/collection_namespace_spec.rb +41 -0
- data/spec/models/collection_ref_spec.rb +53 -0
- data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
- data/spec/models/collection_version_spec.rb +14 -130
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_spec.rb +1 -1
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +78 -22
- data/docs/AnsibleRemote.md +0 -45
- data/docs/CollectionRemote.md +0 -47
- data/docs/Role.md +0 -33
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,55 +19,125 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
22
|
+
# List collections
|
23
|
+
# Viewset for Ansible Collections.
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :
|
27
|
-
# @option opts [
|
28
|
-
# @option opts [
|
29
|
-
# @option opts [
|
25
|
+
# @option opts [String] :namespace
|
26
|
+
# @option opts [String] :name
|
27
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
28
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
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 [InlineResponse200]
|
32
|
+
def list(opts = {})
|
33
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
# List collections
|
38
|
+
# Viewset for Ansible Collections.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :namespace
|
41
|
+
# @option opts [String] :name
|
42
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
43
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
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<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
47
|
+
def list_with_http_info(opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.list ...'
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/pulp/api/v3/ansible/collections/'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
57
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
58
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
59
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
60
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
61
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
62
|
+
|
63
|
+
# header parameters
|
64
|
+
header_params = opts[:header_params] || {}
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:body]
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:return_type] || 'InlineResponse200'
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:auth_names] || ['Basic']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
|
96
|
+
# Upload a collection
|
97
|
+
# Create an artifact and trigger an asynchronous task to create Collection content from it.
|
98
|
+
# @param file [File] The Collection tarball.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
|
30
101
|
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
102
|
+
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
31
103
|
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
32
104
|
# @return [AsyncOperationResponse]
|
33
|
-
def
|
34
|
-
data, _status_code, _headers =
|
105
|
+
def upload_collection(file, opts = {})
|
106
|
+
data, _status_code, _headers = upload_collection_with_http_info(file, opts)
|
35
107
|
data
|
36
108
|
end
|
37
109
|
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# @param
|
110
|
+
# Upload a collection
|
111
|
+
# Create an artifact and trigger an asynchronous task to create Collection content from it.
|
112
|
+
# @param file [File] The Collection tarball.
|
41
113
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [String] :
|
43
|
-
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
44
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
45
|
-
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
114
|
+
# @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
|
46
115
|
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
116
|
+
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
47
117
|
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
48
118
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
49
|
-
def
|
119
|
+
def upload_collection_with_http_info(file, opts = {})
|
50
120
|
if @api_client.config.debugging
|
51
|
-
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.
|
121
|
+
@api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.upload_collection ...'
|
52
122
|
end
|
53
|
-
# verify the required parameter '
|
54
|
-
if @api_client.config.client_side_validation &&
|
55
|
-
fail ArgumentError, "Missing the required parameter '
|
123
|
+
# verify the required parameter 'file' is set
|
124
|
+
if @api_client.config.client_side_validation && file.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.upload_collection"
|
56
126
|
end
|
57
|
-
if @api_client.config.client_side_validation &&
|
58
|
-
fail ArgumentError, 'invalid value for "
|
127
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
128
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
59
129
|
end
|
60
130
|
|
61
|
-
if @api_client.config.client_side_validation && !opts[:'
|
62
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
131
|
+
if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
|
132
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
63
133
|
end
|
64
134
|
|
65
|
-
if @api_client.config.client_side_validation && !opts[:'
|
66
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
135
|
+
if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
67
137
|
end
|
68
138
|
|
69
139
|
if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
|
70
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling AnsibleCollectionsApi.
|
140
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
71
141
|
end
|
72
142
|
|
73
143
|
# resource path
|
@@ -85,12 +155,10 @@ module PulpAnsibleClient
|
|
85
155
|
|
86
156
|
# form parameters
|
87
157
|
form_params = opts[:form_params] || {}
|
88
|
-
form_params['
|
89
|
-
form_params['
|
90
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
91
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
92
|
-
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
158
|
+
form_params['file'] = file
|
159
|
+
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
93
160
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
161
|
+
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
94
162
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
95
163
|
|
96
164
|
# http body (model)
|
@@ -113,7 +181,7 @@ module PulpAnsibleClient
|
|
113
181
|
|
114
182
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
115
183
|
if @api_client.config.debugging
|
116
|
-
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#
|
184
|
+
@api_client.config.logger.debug "API called: AnsibleCollectionsApi#upload_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
117
185
|
end
|
118
186
|
return data, status_code, headers
|
119
187
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,56 +20,28 @@ module PulpAnsibleClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a collection version
|
23
|
-
#
|
24
|
-
# @param
|
23
|
+
# ViewSet for Ansible Collection.
|
24
|
+
# @param data [AnsibleCollectionVersion]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @
|
27
|
-
|
28
|
-
|
29
|
-
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
30
|
-
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
31
|
-
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
32
|
-
# @return [AsyncOperationResponse]
|
33
|
-
def create(relative_path, opts = {})
|
34
|
-
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
26
|
+
# @return [AnsibleCollectionVersion]
|
27
|
+
def create(data, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
35
29
|
data
|
36
30
|
end
|
37
31
|
|
38
32
|
# Create a collection version
|
39
|
-
#
|
40
|
-
# @param
|
33
|
+
# ViewSet for Ansible Collection.
|
34
|
+
# @param data [AnsibleCollectionVersion]
|
41
35
|
# @param [Hash] opts the optional parameters
|
42
|
-
# @
|
43
|
-
|
44
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
45
|
-
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
46
|
-
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
47
|
-
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
48
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
49
|
-
def create_with_http_info(relative_path, opts = {})
|
36
|
+
# @return [Array<(AnsibleCollectionVersion, Integer, Hash)>] AnsibleCollectionVersion data, response status code and response headers
|
37
|
+
def create_with_http_info(data, opts = {})
|
50
38
|
if @api_client.config.debugging
|
51
39
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.create ...'
|
52
40
|
end
|
53
|
-
# verify the required parameter '
|
54
|
-
if @api_client.config.client_side_validation &&
|
55
|
-
fail ArgumentError, "Missing the required parameter '
|
56
|
-
end
|
57
|
-
if @api_client.config.client_side_validation && relative_path.to_s.length < 1
|
58
|
-
fail ArgumentError, 'invalid value for "relative_path" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
41
|
+
# verify the required parameter 'data' is set
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentCollectionVersionsApi.create"
|
59
44
|
end
|
60
|
-
|
61
|
-
if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
|
62
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
63
|
-
end
|
64
|
-
|
65
|
-
if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
|
66
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
67
|
-
end
|
68
|
-
|
69
|
-
if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
|
70
|
-
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
71
|
-
end
|
72
|
-
|
73
45
|
# resource path
|
74
46
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
75
47
|
|
@@ -81,23 +53,16 @@ module PulpAnsibleClient
|
|
81
53
|
# HTTP header 'Accept' (if needed)
|
82
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
83
55
|
# HTTP header 'Content-Type'
|
84
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
85
57
|
|
86
58
|
# form parameters
|
87
59
|
form_params = opts[:form_params] || {}
|
88
|
-
form_params['relative_path'] = relative_path
|
89
|
-
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
90
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
91
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
92
|
-
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
93
|
-
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
94
|
-
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
95
60
|
|
96
61
|
# http body (model)
|
97
|
-
post_body = opts[:body]
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
98
63
|
|
99
64
|
# return_type
|
100
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AnsibleCollectionVersion'
|
101
66
|
|
102
67
|
# auth_names
|
103
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -121,18 +86,23 @@ module PulpAnsibleClient
|
|
121
86
|
# List collection versions
|
122
87
|
# ViewSet for Ansible Collection.
|
123
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
124
90
|
# @option opts [String] :namespace
|
125
91
|
# @option opts [String] :name
|
126
92
|
# @option opts [String] :version Filter results where version matches value
|
127
93
|
# @option opts [String] :q
|
128
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
|
129
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
130
98
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
131
99
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
+
# @option opts [String] :deprecated
|
132
101
|
# @option opts [Integer] :limit Number of results to return per page.
|
133
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
134
103
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
|
-
# @
|
104
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
105
|
+
# @return [InlineResponse2001]
|
136
106
|
def list(opts = {})
|
137
107
|
data, _status_code, _headers = list_with_http_info(opts)
|
138
108
|
data
|
@@ -141,18 +111,23 @@ module PulpAnsibleClient
|
|
141
111
|
# List collection versions
|
142
112
|
# ViewSet for Ansible Collection.
|
143
113
|
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
144
115
|
# @option opts [String] :namespace
|
145
116
|
# @option opts [String] :name
|
146
117
|
# @option opts [String] :version Filter results where version matches value
|
147
118
|
# @option opts [String] :q
|
148
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
|
149
122
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
150
123
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
151
124
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
125
|
+
# @option opts [String] :deprecated
|
152
126
|
# @option opts [Integer] :limit Number of results to return per page.
|
153
127
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
154
128
|
# @option opts [String] :fields A list of fields to include in the response.
|
155
|
-
# @
|
129
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
156
131
|
def list_with_http_info(opts = {})
|
157
132
|
if @api_client.config.debugging
|
158
133
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
|
@@ -162,17 +137,22 @@ module PulpAnsibleClient
|
|
162
137
|
|
163
138
|
# query parameters
|
164
139
|
query_params = opts[:query_params] || {}
|
140
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
165
141
|
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
166
142
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
167
143
|
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
168
144
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
169
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?
|
170
148
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
171
149
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
172
150
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
151
|
+
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
173
152
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
174
153
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
175
154
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
155
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
176
156
|
|
177
157
|
# header parameters
|
178
158
|
header_params = opts[:header_params] || {}
|
@@ -186,7 +166,7 @@ module PulpAnsibleClient
|
|
186
166
|
post_body = opts[:body]
|
187
167
|
|
188
168
|
# return_type
|
189
|
-
return_type = opts[:return_type] || '
|
169
|
+
return_type = opts[:return_type] || 'InlineResponse2001'
|
190
170
|
|
191
171
|
# auth_names
|
192
172
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -212,7 +192,8 @@ module PulpAnsibleClient
|
|
212
192
|
# @param collection_version_href [String] URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/
|
213
193
|
# @param [Hash] opts the optional parameters
|
214
194
|
# @option opts [String] :fields A list of fields to include in the response.
|
215
|
-
# @
|
195
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
196
|
+
# @return [AnsibleCollectionVersion]
|
216
197
|
def read(collection_version_href, opts = {})
|
217
198
|
data, _status_code, _headers = read_with_http_info(collection_version_href, opts)
|
218
199
|
data
|
@@ -223,7 +204,8 @@ module PulpAnsibleClient
|
|
223
204
|
# @param collection_version_href [String] URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/
|
224
205
|
# @param [Hash] opts the optional parameters
|
225
206
|
# @option opts [String] :fields A list of fields to include in the response.
|
226
|
-
# @
|
207
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
208
|
+
# @return [Array<(AnsibleCollectionVersion, Integer, Hash)>] AnsibleCollectionVersion data, response status code and response headers
|
227
209
|
def read_with_http_info(collection_version_href, opts = {})
|
228
210
|
if @api_client.config.debugging
|
229
211
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.read ...'
|
@@ -238,6 +220,7 @@ module PulpAnsibleClient
|
|
238
220
|
# query parameters
|
239
221
|
query_params = opts[:query_params] || {}
|
240
222
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
223
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
241
224
|
|
242
225
|
# header parameters
|
243
226
|
header_params = opts[:header_params] || {}
|
@@ -251,7 +234,7 @@ module PulpAnsibleClient
|
|
251
234
|
post_body = opts[:body]
|
252
235
|
|
253
236
|
# return_type
|
254
|
-
return_type = opts[:return_type] || '
|
237
|
+
return_type = opts[:return_type] || 'AnsibleCollectionVersion'
|
255
238
|
|
256
239
|
# auth_names
|
257
240
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,58 +20,28 @@ module PulpAnsibleClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a role
|
23
|
-
#
|
24
|
-
# @param
|
25
|
-
# @param name [String]
|
26
|
-
# @param namespace [String]
|
23
|
+
# ViewSet for Role.
|
24
|
+
# @param data [AnsibleRole]
|
27
25
|
# @param [Hash] opts the optional parameters
|
28
|
-
# @
|
29
|
-
|
30
|
-
|
31
|
-
# @return [AsyncOperationResponse]
|
32
|
-
def create(version, name, namespace, opts = {})
|
33
|
-
data, _status_code, _headers = create_with_http_info(version, name, namespace, opts)
|
26
|
+
# @return [AnsibleRole]
|
27
|
+
def create(data, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
34
29
|
data
|
35
30
|
end
|
36
31
|
|
37
32
|
# Create a role
|
38
|
-
#
|
39
|
-
# @param
|
40
|
-
# @param name [String]
|
41
|
-
# @param namespace [String]
|
33
|
+
# ViewSet for Role.
|
34
|
+
# @param data [AnsibleRole]
|
42
35
|
# @param [Hash] opts the optional parameters
|
43
|
-
# @
|
44
|
-
|
45
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
46
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
47
|
-
def create_with_http_info(version, name, namespace, opts = {})
|
36
|
+
# @return [Array<(AnsibleRole, Integer, Hash)>] AnsibleRole data, response status code and response headers
|
37
|
+
def create_with_http_info(data, opts = {})
|
48
38
|
if @api_client.config.debugging
|
49
39
|
@api_client.config.logger.debug 'Calling API: ContentRolesApi.create ...'
|
50
40
|
end
|
51
|
-
# verify the required parameter '
|
52
|
-
if @api_client.config.client_side_validation &&
|
53
|
-
fail ArgumentError, "Missing the required parameter '
|
54
|
-
end
|
55
|
-
if @api_client.config.client_side_validation && version.to_s.length < 1
|
56
|
-
fail ArgumentError, 'invalid value for "version" when calling ContentRolesApi.create, the character length must be great than or equal to 1.'
|
57
|
-
end
|
58
|
-
|
59
|
-
# verify the required parameter 'name' is set
|
60
|
-
if @api_client.config.client_side_validation && name.nil?
|
61
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ContentRolesApi.create"
|
62
|
-
end
|
63
|
-
if @api_client.config.client_side_validation && name.to_s.length < 1
|
64
|
-
fail ArgumentError, 'invalid value for "name" when calling ContentRolesApi.create, the character length must be great than or equal to 1.'
|
41
|
+
# verify the required parameter 'data' is set
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentRolesApi.create"
|
65
44
|
end
|
66
|
-
|
67
|
-
# verify the required parameter 'namespace' is set
|
68
|
-
if @api_client.config.client_side_validation && namespace.nil?
|
69
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ContentRolesApi.create"
|
70
|
-
end
|
71
|
-
if @api_client.config.client_side_validation && namespace.to_s.length < 1
|
72
|
-
fail ArgumentError, 'invalid value for "namespace" when calling ContentRolesApi.create, the character length must be great than or equal to 1.'
|
73
|
-
end
|
74
|
-
|
75
45
|
# resource path
|
76
46
|
local_var_path = '/pulp/api/v3/content/ansible/roles/'
|
77
47
|
|
@@ -83,22 +53,16 @@ module PulpAnsibleClient
|
|
83
53
|
# HTTP header 'Accept' (if needed)
|
84
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
85
55
|
# HTTP header 'Content-Type'
|
86
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
87
57
|
|
88
58
|
# form parameters
|
89
59
|
form_params = opts[:form_params] || {}
|
90
|
-
form_params['version'] = version
|
91
|
-
form_params['name'] = name
|
92
|
-
form_params['namespace'] = namespace
|
93
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
94
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
95
|
-
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
96
60
|
|
97
61
|
# http body (model)
|
98
|
-
post_body = opts[:body]
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
99
63
|
|
100
64
|
# return_type
|
101
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AnsibleRole'
|
102
66
|
|
103
67
|
# auth_names
|
104
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -131,7 +95,8 @@ module PulpAnsibleClient
|
|
131
95
|
# @option opts [Integer] :limit Number of results to return per page.
|
132
96
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
133
97
|
# @option opts [String] :fields A list of fields to include in the response.
|
134
|
-
# @
|
98
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
99
|
+
# @return [InlineResponse2002]
|
135
100
|
def list(opts = {})
|
136
101
|
data, _status_code, _headers = list_with_http_info(opts)
|
137
102
|
data
|
@@ -149,7 +114,8 @@ module PulpAnsibleClient
|
|
149
114
|
# @option opts [Integer] :limit Number of results to return per page.
|
150
115
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
151
116
|
# @option opts [String] :fields A list of fields to include in the response.
|
152
|
-
# @
|
117
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
118
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
153
119
|
def list_with_http_info(opts = {})
|
154
120
|
if @api_client.config.debugging
|
155
121
|
@api_client.config.logger.debug 'Calling API: ContentRolesApi.list ...'
|
@@ -168,6 +134,7 @@ module PulpAnsibleClient
|
|
168
134
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
169
135
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
170
136
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
137
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
171
138
|
|
172
139
|
# header parameters
|
173
140
|
header_params = opts[:header_params] || {}
|
@@ -181,7 +148,7 @@ module PulpAnsibleClient
|
|
181
148
|
post_body = opts[:body]
|
182
149
|
|
183
150
|
# return_type
|
184
|
-
return_type = opts[:return_type] || '
|
151
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
185
152
|
|
186
153
|
# auth_names
|
187
154
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -207,7 +174,8 @@ module PulpAnsibleClient
|
|
207
174
|
# @param role_href [String] URI of Role. e.g.: /pulp/api/v3/content/ansible/roles/1/
|
208
175
|
# @param [Hash] opts the optional parameters
|
209
176
|
# @option opts [String] :fields A list of fields to include in the response.
|
210
|
-
# @
|
177
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
178
|
+
# @return [AnsibleRole]
|
211
179
|
def read(role_href, opts = {})
|
212
180
|
data, _status_code, _headers = read_with_http_info(role_href, opts)
|
213
181
|
data
|
@@ -218,7 +186,8 @@ module PulpAnsibleClient
|
|
218
186
|
# @param role_href [String] URI of Role. e.g.: /pulp/api/v3/content/ansible/roles/1/
|
219
187
|
# @param [Hash] opts the optional parameters
|
220
188
|
# @option opts [String] :fields A list of fields to include in the response.
|
221
|
-
# @
|
189
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
190
|
+
# @return [Array<(AnsibleRole, Integer, Hash)>] AnsibleRole data, response status code and response headers
|
222
191
|
def read_with_http_info(role_href, opts = {})
|
223
192
|
if @api_client.config.debugging
|
224
193
|
@api_client.config.logger.debug 'Calling API: ContentRolesApi.read ...'
|
@@ -233,6 +202,7 @@ module PulpAnsibleClient
|
|
233
202
|
# query parameters
|
234
203
|
query_params = opts[:query_params] || {}
|
235
204
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
205
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
236
206
|
|
237
207
|
# header parameters
|
238
208
|
header_params = opts[:header_params] || {}
|
@@ -246,7 +216,7 @@ module PulpAnsibleClient
|
|
246
216
|
post_body = opts[:body]
|
247
217
|
|
248
218
|
# return_type
|
249
|
-
return_type = opts[:return_type] || '
|
219
|
+
return_type = opts[:return_type] || 'AnsibleRole'
|
250
220
|
|
251
221
|
# auth_names
|
252
222
|
auth_names = opts[:auth_names] || ['Basic']
|