pulpcore_client 3.19.1 → 3.20.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 +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,514 @@
|
|
|
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 AcsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create an alternate content source
|
|
23
|
+
# A class for ACS viewset.
|
|
24
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [AlternateContentSourceResponse]
|
|
27
|
+
def create(alternate_content_source, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(alternate_content_source, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create an alternate content source
|
|
33
|
+
# A class for ACS viewset.
|
|
34
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
|
37
|
+
def create_with_http_info(alternate_content_source, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'alternate_content_source' is set
|
|
42
|
+
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/acs/'
|
|
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(alternate_content_source)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'AlternateContentSourceResponse'
|
|
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: AcsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Delete an alternate content source
|
|
87
|
+
# Trigger an asynchronous delete ACS task
|
|
88
|
+
# @param alternate_content_source_href [String]
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [AsyncOperationResponse]
|
|
91
|
+
def delete(alternate_content_source_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(alternate_content_source_href, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete an alternate content source
|
|
97
|
+
# Trigger an asynchronous delete ACS task
|
|
98
|
+
# @param alternate_content_source_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(alternate_content_source_href, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'alternate_content_source_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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: AcsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
+
end
|
|
145
|
+
return data, status_code, headers
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# List acs
|
|
149
|
+
# A class for ACS viewset.
|
|
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 [PaginatedAlternateContentSourceResponseList]
|
|
162
|
+
def list(opts = {})
|
|
163
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
164
|
+
data
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# List acs
|
|
168
|
+
# A class for ACS viewset.
|
|
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<(PaginatedAlternateContentSourceResponseList, Integer, Hash)>] PaginatedAlternateContentSourceResponseList 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: AcsApi.list ...'
|
|
184
|
+
end
|
|
185
|
+
allowable_values = ["-file_filealternatecontentsource", "-group_roles", "-last_refreshed", "-name", "-paths", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-user_roles", "file_filealternatecontentsource", "group_roles", "last_refreshed", "name", "paths", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "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/acs/'
|
|
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] || 'PaginatedAlternateContentSourceResponseList'
|
|
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: AcsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
234
|
+
end
|
|
235
|
+
return data, status_code, headers
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Update an alternate content source
|
|
239
|
+
# Trigger an asynchronous partial update task
|
|
240
|
+
# @param alternate_content_source_href [String]
|
|
241
|
+
# @param patched_alternate_content_source [PatchedAlternateContentSource]
|
|
242
|
+
# @param [Hash] opts the optional parameters
|
|
243
|
+
# @return [AsyncOperationResponse]
|
|
244
|
+
def partial_update(alternate_content_source_href, patched_alternate_content_source, opts = {})
|
|
245
|
+
data, _status_code, _headers = partial_update_with_http_info(alternate_content_source_href, patched_alternate_content_source, opts)
|
|
246
|
+
data
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Update an alternate content source
|
|
250
|
+
# Trigger an asynchronous partial update task
|
|
251
|
+
# @param alternate_content_source_href [String]
|
|
252
|
+
# @param patched_alternate_content_source [PatchedAlternateContentSource]
|
|
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(alternate_content_source_href, patched_alternate_content_source, opts = {})
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.partial_update ...'
|
|
258
|
+
end
|
|
259
|
+
# verify the required parameter 'alternate_content_source_href' is set
|
|
260
|
+
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
|
261
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.partial_update"
|
|
262
|
+
end
|
|
263
|
+
# verify the required parameter 'patched_alternate_content_source' is set
|
|
264
|
+
if @api_client.config.client_side_validation && patched_alternate_content_source.nil?
|
|
265
|
+
fail ArgumentError, "Missing the required parameter 'patched_alternate_content_source' when calling AcsApi.partial_update"
|
|
266
|
+
end
|
|
267
|
+
# resource path
|
|
268
|
+
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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_alternate_content_source)
|
|
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: AcsApi#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 alternate content source
|
|
309
|
+
# A class for ACS viewset.
|
|
310
|
+
# @param alternate_content_source_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 [AlternateContentSourceResponse]
|
|
315
|
+
def read(alternate_content_source_href, opts = {})
|
|
316
|
+
data, _status_code, _headers = read_with_http_info(alternate_content_source_href, opts)
|
|
317
|
+
data
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Inspect an alternate content source
|
|
321
|
+
# A class for ACS viewset.
|
|
322
|
+
# @param alternate_content_source_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<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
|
327
|
+
def read_with_http_info(alternate_content_source_href, opts = {})
|
|
328
|
+
if @api_client.config.debugging
|
|
329
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.read ...'
|
|
330
|
+
end
|
|
331
|
+
# verify the required parameter 'alternate_content_source_href' is set
|
|
332
|
+
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
|
333
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.read"
|
|
334
|
+
end
|
|
335
|
+
# resource path
|
|
336
|
+
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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] || 'AlternateContentSourceResponse'
|
|
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: AcsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
372
|
+
end
|
|
373
|
+
return data, status_code, headers
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# A class for ACS viewset.
|
|
377
|
+
# @param alternate_content_source_href [String]
|
|
378
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
379
|
+
# @param [Hash] opts the optional parameters
|
|
380
|
+
# @return [AlternateContentSourceResponse]
|
|
381
|
+
def refresh(alternate_content_source_href, alternate_content_source, opts = {})
|
|
382
|
+
data, _status_code, _headers = refresh_with_http_info(alternate_content_source_href, alternate_content_source, opts)
|
|
383
|
+
data
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# A class for ACS viewset.
|
|
387
|
+
# @param alternate_content_source_href [String]
|
|
388
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
389
|
+
# @param [Hash] opts the optional parameters
|
|
390
|
+
# @return [Array<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
|
391
|
+
def refresh_with_http_info(alternate_content_source_href, alternate_content_source, opts = {})
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.refresh ...'
|
|
394
|
+
end
|
|
395
|
+
# verify the required parameter 'alternate_content_source_href' is set
|
|
396
|
+
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
|
397
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.refresh"
|
|
398
|
+
end
|
|
399
|
+
# verify the required parameter 'alternate_content_source' is set
|
|
400
|
+
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
|
401
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.refresh"
|
|
402
|
+
end
|
|
403
|
+
# resource path
|
|
404
|
+
local_var_path = '{alternate_content_source_href}refresh/'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_href.to_s).gsub('%2F', '/'))
|
|
405
|
+
|
|
406
|
+
# query parameters
|
|
407
|
+
query_params = opts[:query_params] || {}
|
|
408
|
+
|
|
409
|
+
# header parameters
|
|
410
|
+
header_params = opts[:header_params] || {}
|
|
411
|
+
# HTTP header 'Accept' (if needed)
|
|
412
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
413
|
+
# HTTP header 'Content-Type'
|
|
414
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
415
|
+
|
|
416
|
+
# form parameters
|
|
417
|
+
form_params = opts[:form_params] || {}
|
|
418
|
+
|
|
419
|
+
# http body (model)
|
|
420
|
+
post_body = opts[:body] || @api_client.object_to_http_body(alternate_content_source)
|
|
421
|
+
|
|
422
|
+
# return_type
|
|
423
|
+
return_type = opts[:return_type] || 'AlternateContentSourceResponse'
|
|
424
|
+
|
|
425
|
+
# auth_names
|
|
426
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
427
|
+
|
|
428
|
+
new_options = opts.merge(
|
|
429
|
+
:header_params => header_params,
|
|
430
|
+
:query_params => query_params,
|
|
431
|
+
:form_params => form_params,
|
|
432
|
+
:body => post_body,
|
|
433
|
+
:auth_names => auth_names,
|
|
434
|
+
:return_type => return_type
|
|
435
|
+
)
|
|
436
|
+
|
|
437
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
438
|
+
if @api_client.config.debugging
|
|
439
|
+
@api_client.config.logger.debug "API called: AcsApi#refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
440
|
+
end
|
|
441
|
+
return data, status_code, headers
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Update an alternate content source
|
|
445
|
+
# Trigger an asynchronous update task
|
|
446
|
+
# @param alternate_content_source_href [String]
|
|
447
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
448
|
+
# @param [Hash] opts the optional parameters
|
|
449
|
+
# @return [AsyncOperationResponse]
|
|
450
|
+
def update(alternate_content_source_href, alternate_content_source, opts = {})
|
|
451
|
+
data, _status_code, _headers = update_with_http_info(alternate_content_source_href, alternate_content_source, opts)
|
|
452
|
+
data
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Update an alternate content source
|
|
456
|
+
# Trigger an asynchronous update task
|
|
457
|
+
# @param alternate_content_source_href [String]
|
|
458
|
+
# @param alternate_content_source [AlternateContentSource]
|
|
459
|
+
# @param [Hash] opts the optional parameters
|
|
460
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
461
|
+
def update_with_http_info(alternate_content_source_href, alternate_content_source, opts = {})
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug 'Calling API: AcsApi.update ...'
|
|
464
|
+
end
|
|
465
|
+
# verify the required parameter 'alternate_content_source_href' is set
|
|
466
|
+
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
|
467
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.update"
|
|
468
|
+
end
|
|
469
|
+
# verify the required parameter 'alternate_content_source' is set
|
|
470
|
+
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
|
471
|
+
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.update"
|
|
472
|
+
end
|
|
473
|
+
# resource path
|
|
474
|
+
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_href.to_s).gsub('%2F', '/'))
|
|
475
|
+
|
|
476
|
+
# query parameters
|
|
477
|
+
query_params = opts[:query_params] || {}
|
|
478
|
+
|
|
479
|
+
# header parameters
|
|
480
|
+
header_params = opts[:header_params] || {}
|
|
481
|
+
# HTTP header 'Accept' (if needed)
|
|
482
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
483
|
+
# HTTP header 'Content-Type'
|
|
484
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
485
|
+
|
|
486
|
+
# form parameters
|
|
487
|
+
form_params = opts[:form_params] || {}
|
|
488
|
+
|
|
489
|
+
# http body (model)
|
|
490
|
+
post_body = opts[:body] || @api_client.object_to_http_body(alternate_content_source)
|
|
491
|
+
|
|
492
|
+
# return_type
|
|
493
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
494
|
+
|
|
495
|
+
# auth_names
|
|
496
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
497
|
+
|
|
498
|
+
new_options = opts.merge(
|
|
499
|
+
:header_params => header_params,
|
|
500
|
+
:query_params => query_params,
|
|
501
|
+
:form_params => form_params,
|
|
502
|
+
:body => post_body,
|
|
503
|
+
:auth_names => auth_names,
|
|
504
|
+
:return_type => return_type
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
508
|
+
if @api_client.config.debugging
|
|
509
|
+
@api_client.config.logger.debug "API called: AcsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
510
|
+
end
|
|
511
|
+
return data, status_code, headers
|
|
512
|
+
end
|
|
513
|
+
end
|
|
514
|
+
end
|
|
@@ -195,7 +195,7 @@ module PulpcoreClient
|
|
|
195
195
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
196
196
|
# @option opts [String] :md5 Filter results where md5 matches value
|
|
197
197
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
198
|
-
# @option opts [String] :ordering
|
|
198
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
199
199
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
200
200
|
# @option opts [String] :sha1 Filter results where sha1 matches value
|
|
201
201
|
# @option opts [String] :sha224 Filter results where sha224 matches value
|
|
@@ -216,7 +216,7 @@ module PulpcoreClient
|
|
|
216
216
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
217
217
|
# @option opts [String] :md5 Filter results where md5 matches value
|
|
218
218
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
219
|
-
# @option opts [String] :ordering
|
|
219
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
220
220
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
221
221
|
# @option opts [String] :sha1 Filter results where sha1 matches value
|
|
222
222
|
# @option opts [String] :sha224 Filter results where sha224 matches value
|
|
@@ -230,6 +230,10 @@ module PulpcoreClient
|
|
|
230
230
|
if @api_client.config.debugging
|
|
231
231
|
@api_client.config.logger.debug 'Calling API: ArtifactsApi.list ...'
|
|
232
232
|
end
|
|
233
|
+
allowable_values = ["-content", "-content_memberships", "-file", "-group_roles", "-md5", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-sha1", "-sha224", "-sha256", "-sha384", "-sha512", "-size", "-timestamp_of_interest", "-user_roles", "content", "content_memberships", "file", "group_roles", "md5", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "sha1", "sha224", "sha256", "sha384", "sha512", "size", "timestamp_of_interest", "user_roles"]
|
|
234
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
235
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
236
|
+
end
|
|
233
237
|
# resource path
|
|
234
238
|
local_var_path = '/pulp/api/v3/artifacts/'
|
|
235
239
|
|
|
@@ -238,7 +242,7 @@ module PulpcoreClient
|
|
|
238
242
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
239
243
|
query_params[:'md5'] = opts[:'md5'] if !opts[:'md5'].nil?
|
|
240
244
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
241
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
245
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
242
246
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
243
247
|
query_params[:'sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
|
|
244
248
|
query_params[:'sha224'] = opts[:'sha224'] if !opts[:'sha224'].nil?
|