pulp_ansible_client 0.16.5 → 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 +89 -21
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +4 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +3 -1
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +233 -1
- data/docs/GalaxyDetailApi.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 +4 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +237 -1
- data/docs/RemotesGitApi.md +229 -1
- data/docs/RemotesRoleApi.md +229 -1
- data/docs/RepositoriesAnsibleApi.md +465 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Repository.md +25 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/docs/VersionsApi.md +11 -11
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
- 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_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_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_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 +281 -1
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- 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 +15 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
- 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_git_remote.rb +237 -237
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- 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_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 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
- 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/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 +15 -6
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- 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_add_remove_content.rb +2 -2
- 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 -1
- 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 +50 -0
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/distributions_ansible_api_spec.rb +52 -0
- 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_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_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_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 +54 -0
- data/spec/api/remotes_git_api_spec.rb +50 -0
- data/spec/api/remotes_role_api_spec.rb +50 -0
- data/spec/api/repositories_ansible_api_spec.rb +106 -0
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- 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_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- 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 +20 -20
- 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 +242 -114
@@ -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]
|
@@ -158,6 +294,14 @@ module PulpAnsibleClient
|
|
158
294
|
# @option opts [Array<String>] :ordering Ordering
|
159
295
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
296
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
297
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
298
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
299
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
300
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
301
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
302
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
303
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
304
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
161
305
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
162
306
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
163
307
|
# @return [PaginatedansibleAnsibleRepositoryResponseList]
|
@@ -179,6 +323,14 @@ module PulpAnsibleClient
|
|
179
323
|
# @option opts [Array<String>] :ordering Ordering
|
180
324
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
181
325
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
326
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
327
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
328
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
329
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
330
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
331
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
332
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
333
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
182
334
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
183
335
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
184
336
|
# @return [Array<(PaginatedansibleAnsibleRepositoryResponseList, Integer, Hash)>] PaginatedansibleAnsibleRepositoryResponseList data, response status code and response headers
|
@@ -205,6 +357,14 @@ module PulpAnsibleClient
|
|
205
357
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
206
358
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
207
359
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
360
|
+
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
361
|
+
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
362
|
+
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
363
|
+
query_params[:'retain_repo_versions__isnull'] = opts[:'retain_repo_versions__isnull'] if !opts[:'retain_repo_versions__isnull'].nil?
|
364
|
+
query_params[:'retain_repo_versions__lt'] = opts[:'retain_repo_versions__lt'] if !opts[:'retain_repo_versions__lt'].nil?
|
365
|
+
query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
|
366
|
+
query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
|
367
|
+
query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
|
208
368
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
209
369
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
210
370
|
|
@@ -241,6 +401,140 @@ module PulpAnsibleClient
|
|
241
401
|
return data, status_code, headers
|
242
402
|
end
|
243
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
|
+
|
244
538
|
# Modify Repository Content
|
245
539
|
# Trigger an asynchronous task to create a new repository version.
|
246
540
|
# @param ansible_ansible_repository_href [String]
|
@@ -311,6 +605,140 @@ module PulpAnsibleClient
|
|
311
605
|
return data, status_code, headers
|
312
606
|
end
|
313
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
|
+
|
314
742
|
# Update an ansible repository
|
315
743
|
# Trigger an asynchronous partial update task
|
316
744
|
# @param ansible_ansible_repository_href [String]
|
@@ -517,6 +945,74 @@ module PulpAnsibleClient
|
|
517
945
|
return data, status_code, headers
|
518
946
|
end
|
519
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
|
+
|
520
1016
|
# Trigger an asynchronous task to sign Ansible content.
|
521
1017
|
# @param ansible_ansible_repository_href [String]
|
522
1018
|
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
@@ -653,6 +1149,74 @@ module PulpAnsibleClient
|
|
653
1149
|
return data, status_code, headers
|
654
1150
|
end
|
655
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
|
+
|
656
1220
|
# Update an ansible repository
|
657
1221
|
# Trigger an asynchronous update task
|
658
1222
|
# @param ansible_ansible_repository_href [String]
|