pulpcore_client 3.19.1 → 3.20.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 +93 -16
- data/docs/AccessPoliciesApi.md +2 -2
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/AcsApi.md +417 -0
- data/docs/AlternateContentSource.md +23 -0
- data/docs/AlternateContentSourceResponse.md +27 -0
- data/docs/ArtifactsApi.md +2 -2
- data/docs/ContentApi.md +117 -3
- data/docs/ContentGuard.md +19 -0
- data/docs/ContentguardsApi.md +282 -3
- data/docs/ContentguardsContentRedirectApi.md +230 -2
- data/docs/ContentguardsRbacApi.md +2 -2
- data/docs/Distribution.md +25 -0
- data/docs/DistributionsApi.md +283 -3
- data/docs/Export.md +17 -0
- data/docs/ExportResponse.md +25 -0
- data/docs/Exporter.md +17 -0
- data/docs/ExporterResponse.md +21 -0
- data/docs/ExportersApi.md +362 -0
- data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
- data/docs/ExportersFilesystemApi.md +2 -2
- data/docs/ExportersFilesystemExportsApi.md +0 -2
- data/docs/ExportersPulpApi.md +2 -2
- data/docs/ExportersPulpExportsApi.md +0 -2
- data/docs/GroupRole.md +1 -1
- data/docs/GroupRoleResponse.md +6 -2
- data/docs/GroupsApi.md +2 -2
- data/docs/GroupsRolesApi.md +2 -2
- data/docs/GroupsUsersApi.md +0 -2
- data/docs/Import.md +19 -0
- data/docs/Importer.md +17 -0
- data/docs/ImporterResponse.md +21 -0
- data/docs/ImportersApi.md +361 -0
- data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
- data/docs/ImportersPulpApi.md +2 -2
- data/docs/ImportersPulpImportsApi.md +0 -2
- data/docs/MultipleArtifactContent.md +17 -0
- data/docs/OrphansCleanup.md +1 -1
- data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
- data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
- data/docs/PaginatedExporterResponseList.md +23 -0
- data/docs/PaginatedImporterResponseList.md +23 -0
- data/docs/PaginatedRemoteResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedAlternateContentSource.md +23 -0
- data/docs/PatchedContentGuard.md +19 -0
- data/docs/PatchedDistribution.md +25 -0
- data/docs/PatchedExporter.md +17 -0
- data/docs/PatchedImporter.md +17 -0
- data/docs/PatchedRemote.md +57 -0
- data/docs/PatchedRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsApi.md +117 -2
- data/docs/Remote.md +57 -0
- data/docs/RemoteResponse.md +53 -0
- data/docs/RemotesApi.md +376 -0
- data/docs/RepositoriesApi.md +283 -3
- data/docs/RepositoriesVersionsApi.md +271 -0
- data/docs/Repository.md +25 -0
- data/docs/RepositoryVersionsApi.md +2 -0
- data/docs/RolesApi.md +6 -2
- data/docs/SigningServicesApi.md +0 -2
- data/docs/TaskGroupsApi.md +2 -2
- data/docs/TaskSchedulesApi.md +2 -2
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +0 -2
- data/docs/UserRole.md +1 -1
- data/docs/UserRoleResponse.md +6 -2
- data/docs/UsersApi.md +2 -61
- data/docs/UsersRolesApi.md +2 -2
- data/docs/VersionResponse.md +3 -1
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
- data/lib/pulpcore_client/api/acs_api.rb +514 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
- data/lib/pulpcore_client/api/content_api.rb +141 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
- data/lib/pulpcore_client/api/distributions_api.rb +343 -5
- data/lib/pulpcore_client/api/exporters_api.rb +446 -0
- data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
- data/lib/pulpcore_client/api/groups_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
- data/lib/pulpcore_client/api/importers_api.rb +444 -0
- data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
- data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
- data/lib/pulpcore_client/api/publications_api.rb +138 -3
- data/lib/pulpcore_client/api/remotes_api.rb +467 -0
- data/lib/pulpcore_client/api/repositories_api.rb +343 -5
- data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
- data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
- data/lib/pulpcore_client/api/roles_api.rb +13 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
- data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
- data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
- data/lib/pulpcore_client/api/tasks_api.rb +7 -3
- data/lib/pulpcore_client/api/uploads_api.rb +0 -3
- data/lib/pulpcore_client/api/users_api.rb +7 -69
- data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
- data/lib/pulpcore_client/api/workers_api.rb +7 -3
- data/lib/pulpcore_client/models/access_policy.rb +14 -4
- data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
- data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
- data/lib/pulpcore_client/models/content_guard.rb +258 -0
- data/lib/pulpcore_client/models/distribution.rb +297 -0
- data/lib/pulpcore_client/models/export.rb +209 -0
- data/lib/pulpcore_client/models/export_response.rb +250 -0
- data/lib/pulpcore_client/models/exporter.rb +232 -0
- data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
- data/lib/pulpcore_client/models/group_role.rb +1 -1
- data/lib/pulpcore_client/models/group_role_response.rb +26 -6
- data/lib/pulpcore_client/models/import.rb +228 -0
- data/lib/pulpcore_client/models/importer.rb +232 -0
- data/lib/pulpcore_client/models/importer_response.rb +232 -0
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
- data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
- data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
- data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
- data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
- data/lib/pulpcore_client/models/patched_importer.rb +223 -0
- data/lib/pulpcore_client/models/patched_remote.rb +649 -0
- data/lib/pulpcore_client/models/patched_repository.rb +295 -0
- data/lib/pulpcore_client/models/policy_enum.rb +36 -0
- data/lib/pulpcore_client/models/remote.rb +667 -0
- data/lib/pulpcore_client/models/remote_response.rb +483 -0
- data/lib/pulpcore_client/models/repository.rb +304 -0
- data/lib/pulpcore_client/models/user_role.rb +1 -1
- data/lib/pulpcore_client/models/user_role_response.rb +26 -6
- data/lib/pulpcore_client/models/version_response.rb +19 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +35 -4
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/acs_api_spec.rb +132 -0
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +28 -2
- data/spec/api/contentguards_api_spec.rb +66 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
- data/spec/api/contentguards_rbac_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +66 -2
- data/spec/api/exporters_api_spec.rb +120 -0
- data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
- data/spec/api/exporters_filesystem_api_spec.rb +1 -1
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_roles_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +0 -1
- data/spec/api/importers_api_spec.rb +120 -0
- data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
- data/spec/api/publications_api_spec.rb +28 -1
- data/spec/api/remotes_api_spec.rb +127 -0
- data/spec/api/repositories_api_spec.rb +66 -2
- data/spec/api/repositories_versions_api_spec.rb +104 -0
- data/spec/api/repository_versions_api_spec.rb +1 -0
- data/spec/api/roles_api_spec.rb +3 -1
- data/spec/api/signing_services_api_spec.rb +0 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/task_schedules_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +0 -1
- data/spec/api/users_api_spec.rb +1 -14
- data/spec/api/users_roles_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/alternate_content_source_response_spec.rb +71 -0
- data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
- data/spec/models/content_guard_spec.rb +47 -0
- data/spec/models/distribution_spec.rb +65 -0
- data/spec/models/export_response_spec.rb +65 -0
- data/spec/models/export_spec.rb +41 -0
- data/spec/models/exporter_response_spec.rb +53 -0
- data/spec/models/exporter_spec.rb +41 -0
- data/spec/models/group_role_response_spec.rb +12 -0
- data/spec/models/import_spec.rb +47 -0
- data/spec/models/importer_response_spec.rb +53 -0
- data/spec/models/importer_spec.rb +41 -0
- data/spec/models/multiple_artifact_content_spec.rb +41 -0
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
- data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
- data/spec/models/paginated_importer_response_list_spec.rb +59 -0
- data/spec/models/paginated_remote_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_alternate_content_source_spec.rb +59 -0
- data/spec/models/patched_content_guard_spec.rb +47 -0
- data/spec/models/patched_distribution_spec.rb +65 -0
- data/spec/models/patched_exporter_spec.rb +41 -0
- data/spec/models/patched_importer_spec.rb +41 -0
- data/spec/models/patched_remote_spec.rb +161 -0
- data/spec/models/patched_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/remote_response_spec.rb +149 -0
- data/spec/models/remote_spec.rb +161 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/user_role_response_spec.rb +12 -0
- data/spec/models/version_response_spec.rb +6 -0
- metadata +263 -139
- data/docs/PermissionResponse.md +0 -23
@@ -0,0 +1,446 @@
|
|
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 PulpcoreClient
|
16
|
+
class ExportersApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create an exporter
|
23
|
+
# ViewSet for viewing exporters.
|
24
|
+
# @param exporter [Exporter]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [ExporterResponse]
|
27
|
+
def create(exporter, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(exporter, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create an exporter
|
33
|
+
# ViewSet for viewing exporters.
|
34
|
+
# @param exporter [Exporter]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(ExporterResponse, Integer, Hash)>] ExporterResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(exporter, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'exporter' is set
|
42
|
+
if @api_client.config.client_side_validation && exporter.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'exporter' when calling ExportersApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/exporters/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(exporter)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'ExporterResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ExportersApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete an exporter
|
87
|
+
# Trigger an asynchronous delete task
|
88
|
+
# @param exporter_href [String]
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [AsyncOperationResponse]
|
91
|
+
def delete(exporter_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(exporter_href, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete an exporter
|
97
|
+
# Trigger an asynchronous delete task
|
98
|
+
# @param exporter_href [String]
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
+
def delete_with_http_info(exporter_href, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.delete ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'exporter_href' is set
|
106
|
+
if @api_client.config.client_side_validation && exporter_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.delete"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:header_params => header_params,
|
134
|
+
:query_params => query_params,
|
135
|
+
:form_params => form_params,
|
136
|
+
:body => post_body,
|
137
|
+
:auth_names => auth_names,
|
138
|
+
:return_type => return_type
|
139
|
+
)
|
140
|
+
|
141
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: ExportersApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
|
148
|
+
# List exporters
|
149
|
+
# ViewSet for viewing exporters.
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
+
# @option opts [String] :name
|
153
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
154
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
155
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
156
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
157
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
|
+
# @option opts [Array<String>] :ordering Ordering
|
159
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
160
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
161
|
+
# @return [PaginatedExporterResponseList]
|
162
|
+
def list(opts = {})
|
163
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
164
|
+
data
|
165
|
+
end
|
166
|
+
|
167
|
+
# List exporters
|
168
|
+
# ViewSet for viewing exporters.
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
171
|
+
# @option opts [String] :name
|
172
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
173
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
174
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
175
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
176
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
|
+
# @option opts [Array<String>] :ordering Ordering
|
178
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
179
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
180
|
+
# @return [Array<(PaginatedExporterResponseList, Integer, Hash)>] PaginatedExporterResponseList data, response status code and response headers
|
181
|
+
def list_with_http_info(opts = {})
|
182
|
+
if @api_client.config.debugging
|
183
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.list ...'
|
184
|
+
end
|
185
|
+
allowable_values = ["-core_fs_exporter", "-core_pulp_exporter", "-export", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_fs_exporter", "core_pulp_exporter", "export", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
|
186
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
187
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
188
|
+
end
|
189
|
+
# resource path
|
190
|
+
local_var_path = '/pulp/api/v3/exporters/'
|
191
|
+
|
192
|
+
# query parameters
|
193
|
+
query_params = opts[:query_params] || {}
|
194
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
196
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
197
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
198
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
199
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
200
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
201
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
202
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
203
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
204
|
+
|
205
|
+
# header parameters
|
206
|
+
header_params = opts[:header_params] || {}
|
207
|
+
# HTTP header 'Accept' (if needed)
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
209
|
+
|
210
|
+
# form parameters
|
211
|
+
form_params = opts[:form_params] || {}
|
212
|
+
|
213
|
+
# http body (model)
|
214
|
+
post_body = opts[:body]
|
215
|
+
|
216
|
+
# return_type
|
217
|
+
return_type = opts[:return_type] || 'PaginatedExporterResponseList'
|
218
|
+
|
219
|
+
# auth_names
|
220
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
221
|
+
|
222
|
+
new_options = opts.merge(
|
223
|
+
:header_params => header_params,
|
224
|
+
:query_params => query_params,
|
225
|
+
:form_params => form_params,
|
226
|
+
:body => post_body,
|
227
|
+
:auth_names => auth_names,
|
228
|
+
:return_type => return_type
|
229
|
+
)
|
230
|
+
|
231
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "API called: ExportersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
|
+
end
|
235
|
+
return data, status_code, headers
|
236
|
+
end
|
237
|
+
|
238
|
+
# Update an exporter
|
239
|
+
# Trigger an asynchronous partial update task
|
240
|
+
# @param exporter_href [String]
|
241
|
+
# @param patched_exporter [PatchedExporter]
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @return [AsyncOperationResponse]
|
244
|
+
def partial_update(exporter_href, patched_exporter, opts = {})
|
245
|
+
data, _status_code, _headers = partial_update_with_http_info(exporter_href, patched_exporter, opts)
|
246
|
+
data
|
247
|
+
end
|
248
|
+
|
249
|
+
# Update an exporter
|
250
|
+
# Trigger an asynchronous partial update task
|
251
|
+
# @param exporter_href [String]
|
252
|
+
# @param patched_exporter [PatchedExporter]
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
255
|
+
def partial_update_with_http_info(exporter_href, patched_exporter, opts = {})
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.partial_update ...'
|
258
|
+
end
|
259
|
+
# verify the required parameter 'exporter_href' is set
|
260
|
+
if @api_client.config.client_side_validation && exporter_href.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.partial_update"
|
262
|
+
end
|
263
|
+
# verify the required parameter 'patched_exporter' is set
|
264
|
+
if @api_client.config.client_side_validation && patched_exporter.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'patched_exporter' when calling ExportersApi.partial_update"
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = opts[:query_params] || {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = opts[:header_params] || {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
# HTTP header 'Content-Type'
|
278
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
279
|
+
|
280
|
+
# form parameters
|
281
|
+
form_params = opts[:form_params] || {}
|
282
|
+
|
283
|
+
# http body (model)
|
284
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_exporter)
|
285
|
+
|
286
|
+
# return_type
|
287
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
288
|
+
|
289
|
+
# auth_names
|
290
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
291
|
+
|
292
|
+
new_options = opts.merge(
|
293
|
+
:header_params => header_params,
|
294
|
+
:query_params => query_params,
|
295
|
+
:form_params => form_params,
|
296
|
+
:body => post_body,
|
297
|
+
:auth_names => auth_names,
|
298
|
+
:return_type => return_type
|
299
|
+
)
|
300
|
+
|
301
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug "API called: ExportersApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
304
|
+
end
|
305
|
+
return data, status_code, headers
|
306
|
+
end
|
307
|
+
|
308
|
+
# Inspect an exporter
|
309
|
+
# ViewSet for viewing exporters.
|
310
|
+
# @param exporter_href [String]
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
313
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
314
|
+
# @return [ExporterResponse]
|
315
|
+
def read(exporter_href, opts = {})
|
316
|
+
data, _status_code, _headers = read_with_http_info(exporter_href, opts)
|
317
|
+
data
|
318
|
+
end
|
319
|
+
|
320
|
+
# Inspect an exporter
|
321
|
+
# ViewSet for viewing exporters.
|
322
|
+
# @param exporter_href [String]
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
325
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
326
|
+
# @return [Array<(ExporterResponse, Integer, Hash)>] ExporterResponse data, response status code and response headers
|
327
|
+
def read_with_http_info(exporter_href, opts = {})
|
328
|
+
if @api_client.config.debugging
|
329
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.read ...'
|
330
|
+
end
|
331
|
+
# verify the required parameter 'exporter_href' is set
|
332
|
+
if @api_client.config.client_side_validation && exporter_href.nil?
|
333
|
+
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.read"
|
334
|
+
end
|
335
|
+
# resource path
|
336
|
+
local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
|
337
|
+
|
338
|
+
# query parameters
|
339
|
+
query_params = opts[:query_params] || {}
|
340
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
341
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = opts[:header_params] || {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
|
348
|
+
# form parameters
|
349
|
+
form_params = opts[:form_params] || {}
|
350
|
+
|
351
|
+
# http body (model)
|
352
|
+
post_body = opts[:body]
|
353
|
+
|
354
|
+
# return_type
|
355
|
+
return_type = opts[:return_type] || 'ExporterResponse'
|
356
|
+
|
357
|
+
# auth_names
|
358
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
359
|
+
|
360
|
+
new_options = opts.merge(
|
361
|
+
:header_params => header_params,
|
362
|
+
:query_params => query_params,
|
363
|
+
:form_params => form_params,
|
364
|
+
:body => post_body,
|
365
|
+
:auth_names => auth_names,
|
366
|
+
:return_type => return_type
|
367
|
+
)
|
368
|
+
|
369
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug "API called: ExportersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
372
|
+
end
|
373
|
+
return data, status_code, headers
|
374
|
+
end
|
375
|
+
|
376
|
+
# Update an exporter
|
377
|
+
# Trigger an asynchronous update task
|
378
|
+
# @param exporter_href [String]
|
379
|
+
# @param exporter [Exporter]
|
380
|
+
# @param [Hash] opts the optional parameters
|
381
|
+
# @return [AsyncOperationResponse]
|
382
|
+
def update(exporter_href, exporter, opts = {})
|
383
|
+
data, _status_code, _headers = update_with_http_info(exporter_href, exporter, opts)
|
384
|
+
data
|
385
|
+
end
|
386
|
+
|
387
|
+
# Update an exporter
|
388
|
+
# Trigger an asynchronous update task
|
389
|
+
# @param exporter_href [String]
|
390
|
+
# @param exporter [Exporter]
|
391
|
+
# @param [Hash] opts the optional parameters
|
392
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
393
|
+
def update_with_http_info(exporter_href, exporter, opts = {})
|
394
|
+
if @api_client.config.debugging
|
395
|
+
@api_client.config.logger.debug 'Calling API: ExportersApi.update ...'
|
396
|
+
end
|
397
|
+
# verify the required parameter 'exporter_href' is set
|
398
|
+
if @api_client.config.client_side_validation && exporter_href.nil?
|
399
|
+
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.update"
|
400
|
+
end
|
401
|
+
# verify the required parameter 'exporter' is set
|
402
|
+
if @api_client.config.client_side_validation && exporter.nil?
|
403
|
+
fail ArgumentError, "Missing the required parameter 'exporter' when calling ExportersApi.update"
|
404
|
+
end
|
405
|
+
# resource path
|
406
|
+
local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
|
407
|
+
|
408
|
+
# query parameters
|
409
|
+
query_params = opts[:query_params] || {}
|
410
|
+
|
411
|
+
# header parameters
|
412
|
+
header_params = opts[:header_params] || {}
|
413
|
+
# HTTP header 'Accept' (if needed)
|
414
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
415
|
+
# HTTP header 'Content-Type'
|
416
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
417
|
+
|
418
|
+
# form parameters
|
419
|
+
form_params = opts[:form_params] || {}
|
420
|
+
|
421
|
+
# http body (model)
|
422
|
+
post_body = opts[:body] || @api_client.object_to_http_body(exporter)
|
423
|
+
|
424
|
+
# return_type
|
425
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
426
|
+
|
427
|
+
# auth_names
|
428
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
429
|
+
|
430
|
+
new_options = opts.merge(
|
431
|
+
:header_params => header_params,
|
432
|
+
:query_params => query_params,
|
433
|
+
:form_params => form_params,
|
434
|
+
:body => post_body,
|
435
|
+
:auth_names => auth_names,
|
436
|
+
:return_type => return_type
|
437
|
+
)
|
438
|
+
|
439
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug "API called: ExportersApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
442
|
+
end
|
443
|
+
return data, status_code, headers
|
444
|
+
end
|
445
|
+
end
|
446
|
+
end
|