pulp_ansible_client 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +21 -21
- data/docs/AnsibleCollectionRemote.md +0 -8
- data/docs/AnsibleCollectionRemoteResponse.md +0 -8
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleCollectionsApi.md +2 -2
- data/docs/AnsibleRoleRemote.md +1 -9
- data/docs/AnsibleRoleRemoteResponse.md +1 -9
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/ApiCollectionsApi.md +2 -2
- data/docs/ApiRolesApi.md +2 -2
- data/docs/ContentCollectionVersionsApi.md +2 -2
- data/docs/ContentRolesApi.md +2 -2
- data/docs/DistributionsAnsibleApi.md +2 -2
- data/docs/{PaginatedansibleCollectionResponseList.md → InlineResponse200.md} +4 -4
- data/docs/{PaginatedansibleCollectionVersionResponseList.md → InlineResponse2001.md} +4 -4
- data/docs/{PaginatedGalaxyRoleVersionResponseList.md → InlineResponse20010.md} +4 -4
- data/docs/{PaginatedGalaxyCollectionResponseList.md → InlineResponse20011.md} +4 -4
- data/docs/{PaginatedGalaxyCollectionVersionResponseList.md → InlineResponse20012.md} +4 -4
- data/docs/InlineResponse20013.md +21 -0
- data/docs/{PaginatedCollectionResponseListLinks.md → InlineResponse20013Links.md} +2 -2
- data/docs/{PaginatedCollectionResponseListMeta.md → InlineResponse20013Meta.md} +2 -2
- data/docs/InlineResponse20014.md +21 -0
- data/docs/{PaginatedansibleRoleResponseList.md → InlineResponse2002.md} +4 -4
- data/docs/{PaginatedansibleAnsibleDistributionResponseList.md → InlineResponse2003.md} +4 -4
- data/docs/{PaginatedTagResponseList.md → InlineResponse2004.md} +4 -4
- data/docs/{PaginatedansibleCollectionRemoteResponseList.md → InlineResponse2005.md} +4 -4
- data/docs/{PaginatedansibleRoleRemoteResponseList.md → InlineResponse2006.md} +4 -4
- data/docs/{PaginatedansibleAnsibleRepositoryResponseList.md → InlineResponse2007.md} +4 -4
- data/docs/{PaginatedRepositoryVersionResponseList.md → InlineResponse2008.md} +4 -4
- data/docs/{PaginatedGalaxyRoleResponseList.md → InlineResponse2009.md} +4 -4
- data/docs/PatchedansibleCollectionRemote.md +0 -8
- data/docs/PatchedansibleRoleRemote.md +1 -9
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +2 -2
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +2 -2
- data/docs/PulpAnsibleTagsApi.md +2 -2
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/RemotesRoleApi.md +2 -2
- data/docs/RepositoriesAnsibleApi.md +2 -2
- data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/VersionsApi.md +4 -4
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +4 -4
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +1 -1
- data/lib/pulp_ansible_client/api/api_collections_api.rb +4 -4
- data/lib/pulp_ansible_client/api/api_roles_api.rb +4 -4
- data/lib/pulp_ansible_client/api/collection_import_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +4 -4
- data/lib/pulp_ansible_client/api/content_roles_api.rb +4 -4
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +4 -4
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +4 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +4 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +4 -4
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +4 -4
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +4 -4
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +4 -4
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +8 -8
- data/lib/pulp_ansible_client/api/versions_api.rb +7 -7
- data/lib/pulp_ansible_client/api_client.rb +12 -8
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +8 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +2 -106
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +2 -106
- data/lib/pulp_ansible_client/models/ansible_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +12 -12
- data/lib/pulp_ansible_client/models/ansible_role.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +5 -109
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +5 -109
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +12 -12
- data/lib/pulp_ansible_client/models/ansible_tag_response.rb +1 -1
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +1 -1
- 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/{paginatedansible_collection_response_list.rb → inline_response200.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginatedansible_collection_version_response_list.rb → inline_response2001.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_galaxy_role_version_response_list.rb → inline_response20010.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → inline_response20011.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → inline_response20012.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_collection_response_list.rb → inline_response20013.rb} +6 -6
- data/lib/pulp_ansible_client/models/{paginated_collection_response_list_links.rb → inline_response20013_links.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_collection_response_list_meta.rb → inline_response20013_meta.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → inline_response20014.rb} +6 -6
- data/lib/pulp_ansible_client/models/{paginatedansible_role_response_list.rb → inline_response2002.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginatedansible_ansible_distribution_response_list.rb → inline_response2003.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_tag_response_list.rb → inline_response2004.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginatedansible_collection_remote_response_list.rb → inline_response2005.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginatedansible_role_remote_response_list.rb → inline_response2006.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginatedansible_ansible_repository_response_list.rb → inline_response2007.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_repository_version_response_list.rb → inline_response2008.rb} +4 -4
- data/lib/pulp_ansible_client/models/{paginated_galaxy_role_response_list.rb → inline_response2009.rb} +4 -4
- data/lib/pulp_ansible_client/models/patched_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +2 -106
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +5 -109
- data/lib/pulp_ansible_client/models/policy_enum.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/tag_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +18 -18
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +2 -2
- data/spec/api/ansible_copy_api_spec.rb +1 -1
- data/spec/api/api_collections_api_spec.rb +2 -2
- data/spec/api/api_roles_api_spec.rb +2 -2
- data/spec/api/collection_import_api_spec.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_roles_api_spec.rb +2 -2
- data/spec/api/distributions_ansible_api_spec.rb +2 -2
- data/spec/api/galaxy_detail_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +2 -2
- data/spec/api/remotes_role_api_spec.rb +2 -2
- data/spec/api/repositories_ansible_api_spec.rb +2 -2
- data/spec/api/repositories_ansible_versions_api_spec.rb +4 -4
- data/spec/api/versions_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +1 -25
- data/spec/models/ansible_collection_remote_spec.rb +1 -25
- data/spec/models/ansible_collection_response_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +1 -1
- data/spec/models/ansible_role_remote_response_spec.rb +1 -25
- data/spec/models/ansible_role_remote_spec.rb +1 -25
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/ansible_role_spec.rb +1 -1
- data/spec/models/ansible_tag_response_spec.rb +1 -1
- data/spec/models/artifact_ref_response_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_response_spec.rb +1 -1
- data/spec/models/collection_metadata_response_spec.rb +1 -1
- data/spec/models/collection_namespace_response_spec.rb +1 -1
- data/spec/models/collection_one_shot_spec.rb +1 -1
- data/spec/models/collection_ref_response_spec.rb +1 -1
- data/spec/models/collection_response_spec.rb +1 -1
- data/spec/models/collection_version_docs_response_spec.rb +1 -1
- data/spec/models/collection_version_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/copy_spec.rb +1 -1
- data/spec/models/galaxy_collection_response_spec.rb +1 -1
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_response_spec.rb +1 -1
- data/spec/models/galaxy_role_response_spec.rb +1 -1
- data/spec/models/galaxy_role_version_response_spec.rb +1 -1
- data/spec/models/{paginated_tag_response_list_spec.rb → inline_response20010_spec.rb} +7 -7
- data/spec/models/{paginated_galaxy_role_response_list_spec.rb → inline_response20011_spec.rb} +7 -7
- data/spec/models/{paginatedansible_role_response_list_spec.rb → inline_response20012_spec.rb} +7 -7
- data/spec/models/{paginated_collection_response_list_links_spec.rb → inline_response20013_links_spec.rb} +7 -7
- data/spec/models/{paginated_collection_response_list_meta_spec.rb → inline_response20013_meta_spec.rb} +7 -7
- data/spec/models/{paginated_collection_response_list_spec.rb → inline_response20013_spec.rb} +7 -7
- data/spec/models/{paginated_collection_version_response_list_spec.rb → inline_response20014_spec.rb} +7 -7
- data/spec/models/{paginated_galaxy_collection_response_list_spec.rb → inline_response2001_spec.rb} +7 -7
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/inline_response2009_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/patched_collection_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
- data/spec/models/patchedansible_collection_remote_spec.rb +1 -25
- data/spec/models/patchedansible_role_remote_spec.rb +1 -25
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +117 -117
- data/docs/PaginatedCollectionResponseList.md +0 -21
- data/docs/PaginatedCollectionVersionResponseList.md +0 -21
- data/spec/models/paginated_galaxy_collection_version_response_list_spec.rb +0 -59
- data/spec/models/paginated_galaxy_role_version_response_list_spec.rb +0 -59
- data/spec/models/paginated_repository_version_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_ansible_distribution_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_ansible_repository_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_collection_remote_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_collection_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_collection_version_response_list_spec.rb +0 -59
- data/spec/models/paginatedansible_role_remote_response_list_spec.rb +0 -59
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -155,7 +155,7 @@ module PulpAnsibleClient
|
|
155
155
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
156
156
|
# @option opts [String] :fields A list of fields to include in the response.
|
157
157
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
158
|
-
# @return [
|
158
|
+
# @return [InlineResponse2007]
|
159
159
|
def list(opts = {})
|
160
160
|
data, _status_code, _headers = list_with_http_info(opts)
|
161
161
|
data
|
@@ -171,7 +171,7 @@ module PulpAnsibleClient
|
|
171
171
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
173
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
174
|
-
# @return [Array<(
|
174
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
175
175
|
def list_with_http_info(opts = {})
|
176
176
|
if @api_client.config.debugging
|
177
177
|
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.list ...'
|
@@ -201,7 +201,7 @@ module PulpAnsibleClient
|
|
201
201
|
post_body = opts[:body]
|
202
202
|
|
203
203
|
# return_type
|
204
|
-
return_type = opts[:return_type] || '
|
204
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
205
205
|
|
206
206
|
# auth_names
|
207
207
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module PulpAnsibleClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Delete a repository version
|
23
|
-
# Trigger an asynchronous task to delete a
|
23
|
+
# Trigger an asynchronous task to delete a repositroy version.
|
24
24
|
# @param ansible_ansible_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
@@ -30,7 +30,7 @@ module PulpAnsibleClient
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Delete a repository version
|
33
|
-
# Trigger an asynchronous task to delete a
|
33
|
+
# Trigger an asynchronous task to delete a repositroy version.
|
34
34
|
# @param ansible_ansible_repository_version_href [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
@@ -104,7 +104,7 @@ module PulpAnsibleClient
|
|
104
104
|
# @option opts [String] :pulp_created__range pulp_created__range
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
|
-
# @return [
|
107
|
+
# @return [InlineResponse2008]
|
108
108
|
def list(ansible_ansible_repository_href, opts = {})
|
109
109
|
data, _status_code, _headers = list_with_http_info(ansible_ansible_repository_href, opts)
|
110
110
|
data
|
@@ -133,7 +133,7 @@ module PulpAnsibleClient
|
|
133
133
|
# @option opts [String] :pulp_created__range pulp_created__range
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
|
-
# @return [Array<(
|
136
|
+
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
137
137
|
def list_with_http_info(ansible_ansible_repository_href, opts = {})
|
138
138
|
if @api_client.config.debugging
|
139
139
|
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleVersionsApi.list ...'
|
@@ -179,7 +179,7 @@ module PulpAnsibleClient
|
|
179
179
|
post_body = opts[:body]
|
180
180
|
|
181
181
|
# return_type
|
182
|
-
return_type = opts[:return_type] || '
|
182
|
+
return_type = opts[:return_type] || 'InlineResponse2008'
|
183
183
|
|
184
184
|
# auth_names
|
185
185
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -268,7 +268,7 @@ module PulpAnsibleClient
|
|
268
268
|
return data, status_code, headers
|
269
269
|
end
|
270
270
|
|
271
|
-
# Trigger an asynchronous task to repair a
|
271
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
272
272
|
# @param ansible_ansible_repository_version_href [String]
|
273
273
|
# @param repository_version [RepositoryVersion]
|
274
274
|
# @param [Hash] opts the optional parameters
|
@@ -278,7 +278,7 @@ module PulpAnsibleClient
|
|
278
278
|
data
|
279
279
|
end
|
280
280
|
|
281
|
-
# Trigger an asynchronous task to repair a
|
281
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
282
282
|
# @param ansible_ansible_repository_version_href [String]
|
283
283
|
# @param repository_version [RepositoryVersion]
|
284
284
|
# @param [Hash] opts the optional parameters
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -26,7 +26,7 @@ module PulpAnsibleClient
|
|
26
26
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
27
|
# @option opts [String] :fields A list of fields to include in the response.
|
28
28
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
29
|
-
# @return [
|
29
|
+
# @return [InlineResponse20010]
|
30
30
|
def get(ansible_role_href, opts = {})
|
31
31
|
data, _status_code, _headers = get_with_http_info(ansible_role_href, opts)
|
32
32
|
data
|
@@ -39,7 +39,7 @@ module PulpAnsibleClient
|
|
39
39
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
40
40
|
# @option opts [String] :fields A list of fields to include in the response.
|
41
41
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
42
|
-
# @return [Array<(
|
42
|
+
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
43
43
|
def get_with_http_info(ansible_role_href, opts = {})
|
44
44
|
if @api_client.config.debugging
|
45
45
|
@api_client.config.logger.debug 'Calling API: VersionsApi.get ...'
|
@@ -70,7 +70,7 @@ module PulpAnsibleClient
|
|
70
70
|
post_body = opts[:body]
|
71
71
|
|
72
72
|
# return_type
|
73
|
-
return_type = opts[:return_type] || '
|
73
|
+
return_type = opts[:return_type] || 'InlineResponse20010'
|
74
74
|
|
75
75
|
# auth_names
|
76
76
|
auth_names = opts[:auth_names] || []
|
@@ -97,7 +97,7 @@ module PulpAnsibleClient
|
|
97
97
|
# @option opts [Integer] :page A page number within the paginated result set.
|
98
98
|
# @option opts [String] :fields A list of fields to include in the response.
|
99
99
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
-
# @return [
|
100
|
+
# @return [InlineResponse20012]
|
101
101
|
def get_0(ansible_collection_version_href, opts = {})
|
102
102
|
data, _status_code, _headers = get_0_with_http_info(ansible_collection_version_href, opts)
|
103
103
|
data
|
@@ -109,7 +109,7 @@ module PulpAnsibleClient
|
|
109
109
|
# @option opts [Integer] :page A page number within the paginated result set.
|
110
110
|
# @option opts [String] :fields A list of fields to include in the response.
|
111
111
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
112
|
-
# @return [Array<(
|
112
|
+
# @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
|
113
113
|
def get_0_with_http_info(ansible_collection_version_href, opts = {})
|
114
114
|
if @api_client.config.debugging
|
115
115
|
@api_client.config.logger.debug 'Calling API: VersionsApi.get_0 ...'
|
@@ -139,7 +139,7 @@ module PulpAnsibleClient
|
|
139
139
|
post_body = opts[:body]
|
140
140
|
|
141
141
|
# return_type
|
142
|
-
return_type = opts[:return_type] || '
|
142
|
+
return_type = opts[:return_type] || 'InlineResponse20012'
|
143
143
|
|
144
144
|
# auth_names
|
145
145
|
auth_names = opts[:auth_names] || []
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,8 +53,10 @@ module PulpAnsibleClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
56
|
+
request_options = {
|
57
|
+
:params_encoder => @config.params_encoder
|
58
|
+
}
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
62
|
conn.request :multipart
|
@@ -285,11 +287,13 @@ module PulpAnsibleClient
|
|
285
287
|
tempfile.write(chunk)
|
286
288
|
end
|
287
289
|
request.on_complete do |response|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
if tempfile
|
291
|
+
tempfile.close
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
295
|
+
"explicitly with `tempfile.delete`"
|
296
|
+
end
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,12 @@ module PulpAnsibleClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
+
#
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
+
attr_accessor :params_encoder
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
113
119
|
# Default to nil.
|
114
120
|
#
|
@@ -133,6 +139,7 @@ module PulpAnsibleClient
|
|
133
139
|
@ssl_ca_file = nil
|
134
140
|
@ssl_client_cert = nil
|
135
141
|
@ssl_client_key = nil
|
142
|
+
@params_encoder = nil
|
136
143
|
@debugging = false
|
137
144
|
@inject_format = false
|
138
145
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -48,18 +48,6 @@ module PulpAnsibleClient
|
|
48
48
|
# The policy to use when downloading content.
|
49
49
|
attr_accessor :policy
|
50
50
|
|
51
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
52
|
-
attr_accessor :total_timeout
|
53
|
-
|
54
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
55
|
-
attr_accessor :connect_timeout
|
56
|
-
|
57
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
58
|
-
attr_accessor :sock_connect_timeout
|
59
|
-
|
60
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
|
-
attr_accessor :sock_read_timeout
|
62
|
-
|
63
51
|
# The string version of Collection requirements yaml.
|
64
52
|
attr_accessor :requirements_file
|
65
53
|
|
@@ -83,10 +71,6 @@ module PulpAnsibleClient
|
|
83
71
|
:'password' => :'password',
|
84
72
|
:'download_concurrency' => :'download_concurrency',
|
85
73
|
:'policy' => :'policy',
|
86
|
-
:'total_timeout' => :'total_timeout',
|
87
|
-
:'connect_timeout' => :'connect_timeout',
|
88
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
90
74
|
:'requirements_file' => :'requirements_file',
|
91
75
|
:'auth_url' => :'auth_url',
|
92
76
|
:'token' => :'token'
|
@@ -107,10 +91,6 @@ module PulpAnsibleClient
|
|
107
91
|
:'password' => :'String',
|
108
92
|
:'download_concurrency' => :'Integer',
|
109
93
|
:'policy' => :'PolicyEnum',
|
110
|
-
:'total_timeout' => :'Float',
|
111
|
-
:'connect_timeout' => :'Float',
|
112
|
-
:'sock_connect_timeout' => :'Float',
|
113
|
-
:'sock_read_timeout' => :'Float',
|
114
94
|
:'requirements_file' => :'String',
|
115
95
|
:'auth_url' => :'String',
|
116
96
|
:'token' => :'String'
|
@@ -126,10 +106,6 @@ module PulpAnsibleClient
|
|
126
106
|
:'proxy_url',
|
127
107
|
:'username',
|
128
108
|
:'password',
|
129
|
-
:'total_timeout',
|
130
|
-
:'connect_timeout',
|
131
|
-
:'sock_connect_timeout',
|
132
|
-
:'sock_read_timeout',
|
133
109
|
:'requirements_file',
|
134
110
|
:'auth_url',
|
135
111
|
:'token'
|
@@ -195,22 +171,6 @@ module PulpAnsibleClient
|
|
195
171
|
self.policy = attributes[:'policy']
|
196
172
|
end
|
197
173
|
|
198
|
-
if attributes.key?(:'total_timeout')
|
199
|
-
self.total_timeout = attributes[:'total_timeout']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes.key?(:'connect_timeout')
|
203
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes.key?(:'sock_connect_timeout')
|
207
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
208
|
-
end
|
209
|
-
|
210
|
-
if attributes.key?(:'sock_read_timeout')
|
211
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
212
|
-
end
|
213
|
-
|
214
174
|
if attributes.key?(:'requirements_file')
|
215
175
|
self.requirements_file = attributes[:'requirements_file']
|
216
176
|
end
|
@@ -240,22 +200,6 @@ module PulpAnsibleClient
|
|
240
200
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
241
201
|
end
|
242
202
|
|
243
|
-
if !@total_timeout.nil? && @total_timeout < 0.0
|
244
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
245
|
-
end
|
246
|
-
|
247
|
-
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
248
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
249
|
-
end
|
250
|
-
|
251
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
252
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
253
|
-
end
|
254
|
-
|
255
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
256
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
257
|
-
end
|
258
|
-
|
259
203
|
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
260
204
|
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
261
205
|
end
|
@@ -273,10 +217,6 @@ module PulpAnsibleClient
|
|
273
217
|
return false if @name.nil?
|
274
218
|
return false if @url.nil?
|
275
219
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
276
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
277
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
278
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
279
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
280
220
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
281
221
|
return false if !@token.nil? && @token.to_s.length > 2000
|
282
222
|
true
|
@@ -292,46 +232,6 @@ module PulpAnsibleClient
|
|
292
232
|
@download_concurrency = download_concurrency
|
293
233
|
end
|
294
234
|
|
295
|
-
# Custom attribute writer method with validation
|
296
|
-
# @param [Object] total_timeout Value to be assigned
|
297
|
-
def total_timeout=(total_timeout)
|
298
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
299
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
300
|
-
end
|
301
|
-
|
302
|
-
@total_timeout = total_timeout
|
303
|
-
end
|
304
|
-
|
305
|
-
# Custom attribute writer method with validation
|
306
|
-
# @param [Object] connect_timeout Value to be assigned
|
307
|
-
def connect_timeout=(connect_timeout)
|
308
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
309
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
310
|
-
end
|
311
|
-
|
312
|
-
@connect_timeout = connect_timeout
|
313
|
-
end
|
314
|
-
|
315
|
-
# Custom attribute writer method with validation
|
316
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
317
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
318
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
319
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
320
|
-
end
|
321
|
-
|
322
|
-
@sock_connect_timeout = sock_connect_timeout
|
323
|
-
end
|
324
|
-
|
325
|
-
# Custom attribute writer method with validation
|
326
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
327
|
-
def sock_read_timeout=(sock_read_timeout)
|
328
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
329
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
330
|
-
end
|
331
|
-
|
332
|
-
@sock_read_timeout = sock_read_timeout
|
333
|
-
end
|
334
|
-
|
335
235
|
# Custom attribute writer method with validation
|
336
236
|
# @param [Object] auth_url Value to be assigned
|
337
237
|
def auth_url=(auth_url)
|
@@ -368,10 +268,6 @@ module PulpAnsibleClient
|
|
368
268
|
password == o.password &&
|
369
269
|
download_concurrency == o.download_concurrency &&
|
370
270
|
policy == o.policy &&
|
371
|
-
total_timeout == o.total_timeout &&
|
372
|
-
connect_timeout == o.connect_timeout &&
|
373
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
374
|
-
sock_read_timeout == o.sock_read_timeout &&
|
375
271
|
requirements_file == o.requirements_file &&
|
376
272
|
auth_url == o.auth_url &&
|
377
273
|
token == o.token
|
@@ -386,7 +282,7 @@ module PulpAnsibleClient
|
|
386
282
|
# Calculates hash code according to all attributes.
|
387
283
|
# @return [Integer] Hash code
|
388
284
|
def hash
|
389
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy,
|
285
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, requirements_file, auth_url, token].hash
|
390
286
|
end
|
391
287
|
|
392
288
|
# Builds the object from hash
|