pulpcore_client 3.28.30 → 3.28.32
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 +154 -156
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactDistributionResponse.md +9 -9
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +5 -5
- data/docs/ContentguardsContentRedirectApi.md +50 -50
- data/docs/ContentguardsRbacApi.md +50 -50
- data/docs/DistributionsApi.md +5 -5
- data/docs/DistributionsArtifactsApi.md +10 -10
- data/docs/DomainsApi.md +30 -30
- data/docs/ExportersFilesystemApi.md +30 -30
- data/docs/ExportersFilesystemExportsApi.md +20 -20
- data/docs/ExportersPulpApi.md +30 -30
- data/docs/ExportersPulpExportsApi.md +20 -20
- data/docs/GroupsApi.md +50 -50
- data/docs/GroupsRolesApi.md +20 -20
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/ImportersPulpApi.md +30 -30
- data/docs/ImportersPulpImportsApi.md +20 -20
- data/docs/OrphansApi.md +5 -5
- data/docs/OrphansCleanupApi.md +5 -5
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +5 -5
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +5 -5
- data/docs/RepositoryVersionsApi.md +5 -5
- data/docs/RolesApi.md +30 -30
- data/docs/SigningServicesApi.md +10 -10
- data/docs/TaskGroupsApi.md +10 -10
- data/docs/TaskSchedulesApi.md +30 -30
- data/docs/TasksApi.md +95 -95
- data/docs/UploadsApi.md +50 -50
- data/docs/UpstreamPulpsApi.md +35 -35
- data/docs/UsersApi.md +30 -30
- data/docs/UsersRolesApi.md +20 -20
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
- data/lib/pulpcore_client/api/domains_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +63 -63
- 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 +37 -37
- 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 +5 -5
- data/lib/pulpcore_client/api/remotes_api.rb +5 -5
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +5 -5
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
- data/lib/pulpcore_client/api/roles_api.rb +37 -37
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
- data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
- data/lib/pulpcore_client/api/tasks_api.rb +119 -119
- data/lib/pulpcore_client/api/uploads_api.rb +65 -65
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +43 -43
- data/lib/pulpcore_client/api/users_api.rb +37 -37
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +11 -11
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +39 -39
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -2
- data/spec/api/access_policies_api_spec.rb +10 -10
- 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 +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +4 -4
- data/spec/api/domains_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +12 -12
- 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 +12 -12
- 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 +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +2 -2
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +4 -4
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +12 -12
- data/spec/api/tasks_api_spec.rb +29 -29
- data/spec/api/uploads_api_spec.rb +20 -20
- data/spec/api/upstream_pulps_api_spec.rb +14 -14
- 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 +4 -4
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +140 -148
- 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
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param upload [Upload]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def add_role(upload_href, upload, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(upload_href, upload, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpcoreClient
|
|
|
34
34
|
# @param upload [Upload]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def add_role_with_http_info(upload_href, upload, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'upload_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'upload' is set
|
|
46
46
|
if @api_client.config.client_side_validation && upload.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{upload_href}add_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: UploadsApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
@@ -93,8 +93,8 @@ module PulpcoreClient
|
|
|
93
93
|
# @param upload_commit [UploadCommit]
|
|
94
94
|
# @param [Hash] opts the optional parameters
|
|
95
95
|
# @return [AsyncOperationResponse]
|
|
96
|
-
def
|
|
97
|
-
data, _status_code, _headers =
|
|
96
|
+
def commit(upload_href, upload_commit, opts = {})
|
|
97
|
+
data, _status_code, _headers = commit_with_http_info(upload_href, upload_commit, opts)
|
|
98
98
|
data
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -104,17 +104,17 @@ module PulpcoreClient
|
|
|
104
104
|
# @param upload_commit [UploadCommit]
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
107
|
-
def
|
|
107
|
+
def commit_with_http_info(upload_href, upload_commit, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.commit ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'upload_href' is set
|
|
112
112
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
113
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.commit"
|
|
114
114
|
end
|
|
115
115
|
# verify the required parameter 'upload_commit' is set
|
|
116
116
|
if @api_client.config.client_side_validation && upload_commit.nil?
|
|
117
|
-
fail ArgumentError, "Missing the required parameter 'upload_commit' when calling UploadsApi.
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'upload_commit' when calling UploadsApi.commit"
|
|
118
118
|
end
|
|
119
119
|
# resource path
|
|
120
120
|
local_var_path = '{upload_href}commit/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -152,7 +152,7 @@ module PulpcoreClient
|
|
|
152
152
|
|
|
153
153
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
154
154
|
if @api_client.config.debugging
|
|
155
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
155
|
+
@api_client.config.logger.debug "API called: UploadsApi#commit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
156
|
end
|
|
157
157
|
return data, status_code, headers
|
|
158
158
|
end
|
|
@@ -162,8 +162,8 @@ module PulpcoreClient
|
|
|
162
162
|
# @param upload [Upload]
|
|
163
163
|
# @param [Hash] opts the optional parameters
|
|
164
164
|
# @return [UploadResponse]
|
|
165
|
-
def
|
|
166
|
-
data, _status_code, _headers =
|
|
165
|
+
def create(upload, opts = {})
|
|
166
|
+
data, _status_code, _headers = create_with_http_info(upload, opts)
|
|
167
167
|
data
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,13 +172,13 @@ module PulpcoreClient
|
|
|
172
172
|
# @param upload [Upload]
|
|
173
173
|
# @param [Hash] opts the optional parameters
|
|
174
174
|
# @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
|
|
175
|
-
def
|
|
175
|
+
def create_with_http_info(upload, opts = {})
|
|
176
176
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.create ...'
|
|
178
178
|
end
|
|
179
179
|
# verify the required parameter 'upload' is set
|
|
180
180
|
if @api_client.config.client_side_validation && upload.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.create"
|
|
182
182
|
end
|
|
183
183
|
# resource path
|
|
184
184
|
local_var_path = '/pulp/api/v3/uploads/'
|
|
@@ -216,7 +216,7 @@ module PulpcoreClient
|
|
|
216
216
|
|
|
217
217
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
218
218
|
if @api_client.config.debugging
|
|
219
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
219
|
+
@api_client.config.logger.debug "API called: UploadsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
220
220
|
end
|
|
221
221
|
return data, status_code, headers
|
|
222
222
|
end
|
|
@@ -226,8 +226,8 @@ module PulpcoreClient
|
|
|
226
226
|
# @param upload_href [String]
|
|
227
227
|
# @param [Hash] opts the optional parameters
|
|
228
228
|
# @return [nil]
|
|
229
|
-
def
|
|
230
|
-
|
|
229
|
+
def delete(upload_href, opts = {})
|
|
230
|
+
delete_with_http_info(upload_href, opts)
|
|
231
231
|
nil
|
|
232
232
|
end
|
|
233
233
|
|
|
@@ -236,13 +236,13 @@ module PulpcoreClient
|
|
|
236
236
|
# @param upload_href [String]
|
|
237
237
|
# @param [Hash] opts the optional parameters
|
|
238
238
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
239
|
-
def
|
|
239
|
+
def delete_with_http_info(upload_href, opts = {})
|
|
240
240
|
if @api_client.config.debugging
|
|
241
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
241
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.delete ...'
|
|
242
242
|
end
|
|
243
243
|
# verify the required parameter 'upload_href' is set
|
|
244
244
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
245
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.delete"
|
|
246
246
|
end
|
|
247
247
|
# resource path
|
|
248
248
|
local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -276,7 +276,7 @@ module PulpcoreClient
|
|
|
276
276
|
|
|
277
277
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
278
278
|
if @api_client.config.debugging
|
|
279
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
279
|
+
@api_client.config.logger.debug "API called: UploadsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
280
280
|
end
|
|
281
281
|
return data, status_code, headers
|
|
282
282
|
end
|
|
@@ -296,8 +296,8 @@ module PulpcoreClient
|
|
|
296
296
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
297
297
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
298
298
|
# @return [PaginatedUploadResponseList]
|
|
299
|
-
def
|
|
300
|
-
data, _status_code, _headers =
|
|
299
|
+
def list(opts = {})
|
|
300
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
301
301
|
data
|
|
302
302
|
end
|
|
303
303
|
|
|
@@ -316,9 +316,9 @@ module PulpcoreClient
|
|
|
316
316
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
317
317
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
318
318
|
# @return [Array<(PaginatedUploadResponseList, Integer, Hash)>] PaginatedUploadResponseList data, response status code and response headers
|
|
319
|
-
def
|
|
319
|
+
def list_with_http_info(opts = {})
|
|
320
320
|
if @api_client.config.debugging
|
|
321
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
321
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.list ...'
|
|
322
322
|
end
|
|
323
323
|
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-size", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "size"]
|
|
324
324
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -369,7 +369,7 @@ module PulpcoreClient
|
|
|
369
369
|
|
|
370
370
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
371
371
|
if @api_client.config.debugging
|
|
372
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
372
|
+
@api_client.config.logger.debug "API called: UploadsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
373
373
|
end
|
|
374
374
|
return data, status_code, headers
|
|
375
375
|
end
|
|
@@ -380,8 +380,8 @@ module PulpcoreClient
|
|
|
380
380
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
381
381
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
382
382
|
# @return [ObjectRolesResponse]
|
|
383
|
-
def
|
|
384
|
-
data, _status_code, _headers =
|
|
383
|
+
def list_roles(upload_href, opts = {})
|
|
384
|
+
data, _status_code, _headers = list_roles_with_http_info(upload_href, opts)
|
|
385
385
|
data
|
|
386
386
|
end
|
|
387
387
|
|
|
@@ -391,13 +391,13 @@ module PulpcoreClient
|
|
|
391
391
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
392
392
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
393
393
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
394
|
-
def
|
|
394
|
+
def list_roles_with_http_info(upload_href, opts = {})
|
|
395
395
|
if @api_client.config.debugging
|
|
396
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
396
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.list_roles ...'
|
|
397
397
|
end
|
|
398
398
|
# verify the required parameter 'upload_href' is set
|
|
399
399
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
400
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
400
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.list_roles"
|
|
401
401
|
end
|
|
402
402
|
# resource path
|
|
403
403
|
local_var_path = '{upload_href}list_roles/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -435,7 +435,7 @@ module PulpcoreClient
|
|
|
435
435
|
|
|
436
436
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
437
437
|
if @api_client.config.debugging
|
|
438
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
438
|
+
@api_client.config.logger.debug "API called: UploadsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
439
439
|
end
|
|
440
440
|
return data, status_code, headers
|
|
441
441
|
end
|
|
@@ -446,8 +446,8 @@ module PulpcoreClient
|
|
|
446
446
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
447
447
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
448
448
|
# @return [MyPermissionsResponse]
|
|
449
|
-
def
|
|
450
|
-
data, _status_code, _headers =
|
|
449
|
+
def my_permissions(upload_href, opts = {})
|
|
450
|
+
data, _status_code, _headers = my_permissions_with_http_info(upload_href, opts)
|
|
451
451
|
data
|
|
452
452
|
end
|
|
453
453
|
|
|
@@ -457,13 +457,13 @@ module PulpcoreClient
|
|
|
457
457
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
458
458
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
459
459
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
460
|
-
def
|
|
460
|
+
def my_permissions_with_http_info(upload_href, opts = {})
|
|
461
461
|
if @api_client.config.debugging
|
|
462
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
462
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.my_permissions ...'
|
|
463
463
|
end
|
|
464
464
|
# verify the required parameter 'upload_href' is set
|
|
465
465
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
466
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
466
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.my_permissions"
|
|
467
467
|
end
|
|
468
468
|
# resource path
|
|
469
469
|
local_var_path = '{upload_href}my_permissions/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -501,7 +501,7 @@ module PulpcoreClient
|
|
|
501
501
|
|
|
502
502
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
503
503
|
if @api_client.config.debugging
|
|
504
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
504
|
+
@api_client.config.logger.debug "API called: UploadsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
505
505
|
end
|
|
506
506
|
return data, status_code, headers
|
|
507
507
|
end
|
|
@@ -513,8 +513,8 @@ module PulpcoreClient
|
|
|
513
513
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
514
514
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
515
515
|
# @return [UploadDetailResponse]
|
|
516
|
-
def
|
|
517
|
-
data, _status_code, _headers =
|
|
516
|
+
def read(upload_href, opts = {})
|
|
517
|
+
data, _status_code, _headers = read_with_http_info(upload_href, opts)
|
|
518
518
|
data
|
|
519
519
|
end
|
|
520
520
|
|
|
@@ -525,13 +525,13 @@ module PulpcoreClient
|
|
|
525
525
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
526
526
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
527
527
|
# @return [Array<(UploadDetailResponse, Integer, Hash)>] UploadDetailResponse data, response status code and response headers
|
|
528
|
-
def
|
|
528
|
+
def read_with_http_info(upload_href, opts = {})
|
|
529
529
|
if @api_client.config.debugging
|
|
530
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
530
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.read ...'
|
|
531
531
|
end
|
|
532
532
|
# verify the required parameter 'upload_href' is set
|
|
533
533
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
534
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
534
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.read"
|
|
535
535
|
end
|
|
536
536
|
# resource path
|
|
537
537
|
local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -569,7 +569,7 @@ module PulpcoreClient
|
|
|
569
569
|
|
|
570
570
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
571
571
|
if @api_client.config.debugging
|
|
572
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
572
|
+
@api_client.config.logger.debug "API called: UploadsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
573
573
|
end
|
|
574
574
|
return data, status_code, headers
|
|
575
575
|
end
|
|
@@ -579,8 +579,8 @@ module PulpcoreClient
|
|
|
579
579
|
# @param upload [Upload]
|
|
580
580
|
# @param [Hash] opts the optional parameters
|
|
581
581
|
# @return [NestedRoleResponse]
|
|
582
|
-
def
|
|
583
|
-
data, _status_code, _headers =
|
|
582
|
+
def remove_role(upload_href, upload, opts = {})
|
|
583
|
+
data, _status_code, _headers = remove_role_with_http_info(upload_href, upload, opts)
|
|
584
584
|
data
|
|
585
585
|
end
|
|
586
586
|
|
|
@@ -589,17 +589,17 @@ module PulpcoreClient
|
|
|
589
589
|
# @param upload [Upload]
|
|
590
590
|
# @param [Hash] opts the optional parameters
|
|
591
591
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
592
|
-
def
|
|
592
|
+
def remove_role_with_http_info(upload_href, upload, opts = {})
|
|
593
593
|
if @api_client.config.debugging
|
|
594
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
594
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.remove_role ...'
|
|
595
595
|
end
|
|
596
596
|
# verify the required parameter 'upload_href' is set
|
|
597
597
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
598
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
598
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.remove_role"
|
|
599
599
|
end
|
|
600
600
|
# verify the required parameter 'upload' is set
|
|
601
601
|
if @api_client.config.client_side_validation && upload.nil?
|
|
602
|
-
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.
|
|
602
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.remove_role"
|
|
603
603
|
end
|
|
604
604
|
# resource path
|
|
605
605
|
local_var_path = '{upload_href}remove_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
@@ -637,7 +637,7 @@ module PulpcoreClient
|
|
|
637
637
|
|
|
638
638
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
639
639
|
if @api_client.config.debugging
|
|
640
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
640
|
+
@api_client.config.logger.debug "API called: UploadsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
641
641
|
end
|
|
642
642
|
return data, status_code, headers
|
|
643
643
|
end
|
|
@@ -650,8 +650,8 @@ module PulpcoreClient
|
|
|
650
650
|
# @param [Hash] opts the optional parameters
|
|
651
651
|
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
|
652
652
|
# @return [UploadResponse]
|
|
653
|
-
def
|
|
654
|
-
data, _status_code, _headers =
|
|
653
|
+
def update(content_range, upload_href, file, opts = {})
|
|
654
|
+
data, _status_code, _headers = update_with_http_info(content_range, upload_href, file, opts)
|
|
655
655
|
data
|
|
656
656
|
end
|
|
657
657
|
|
|
@@ -663,24 +663,24 @@ module PulpcoreClient
|
|
|
663
663
|
# @param [Hash] opts the optional parameters
|
|
664
664
|
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
|
665
665
|
# @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
|
|
666
|
-
def
|
|
666
|
+
def update_with_http_info(content_range, upload_href, file, opts = {})
|
|
667
667
|
if @api_client.config.debugging
|
|
668
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.
|
|
668
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.update ...'
|
|
669
669
|
end
|
|
670
670
|
# verify the required parameter 'content_range' is set
|
|
671
671
|
if @api_client.config.client_side_validation && content_range.nil?
|
|
672
|
-
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.
|
|
672
|
+
fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.update"
|
|
673
673
|
end
|
|
674
674
|
# verify the required parameter 'upload_href' is set
|
|
675
675
|
if @api_client.config.client_side_validation && upload_href.nil?
|
|
676
|
-
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.
|
|
676
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.update"
|
|
677
677
|
end
|
|
678
678
|
# verify the required parameter 'file' is set
|
|
679
679
|
if @api_client.config.client_side_validation && file.nil?
|
|
680
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.
|
|
680
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.update"
|
|
681
681
|
end
|
|
682
682
|
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
|
683
|
-
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.
|
|
683
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.update, the character length must be great than or equal to 1.'
|
|
684
684
|
end
|
|
685
685
|
|
|
686
686
|
# resource path
|
|
@@ -722,7 +722,7 @@ module PulpcoreClient
|
|
|
722
722
|
|
|
723
723
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
724
724
|
if @api_client.config.debugging
|
|
725
|
-
@api_client.config.logger.debug "API called: UploadsApi#
|
|
725
|
+
@api_client.config.logger.debug "API called: UploadsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
726
726
|
end
|
|
727
727
|
return data, status_code, headers
|
|
728
728
|
end
|
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param upstream_pulp [UpstreamPulp]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [UpstreamPulpResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def create(upstream_pulp, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(upstream_pulp, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module PulpcoreClient
|
|
|
34
34
|
# @param upstream_pulp [UpstreamPulp]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def create_with_http_info(upstream_pulp, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.create ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'upstream_pulp' is set
|
|
42
42
|
if @api_client.config.client_side_validation && upstream_pulp.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/upstream-pulps/'
|
|
@@ -78,7 +78,7 @@ module PulpcoreClient
|
|
|
78
78
|
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
80
|
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
81
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
@@ -88,8 +88,8 @@ module PulpcoreClient
|
|
|
88
88
|
# @param upstream_pulp_href [String]
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def delete(upstream_pulp_href, opts = {})
|
|
92
|
+
delete_with_http_info(upstream_pulp_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpcoreClient
|
|
|
98
98
|
# @param upstream_pulp_href [String]
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
-
def
|
|
101
|
+
def delete_with_http_info(upstream_pulp_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'upstream_pulp_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
|
@@ -138,7 +138,7 @@ module PulpcoreClient
|
|
|
138
138
|
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
140
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
@@ -151,8 +151,8 @@ module PulpcoreClient
|
|
|
151
151
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
152
152
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
153
153
|
# @return [PaginatedUpstreamPulpResponseList]
|
|
154
|
-
def
|
|
155
|
-
data, _status_code, _headers =
|
|
154
|
+
def list(opts = {})
|
|
155
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
156
156
|
data
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -164,9 +164,9 @@ module PulpcoreClient
|
|
|
164
164
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
165
165
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
166
166
|
# @return [Array<(PaginatedUpstreamPulpResponseList, Integer, Hash)>] PaginatedUpstreamPulpResponseList data, response status code and response headers
|
|
167
|
-
def
|
|
167
|
+
def list_with_http_info(opts = {})
|
|
168
168
|
if @api_client.config.debugging
|
|
169
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
169
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.list ...'
|
|
170
170
|
end
|
|
171
171
|
# resource path
|
|
172
172
|
local_var_path = '/pulp/api/v3/upstream-pulps/'
|
|
@@ -206,7 +206,7 @@ module PulpcoreClient
|
|
|
206
206
|
|
|
207
207
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
208
208
|
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
209
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
210
|
end
|
|
211
211
|
return data, status_code, headers
|
|
212
212
|
end
|
|
@@ -217,8 +217,8 @@ module PulpcoreClient
|
|
|
217
217
|
# @param patched_upstream_pulp [PatchedUpstreamPulp]
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @return [UpstreamPulpResponse]
|
|
220
|
-
def
|
|
221
|
-
data, _status_code, _headers =
|
|
220
|
+
def partial_update(upstream_pulp_href, patched_upstream_pulp, opts = {})
|
|
221
|
+
data, _status_code, _headers = partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts)
|
|
222
222
|
data
|
|
223
223
|
end
|
|
224
224
|
|
|
@@ -228,17 +228,17 @@ module PulpcoreClient
|
|
|
228
228
|
# @param patched_upstream_pulp [PatchedUpstreamPulp]
|
|
229
229
|
# @param [Hash] opts the optional parameters
|
|
230
230
|
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
|
231
|
-
def
|
|
231
|
+
def partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts = {})
|
|
232
232
|
if @api_client.config.debugging
|
|
233
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
233
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.partial_update ...'
|
|
234
234
|
end
|
|
235
235
|
# verify the required parameter 'upstream_pulp_href' is set
|
|
236
236
|
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
|
237
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.
|
|
237
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.partial_update"
|
|
238
238
|
end
|
|
239
239
|
# verify the required parameter 'patched_upstream_pulp' is set
|
|
240
240
|
if @api_client.config.client_side_validation && patched_upstream_pulp.nil?
|
|
241
|
-
fail ArgumentError, "Missing the required parameter 'patched_upstream_pulp' when calling UpstreamPulpsApi.
|
|
241
|
+
fail ArgumentError, "Missing the required parameter 'patched_upstream_pulp' when calling UpstreamPulpsApi.partial_update"
|
|
242
242
|
end
|
|
243
243
|
# resource path
|
|
244
244
|
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
|
@@ -276,7 +276,7 @@ module PulpcoreClient
|
|
|
276
276
|
|
|
277
277
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
278
278
|
if @api_client.config.debugging
|
|
279
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
279
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
280
280
|
end
|
|
281
281
|
return data, status_code, headers
|
|
282
282
|
end
|
|
@@ -288,8 +288,8 @@ module PulpcoreClient
|
|
|
288
288
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
289
289
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
290
290
|
# @return [UpstreamPulpResponse]
|
|
291
|
-
def
|
|
292
|
-
data, _status_code, _headers =
|
|
291
|
+
def read(upstream_pulp_href, opts = {})
|
|
292
|
+
data, _status_code, _headers = read_with_http_info(upstream_pulp_href, opts)
|
|
293
293
|
data
|
|
294
294
|
end
|
|
295
295
|
|
|
@@ -300,13 +300,13 @@ module PulpcoreClient
|
|
|
300
300
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
301
301
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
302
302
|
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
|
303
|
-
def
|
|
303
|
+
def read_with_http_info(upstream_pulp_href, opts = {})
|
|
304
304
|
if @api_client.config.debugging
|
|
305
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
305
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.read ...'
|
|
306
306
|
end
|
|
307
307
|
# verify the required parameter 'upstream_pulp_href' is set
|
|
308
308
|
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
|
309
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.
|
|
309
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.read"
|
|
310
310
|
end
|
|
311
311
|
# resource path
|
|
312
312
|
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
|
@@ -344,7 +344,7 @@ module PulpcoreClient
|
|
|
344
344
|
|
|
345
345
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
346
346
|
if @api_client.config.debugging
|
|
347
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
347
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
348
348
|
end
|
|
349
349
|
return data, status_code, headers
|
|
350
350
|
end
|
|
@@ -354,8 +354,8 @@ module PulpcoreClient
|
|
|
354
354
|
# @param upstream_pulp_href [String]
|
|
355
355
|
# @param [Hash] opts the optional parameters
|
|
356
356
|
# @return [TaskGroupOperationResponse]
|
|
357
|
-
def
|
|
358
|
-
data, _status_code, _headers =
|
|
357
|
+
def replicate(upstream_pulp_href, opts = {})
|
|
358
|
+
data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, opts)
|
|
359
359
|
data
|
|
360
360
|
end
|
|
361
361
|
|
|
@@ -364,13 +364,13 @@ module PulpcoreClient
|
|
|
364
364
|
# @param upstream_pulp_href [String]
|
|
365
365
|
# @param [Hash] opts the optional parameters
|
|
366
366
|
# @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
|
|
367
|
-
def
|
|
367
|
+
def replicate_with_http_info(upstream_pulp_href, opts = {})
|
|
368
368
|
if @api_client.config.debugging
|
|
369
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
369
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
|
|
370
370
|
end
|
|
371
371
|
# verify the required parameter 'upstream_pulp_href' is set
|
|
372
372
|
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
|
373
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.
|
|
373
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.replicate"
|
|
374
374
|
end
|
|
375
375
|
# resource path
|
|
376
376
|
local_var_path = '{upstream_pulp_href}replicate/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
|
@@ -406,7 +406,7 @@ module PulpcoreClient
|
|
|
406
406
|
|
|
407
407
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
408
408
|
if @api_client.config.debugging
|
|
409
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
409
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#replicate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
410
410
|
end
|
|
411
411
|
return data, status_code, headers
|
|
412
412
|
end
|
|
@@ -417,8 +417,8 @@ module PulpcoreClient
|
|
|
417
417
|
# @param upstream_pulp [UpstreamPulp]
|
|
418
418
|
# @param [Hash] opts the optional parameters
|
|
419
419
|
# @return [UpstreamPulpResponse]
|
|
420
|
-
def
|
|
421
|
-
data, _status_code, _headers =
|
|
420
|
+
def update(upstream_pulp_href, upstream_pulp, opts = {})
|
|
421
|
+
data, _status_code, _headers = update_with_http_info(upstream_pulp_href, upstream_pulp, opts)
|
|
422
422
|
data
|
|
423
423
|
end
|
|
424
424
|
|
|
@@ -428,17 +428,17 @@ module PulpcoreClient
|
|
|
428
428
|
# @param upstream_pulp [UpstreamPulp]
|
|
429
429
|
# @param [Hash] opts the optional parameters
|
|
430
430
|
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
|
431
|
-
def
|
|
431
|
+
def update_with_http_info(upstream_pulp_href, upstream_pulp, opts = {})
|
|
432
432
|
if @api_client.config.debugging
|
|
433
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.
|
|
433
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.update ...'
|
|
434
434
|
end
|
|
435
435
|
# verify the required parameter 'upstream_pulp_href' is set
|
|
436
436
|
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
|
437
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.
|
|
437
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.update"
|
|
438
438
|
end
|
|
439
439
|
# verify the required parameter 'upstream_pulp' is set
|
|
440
440
|
if @api_client.config.client_side_validation && upstream_pulp.nil?
|
|
441
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.update"
|
|
442
442
|
end
|
|
443
443
|
# resource path
|
|
444
444
|
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
|
@@ -476,7 +476,7 @@ module PulpcoreClient
|
|
|
476
476
|
|
|
477
477
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
478
478
|
if @api_client.config.debugging
|
|
479
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#
|
|
479
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
480
480
|
end
|
|
481
481
|
return data, status_code, headers
|
|
482
482
|
end
|