pulpcore_client 3.21.32 → 3.22.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 +147 -143
- data/docs/AccessPoliciesApi.md +28 -28
- data/docs/ArtifactDistributionResponse.md +29 -0
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentSettingsResponse.md +19 -0
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +53 -53
- data/docs/ContentguardsRbacApi.md +53 -53
- data/docs/DistributionResponse.md +1 -1
- data/docs/DistributionsApi.md +11 -11
- data/docs/DistributionsArtifactsApi.md +154 -0
- data/docs/ExportersFilesystemApi.md +33 -33
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +33 -33
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExport.md +1 -3
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -33
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
- data/docs/PublicationsApi.md +8 -8
- data/docs/RemoteResponse.md +4 -2
- data/docs/RemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesApi.md +10 -10
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +9 -9
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +10 -10
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +15 -13
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +3 -1
- data/docs/TaskGroupsApi.md +11 -13
- data/docs/TaskSchedulesApi.md +35 -35
- data/docs/TasksApi.md +128 -114
- data/docs/UploadsApi.md +61 -51
- data/docs/UserResponse.md +3 -1
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +15 -15
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
- data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
- data/lib/pulpcore_client/api/distributions_api.rb +12 -12
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +64 -64
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +8 -8
- data/lib/pulpcore_client/api/remotes_api.rb +10 -10
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +8 -8
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
- data/lib/pulpcore_client/api/roles_api.rb +38 -38
- data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
- data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
- data/lib/pulpcore_client/api/tasks_api.rb +159 -138
- data/lib/pulpcore_client/api/uploads_api.rb +84 -65
- data/lib/pulpcore_client/api/users_api.rb +38 -38
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +16 -16
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
- data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
- data/lib/pulpcore_client/models/distribution_response.rb +4 -2
- data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
- data/lib/pulpcore_client/models/group_role.rb +19 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
- data/lib/pulpcore_client/models/remote_response.rb +41 -27
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
- data/lib/pulpcore_client/models/repository_response.rb +4 -2
- data/lib/pulpcore_client/models/status_response.rb +19 -4
- data/lib/pulpcore_client/models/user_response.rb +16 -4
- data/lib/pulpcore_client/models/user_role.rb +19 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -2
- data/spec/api/access_policies_api_spec.rb +11 -11
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +3 -3
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
- data/spec/api/contentguards_rbac_api_spec.rb +21 -21
- data/spec/api/distributions_api_spec.rb +5 -5
- data/spec/api/distributions_artifacts_api_spec.rb +76 -0
- data/spec/api/exporters_filesystem_api_spec.rb +13 -13
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +13 -13
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -13
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +3 -3
- data/spec/api/remotes_api_spec.rb +4 -4
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -3
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +4 -4
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +6 -5
- data/spec/api/task_groups_api_spec.rb +4 -5
- data/spec/api/task_schedules_api_spec.rb +14 -14
- data/spec/api/tasks_api_spec.rb +45 -38
- data/spec/api/uploads_api_spec.rb +25 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +77 -0
- data/spec/models/content_settings_response_spec.rb +47 -0
- data/spec/models/filesystem_export_spec.rb +0 -6
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
- data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/status_response_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +162 -150
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
|
@@ -22,7 +22,7 @@ module PulpcoreClient
|
|
|
22
22
|
# List access policys
|
|
23
23
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [Boolean] :customized
|
|
25
|
+
# @option opts [Boolean] :customized Filter results where customized matches value
|
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
27
27
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
28
28
|
# @option opts [Array<String>] :ordering Ordering
|
|
@@ -34,15 +34,15 @@ module PulpcoreClient
|
|
|
34
34
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
35
35
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
36
36
|
# @return [PaginatedAccessPolicyResponseList]
|
|
37
|
-
def
|
|
38
|
-
data, _status_code, _headers =
|
|
37
|
+
def list(opts = {})
|
|
38
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
39
39
|
data
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# List access policys
|
|
43
43
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
44
44
|
# @param [Hash] opts the optional parameters
|
|
45
|
-
# @option opts [Boolean] :customized
|
|
45
|
+
# @option opts [Boolean] :customized Filter results where customized matches value
|
|
46
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
47
47
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
48
48
|
# @option opts [Array<String>] :ordering Ordering
|
|
@@ -54,11 +54,11 @@ module PulpcoreClient
|
|
|
54
54
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
55
55
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
56
56
|
# @return [Array<(PaginatedAccessPolicyResponseList, Integer, Hash)>] PaginatedAccessPolicyResponseList data, response status code and response headers
|
|
57
|
-
def
|
|
57
|
+
def list_with_http_info(opts = {})
|
|
58
58
|
if @api_client.config.debugging
|
|
59
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
|
59
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.list ...'
|
|
60
60
|
end
|
|
61
|
-
allowable_values = ["-creation_hooks", "-customized", "-
|
|
61
|
+
allowable_values = ["-creation_hooks", "-customized", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-queryset_scoping", "-statements", "-viewset_name", "creation_hooks", "customized", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "queryset_scoping", "statements", "viewset_name"]
|
|
62
62
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
63
63
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
64
64
|
end
|
|
@@ -107,7 +107,7 @@ module PulpcoreClient
|
|
|
107
107
|
|
|
108
108
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
109
109
|
if @api_client.config.debugging
|
|
110
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
|
110
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
111
111
|
end
|
|
112
112
|
return data, status_code, headers
|
|
113
113
|
end
|
|
@@ -118,8 +118,8 @@ module PulpcoreClient
|
|
|
118
118
|
# @param patched_access_policy [PatchedAccessPolicy]
|
|
119
119
|
# @param [Hash] opts the optional parameters
|
|
120
120
|
# @return [AccessPolicyResponse]
|
|
121
|
-
def
|
|
122
|
-
data, _status_code, _headers =
|
|
121
|
+
def partial_update(access_policy_href, patched_access_policy, opts = {})
|
|
122
|
+
data, _status_code, _headers = partial_update_with_http_info(access_policy_href, patched_access_policy, opts)
|
|
123
123
|
data
|
|
124
124
|
end
|
|
125
125
|
|
|
@@ -129,17 +129,17 @@ module PulpcoreClient
|
|
|
129
129
|
# @param patched_access_policy [PatchedAccessPolicy]
|
|
130
130
|
# @param [Hash] opts the optional parameters
|
|
131
131
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
|
132
|
-
def
|
|
132
|
+
def partial_update_with_http_info(access_policy_href, patched_access_policy, opts = {})
|
|
133
133
|
if @api_client.config.debugging
|
|
134
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
|
134
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.partial_update ...'
|
|
135
135
|
end
|
|
136
136
|
# verify the required parameter 'access_policy_href' is set
|
|
137
137
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
|
138
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.partial_update"
|
|
139
139
|
end
|
|
140
140
|
# verify the required parameter 'patched_access_policy' is set
|
|
141
141
|
if @api_client.config.client_side_validation && patched_access_policy.nil?
|
|
142
|
-
fail ArgumentError, "Missing the required parameter 'patched_access_policy' when calling AccessPoliciesApi.
|
|
142
|
+
fail ArgumentError, "Missing the required parameter 'patched_access_policy' when calling AccessPoliciesApi.partial_update"
|
|
143
143
|
end
|
|
144
144
|
# resource path
|
|
145
145
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
|
@@ -177,7 +177,7 @@ module PulpcoreClient
|
|
|
177
177
|
|
|
178
178
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
179
179
|
if @api_client.config.debugging
|
|
180
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
|
180
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
181
181
|
end
|
|
182
182
|
return data, status_code, headers
|
|
183
183
|
end
|
|
@@ -189,8 +189,8 @@ module PulpcoreClient
|
|
|
189
189
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
190
190
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
191
191
|
# @return [AccessPolicyResponse]
|
|
192
|
-
def
|
|
193
|
-
data, _status_code, _headers =
|
|
192
|
+
def read(access_policy_href, opts = {})
|
|
193
|
+
data, _status_code, _headers = read_with_http_info(access_policy_href, opts)
|
|
194
194
|
data
|
|
195
195
|
end
|
|
196
196
|
|
|
@@ -201,13 +201,13 @@ module PulpcoreClient
|
|
|
201
201
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
202
202
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
203
203
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
|
204
|
-
def
|
|
204
|
+
def read_with_http_info(access_policy_href, opts = {})
|
|
205
205
|
if @api_client.config.debugging
|
|
206
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
|
206
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.read ...'
|
|
207
207
|
end
|
|
208
208
|
# verify the required parameter 'access_policy_href' is set
|
|
209
209
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
|
210
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
|
210
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.read"
|
|
211
211
|
end
|
|
212
212
|
# resource path
|
|
213
213
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
|
@@ -245,7 +245,7 @@ module PulpcoreClient
|
|
|
245
245
|
|
|
246
246
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
247
247
|
if @api_client.config.debugging
|
|
248
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
|
248
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
249
249
|
end
|
|
250
250
|
return data, status_code, headers
|
|
251
251
|
end
|
|
@@ -254,8 +254,8 @@ module PulpcoreClient
|
|
|
254
254
|
# @param access_policy_href [String]
|
|
255
255
|
# @param [Hash] opts the optional parameters
|
|
256
256
|
# @return [AccessPolicyResponse]
|
|
257
|
-
def
|
|
258
|
-
data, _status_code, _headers =
|
|
257
|
+
def reset(access_policy_href, opts = {})
|
|
258
|
+
data, _status_code, _headers = reset_with_http_info(access_policy_href, opts)
|
|
259
259
|
data
|
|
260
260
|
end
|
|
261
261
|
|
|
@@ -263,13 +263,13 @@ module PulpcoreClient
|
|
|
263
263
|
# @param access_policy_href [String]
|
|
264
264
|
# @param [Hash] opts the optional parameters
|
|
265
265
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
|
266
|
-
def
|
|
266
|
+
def reset_with_http_info(access_policy_href, opts = {})
|
|
267
267
|
if @api_client.config.debugging
|
|
268
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
|
268
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.reset ...'
|
|
269
269
|
end
|
|
270
270
|
# verify the required parameter 'access_policy_href' is set
|
|
271
271
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
|
272
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.reset"
|
|
273
273
|
end
|
|
274
274
|
# resource path
|
|
275
275
|
local_var_path = '{access_policy_href}reset/'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
|
@@ -305,7 +305,7 @@ module PulpcoreClient
|
|
|
305
305
|
|
|
306
306
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
307
307
|
if @api_client.config.debugging
|
|
308
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
|
308
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
309
309
|
end
|
|
310
310
|
return data, status_code, headers
|
|
311
311
|
end
|
|
@@ -316,8 +316,8 @@ module PulpcoreClient
|
|
|
316
316
|
# @param access_policy [AccessPolicy]
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
318
|
# @return [AccessPolicyResponse]
|
|
319
|
-
def
|
|
320
|
-
data, _status_code, _headers =
|
|
319
|
+
def update(access_policy_href, access_policy, opts = {})
|
|
320
|
+
data, _status_code, _headers = update_with_http_info(access_policy_href, access_policy, opts)
|
|
321
321
|
data
|
|
322
322
|
end
|
|
323
323
|
|
|
@@ -327,17 +327,17 @@ module PulpcoreClient
|
|
|
327
327
|
# @param access_policy [AccessPolicy]
|
|
328
328
|
# @param [Hash] opts the optional parameters
|
|
329
329
|
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
|
330
|
-
def
|
|
330
|
+
def update_with_http_info(access_policy_href, access_policy, opts = {})
|
|
331
331
|
if @api_client.config.debugging
|
|
332
|
-
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.
|
|
332
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.update ...'
|
|
333
333
|
end
|
|
334
334
|
# verify the required parameter 'access_policy_href' is set
|
|
335
335
|
if @api_client.config.client_side_validation && access_policy_href.nil?
|
|
336
|
-
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.
|
|
336
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.update"
|
|
337
337
|
end
|
|
338
338
|
# verify the required parameter 'access_policy' is set
|
|
339
339
|
if @api_client.config.client_side_validation && access_policy.nil?
|
|
340
|
-
fail ArgumentError, "Missing the required parameter 'access_policy' when calling AccessPoliciesApi.
|
|
340
|
+
fail ArgumentError, "Missing the required parameter 'access_policy' when calling AccessPoliciesApi.update"
|
|
341
341
|
end
|
|
342
342
|
# resource path
|
|
343
343
|
local_var_path = '{access_policy_href}'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
|
@@ -375,7 +375,7 @@ module PulpcoreClient
|
|
|
375
375
|
|
|
376
376
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
377
377
|
if @api_client.config.debugging
|
|
378
|
-
@api_client.config.logger.debug "API called: AccessPoliciesApi#
|
|
378
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
379
379
|
end
|
|
380
380
|
return data, status_code, headers
|
|
381
381
|
end
|
|
@@ -31,8 +31,8 @@ module PulpcoreClient
|
|
|
31
31
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
|
32
32
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
|
33
33
|
# @return [ArtifactResponse]
|
|
34
|
-
def
|
|
35
|
-
data, _status_code, _headers =
|
|
34
|
+
def create(file, opts = {})
|
|
35
|
+
data, _status_code, _headers = create_with_http_info(file, opts)
|
|
36
36
|
data
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -48,36 +48,36 @@ module PulpcoreClient
|
|
|
48
48
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
|
49
49
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
|
50
50
|
# @return [Array<(ArtifactResponse, Integer, Hash)>] ArtifactResponse data, response status code and response headers
|
|
51
|
-
def
|
|
51
|
+
def create_with_http_info(file, opts = {})
|
|
52
52
|
if @api_client.config.debugging
|
|
53
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.
|
|
53
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.create ...'
|
|
54
54
|
end
|
|
55
55
|
# verify the required parameter 'file' is set
|
|
56
56
|
if @api_client.config.client_side_validation && file.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling ArtifactsApi.
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling ArtifactsApi.create"
|
|
58
58
|
end
|
|
59
59
|
if @api_client.config.client_side_validation && !opts[:'md5'].nil? && opts[:'md5'].to_s.length < 1
|
|
60
|
-
fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.
|
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
if @api_client.config.client_side_validation && !opts[:'sha1'].nil? && opts[:'sha1'].to_s.length < 1
|
|
64
|
-
fail ArgumentError, 'invalid value for "opts[:"sha1"]" when calling ArtifactsApi.
|
|
64
|
+
fail ArgumentError, 'invalid value for "opts[:"sha1"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
if @api_client.config.client_side_validation && !opts[:'sha224'].nil? && opts[:'sha224'].to_s.length < 1
|
|
68
|
-
fail ArgumentError, 'invalid value for "opts[:"sha224"]" when calling ArtifactsApi.
|
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"sha224"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
|
72
|
-
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ArtifactsApi.
|
|
72
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
if @api_client.config.client_side_validation && !opts[:'sha384'].nil? && opts[:'sha384'].to_s.length < 1
|
|
76
|
-
fail ArgumentError, 'invalid value for "opts[:"sha384"]" when calling ArtifactsApi.
|
|
76
|
+
fail ArgumentError, 'invalid value for "opts[:"sha384"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
if @api_client.config.client_side_validation && !opts[:'sha512'].nil? && opts[:'sha512'].to_s.length < 1
|
|
80
|
-
fail ArgumentError, 'invalid value for "opts[:"sha512"]" when calling ArtifactsApi.
|
|
80
|
+
fail ArgumentError, 'invalid value for "opts[:"sha512"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
# resource path
|
|
@@ -124,7 +124,7 @@ module PulpcoreClient
|
|
|
124
124
|
|
|
125
125
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
126
126
|
if @api_client.config.debugging
|
|
127
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#
|
|
127
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
128
128
|
end
|
|
129
129
|
return data, status_code, headers
|
|
130
130
|
end
|
|
@@ -134,8 +134,8 @@ module PulpcoreClient
|
|
|
134
134
|
# @param artifact_href [String]
|
|
135
135
|
# @param [Hash] opts the optional parameters
|
|
136
136
|
# @return [nil]
|
|
137
|
-
def
|
|
138
|
-
|
|
137
|
+
def delete(artifact_href, opts = {})
|
|
138
|
+
delete_with_http_info(artifact_href, opts)
|
|
139
139
|
nil
|
|
140
140
|
end
|
|
141
141
|
|
|
@@ -144,13 +144,13 @@ module PulpcoreClient
|
|
|
144
144
|
# @param artifact_href [String]
|
|
145
145
|
# @param [Hash] opts the optional parameters
|
|
146
146
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
147
|
-
def
|
|
147
|
+
def delete_with_http_info(artifact_href, opts = {})
|
|
148
148
|
if @api_client.config.debugging
|
|
149
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.
|
|
149
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.delete ...'
|
|
150
150
|
end
|
|
151
151
|
# verify the required parameter 'artifact_href' is set
|
|
152
152
|
if @api_client.config.client_side_validation && artifact_href.nil?
|
|
153
|
-
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.
|
|
153
|
+
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.delete"
|
|
154
154
|
end
|
|
155
155
|
# resource path
|
|
156
156
|
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s).gsub('%2F', '/'))
|
|
@@ -184,7 +184,7 @@ module PulpcoreClient
|
|
|
184
184
|
|
|
185
185
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
186
186
|
if @api_client.config.debugging
|
|
187
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#
|
|
187
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
188
188
|
end
|
|
189
189
|
return data, status_code, headers
|
|
190
190
|
end
|
|
@@ -205,8 +205,8 @@ module PulpcoreClient
|
|
|
205
205
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
206
206
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
207
207
|
# @return [PaginatedArtifactResponseList]
|
|
208
|
-
def
|
|
209
|
-
data, _status_code, _headers =
|
|
208
|
+
def list(opts = {})
|
|
209
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
210
210
|
data
|
|
211
211
|
end
|
|
212
212
|
|
|
@@ -226,11 +226,11 @@ module PulpcoreClient
|
|
|
226
226
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
227
227
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
228
228
|
# @return [Array<(PaginatedArtifactResponseList, Integer, Hash)>] PaginatedArtifactResponseList data, response status code and response headers
|
|
229
|
-
def
|
|
229
|
+
def list_with_http_info(opts = {})
|
|
230
230
|
if @api_client.config.debugging
|
|
231
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.list ...'
|
|
232
232
|
end
|
|
233
|
-
allowable_values = ["-
|
|
233
|
+
allowable_values = ["-file", "-md5", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-sha1", "-sha224", "-sha256", "-sha384", "-sha512", "-size", "-timestamp_of_interest", "file", "md5", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "sha1", "sha224", "sha256", "sha384", "sha512", "size", "timestamp_of_interest"]
|
|
234
234
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
235
235
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
236
236
|
end
|
|
@@ -280,7 +280,7 @@ module PulpcoreClient
|
|
|
280
280
|
|
|
281
281
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
282
282
|
if @api_client.config.debugging
|
|
283
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#
|
|
283
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
284
284
|
end
|
|
285
285
|
return data, status_code, headers
|
|
286
286
|
end
|
|
@@ -292,8 +292,8 @@ module PulpcoreClient
|
|
|
292
292
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
293
293
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
294
294
|
# @return [ArtifactResponse]
|
|
295
|
-
def
|
|
296
|
-
data, _status_code, _headers =
|
|
295
|
+
def read(artifact_href, opts = {})
|
|
296
|
+
data, _status_code, _headers = read_with_http_info(artifact_href, opts)
|
|
297
297
|
data
|
|
298
298
|
end
|
|
299
299
|
|
|
@@ -304,13 +304,13 @@ module PulpcoreClient
|
|
|
304
304
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
305
305
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
306
306
|
# @return [Array<(ArtifactResponse, Integer, Hash)>] ArtifactResponse data, response status code and response headers
|
|
307
|
-
def
|
|
307
|
+
def read_with_http_info(artifact_href, opts = {})
|
|
308
308
|
if @api_client.config.debugging
|
|
309
|
-
@api_client.config.logger.debug 'Calling API: ArtifactsApi.
|
|
309
|
+
@api_client.config.logger.debug 'Calling API: ArtifactsApi.read ...'
|
|
310
310
|
end
|
|
311
311
|
# verify the required parameter 'artifact_href' is set
|
|
312
312
|
if @api_client.config.client_side_validation && artifact_href.nil?
|
|
313
|
-
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.
|
|
313
|
+
fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.read"
|
|
314
314
|
end
|
|
315
315
|
# resource path
|
|
316
316
|
local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s).gsub('%2F', '/'))
|
|
@@ -348,7 +348,7 @@ module PulpcoreClient
|
|
|
348
348
|
|
|
349
349
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
350
350
|
if @api_client.config.debugging
|
|
351
|
-
@api_client.config.logger.debug "API called: ArtifactsApi#
|
|
351
|
+
@api_client.config.logger.debug "API called: ArtifactsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
352
352
|
end
|
|
353
353
|
return data, status_code, headers
|
|
354
354
|
end
|
|
@@ -31,8 +31,8 @@ module PulpcoreClient
|
|
|
31
31
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
32
32
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
33
33
|
# @return [PaginatedMultipleArtifactContentResponseList]
|
|
34
|
-
def
|
|
35
|
-
data, _status_code, _headers =
|
|
34
|
+
def list(opts = {})
|
|
35
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
36
36
|
data
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -48,9 +48,9 @@ module PulpcoreClient
|
|
|
48
48
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
49
49
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
50
50
|
# @return [Array<(PaginatedMultipleArtifactContentResponseList, Integer, Hash)>] PaginatedMultipleArtifactContentResponseList data, response status code and response headers
|
|
51
|
-
def
|
|
51
|
+
def list_with_http_info(opts = {})
|
|
52
52
|
if @api_client.config.debugging
|
|
53
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.
|
|
53
|
+
@api_client.config.logger.debug 'Calling API: ContentApi.list ...'
|
|
54
54
|
end
|
|
55
55
|
allowable_values = ["-pk", "pk"]
|
|
56
56
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -98,7 +98,7 @@ module PulpcoreClient
|
|
|
98
98
|
|
|
99
99
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
100
100
|
if @api_client.config.debugging
|
|
101
|
-
@api_client.config.logger.debug "API called: ContentApi#
|
|
101
|
+
@api_client.config.logger.debug "API called: ContentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
102
102
|
end
|
|
103
103
|
return data, status_code, headers
|
|
104
104
|
end
|
|
@@ -23,7 +23,7 @@ module PulpcoreClient
|
|
|
23
23
|
# Endpoint to list all contentguards.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
26
|
-
# @option opts [String] :name
|
|
26
|
+
# @option opts [String] :name Filter results where name matches value
|
|
27
27
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
28
28
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -33,8 +33,8 @@ module PulpcoreClient
|
|
|
33
33
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
34
34
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
35
35
|
# @return [PaginatedContentGuardResponseList]
|
|
36
|
-
def
|
|
37
|
-
data, _status_code, _headers =
|
|
36
|
+
def list(opts = {})
|
|
37
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
38
38
|
data
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ module PulpcoreClient
|
|
|
42
42
|
# Endpoint to list all contentguards.
|
|
43
43
|
# @param [Hash] opts the optional parameters
|
|
44
44
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
45
|
-
# @option opts [String] :name
|
|
45
|
+
# @option opts [String] :name Filter results where name matches value
|
|
46
46
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
47
47
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
48
48
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
@@ -52,11 +52,11 @@ module PulpcoreClient
|
|
|
52
52
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
53
53
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
54
54
|
# @return [Array<(PaginatedContentGuardResponseList, Integer, Hash)>] PaginatedContentGuardResponseList data, response status code and response headers
|
|
55
|
-
def
|
|
55
|
+
def list_with_http_info(opts = {})
|
|
56
56
|
if @api_client.config.debugging
|
|
57
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsApi.
|
|
57
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsApi.list ...'
|
|
58
58
|
end
|
|
59
|
-
allowable_values = ["-
|
|
59
|
+
allowable_values = ["-description", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "description", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
|
|
60
60
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
61
61
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
62
62
|
end
|
|
@@ -104,7 +104,7 @@ module PulpcoreClient
|
|
|
104
104
|
|
|
105
105
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
106
106
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug "API called: ContentguardsApi#
|
|
107
|
+
@api_client.config.logger.debug "API called: ContentguardsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
108
108
|
end
|
|
109
109
|
return data, status_code, headers
|
|
110
110
|
end
|