pulp_ansible_client 0.16.6 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +25 -25
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- 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 +25 -25
- 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_response.rb +13 -4
- 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_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +205 -205
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- 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_git_remote.rb +204 -204
- 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 +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 +244 -116
@@ -0,0 +1,217 @@
|
|
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 PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# A viewset for cross-repo searches.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :dependency
|
25
|
+
# @option opts [Boolean] :deprecated
|
26
|
+
# @option opts [Array<String>] :distribution Filter collectionversions that are in these distrubtion ids.
|
27
|
+
# @option opts [Array<String>] :distribution_base_path Filter collectionversions that are in these base paths.
|
28
|
+
# @option opts [Boolean] :highest
|
29
|
+
# @option opts [Boolean] :is_deprecated
|
30
|
+
# @option opts [Boolean] :is_highest
|
31
|
+
# @option opts [Boolean] :is_signed
|
32
|
+
# @option opts [String] :keywords
|
33
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
34
|
+
# @option opts [String] :name
|
35
|
+
# @option opts [String] :namespace
|
36
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
37
|
+
# @option opts [Array<String>] :order_by Ordering
|
38
|
+
# @option opts [String] :q
|
39
|
+
# @option opts [Array<String>] :repository Filter collectionversions that are in these repository ids.
|
40
|
+
# @option opts [String] :repository_label Filter labels by search string
|
41
|
+
# @option opts [Array<String>] :repository_name Filter collectionversions that are in these repositories.
|
42
|
+
# @option opts [String] :repository_version
|
43
|
+
# @option opts [Boolean] :signed
|
44
|
+
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
45
|
+
# @option opts [String] :version
|
46
|
+
# @option opts [String] :version_range
|
47
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
48
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
49
|
+
# @return [PaginatedCollectionVersionSearchListResponseList]
|
50
|
+
def list(opts = {})
|
51
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
52
|
+
data
|
53
|
+
end
|
54
|
+
|
55
|
+
# A viewset for cross-repo searches.
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @option opts [String] :dependency
|
58
|
+
# @option opts [Boolean] :deprecated
|
59
|
+
# @option opts [Array<String>] :distribution Filter collectionversions that are in these distrubtion ids.
|
60
|
+
# @option opts [Array<String>] :distribution_base_path Filter collectionversions that are in these base paths.
|
61
|
+
# @option opts [Boolean] :highest
|
62
|
+
# @option opts [Boolean] :is_deprecated
|
63
|
+
# @option opts [Boolean] :is_highest
|
64
|
+
# @option opts [Boolean] :is_signed
|
65
|
+
# @option opts [String] :keywords
|
66
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
67
|
+
# @option opts [String] :name
|
68
|
+
# @option opts [String] :namespace
|
69
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
+
# @option opts [Array<String>] :order_by Ordering
|
71
|
+
# @option opts [String] :q
|
72
|
+
# @option opts [Array<String>] :repository Filter collectionversions that are in these repository ids.
|
73
|
+
# @option opts [String] :repository_label Filter labels by search string
|
74
|
+
# @option opts [Array<String>] :repository_name Filter collectionversions that are in these repositories.
|
75
|
+
# @option opts [String] :repository_version
|
76
|
+
# @option opts [Boolean] :signed
|
77
|
+
# @option opts [String] :tags Filter by comma separate list of tags that must all be matched
|
78
|
+
# @option opts [String] :version
|
79
|
+
# @option opts [String] :version_range
|
80
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
81
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
82
|
+
# @return [Array<(PaginatedCollectionVersionSearchListResponseList, Integer, Hash)>] PaginatedCollectionVersionSearchListResponseList data, response status code and response headers
|
83
|
+
def list_with_http_info(opts = {})
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.list ...'
|
86
|
+
end
|
87
|
+
allowable_values = ["-name", "-namespace", "-pulp_created", "-version", "name", "namespace", "pulp_created", "version"]
|
88
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !opts[:'order_by'].all? { |item| allowable_values.include?(item) }
|
89
|
+
fail ArgumentError, "invalid value for \"order_by\", must include one of #{allowable_values}"
|
90
|
+
end
|
91
|
+
# resource path
|
92
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/'
|
93
|
+
|
94
|
+
# query parameters
|
95
|
+
query_params = opts[:query_params] || {}
|
96
|
+
query_params[:'dependency'] = opts[:'dependency'] if !opts[:'dependency'].nil?
|
97
|
+
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
98
|
+
query_params[:'distribution'] = @api_client.build_collection_param(opts[:'distribution'], :multi) if !opts[:'distribution'].nil?
|
99
|
+
query_params[:'distribution_base_path'] = @api_client.build_collection_param(opts[:'distribution_base_path'], :multi) if !opts[:'distribution_base_path'].nil?
|
100
|
+
query_params[:'highest'] = opts[:'highest'] if !opts[:'highest'].nil?
|
101
|
+
query_params[:'is_deprecated'] = opts[:'is_deprecated'] if !opts[:'is_deprecated'].nil?
|
102
|
+
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
103
|
+
query_params[:'is_signed'] = opts[:'is_signed'] if !opts[:'is_signed'].nil?
|
104
|
+
query_params[:'keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
|
105
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
106
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
107
|
+
query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
|
108
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
109
|
+
query_params[:'order_by'] = @api_client.build_collection_param(opts[:'order_by'], :csv) if !opts[:'order_by'].nil?
|
110
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
111
|
+
query_params[:'repository'] = @api_client.build_collection_param(opts[:'repository'], :multi) if !opts[:'repository'].nil?
|
112
|
+
query_params[:'repository_label'] = opts[:'repository_label'] if !opts[:'repository_label'].nil?
|
113
|
+
query_params[:'repository_name'] = @api_client.build_collection_param(opts[:'repository_name'], :multi) if !opts[:'repository_name'].nil?
|
114
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
115
|
+
query_params[:'signed'] = opts[:'signed'] if !opts[:'signed'].nil?
|
116
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
117
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
118
|
+
query_params[:'version_range'] = opts[:'version_range'] if !opts[:'version_range'].nil?
|
119
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
120
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
121
|
+
|
122
|
+
# header parameters
|
123
|
+
header_params = opts[:header_params] || {}
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
126
|
+
|
127
|
+
# form parameters
|
128
|
+
form_params = opts[:form_params] || {}
|
129
|
+
|
130
|
+
# http body (model)
|
131
|
+
post_body = opts[:body]
|
132
|
+
|
133
|
+
# return_type
|
134
|
+
return_type = opts[:return_type] || 'PaginatedCollectionVersionSearchListResponseList'
|
135
|
+
|
136
|
+
# auth_names
|
137
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
138
|
+
|
139
|
+
new_options = opts.merge(
|
140
|
+
:header_params => header_params,
|
141
|
+
:query_params => query_params,
|
142
|
+
:form_params => form_params,
|
143
|
+
:body => post_body,
|
144
|
+
:auth_names => auth_names,
|
145
|
+
:return_type => return_type
|
146
|
+
)
|
147
|
+
|
148
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
149
|
+
if @api_client.config.debugging
|
150
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
151
|
+
end
|
152
|
+
return data, status_code, headers
|
153
|
+
end
|
154
|
+
|
155
|
+
# A viewset for cross-repo searches.
|
156
|
+
# @param collection_version_search_list [CollectionVersionSearchList]
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [CollectionVersionSearchListResponse]
|
159
|
+
def rebuild(collection_version_search_list, opts = {})
|
160
|
+
data, _status_code, _headers = rebuild_with_http_info(collection_version_search_list, opts)
|
161
|
+
data
|
162
|
+
end
|
163
|
+
|
164
|
+
# A viewset for cross-repo searches.
|
165
|
+
# @param collection_version_search_list [CollectionVersionSearchList]
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(CollectionVersionSearchListResponse, Integer, Hash)>] CollectionVersionSearchListResponse data, response status code and response headers
|
168
|
+
def rebuild_with_http_info(collection_version_search_list, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild ...'
|
171
|
+
end
|
172
|
+
# verify the required parameter 'collection_version_search_list' is set
|
173
|
+
if @api_client.config.client_side_validation && collection_version_search_list.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
|
175
|
+
end
|
176
|
+
# resource path
|
177
|
+
local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/'
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = opts[:query_params] || {}
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = opts[:header_params] || {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
186
|
+
# HTTP header 'Content-Type'
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
188
|
+
|
189
|
+
# form parameters
|
190
|
+
form_params = opts[:form_params] || {}
|
191
|
+
|
192
|
+
# http body (model)
|
193
|
+
post_body = opts[:body] || @api_client.object_to_http_body(collection_version_search_list)
|
194
|
+
|
195
|
+
# return_type
|
196
|
+
return_type = opts[:return_type] || 'CollectionVersionSearchListResponse'
|
197
|
+
|
198
|
+
# auth_names
|
199
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
200
|
+
|
201
|
+
new_options = opts.merge(
|
202
|
+
:header_params => header_params,
|
203
|
+
:query_params => query_params,
|
204
|
+
:form_params => form_params,
|
205
|
+
:body => post_body,
|
206
|
+
:auth_names => auth_names,
|
207
|
+
:return_type => return_type
|
208
|
+
)
|
209
|
+
|
210
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
211
|
+
if @api_client.config.debugging
|
212
|
+
@api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
213
|
+
end
|
214
|
+
return data, status_code, headers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
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_collection_remote_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(ansible_collection_remote_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(ansible_collection_remote_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param ansible_collection_remote_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_collection_remote_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'ansible_collection_remote_href' is set
|
42
|
+
if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.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 RemotesCollectionApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{ansible_collection_remote_href}add_role/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_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: RemotesCollectionApi#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 a collection remote
|
23
91
|
# ViewSet for Collection Remotes.
|
24
92
|
# @param ansible_collection_remote [AnsibleCollectionRemote]
|
@@ -163,6 +231,10 @@ module PulpAnsibleClient
|
|
163
231
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
164
232
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
165
233
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
234
|
+
# @option opts [String] :url Filter results where url matches value
|
235
|
+
# @option opts [String] :url__contains Filter results where url contains value
|
236
|
+
# @option opts [String] :url__icontains Filter results where url contains value
|
237
|
+
# @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
|
166
238
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
167
239
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
168
240
|
# @return [PaginatedansibleCollectionRemoteResponseList]
|
@@ -189,6 +261,10 @@ module PulpAnsibleClient
|
|
189
261
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
190
262
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
191
263
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
264
|
+
# @option opts [String] :url Filter results where url matches value
|
265
|
+
# @option opts [String] :url__contains Filter results where url contains value
|
266
|
+
# @option opts [String] :url__icontains Filter results where url contains value
|
267
|
+
# @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
|
192
268
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
193
269
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
194
270
|
# @return [Array<(PaginatedansibleCollectionRemoteResponseList, Integer, Hash)>] PaginatedansibleCollectionRemoteResponseList data, response status code and response headers
|
@@ -196,7 +272,7 @@ module PulpAnsibleClient
|
|
196
272
|
if @api_client.config.debugging
|
197
273
|
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...'
|
198
274
|
end
|
199
|
-
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
275
|
+
allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "tls_validation", "token", "total_timeout", "url", "username"]
|
200
276
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
201
277
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
202
278
|
end
|
@@ -220,6 +296,10 @@ module PulpAnsibleClient
|
|
220
296
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
221
297
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
222
298
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
299
|
+
query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
|
300
|
+
query_params[:'url__contains'] = opts[:'url__contains'] if !opts[:'url__contains'].nil?
|
301
|
+
query_params[:'url__icontains'] = opts[:'url__icontains'] if !opts[:'url__icontains'].nil?
|
302
|
+
query_params[:'url__in'] = @api_client.build_collection_param(opts[:'url__in'], :csv) if !opts[:'url__in'].nil?
|
223
303
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
224
304
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
225
305
|
|
@@ -256,6 +336,138 @@ module PulpAnsibleClient
|
|
256
336
|
return data, status_code, headers
|
257
337
|
end
|
258
338
|
|
339
|
+
# List roles assigned to this object.
|
340
|
+
# @param ansible_collection_remote_href [String]
|
341
|
+
# @param [Hash] opts the optional parameters
|
342
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
343
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
344
|
+
# @return [ObjectRolesResponse]
|
345
|
+
def list_roles(ansible_collection_remote_href, opts = {})
|
346
|
+
data, _status_code, _headers = list_roles_with_http_info(ansible_collection_remote_href, opts)
|
347
|
+
data
|
348
|
+
end
|
349
|
+
|
350
|
+
# List roles assigned to this object.
|
351
|
+
# @param ansible_collection_remote_href [String]
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
354
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
355
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
356
|
+
def list_roles_with_http_info(ansible_collection_remote_href, opts = {})
|
357
|
+
if @api_client.config.debugging
|
358
|
+
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list_roles ...'
|
359
|
+
end
|
360
|
+
# verify the required parameter 'ansible_collection_remote_href' is set
|
361
|
+
if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
|
362
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.list_roles"
|
363
|
+
end
|
364
|
+
# resource path
|
365
|
+
local_var_path = '{ansible_collection_remote_href}list_roles/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
|
366
|
+
|
367
|
+
# query parameters
|
368
|
+
query_params = opts[:query_params] || {}
|
369
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
370
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
371
|
+
|
372
|
+
# header parameters
|
373
|
+
header_params = opts[:header_params] || {}
|
374
|
+
# HTTP header 'Accept' (if needed)
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
376
|
+
|
377
|
+
# form parameters
|
378
|
+
form_params = opts[:form_params] || {}
|
379
|
+
|
380
|
+
# http body (model)
|
381
|
+
post_body = opts[:body]
|
382
|
+
|
383
|
+
# return_type
|
384
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
385
|
+
|
386
|
+
# auth_names
|
387
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
388
|
+
|
389
|
+
new_options = opts.merge(
|
390
|
+
:header_params => header_params,
|
391
|
+
:query_params => query_params,
|
392
|
+
:form_params => form_params,
|
393
|
+
:body => post_body,
|
394
|
+
:auth_names => auth_names,
|
395
|
+
:return_type => return_type
|
396
|
+
)
|
397
|
+
|
398
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
399
|
+
if @api_client.config.debugging
|
400
|
+
@api_client.config.logger.debug "API called: RemotesCollectionApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
401
|
+
end
|
402
|
+
return data, status_code, headers
|
403
|
+
end
|
404
|
+
|
405
|
+
# List permissions available to the current user on this object.
|
406
|
+
# @param ansible_collection_remote_href [String]
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
409
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
410
|
+
# @return [MyPermissionsResponse]
|
411
|
+
def my_permissions(ansible_collection_remote_href, opts = {})
|
412
|
+
data, _status_code, _headers = my_permissions_with_http_info(ansible_collection_remote_href, opts)
|
413
|
+
data
|
414
|
+
end
|
415
|
+
|
416
|
+
# List permissions available to the current user on this object.
|
417
|
+
# @param ansible_collection_remote_href [String]
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
420
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
421
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
422
|
+
def my_permissions_with_http_info(ansible_collection_remote_href, opts = {})
|
423
|
+
if @api_client.config.debugging
|
424
|
+
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.my_permissions ...'
|
425
|
+
end
|
426
|
+
# verify the required parameter 'ansible_collection_remote_href' is set
|
427
|
+
if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
|
428
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.my_permissions"
|
429
|
+
end
|
430
|
+
# resource path
|
431
|
+
local_var_path = '{ansible_collection_remote_href}my_permissions/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
|
432
|
+
|
433
|
+
# query parameters
|
434
|
+
query_params = opts[:query_params] || {}
|
435
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
436
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
437
|
+
|
438
|
+
# header parameters
|
439
|
+
header_params = opts[:header_params] || {}
|
440
|
+
# HTTP header 'Accept' (if needed)
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
442
|
+
|
443
|
+
# form parameters
|
444
|
+
form_params = opts[:form_params] || {}
|
445
|
+
|
446
|
+
# http body (model)
|
447
|
+
post_body = opts[:body]
|
448
|
+
|
449
|
+
# return_type
|
450
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
451
|
+
|
452
|
+
# auth_names
|
453
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
454
|
+
|
455
|
+
new_options = opts.merge(
|
456
|
+
:header_params => header_params,
|
457
|
+
:query_params => query_params,
|
458
|
+
:form_params => form_params,
|
459
|
+
:body => post_body,
|
460
|
+
:auth_names => auth_names,
|
461
|
+
:return_type => return_type
|
462
|
+
)
|
463
|
+
|
464
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
465
|
+
if @api_client.config.debugging
|
466
|
+
@api_client.config.logger.debug "API called: RemotesCollectionApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
467
|
+
end
|
468
|
+
return data, status_code, headers
|
469
|
+
end
|
470
|
+
|
259
471
|
# Update a collection remote
|
260
472
|
# Trigger an asynchronous partial update task
|
261
473
|
# @param ansible_collection_remote_href [String]
|
@@ -394,6 +606,74 @@ module PulpAnsibleClient
|
|
394
606
|
return data, status_code, headers
|
395
607
|
end
|
396
608
|
|
609
|
+
# Remove a role for this object from users/groups.
|
610
|
+
# @param ansible_collection_remote_href [String]
|
611
|
+
# @param nested_role [NestedRole]
|
612
|
+
# @param [Hash] opts the optional parameters
|
613
|
+
# @return [NestedRoleResponse]
|
614
|
+
def remove_role(ansible_collection_remote_href, nested_role, opts = {})
|
615
|
+
data, _status_code, _headers = remove_role_with_http_info(ansible_collection_remote_href, nested_role, opts)
|
616
|
+
data
|
617
|
+
end
|
618
|
+
|
619
|
+
# Remove a role for this object from users/groups.
|
620
|
+
# @param ansible_collection_remote_href [String]
|
621
|
+
# @param nested_role [NestedRole]
|
622
|
+
# @param [Hash] opts the optional parameters
|
623
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
624
|
+
def remove_role_with_http_info(ansible_collection_remote_href, nested_role, opts = {})
|
625
|
+
if @api_client.config.debugging
|
626
|
+
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.remove_role ...'
|
627
|
+
end
|
628
|
+
# verify the required parameter 'ansible_collection_remote_href' is set
|
629
|
+
if @api_client.config.client_side_validation && ansible_collection_remote_href.nil?
|
630
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.remove_role"
|
631
|
+
end
|
632
|
+
# verify the required parameter 'nested_role' is set
|
633
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
634
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesCollectionApi.remove_role"
|
635
|
+
end
|
636
|
+
# resource path
|
637
|
+
local_var_path = '{ansible_collection_remote_href}remove_role/'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/'))
|
638
|
+
|
639
|
+
# query parameters
|
640
|
+
query_params = opts[:query_params] || {}
|
641
|
+
|
642
|
+
# header parameters
|
643
|
+
header_params = opts[:header_params] || {}
|
644
|
+
# HTTP header 'Accept' (if needed)
|
645
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
646
|
+
# HTTP header 'Content-Type'
|
647
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
648
|
+
|
649
|
+
# form parameters
|
650
|
+
form_params = opts[:form_params] || {}
|
651
|
+
|
652
|
+
# http body (model)
|
653
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
654
|
+
|
655
|
+
# return_type
|
656
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
657
|
+
|
658
|
+
# auth_names
|
659
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
660
|
+
|
661
|
+
new_options = opts.merge(
|
662
|
+
:header_params => header_params,
|
663
|
+
:query_params => query_params,
|
664
|
+
:form_params => form_params,
|
665
|
+
:body => post_body,
|
666
|
+
:auth_names => auth_names,
|
667
|
+
:return_type => return_type
|
668
|
+
)
|
669
|
+
|
670
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
671
|
+
if @api_client.config.debugging
|
672
|
+
@api_client.config.logger.debug "API called: RemotesCollectionApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
673
|
+
end
|
674
|
+
return data, status_code, headers
|
675
|
+
end
|
676
|
+
|
397
677
|
# Update a collection remote
|
398
678
|
# Trigger an asynchronous update task
|
399
679
|
# @param ansible_collection_remote_href [String]
|