pulp_ansible_client 0.16.3 → 0.17.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 -22
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +3 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +4 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionsApi.md +230 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +6 -6
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +4 -2
- data/docs/CollectionVersionResponse.md +6 -4
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +2 -6
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +2 -6
- data/docs/ContentCollectionVersionsApi.md +6 -10
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +2 -6
- data/docs/DistributionsAnsibleApi.md +230 -6
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NamespaceLink.md +19 -0
- data/docs/NamespaceLinkResponse.md +19 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/PatchedansibleAnsibleRepository.md +3 -1
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/RemotesCollectionApi.md +238 -6
- data/docs/RemotesGitApi.md +230 -6
- data/docs/RemotesRoleApi.md +230 -6
- data/docs/RepositoriesAnsibleApi.md +450 -6
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
- data/docs/Repository.md +25 -0
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
- data/docs/VersionsApi.md +10 -10
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +283 -9
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +243 -243
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
- data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
- data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +14 -5
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/repository.rb +306 -0
- data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -5
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +32 -0
- data/spec/api/ansible_collections_api_spec.rb +51 -3
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -3
- data/spec/api/content_collection_versions_api_spec.rb +3 -5
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/content_roles_api_spec.rb +1 -3
- data/spec/api/distributions_ansible_api_spec.rb +51 -3
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
- data/spec/api/remotes_collection_api_spec.rb +55 -3
- data/spec/api/remotes_git_api_spec.rb +51 -3
- data/spec/api/remotes_role_api_spec.rb +51 -3
- data/spec/api/repositories_ansible_api_spec.rb +99 -3
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
- data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/collection_namespace_response_spec.rb +6 -0
- data/spec/models/collection_summary_response_spec.rb +95 -0
- data/spec/models/collection_version_copy_move_spec.rb +53 -0
- data/spec/models/collection_version_list_response_spec.rb +6 -0
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/collection_version_search_list_response_spec.rb +77 -0
- data/spec/models/collection_version_search_list_spec.rb +71 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/namespace_link_response_spec.rb +47 -0
- data/spec/models/namespace_link_spec.rb +47 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/repository_response_spec.rb +89 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +230 -102
@@ -19,6 +19,142 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role for this object to users/groups.
|
23
|
+
# @param ansible_ansible_repository_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(ansible_ansible_repository_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(ansible_ansible_repository_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param ansible_ansible_repository_href [String]
|
34
|
+
# @param nested_role [NestedRole]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
37
|
+
def add_role_with_http_info(ansible_ansible_repository_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
42
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.add_role"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'nested_role' is set
|
46
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesAnsibleApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{ansible_ansible_repository_href}add_role/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Trigger an asynchronous task to copy collection versions.
|
91
|
+
# @param ansible_ansible_repository_href [String]
|
92
|
+
# @param collection_version_copy_move [CollectionVersionCopyMove]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [AsyncOperationResponse]
|
95
|
+
def copy_collection_version(ansible_ansible_repository_href, collection_version_copy_move, opts = {})
|
96
|
+
data, _status_code, _headers = copy_collection_version_with_http_info(ansible_ansible_repository_href, collection_version_copy_move, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Trigger an asynchronous task to copy collection versions.
|
101
|
+
# @param ansible_ansible_repository_href [String]
|
102
|
+
# @param collection_version_copy_move [CollectionVersionCopyMove]
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
105
|
+
def copy_collection_version_with_http_info(ansible_ansible_repository_href, collection_version_copy_move, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.copy_collection_version ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
110
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.copy_collection_version"
|
112
|
+
end
|
113
|
+
# verify the required parameter 'collection_version_copy_move' is set
|
114
|
+
if @api_client.config.client_side_validation && collection_version_copy_move.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'collection_version_copy_move' when calling RepositoriesAnsibleApi.copy_collection_version"
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = '{ansible_ansible_repository_href}copy_collection_version/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = opts[:query_params] || {}
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = opts[:header_params] || {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
127
|
+
# HTTP header 'Content-Type'
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = opts[:form_params] || {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = opts[:body] || @api_client.object_to_http_body(collection_version_copy_move)
|
135
|
+
|
136
|
+
# return_type
|
137
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
138
|
+
|
139
|
+
# auth_names
|
140
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
141
|
+
|
142
|
+
new_options = opts.merge(
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#copy_collection_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
22
158
|
# Create an ansible repository
|
23
159
|
# ViewSet for Ansible Repositories.
|
24
160
|
# @param ansible_ansible_repository [AnsibleAnsibleRepository]
|
@@ -155,9 +291,7 @@ module PulpAnsibleClient
|
|
155
291
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
156
292
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
157
293
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
|
-
# @option opts [Array<String>] :ordering Ordering
|
159
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
160
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
294
|
+
# @option opts [Array<String>] :ordering Ordering
|
161
295
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
162
296
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
163
297
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
@@ -186,9 +320,7 @@ module PulpAnsibleClient
|
|
186
320
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
187
321
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
188
322
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
189
|
-
# @option opts [Array<String>] :ordering Ordering
|
190
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
191
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
323
|
+
# @option opts [Array<String>] :ordering Ordering
|
192
324
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
193
325
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
194
326
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
@@ -223,8 +355,6 @@ module PulpAnsibleClient
|
|
223
355
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
224
356
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
225
357
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
226
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
227
|
-
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
228
358
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
229
359
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
230
360
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
@@ -271,6 +401,140 @@ module PulpAnsibleClient
|
|
271
401
|
return data, status_code, headers
|
272
402
|
end
|
273
403
|
|
404
|
+
# List roles assigned to this object.
|
405
|
+
# @param ansible_ansible_repository_href [String]
|
406
|
+
# @param [Hash] opts the optional parameters
|
407
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
408
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
409
|
+
# @return [ObjectRolesResponse]
|
410
|
+
def list_roles(ansible_ansible_repository_href, opts = {})
|
411
|
+
data, _status_code, _headers = list_roles_with_http_info(ansible_ansible_repository_href, opts)
|
412
|
+
data
|
413
|
+
end
|
414
|
+
|
415
|
+
# List roles assigned to this object.
|
416
|
+
# @param ansible_ansible_repository_href [String]
|
417
|
+
# @param [Hash] opts the optional parameters
|
418
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
419
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
420
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
421
|
+
def list_roles_with_http_info(ansible_ansible_repository_href, opts = {})
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.list_roles ...'
|
424
|
+
end
|
425
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
426
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
427
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.list_roles"
|
428
|
+
end
|
429
|
+
# resource path
|
430
|
+
local_var_path = '{ansible_ansible_repository_href}list_roles/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
431
|
+
|
432
|
+
# query parameters
|
433
|
+
query_params = opts[:query_params] || {}
|
434
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
435
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
436
|
+
|
437
|
+
# header parameters
|
438
|
+
header_params = opts[:header_params] || {}
|
439
|
+
# HTTP header 'Accept' (if needed)
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
441
|
+
|
442
|
+
# form parameters
|
443
|
+
form_params = opts[:form_params] || {}
|
444
|
+
|
445
|
+
# http body (model)
|
446
|
+
post_body = opts[:body]
|
447
|
+
|
448
|
+
# return_type
|
449
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
450
|
+
|
451
|
+
# auth_names
|
452
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
453
|
+
|
454
|
+
new_options = opts.merge(
|
455
|
+
:header_params => header_params,
|
456
|
+
:query_params => query_params,
|
457
|
+
:form_params => form_params,
|
458
|
+
:body => post_body,
|
459
|
+
:auth_names => auth_names,
|
460
|
+
:return_type => return_type
|
461
|
+
)
|
462
|
+
|
463
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
464
|
+
if @api_client.config.debugging
|
465
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
466
|
+
end
|
467
|
+
return data, status_code, headers
|
468
|
+
end
|
469
|
+
|
470
|
+
# Trigger an asynchronous task to mark Ansible content.
|
471
|
+
# @param ansible_ansible_repository_href [String]
|
472
|
+
# @param ansible_repository_mark [AnsibleRepositoryMark]
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @return [AsyncOperationResponse]
|
475
|
+
def mark(ansible_ansible_repository_href, ansible_repository_mark, opts = {})
|
476
|
+
data, _status_code, _headers = mark_with_http_info(ansible_ansible_repository_href, ansible_repository_mark, opts)
|
477
|
+
data
|
478
|
+
end
|
479
|
+
|
480
|
+
# Trigger an asynchronous task to mark Ansible content.
|
481
|
+
# @param ansible_ansible_repository_href [String]
|
482
|
+
# @param ansible_repository_mark [AnsibleRepositoryMark]
|
483
|
+
# @param [Hash] opts the optional parameters
|
484
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
485
|
+
def mark_with_http_info(ansible_ansible_repository_href, ansible_repository_mark, opts = {})
|
486
|
+
if @api_client.config.debugging
|
487
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.mark ...'
|
488
|
+
end
|
489
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
490
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
491
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.mark"
|
492
|
+
end
|
493
|
+
# verify the required parameter 'ansible_repository_mark' is set
|
494
|
+
if @api_client.config.client_side_validation && ansible_repository_mark.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_mark' when calling RepositoriesAnsibleApi.mark"
|
496
|
+
end
|
497
|
+
# resource path
|
498
|
+
local_var_path = '{ansible_ansible_repository_href}mark/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
499
|
+
|
500
|
+
# query parameters
|
501
|
+
query_params = opts[:query_params] || {}
|
502
|
+
|
503
|
+
# header parameters
|
504
|
+
header_params = opts[:header_params] || {}
|
505
|
+
# HTTP header 'Accept' (if needed)
|
506
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
507
|
+
# HTTP header 'Content-Type'
|
508
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
509
|
+
|
510
|
+
# form parameters
|
511
|
+
form_params = opts[:form_params] || {}
|
512
|
+
|
513
|
+
# http body (model)
|
514
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_mark)
|
515
|
+
|
516
|
+
# return_type
|
517
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
518
|
+
|
519
|
+
# auth_names
|
520
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
521
|
+
|
522
|
+
new_options = opts.merge(
|
523
|
+
:header_params => header_params,
|
524
|
+
:query_params => query_params,
|
525
|
+
:form_params => form_params,
|
526
|
+
:body => post_body,
|
527
|
+
:auth_names => auth_names,
|
528
|
+
:return_type => return_type
|
529
|
+
)
|
530
|
+
|
531
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#mark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
534
|
+
end
|
535
|
+
return data, status_code, headers
|
536
|
+
end
|
537
|
+
|
274
538
|
# Modify Repository Content
|
275
539
|
# Trigger an asynchronous task to create a new repository version.
|
276
540
|
# @param ansible_ansible_repository_href [String]
|
@@ -341,6 +605,140 @@ module PulpAnsibleClient
|
|
341
605
|
return data, status_code, headers
|
342
606
|
end
|
343
607
|
|
608
|
+
# Trigger an asynchronous task to move collection versions.
|
609
|
+
# @param ansible_ansible_repository_href [String]
|
610
|
+
# @param collection_version_copy_move [CollectionVersionCopyMove]
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @return [AsyncOperationResponse]
|
613
|
+
def move_collection_version(ansible_ansible_repository_href, collection_version_copy_move, opts = {})
|
614
|
+
data, _status_code, _headers = move_collection_version_with_http_info(ansible_ansible_repository_href, collection_version_copy_move, opts)
|
615
|
+
data
|
616
|
+
end
|
617
|
+
|
618
|
+
# Trigger an asynchronous task to move collection versions.
|
619
|
+
# @param ansible_ansible_repository_href [String]
|
620
|
+
# @param collection_version_copy_move [CollectionVersionCopyMove]
|
621
|
+
# @param [Hash] opts the optional parameters
|
622
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
623
|
+
def move_collection_version_with_http_info(ansible_ansible_repository_href, collection_version_copy_move, opts = {})
|
624
|
+
if @api_client.config.debugging
|
625
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.move_collection_version ...'
|
626
|
+
end
|
627
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
628
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
629
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.move_collection_version"
|
630
|
+
end
|
631
|
+
# verify the required parameter 'collection_version_copy_move' is set
|
632
|
+
if @api_client.config.client_side_validation && collection_version_copy_move.nil?
|
633
|
+
fail ArgumentError, "Missing the required parameter 'collection_version_copy_move' when calling RepositoriesAnsibleApi.move_collection_version"
|
634
|
+
end
|
635
|
+
# resource path
|
636
|
+
local_var_path = '{ansible_ansible_repository_href}move_collection_version/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
637
|
+
|
638
|
+
# query parameters
|
639
|
+
query_params = opts[:query_params] || {}
|
640
|
+
|
641
|
+
# header parameters
|
642
|
+
header_params = opts[:header_params] || {}
|
643
|
+
# HTTP header 'Accept' (if needed)
|
644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
645
|
+
# HTTP header 'Content-Type'
|
646
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
647
|
+
|
648
|
+
# form parameters
|
649
|
+
form_params = opts[:form_params] || {}
|
650
|
+
|
651
|
+
# http body (model)
|
652
|
+
post_body = opts[:body] || @api_client.object_to_http_body(collection_version_copy_move)
|
653
|
+
|
654
|
+
# return_type
|
655
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
656
|
+
|
657
|
+
# auth_names
|
658
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
659
|
+
|
660
|
+
new_options = opts.merge(
|
661
|
+
:header_params => header_params,
|
662
|
+
:query_params => query_params,
|
663
|
+
:form_params => form_params,
|
664
|
+
:body => post_body,
|
665
|
+
:auth_names => auth_names,
|
666
|
+
:return_type => return_type
|
667
|
+
)
|
668
|
+
|
669
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
670
|
+
if @api_client.config.debugging
|
671
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#move_collection_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
672
|
+
end
|
673
|
+
return data, status_code, headers
|
674
|
+
end
|
675
|
+
|
676
|
+
# List permissions available to the current user on this object.
|
677
|
+
# @param ansible_ansible_repository_href [String]
|
678
|
+
# @param [Hash] opts the optional parameters
|
679
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
680
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
681
|
+
# @return [MyPermissionsResponse]
|
682
|
+
def my_permissions(ansible_ansible_repository_href, opts = {})
|
683
|
+
data, _status_code, _headers = my_permissions_with_http_info(ansible_ansible_repository_href, opts)
|
684
|
+
data
|
685
|
+
end
|
686
|
+
|
687
|
+
# List permissions available to the current user on this object.
|
688
|
+
# @param ansible_ansible_repository_href [String]
|
689
|
+
# @param [Hash] opts the optional parameters
|
690
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
691
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
692
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
693
|
+
def my_permissions_with_http_info(ansible_ansible_repository_href, opts = {})
|
694
|
+
if @api_client.config.debugging
|
695
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.my_permissions ...'
|
696
|
+
end
|
697
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
698
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
699
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.my_permissions"
|
700
|
+
end
|
701
|
+
# resource path
|
702
|
+
local_var_path = '{ansible_ansible_repository_href}my_permissions/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
703
|
+
|
704
|
+
# query parameters
|
705
|
+
query_params = opts[:query_params] || {}
|
706
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
707
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
708
|
+
|
709
|
+
# header parameters
|
710
|
+
header_params = opts[:header_params] || {}
|
711
|
+
# HTTP header 'Accept' (if needed)
|
712
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
713
|
+
|
714
|
+
# form parameters
|
715
|
+
form_params = opts[:form_params] || {}
|
716
|
+
|
717
|
+
# http body (model)
|
718
|
+
post_body = opts[:body]
|
719
|
+
|
720
|
+
# return_type
|
721
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
722
|
+
|
723
|
+
# auth_names
|
724
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
725
|
+
|
726
|
+
new_options = opts.merge(
|
727
|
+
:header_params => header_params,
|
728
|
+
:query_params => query_params,
|
729
|
+
:form_params => form_params,
|
730
|
+
:body => post_body,
|
731
|
+
:auth_names => auth_names,
|
732
|
+
:return_type => return_type
|
733
|
+
)
|
734
|
+
|
735
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
736
|
+
if @api_client.config.debugging
|
737
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
738
|
+
end
|
739
|
+
return data, status_code, headers
|
740
|
+
end
|
741
|
+
|
344
742
|
# Update an ansible repository
|
345
743
|
# Trigger an asynchronous partial update task
|
346
744
|
# @param ansible_ansible_repository_href [String]
|
@@ -547,6 +945,74 @@ module PulpAnsibleClient
|
|
547
945
|
return data, status_code, headers
|
548
946
|
end
|
549
947
|
|
948
|
+
# Remove a role for this object from users/groups.
|
949
|
+
# @param ansible_ansible_repository_href [String]
|
950
|
+
# @param nested_role [NestedRole]
|
951
|
+
# @param [Hash] opts the optional parameters
|
952
|
+
# @return [NestedRoleResponse]
|
953
|
+
def remove_role(ansible_ansible_repository_href, nested_role, opts = {})
|
954
|
+
data, _status_code, _headers = remove_role_with_http_info(ansible_ansible_repository_href, nested_role, opts)
|
955
|
+
data
|
956
|
+
end
|
957
|
+
|
958
|
+
# Remove a role for this object from users/groups.
|
959
|
+
# @param ansible_ansible_repository_href [String]
|
960
|
+
# @param nested_role [NestedRole]
|
961
|
+
# @param [Hash] opts the optional parameters
|
962
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
963
|
+
def remove_role_with_http_info(ansible_ansible_repository_href, nested_role, opts = {})
|
964
|
+
if @api_client.config.debugging
|
965
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.remove_role ...'
|
966
|
+
end
|
967
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
968
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
969
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.remove_role"
|
970
|
+
end
|
971
|
+
# verify the required parameter 'nested_role' is set
|
972
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
973
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesAnsibleApi.remove_role"
|
974
|
+
end
|
975
|
+
# resource path
|
976
|
+
local_var_path = '{ansible_ansible_repository_href}remove_role/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
977
|
+
|
978
|
+
# query parameters
|
979
|
+
query_params = opts[:query_params] || {}
|
980
|
+
|
981
|
+
# header parameters
|
982
|
+
header_params = opts[:header_params] || {}
|
983
|
+
# HTTP header 'Accept' (if needed)
|
984
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
985
|
+
# HTTP header 'Content-Type'
|
986
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
987
|
+
|
988
|
+
# form parameters
|
989
|
+
form_params = opts[:form_params] || {}
|
990
|
+
|
991
|
+
# http body (model)
|
992
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
993
|
+
|
994
|
+
# return_type
|
995
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
996
|
+
|
997
|
+
# auth_names
|
998
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
999
|
+
|
1000
|
+
new_options = opts.merge(
|
1001
|
+
:header_params => header_params,
|
1002
|
+
:query_params => query_params,
|
1003
|
+
:form_params => form_params,
|
1004
|
+
:body => post_body,
|
1005
|
+
:auth_names => auth_names,
|
1006
|
+
:return_type => return_type
|
1007
|
+
)
|
1008
|
+
|
1009
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1010
|
+
if @api_client.config.debugging
|
1011
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1012
|
+
end
|
1013
|
+
return data, status_code, headers
|
1014
|
+
end
|
1015
|
+
|
550
1016
|
# Trigger an asynchronous task to sign Ansible content.
|
551
1017
|
# @param ansible_ansible_repository_href [String]
|
552
1018
|
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
@@ -683,6 +1149,74 @@ module PulpAnsibleClient
|
|
683
1149
|
return data, status_code, headers
|
684
1150
|
end
|
685
1151
|
|
1152
|
+
# Trigger an asynchronous task to unmark Ansible content.
|
1153
|
+
# @param ansible_ansible_repository_href [String]
|
1154
|
+
# @param ansible_repository_mark [AnsibleRepositoryMark]
|
1155
|
+
# @param [Hash] opts the optional parameters
|
1156
|
+
# @return [AsyncOperationResponse]
|
1157
|
+
def unmark(ansible_ansible_repository_href, ansible_repository_mark, opts = {})
|
1158
|
+
data, _status_code, _headers = unmark_with_http_info(ansible_ansible_repository_href, ansible_repository_mark, opts)
|
1159
|
+
data
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
# Trigger an asynchronous task to unmark Ansible content.
|
1163
|
+
# @param ansible_ansible_repository_href [String]
|
1164
|
+
# @param ansible_repository_mark [AnsibleRepositoryMark]
|
1165
|
+
# @param [Hash] opts the optional parameters
|
1166
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
1167
|
+
def unmark_with_http_info(ansible_ansible_repository_href, ansible_repository_mark, opts = {})
|
1168
|
+
if @api_client.config.debugging
|
1169
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.unmark ...'
|
1170
|
+
end
|
1171
|
+
# verify the required parameter 'ansible_ansible_repository_href' is set
|
1172
|
+
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.unmark"
|
1174
|
+
end
|
1175
|
+
# verify the required parameter 'ansible_repository_mark' is set
|
1176
|
+
if @api_client.config.client_side_validation && ansible_repository_mark.nil?
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_mark' when calling RepositoriesAnsibleApi.unmark"
|
1178
|
+
end
|
1179
|
+
# resource path
|
1180
|
+
local_var_path = '{ansible_ansible_repository_href}unmark/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
1181
|
+
|
1182
|
+
# query parameters
|
1183
|
+
query_params = opts[:query_params] || {}
|
1184
|
+
|
1185
|
+
# header parameters
|
1186
|
+
header_params = opts[:header_params] || {}
|
1187
|
+
# HTTP header 'Accept' (if needed)
|
1188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1189
|
+
# HTTP header 'Content-Type'
|
1190
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1191
|
+
|
1192
|
+
# form parameters
|
1193
|
+
form_params = opts[:form_params] || {}
|
1194
|
+
|
1195
|
+
# http body (model)
|
1196
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_mark)
|
1197
|
+
|
1198
|
+
# return_type
|
1199
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
1200
|
+
|
1201
|
+
# auth_names
|
1202
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
1203
|
+
|
1204
|
+
new_options = opts.merge(
|
1205
|
+
:header_params => header_params,
|
1206
|
+
:query_params => query_params,
|
1207
|
+
:form_params => form_params,
|
1208
|
+
:body => post_body,
|
1209
|
+
:auth_names => auth_names,
|
1210
|
+
:return_type => return_type
|
1211
|
+
)
|
1212
|
+
|
1213
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1214
|
+
if @api_client.config.debugging
|
1215
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#unmark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1216
|
+
end
|
1217
|
+
return data, status_code, headers
|
1218
|
+
end
|
1219
|
+
|
686
1220
|
# Update an ansible repository
|
687
1221
|
# Trigger an asynchronous update task
|
688
1222
|
# @param ansible_ansible_repository_href [String]
|
@@ -95,14 +95,13 @@ module PulpAnsibleClient
|
|
95
95
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
-
# @option opts [Array<String>] :ordering Ordering
|
98
|
+
# @option opts [Array<String>] :ordering Ordering
|
99
99
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
100
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
102
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
105
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
106
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -125,14 +124,13 @@ module PulpAnsibleClient
|
|
125
124
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
126
125
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
127
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
128
|
-
# @option opts [Array<String>] :ordering Ordering
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
129
128
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
130
129
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
131
130
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
132
131
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
133
132
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
133
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
136
134
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
135
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -170,7 +168,6 @@ module PulpAnsibleClient
|
|
170
168
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
171
169
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
170
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
|
-
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
174
171
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
172
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
173
|
|