pulpcore_client 3.20.0 → 3.21.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 +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
|
@@ -19,134 +19,8 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create a repository
|
|
23
|
-
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
24
|
-
# @param repository [Repository]
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [RepositoryResponse]
|
|
27
|
-
def create(repository, opts = {})
|
|
28
|
-
data, _status_code, _headers = create_with_http_info(repository, opts)
|
|
29
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Create a repository
|
|
33
|
-
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
34
|
-
# @param repository [Repository]
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(RepositoryResponse, Integer, Hash)>] RepositoryResponse data, response status code and response headers
|
|
37
|
-
def create_with_http_info(repository, opts = {})
|
|
38
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.create ...'
|
|
40
|
-
end
|
|
41
|
-
# verify the required parameter 'repository' is set
|
|
42
|
-
if @api_client.config.client_side_validation && repository.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'repository' when calling RepositoriesApi.create"
|
|
44
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/pulp/api/v3/repositories/'
|
|
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(repository)
|
|
63
|
-
|
|
64
|
-
# return_type
|
|
65
|
-
return_type = opts[:return_type] || 'RepositoryResponse'
|
|
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: RepositoriesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Delete a repository
|
|
87
|
-
# Trigger an asynchronous delete task
|
|
88
|
-
# @param repository_href [String]
|
|
89
|
-
# @param [Hash] opts the optional parameters
|
|
90
|
-
# @return [AsyncOperationResponse]
|
|
91
|
-
def delete(repository_href, opts = {})
|
|
92
|
-
data, _status_code, _headers = delete_with_http_info(repository_href, opts)
|
|
93
|
-
data
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Delete a repository
|
|
97
|
-
# Trigger an asynchronous delete task
|
|
98
|
-
# @param repository_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(repository_href, opts = {})
|
|
102
|
-
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.delete ...'
|
|
104
|
-
end
|
|
105
|
-
# verify the required parameter 'repository_href' is set
|
|
106
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.delete"
|
|
108
|
-
end
|
|
109
|
-
# resource path
|
|
110
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_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: RepositoriesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
-
end
|
|
145
|
-
return data, status_code, headers
|
|
146
|
-
end
|
|
147
|
-
|
|
148
22
|
# List repositories
|
|
149
|
-
#
|
|
23
|
+
# Endpoint to list all repositories.
|
|
150
24
|
# @param [Hash] opts the optional parameters
|
|
151
25
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
152
26
|
# @option opts [String] :name
|
|
@@ -157,6 +31,7 @@ module PulpcoreClient
|
|
|
157
31
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
32
|
# @option opts [Array<String>] :ordering Ordering
|
|
159
33
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
34
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
160
35
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
161
36
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
162
37
|
# @return [PaginatedRepositoryResponseList]
|
|
@@ -166,7 +41,7 @@ module PulpcoreClient
|
|
|
166
41
|
end
|
|
167
42
|
|
|
168
43
|
# List repositories
|
|
169
|
-
#
|
|
44
|
+
# Endpoint to list all repositories.
|
|
170
45
|
# @param [Hash] opts the optional parameters
|
|
171
46
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
172
47
|
# @option opts [String] :name
|
|
@@ -177,6 +52,7 @@ module PulpcoreClient
|
|
|
177
52
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
178
53
|
# @option opts [Array<String>] :ordering Ordering
|
|
179
54
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
55
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
180
56
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
181
57
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
182
58
|
# @return [Array<(PaginatedRepositoryResponseList, Integer, Hash)>] PaginatedRepositoryResponseList data, response status code and response headers
|
|
@@ -202,6 +78,7 @@ module PulpcoreClient
|
|
|
202
78
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
203
79
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
204
80
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
81
|
+
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
|
205
82
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
206
83
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
207
84
|
|
|
@@ -237,213 +114,5 @@ module PulpcoreClient
|
|
|
237
114
|
end
|
|
238
115
|
return data, status_code, headers
|
|
239
116
|
end
|
|
240
|
-
|
|
241
|
-
# Update a repository
|
|
242
|
-
# Trigger an asynchronous partial update task
|
|
243
|
-
# @param repository_href [String]
|
|
244
|
-
# @param patched_repository [PatchedRepository]
|
|
245
|
-
# @param [Hash] opts the optional parameters
|
|
246
|
-
# @return [AsyncOperationResponse]
|
|
247
|
-
def partial_update(repository_href, patched_repository, opts = {})
|
|
248
|
-
data, _status_code, _headers = partial_update_with_http_info(repository_href, patched_repository, opts)
|
|
249
|
-
data
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# Update a repository
|
|
253
|
-
# Trigger an asynchronous partial update task
|
|
254
|
-
# @param repository_href [String]
|
|
255
|
-
# @param patched_repository [PatchedRepository]
|
|
256
|
-
# @param [Hash] opts the optional parameters
|
|
257
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
258
|
-
def partial_update_with_http_info(repository_href, patched_repository, opts = {})
|
|
259
|
-
if @api_client.config.debugging
|
|
260
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.partial_update ...'
|
|
261
|
-
end
|
|
262
|
-
# verify the required parameter 'repository_href' is set
|
|
263
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
|
264
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.partial_update"
|
|
265
|
-
end
|
|
266
|
-
# verify the required parameter 'patched_repository' is set
|
|
267
|
-
if @api_client.config.client_side_validation && patched_repository.nil?
|
|
268
|
-
fail ArgumentError, "Missing the required parameter 'patched_repository' when calling RepositoriesApi.partial_update"
|
|
269
|
-
end
|
|
270
|
-
# resource path
|
|
271
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
272
|
-
|
|
273
|
-
# query parameters
|
|
274
|
-
query_params = opts[:query_params] || {}
|
|
275
|
-
|
|
276
|
-
# header parameters
|
|
277
|
-
header_params = opts[:header_params] || {}
|
|
278
|
-
# HTTP header 'Accept' (if needed)
|
|
279
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
280
|
-
# HTTP header 'Content-Type'
|
|
281
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
282
|
-
|
|
283
|
-
# form parameters
|
|
284
|
-
form_params = opts[:form_params] || {}
|
|
285
|
-
|
|
286
|
-
# http body (model)
|
|
287
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_repository)
|
|
288
|
-
|
|
289
|
-
# return_type
|
|
290
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
291
|
-
|
|
292
|
-
# auth_names
|
|
293
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
294
|
-
|
|
295
|
-
new_options = opts.merge(
|
|
296
|
-
:header_params => header_params,
|
|
297
|
-
:query_params => query_params,
|
|
298
|
-
:form_params => form_params,
|
|
299
|
-
:body => post_body,
|
|
300
|
-
:auth_names => auth_names,
|
|
301
|
-
:return_type => return_type
|
|
302
|
-
)
|
|
303
|
-
|
|
304
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
305
|
-
if @api_client.config.debugging
|
|
306
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
307
|
-
end
|
|
308
|
-
return data, status_code, headers
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
# Inspect a repository
|
|
312
|
-
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
313
|
-
# @param repository_href [String]
|
|
314
|
-
# @param [Hash] opts the optional parameters
|
|
315
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
316
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
317
|
-
# @return [RepositoryResponse]
|
|
318
|
-
def read(repository_href, opts = {})
|
|
319
|
-
data, _status_code, _headers = read_with_http_info(repository_href, opts)
|
|
320
|
-
data
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
# Inspect a repository
|
|
324
|
-
# An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
325
|
-
# @param repository_href [String]
|
|
326
|
-
# @param [Hash] opts the optional parameters
|
|
327
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
328
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
329
|
-
# @return [Array<(RepositoryResponse, Integer, Hash)>] RepositoryResponse data, response status code and response headers
|
|
330
|
-
def read_with_http_info(repository_href, opts = {})
|
|
331
|
-
if @api_client.config.debugging
|
|
332
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.read ...'
|
|
333
|
-
end
|
|
334
|
-
# verify the required parameter 'repository_href' is set
|
|
335
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
|
336
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.read"
|
|
337
|
-
end
|
|
338
|
-
# resource path
|
|
339
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
340
|
-
|
|
341
|
-
# query parameters
|
|
342
|
-
query_params = opts[:query_params] || {}
|
|
343
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
344
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
345
|
-
|
|
346
|
-
# header parameters
|
|
347
|
-
header_params = opts[:header_params] || {}
|
|
348
|
-
# HTTP header 'Accept' (if needed)
|
|
349
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
350
|
-
|
|
351
|
-
# form parameters
|
|
352
|
-
form_params = opts[:form_params] || {}
|
|
353
|
-
|
|
354
|
-
# http body (model)
|
|
355
|
-
post_body = opts[:body]
|
|
356
|
-
|
|
357
|
-
# return_type
|
|
358
|
-
return_type = opts[:return_type] || 'RepositoryResponse'
|
|
359
|
-
|
|
360
|
-
# auth_names
|
|
361
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
362
|
-
|
|
363
|
-
new_options = opts.merge(
|
|
364
|
-
:header_params => header_params,
|
|
365
|
-
:query_params => query_params,
|
|
366
|
-
:form_params => form_params,
|
|
367
|
-
:body => post_body,
|
|
368
|
-
:auth_names => auth_names,
|
|
369
|
-
:return_type => return_type
|
|
370
|
-
)
|
|
371
|
-
|
|
372
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
373
|
-
if @api_client.config.debugging
|
|
374
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
375
|
-
end
|
|
376
|
-
return data, status_code, headers
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
# Update a repository
|
|
380
|
-
# Trigger an asynchronous update task
|
|
381
|
-
# @param repository_href [String]
|
|
382
|
-
# @param repository [Repository]
|
|
383
|
-
# @param [Hash] opts the optional parameters
|
|
384
|
-
# @return [AsyncOperationResponse]
|
|
385
|
-
def update(repository_href, repository, opts = {})
|
|
386
|
-
data, _status_code, _headers = update_with_http_info(repository_href, repository, opts)
|
|
387
|
-
data
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# Update a repository
|
|
391
|
-
# Trigger an asynchronous update task
|
|
392
|
-
# @param repository_href [String]
|
|
393
|
-
# @param repository [Repository]
|
|
394
|
-
# @param [Hash] opts the optional parameters
|
|
395
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
396
|
-
def update_with_http_info(repository_href, repository, opts = {})
|
|
397
|
-
if @api_client.config.debugging
|
|
398
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesApi.update ...'
|
|
399
|
-
end
|
|
400
|
-
# verify the required parameter 'repository_href' is set
|
|
401
|
-
if @api_client.config.client_side_validation && repository_href.nil?
|
|
402
|
-
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.update"
|
|
403
|
-
end
|
|
404
|
-
# verify the required parameter 'repository' is set
|
|
405
|
-
if @api_client.config.client_side_validation && repository.nil?
|
|
406
|
-
fail ArgumentError, "Missing the required parameter 'repository' when calling RepositoriesApi.update"
|
|
407
|
-
end
|
|
408
|
-
# resource path
|
|
409
|
-
local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
|
|
410
|
-
|
|
411
|
-
# query parameters
|
|
412
|
-
query_params = opts[:query_params] || {}
|
|
413
|
-
|
|
414
|
-
# header parameters
|
|
415
|
-
header_params = opts[:header_params] || {}
|
|
416
|
-
# HTTP header 'Accept' (if needed)
|
|
417
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
418
|
-
# HTTP header 'Content-Type'
|
|
419
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
420
|
-
|
|
421
|
-
# form parameters
|
|
422
|
-
form_params = opts[:form_params] || {}
|
|
423
|
-
|
|
424
|
-
# http body (model)
|
|
425
|
-
post_body = opts[:body] || @api_client.object_to_http_body(repository)
|
|
426
|
-
|
|
427
|
-
# return_type
|
|
428
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
429
|
-
|
|
430
|
-
# auth_names
|
|
431
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
432
|
-
|
|
433
|
-
new_options = opts.merge(
|
|
434
|
-
:header_params => header_params,
|
|
435
|
-
:query_params => query_params,
|
|
436
|
-
:form_params => form_params,
|
|
437
|
-
:body => post_body,
|
|
438
|
-
:auth_names => auth_names,
|
|
439
|
-
:return_type => return_type
|
|
440
|
-
)
|
|
441
|
-
|
|
442
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
443
|
-
if @api_client.config.debugging
|
|
444
|
-
@api_client.config.logger.debug "API called: RepositoriesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
445
|
-
end
|
|
446
|
-
return data, status_code, headers
|
|
447
|
-
end
|
|
448
117
|
end
|
|
449
118
|
end
|
|
@@ -72,7 +72,7 @@ module PulpcoreClient
|
|
|
72
72
|
if @api_client.config.debugging
|
|
73
73
|
@api_client.config.logger.debug 'Calling API: RepositoryVersionsApi.list ...'
|
|
74
74
|
end
|
|
75
|
-
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
|
75
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
|
76
76
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
77
77
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
78
78
|
end
|
|
@@ -19,6 +19,74 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Add a role for this object to users/groups.
|
|
23
|
+
# @param upload_href [String]
|
|
24
|
+
# @param upload [Upload]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [NestedRoleResponse]
|
|
27
|
+
def add_role(upload_href, upload, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(upload_href, upload, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Add a role for this object to users/groups.
|
|
33
|
+
# @param upload_href [String]
|
|
34
|
+
# @param upload [Upload]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
+
def add_role_with_http_info(upload_href, upload, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.add_role ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'upload_href' is set
|
|
42
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.add_role"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'upload' is set
|
|
46
|
+
if @api_client.config.client_side_validation && upload.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.add_role"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '{upload_href}add_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(upload)
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: UploadsApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
22
90
|
# Finish an Upload
|
|
23
91
|
# Queues a Task that creates an Artifact, and the Upload gets deleted and cannot be re-used.
|
|
24
92
|
# @param upload_href [String]
|
|
@@ -281,6 +349,138 @@ module PulpcoreClient
|
|
|
281
349
|
return data, status_code, headers
|
|
282
350
|
end
|
|
283
351
|
|
|
352
|
+
# List roles assigned to this object.
|
|
353
|
+
# @param upload_href [String]
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
356
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
357
|
+
# @return [ObjectRolesResponse]
|
|
358
|
+
def list_roles(upload_href, opts = {})
|
|
359
|
+
data, _status_code, _headers = list_roles_with_http_info(upload_href, opts)
|
|
360
|
+
data
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# List roles assigned to this object.
|
|
364
|
+
# @param upload_href [String]
|
|
365
|
+
# @param [Hash] opts the optional parameters
|
|
366
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
367
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
368
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
369
|
+
def list_roles_with_http_info(upload_href, opts = {})
|
|
370
|
+
if @api_client.config.debugging
|
|
371
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.list_roles ...'
|
|
372
|
+
end
|
|
373
|
+
# verify the required parameter 'upload_href' is set
|
|
374
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
|
375
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.list_roles"
|
|
376
|
+
end
|
|
377
|
+
# resource path
|
|
378
|
+
local_var_path = '{upload_href}list_roles/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
379
|
+
|
|
380
|
+
# query parameters
|
|
381
|
+
query_params = opts[:query_params] || {}
|
|
382
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
383
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
384
|
+
|
|
385
|
+
# header parameters
|
|
386
|
+
header_params = opts[:header_params] || {}
|
|
387
|
+
# HTTP header 'Accept' (if needed)
|
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
389
|
+
|
|
390
|
+
# form parameters
|
|
391
|
+
form_params = opts[:form_params] || {}
|
|
392
|
+
|
|
393
|
+
# http body (model)
|
|
394
|
+
post_body = opts[:body]
|
|
395
|
+
|
|
396
|
+
# return_type
|
|
397
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
|
398
|
+
|
|
399
|
+
# auth_names
|
|
400
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
401
|
+
|
|
402
|
+
new_options = opts.merge(
|
|
403
|
+
:header_params => header_params,
|
|
404
|
+
:query_params => query_params,
|
|
405
|
+
:form_params => form_params,
|
|
406
|
+
:body => post_body,
|
|
407
|
+
:auth_names => auth_names,
|
|
408
|
+
:return_type => return_type
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
412
|
+
if @api_client.config.debugging
|
|
413
|
+
@api_client.config.logger.debug "API called: UploadsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
414
|
+
end
|
|
415
|
+
return data, status_code, headers
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# List permissions available to the current user on this object.
|
|
419
|
+
# @param upload_href [String]
|
|
420
|
+
# @param [Hash] opts the optional parameters
|
|
421
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
422
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
423
|
+
# @return [MyPermissionsResponse]
|
|
424
|
+
def my_permissions(upload_href, opts = {})
|
|
425
|
+
data, _status_code, _headers = my_permissions_with_http_info(upload_href, opts)
|
|
426
|
+
data
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# List permissions available to the current user on this object.
|
|
430
|
+
# @param upload_href [String]
|
|
431
|
+
# @param [Hash] opts the optional parameters
|
|
432
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
433
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
434
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
435
|
+
def my_permissions_with_http_info(upload_href, opts = {})
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.my_permissions ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'upload_href' is set
|
|
440
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.my_permissions"
|
|
442
|
+
end
|
|
443
|
+
# resource path
|
|
444
|
+
local_var_path = '{upload_href}my_permissions/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
445
|
+
|
|
446
|
+
# query parameters
|
|
447
|
+
query_params = opts[:query_params] || {}
|
|
448
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
449
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
450
|
+
|
|
451
|
+
# header parameters
|
|
452
|
+
header_params = opts[:header_params] || {}
|
|
453
|
+
# HTTP header 'Accept' (if needed)
|
|
454
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
455
|
+
|
|
456
|
+
# form parameters
|
|
457
|
+
form_params = opts[:form_params] || {}
|
|
458
|
+
|
|
459
|
+
# http body (model)
|
|
460
|
+
post_body = opts[:body]
|
|
461
|
+
|
|
462
|
+
# return_type
|
|
463
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
|
464
|
+
|
|
465
|
+
# auth_names
|
|
466
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
467
|
+
|
|
468
|
+
new_options = opts.merge(
|
|
469
|
+
:header_params => header_params,
|
|
470
|
+
:query_params => query_params,
|
|
471
|
+
:form_params => form_params,
|
|
472
|
+
:body => post_body,
|
|
473
|
+
:auth_names => auth_names,
|
|
474
|
+
:return_type => return_type
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug "API called: UploadsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
480
|
+
end
|
|
481
|
+
return data, status_code, headers
|
|
482
|
+
end
|
|
483
|
+
|
|
284
484
|
# Inspect an upload
|
|
285
485
|
# View for chunked uploads.
|
|
286
486
|
# @param upload_href [String]
|
|
@@ -349,6 +549,74 @@ module PulpcoreClient
|
|
|
349
549
|
return data, status_code, headers
|
|
350
550
|
end
|
|
351
551
|
|
|
552
|
+
# Remove a role for this object from users/groups.
|
|
553
|
+
# @param upload_href [String]
|
|
554
|
+
# @param upload [Upload]
|
|
555
|
+
# @param [Hash] opts the optional parameters
|
|
556
|
+
# @return [NestedRoleResponse]
|
|
557
|
+
def remove_role(upload_href, upload, opts = {})
|
|
558
|
+
data, _status_code, _headers = remove_role_with_http_info(upload_href, upload, opts)
|
|
559
|
+
data
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# Remove a role for this object from users/groups.
|
|
563
|
+
# @param upload_href [String]
|
|
564
|
+
# @param upload [Upload]
|
|
565
|
+
# @param [Hash] opts the optional parameters
|
|
566
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
567
|
+
def remove_role_with_http_info(upload_href, upload, opts = {})
|
|
568
|
+
if @api_client.config.debugging
|
|
569
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.remove_role ...'
|
|
570
|
+
end
|
|
571
|
+
# verify the required parameter 'upload_href' is set
|
|
572
|
+
if @api_client.config.client_side_validation && upload_href.nil?
|
|
573
|
+
fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.remove_role"
|
|
574
|
+
end
|
|
575
|
+
# verify the required parameter 'upload' is set
|
|
576
|
+
if @api_client.config.client_side_validation && upload.nil?
|
|
577
|
+
fail ArgumentError, "Missing the required parameter 'upload' when calling UploadsApi.remove_role"
|
|
578
|
+
end
|
|
579
|
+
# resource path
|
|
580
|
+
local_var_path = '{upload_href}remove_role/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s).gsub('%2F', '/'))
|
|
581
|
+
|
|
582
|
+
# query parameters
|
|
583
|
+
query_params = opts[:query_params] || {}
|
|
584
|
+
|
|
585
|
+
# header parameters
|
|
586
|
+
header_params = opts[:header_params] || {}
|
|
587
|
+
# HTTP header 'Accept' (if needed)
|
|
588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
589
|
+
# HTTP header 'Content-Type'
|
|
590
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
591
|
+
|
|
592
|
+
# form parameters
|
|
593
|
+
form_params = opts[:form_params] || {}
|
|
594
|
+
|
|
595
|
+
# http body (model)
|
|
596
|
+
post_body = opts[:body] || @api_client.object_to_http_body(upload)
|
|
597
|
+
|
|
598
|
+
# return_type
|
|
599
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
|
600
|
+
|
|
601
|
+
# auth_names
|
|
602
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
603
|
+
|
|
604
|
+
new_options = opts.merge(
|
|
605
|
+
:header_params => header_params,
|
|
606
|
+
:query_params => query_params,
|
|
607
|
+
:form_params => form_params,
|
|
608
|
+
:body => post_body,
|
|
609
|
+
:auth_names => auth_names,
|
|
610
|
+
:return_type => return_type
|
|
611
|
+
)
|
|
612
|
+
|
|
613
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug "API called: UploadsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
616
|
+
end
|
|
617
|
+
return data, status_code, headers
|
|
618
|
+
end
|
|
619
|
+
|
|
352
620
|
# Upload a file chunk
|
|
353
621
|
# Upload a chunk for an upload.
|
|
354
622
|
# @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
|