pulp_ansible_client 0.16.4 → 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 +4 -4
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleResponse.md +2 -2
- 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 +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 +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +219 -219
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +147 -147
- 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 +11 -11
- 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 +211 -211
- 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_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 +17 -17
- 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 +17 -17
- 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 +241 -113
@@ -0,0 +1,276 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class ContentNamespacesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get the logo for the this namespace.
|
23
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
26
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
27
|
+
# @return [nil]
|
28
|
+
def avatar(ansible_ansible_namespace_metadata_href, opts = {})
|
29
|
+
avatar_with_http_info(ansible_ansible_namespace_metadata_href, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get the logo for the this namespace.
|
34
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
37
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def avatar_with_http_info(ansible_ansible_namespace_metadata_href, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.avatar ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
|
44
|
+
if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.avatar"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '{ansible_ansible_namespace_metadata_href}avatar/'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
53
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
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
|
+
|
60
|
+
# form parameters
|
61
|
+
form_params = opts[:form_params] || {}
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = opts[:body]
|
65
|
+
|
66
|
+
# return_type
|
67
|
+
return_type = opts[:return_type]
|
68
|
+
|
69
|
+
# auth_names
|
70
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
71
|
+
|
72
|
+
new_options = opts.merge(
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: ContentNamespacesApi#avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
88
|
+
# List ansible namespace metadatas
|
89
|
+
# ViewSet for AnsibleNamespace.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [String] :company Filter results where company matches value
|
92
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
93
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
94
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
95
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
96
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
97
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
98
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
99
|
+
# @option opts [String] :name Filter results where name matches value
|
100
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
101
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
102
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
103
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
104
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
105
|
+
# @option opts [Array<String>] :ordering Ordering
|
106
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
107
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
108
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
109
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
110
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
111
|
+
# @return [PaginatedansibleAnsibleNamespaceMetadataResponseList]
|
112
|
+
def list(opts = {})
|
113
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
114
|
+
data
|
115
|
+
end
|
116
|
+
|
117
|
+
# List ansible namespace metadatas
|
118
|
+
# ViewSet for AnsibleNamespace.
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @option opts [String] :company Filter results where company matches value
|
121
|
+
# @option opts [String] :company__contains Filter results where company contains value
|
122
|
+
# @option opts [String] :company__icontains Filter results where company contains value
|
123
|
+
# @option opts [Array<String>] :company__in Filter results where company is in a comma-separated list of values
|
124
|
+
# @option opts [String] :company__startswith Filter results where company starts with value
|
125
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
126
|
+
# @option opts [String] :metadata_sha256 Filter results where metadata_sha256 matches value
|
127
|
+
# @option opts [Array<String>] :metadata_sha256__in Filter results where metadata_sha256 is in a comma-separated list of values
|
128
|
+
# @option opts [String] :name Filter results where name matches value
|
129
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
130
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
131
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
132
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
133
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
134
|
+
# @option opts [Array<String>] :ordering Ordering
|
135
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
136
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
137
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
138
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
|
+
# @return [Array<(PaginatedansibleAnsibleNamespaceMetadataResponseList, Integer, Hash)>] PaginatedansibleAnsibleNamespaceMetadataResponseList data, response status code and response headers
|
141
|
+
def list_with_http_info(opts = {})
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.list ...'
|
144
|
+
end
|
145
|
+
allowable_values = ["-avatar_sha256", "-company", "-description", "-email", "-links", "-metadata_sha256", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-resources", "-timestamp_of_interest", "-upstream_id", "avatar_sha256", "company", "description", "email", "links", "metadata_sha256", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "resources", "timestamp_of_interest", "upstream_id"]
|
146
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
|
+
end
|
149
|
+
# resource path
|
150
|
+
local_var_path = '/pulp/api/v3/content/ansible/namespaces/'
|
151
|
+
|
152
|
+
# query parameters
|
153
|
+
query_params = opts[:query_params] || {}
|
154
|
+
query_params[:'company'] = opts[:'company'] if !opts[:'company'].nil?
|
155
|
+
query_params[:'company__contains'] = opts[:'company__contains'] if !opts[:'company__contains'].nil?
|
156
|
+
query_params[:'company__icontains'] = opts[:'company__icontains'] if !opts[:'company__icontains'].nil?
|
157
|
+
query_params[:'company__in'] = @api_client.build_collection_param(opts[:'company__in'], :csv) if !opts[:'company__in'].nil?
|
158
|
+
query_params[:'company__startswith'] = opts[:'company__startswith'] if !opts[:'company__startswith'].nil?
|
159
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
160
|
+
query_params[:'metadata_sha256'] = opts[:'metadata_sha256'] if !opts[:'metadata_sha256'].nil?
|
161
|
+
query_params[:'metadata_sha256__in'] = @api_client.build_collection_param(opts[:'metadata_sha256__in'], :csv) if !opts[:'metadata_sha256__in'].nil?
|
162
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
163
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
164
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
165
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
166
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
167
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
168
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
169
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
170
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
171
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
172
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
173
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
174
|
+
|
175
|
+
# header parameters
|
176
|
+
header_params = opts[:header_params] || {}
|
177
|
+
# HTTP header 'Accept' (if needed)
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = opts[:form_params] || {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = opts[:body]
|
185
|
+
|
186
|
+
# return_type
|
187
|
+
return_type = opts[:return_type] || 'PaginatedansibleAnsibleNamespaceMetadataResponseList'
|
188
|
+
|
189
|
+
# auth_names
|
190
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
191
|
+
|
192
|
+
new_options = opts.merge(
|
193
|
+
:header_params => header_params,
|
194
|
+
:query_params => query_params,
|
195
|
+
:form_params => form_params,
|
196
|
+
:body => post_body,
|
197
|
+
:auth_names => auth_names,
|
198
|
+
:return_type => return_type
|
199
|
+
)
|
200
|
+
|
201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "API called: ContentNamespacesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
204
|
+
end
|
205
|
+
return data, status_code, headers
|
206
|
+
end
|
207
|
+
|
208
|
+
# Inspect an ansible namespace metadata
|
209
|
+
# ViewSet for AnsibleNamespace.
|
210
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
213
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
214
|
+
# @return [AnsibleAnsibleNamespaceMetadataResponse]
|
215
|
+
def read(ansible_ansible_namespace_metadata_href, opts = {})
|
216
|
+
data, _status_code, _headers = read_with_http_info(ansible_ansible_namespace_metadata_href, opts)
|
217
|
+
data
|
218
|
+
end
|
219
|
+
|
220
|
+
# Inspect an ansible namespace metadata
|
221
|
+
# ViewSet for AnsibleNamespace.
|
222
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
225
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
226
|
+
# @return [Array<(AnsibleAnsibleNamespaceMetadataResponse, Integer, Hash)>] AnsibleAnsibleNamespaceMetadataResponse data, response status code and response headers
|
227
|
+
def read_with_http_info(ansible_ansible_namespace_metadata_href, opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.read ...'
|
230
|
+
end
|
231
|
+
# verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
|
232
|
+
if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.read"
|
234
|
+
end
|
235
|
+
# resource path
|
236
|
+
local_var_path = '{ansible_ansible_namespace_metadata_href}'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = opts[:query_params] || {}
|
240
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
241
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
242
|
+
|
243
|
+
# header parameters
|
244
|
+
header_params = opts[:header_params] || {}
|
245
|
+
# HTTP header 'Accept' (if needed)
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
247
|
+
|
248
|
+
# form parameters
|
249
|
+
form_params = opts[:form_params] || {}
|
250
|
+
|
251
|
+
# http body (model)
|
252
|
+
post_body = opts[:body]
|
253
|
+
|
254
|
+
# return_type
|
255
|
+
return_type = opts[:return_type] || 'AnsibleAnsibleNamespaceMetadataResponse'
|
256
|
+
|
257
|
+
# auth_names
|
258
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
259
|
+
|
260
|
+
new_options = opts.merge(
|
261
|
+
:header_params => header_params,
|
262
|
+
:query_params => query_params,
|
263
|
+
:form_params => form_params,
|
264
|
+
:body => post_body,
|
265
|
+
:auth_names => auth_names,
|
266
|
+
:return_type => return_type
|
267
|
+
)
|
268
|
+
|
269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "API called: ContentNamespacesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
272
|
+
end
|
273
|
+
return data, status_code, headers
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
@@ -19,6 +19,74 @@ 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_distribution_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(ansible_ansible_distribution_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(ansible_ansible_distribution_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param ansible_ansible_distribution_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_distribution_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'ansible_ansible_distribution_href' is set
|
42
|
+
if @api_client.config.client_side_validation && ansible_ansible_distribution_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_distribution_href' when calling DistributionsAnsibleApi.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 DistributionsAnsibleApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{ansible_ansible_distribution_href}add_role/'.sub('{' + 'ansible_ansible_distribution_href' + '}', CGI.escape(ansible_ansible_distribution_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: DistributionsAnsibleApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
22
90
|
# Create an ansible distribution
|
23
91
|
# Trigger an asynchronous create task
|
24
92
|
# @param ansible_ansible_distribution [AnsibleAnsibleDistribution]
|
@@ -161,6 +229,8 @@ module PulpAnsibleClient
|
|
161
229
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
230
|
# @option opts [Array<String>] :ordering Ordering
|
163
231
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
232
|
+
# @option opts [String] :repository Filter results where repository matches value
|
233
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
164
234
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
165
235
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
166
236
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -186,6 +256,8 @@ module PulpAnsibleClient
|
|
186
256
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
187
257
|
# @option opts [Array<String>] :ordering Ordering
|
188
258
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
259
|
+
# @option opts [String] :repository Filter results where repository matches value
|
260
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
189
261
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
190
262
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
191
263
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -216,6 +288,8 @@ module PulpAnsibleClient
|
|
216
288
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
217
289
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
218
290
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
291
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
292
|
+
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
219
293
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
220
294
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
221
295
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
@@ -253,6 +327,138 @@ module PulpAnsibleClient
|
|
253
327
|
return data, status_code, headers
|
254
328
|
end
|
255
329
|
|
330
|
+
# List roles assigned to this object.
|
331
|
+
# @param ansible_ansible_distribution_href [String]
|
332
|
+
# @param [Hash] opts the optional parameters
|
333
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
334
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
335
|
+
# @return [ObjectRolesResponse]
|
336
|
+
def list_roles(ansible_ansible_distribution_href, opts = {})
|
337
|
+
data, _status_code, _headers = list_roles_with_http_info(ansible_ansible_distribution_href, opts)
|
338
|
+
data
|
339
|
+
end
|
340
|
+
|
341
|
+
# List roles assigned to this object.
|
342
|
+
# @param ansible_ansible_distribution_href [String]
|
343
|
+
# @param [Hash] opts the optional parameters
|
344
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
345
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
346
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
347
|
+
def list_roles_with_http_info(ansible_ansible_distribution_href, opts = {})
|
348
|
+
if @api_client.config.debugging
|
349
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.list_roles ...'
|
350
|
+
end
|
351
|
+
# verify the required parameter 'ansible_ansible_distribution_href' is set
|
352
|
+
if @api_client.config.client_side_validation && ansible_ansible_distribution_href.nil?
|
353
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_distribution_href' when calling DistributionsAnsibleApi.list_roles"
|
354
|
+
end
|
355
|
+
# resource path
|
356
|
+
local_var_path = '{ansible_ansible_distribution_href}list_roles/'.sub('{' + 'ansible_ansible_distribution_href' + '}', CGI.escape(ansible_ansible_distribution_href.to_s).gsub('%2F', '/'))
|
357
|
+
|
358
|
+
# query parameters
|
359
|
+
query_params = opts[:query_params] || {}
|
360
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
361
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
362
|
+
|
363
|
+
# header parameters
|
364
|
+
header_params = opts[:header_params] || {}
|
365
|
+
# HTTP header 'Accept' (if needed)
|
366
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
367
|
+
|
368
|
+
# form parameters
|
369
|
+
form_params = opts[:form_params] || {}
|
370
|
+
|
371
|
+
# http body (model)
|
372
|
+
post_body = opts[:body]
|
373
|
+
|
374
|
+
# return_type
|
375
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
376
|
+
|
377
|
+
# auth_names
|
378
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
379
|
+
|
380
|
+
new_options = opts.merge(
|
381
|
+
:header_params => header_params,
|
382
|
+
:query_params => query_params,
|
383
|
+
:form_params => form_params,
|
384
|
+
:body => post_body,
|
385
|
+
:auth_names => auth_names,
|
386
|
+
:return_type => return_type
|
387
|
+
)
|
388
|
+
|
389
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
390
|
+
if @api_client.config.debugging
|
391
|
+
@api_client.config.logger.debug "API called: DistributionsAnsibleApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
392
|
+
end
|
393
|
+
return data, status_code, headers
|
394
|
+
end
|
395
|
+
|
396
|
+
# List permissions available to the current user on this object.
|
397
|
+
# @param ansible_ansible_distribution_href [String]
|
398
|
+
# @param [Hash] opts the optional parameters
|
399
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
400
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
401
|
+
# @return [MyPermissionsResponse]
|
402
|
+
def my_permissions(ansible_ansible_distribution_href, opts = {})
|
403
|
+
data, _status_code, _headers = my_permissions_with_http_info(ansible_ansible_distribution_href, opts)
|
404
|
+
data
|
405
|
+
end
|
406
|
+
|
407
|
+
# List permissions available to the current user on this object.
|
408
|
+
# @param ansible_ansible_distribution_href [String]
|
409
|
+
# @param [Hash] opts the optional parameters
|
410
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
411
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
412
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
413
|
+
def my_permissions_with_http_info(ansible_ansible_distribution_href, opts = {})
|
414
|
+
if @api_client.config.debugging
|
415
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.my_permissions ...'
|
416
|
+
end
|
417
|
+
# verify the required parameter 'ansible_ansible_distribution_href' is set
|
418
|
+
if @api_client.config.client_side_validation && ansible_ansible_distribution_href.nil?
|
419
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_distribution_href' when calling DistributionsAnsibleApi.my_permissions"
|
420
|
+
end
|
421
|
+
# resource path
|
422
|
+
local_var_path = '{ansible_ansible_distribution_href}my_permissions/'.sub('{' + 'ansible_ansible_distribution_href' + '}', CGI.escape(ansible_ansible_distribution_href.to_s).gsub('%2F', '/'))
|
423
|
+
|
424
|
+
# query parameters
|
425
|
+
query_params = opts[:query_params] || {}
|
426
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
427
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
428
|
+
|
429
|
+
# header parameters
|
430
|
+
header_params = opts[:header_params] || {}
|
431
|
+
# HTTP header 'Accept' (if needed)
|
432
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
433
|
+
|
434
|
+
# form parameters
|
435
|
+
form_params = opts[:form_params] || {}
|
436
|
+
|
437
|
+
# http body (model)
|
438
|
+
post_body = opts[:body]
|
439
|
+
|
440
|
+
# return_type
|
441
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
442
|
+
|
443
|
+
# auth_names
|
444
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
445
|
+
|
446
|
+
new_options = opts.merge(
|
447
|
+
:header_params => header_params,
|
448
|
+
:query_params => query_params,
|
449
|
+
:form_params => form_params,
|
450
|
+
:body => post_body,
|
451
|
+
:auth_names => auth_names,
|
452
|
+
:return_type => return_type
|
453
|
+
)
|
454
|
+
|
455
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
456
|
+
if @api_client.config.debugging
|
457
|
+
@api_client.config.logger.debug "API called: DistributionsAnsibleApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
458
|
+
end
|
459
|
+
return data, status_code, headers
|
460
|
+
end
|
461
|
+
|
256
462
|
# Update an ansible distribution
|
257
463
|
# Trigger an asynchronous partial update task
|
258
464
|
# @param ansible_ansible_distribution_href [String]
|
@@ -391,6 +597,74 @@ module PulpAnsibleClient
|
|
391
597
|
return data, status_code, headers
|
392
598
|
end
|
393
599
|
|
600
|
+
# Remove a role for this object from users/groups.
|
601
|
+
# @param ansible_ansible_distribution_href [String]
|
602
|
+
# @param nested_role [NestedRole]
|
603
|
+
# @param [Hash] opts the optional parameters
|
604
|
+
# @return [NestedRoleResponse]
|
605
|
+
def remove_role(ansible_ansible_distribution_href, nested_role, opts = {})
|
606
|
+
data, _status_code, _headers = remove_role_with_http_info(ansible_ansible_distribution_href, nested_role, opts)
|
607
|
+
data
|
608
|
+
end
|
609
|
+
|
610
|
+
# Remove a role for this object from users/groups.
|
611
|
+
# @param ansible_ansible_distribution_href [String]
|
612
|
+
# @param nested_role [NestedRole]
|
613
|
+
# @param [Hash] opts the optional parameters
|
614
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
615
|
+
def remove_role_with_http_info(ansible_ansible_distribution_href, nested_role, opts = {})
|
616
|
+
if @api_client.config.debugging
|
617
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.remove_role ...'
|
618
|
+
end
|
619
|
+
# verify the required parameter 'ansible_ansible_distribution_href' is set
|
620
|
+
if @api_client.config.client_side_validation && ansible_ansible_distribution_href.nil?
|
621
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_distribution_href' when calling DistributionsAnsibleApi.remove_role"
|
622
|
+
end
|
623
|
+
# verify the required parameter 'nested_role' is set
|
624
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
625
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsAnsibleApi.remove_role"
|
626
|
+
end
|
627
|
+
# resource path
|
628
|
+
local_var_path = '{ansible_ansible_distribution_href}remove_role/'.sub('{' + 'ansible_ansible_distribution_href' + '}', CGI.escape(ansible_ansible_distribution_href.to_s).gsub('%2F', '/'))
|
629
|
+
|
630
|
+
# query parameters
|
631
|
+
query_params = opts[:query_params] || {}
|
632
|
+
|
633
|
+
# header parameters
|
634
|
+
header_params = opts[:header_params] || {}
|
635
|
+
# HTTP header 'Accept' (if needed)
|
636
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
637
|
+
# HTTP header 'Content-Type'
|
638
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
639
|
+
|
640
|
+
# form parameters
|
641
|
+
form_params = opts[:form_params] || {}
|
642
|
+
|
643
|
+
# http body (model)
|
644
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
645
|
+
|
646
|
+
# return_type
|
647
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
648
|
+
|
649
|
+
# auth_names
|
650
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
651
|
+
|
652
|
+
new_options = opts.merge(
|
653
|
+
:header_params => header_params,
|
654
|
+
:query_params => query_params,
|
655
|
+
:form_params => form_params,
|
656
|
+
:body => post_body,
|
657
|
+
:auth_names => auth_names,
|
658
|
+
:return_type => return_type
|
659
|
+
)
|
660
|
+
|
661
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
662
|
+
if @api_client.config.debugging
|
663
|
+
@api_client.config.logger.debug "API called: DistributionsAnsibleApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
664
|
+
end
|
665
|
+
return data, status_code, headers
|
666
|
+
end
|
667
|
+
|
394
668
|
# Update an ansible distribution
|
395
669
|
# Trigger an asynchronous update task
|
396
670
|
# @param ansible_ansible_distribution_href [String]
|