pulp_file_client 3.69.2 → 3.70.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -7
- data/docs/AcsFileApi.md +343 -157
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentFilesApi.md +114 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsFileApi.md +385 -182
- data/docs/FileFileAlternateContentSource.md +14 -13
- data/docs/FileFileAlternateContentSourceResponse.md +22 -21
- data/docs/FileFileContentResponse.md +30 -29
- data/docs/FileFileDistribution.md +20 -19
- data/docs/FileFileDistributionResponse.md +32 -31
- data/docs/FileFilePublication.md +12 -11
- data/docs/FileFilePublicationResponse.md +22 -21
- data/docs/FileFileRemote.md +48 -47
- data/docs/FileFileRemoteResponse.md +48 -47
- data/docs/FileFileRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/FileFileRepository.md +20 -19
- data/docs/FileFileRepositoryResponse.md +32 -31
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedfileFileContentResponseList.md +14 -13
- data/docs/PaginatedfileFileDistributionResponseList.md +14 -13
- data/docs/PaginatedfileFilePublicationResponseList.md +14 -13
- data/docs/PaginatedfileFileRemoteResponseList.md +14 -13
- data/docs/PaginatedfileFileRepositoryResponseList.md +14 -13
- data/docs/PatchedfileFileAlternateContentSource.md +14 -13
- data/docs/PatchedfileFileDistribution.md +20 -19
- data/docs/PatchedfileFileRemote.md +48 -47
- data/docs/PatchedfileFileRepository.md +20 -19
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsFileApi.md +267 -130
- data/docs/RemotesFileApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesFileApi.md +444 -207
- data/docs/RepositoriesFileVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_file_client/api/acs_file_api.rb +76 -50
- data/lib/pulp_file_client/api/content_files_api.rb +20 -14
- data/lib/pulp_file_client/api/distributions_file_api.rb +89 -56
- data/lib/pulp_file_client/api/publications_file_api.rb +67 -47
- data/lib/pulp_file_client/api/remotes_file_api.rb +104 -68
- data/lib/pulp_file_client/api/repositories_file_api.rb +107 -66
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +40 -30
- data/lib/pulp_file_client/api_client.rb +137 -102
- data/lib/pulp_file_client/api_error.rb +2 -1
- data/lib/pulp_file_client/configuration.rb +162 -21
- data/lib/pulp_file_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +35 -23
- data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +37 -25
- data/lib/pulp_file_client/models/file_file_content_response.rb +34 -24
- data/lib/pulp_file_client/models/file_file_distribution.rb +34 -22
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +36 -24
- data/lib/pulp_file_client/models/file_file_publication.rb +30 -22
- data/lib/pulp_file_client/models/file_file_publication_response.rb +32 -24
- data/lib/pulp_file_client/models/file_file_remote.rb +56 -22
- data/lib/pulp_file_client/models/file_file_remote_response.rb +59 -25
- data/lib/pulp_file_client/models/{file_file_remote_response_hidden_fields.rb → file_file_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_file_client/models/file_file_repository.rb +32 -22
- data/lib/pulp_file_client/models/file_file_repository_response.rb +34 -24
- data/lib/pulp_file_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_file_client/models/nested_role.rb +32 -22
- data/lib/pulp_file_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_file_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +34 -22
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +34 -22
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +36 -24
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +40 -24
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +62 -24
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +35 -23
- data/lib/pulp_file_client/models/policy_enum.rb +8 -4
- data/lib/pulp_file_client/models/repair.rb +30 -22
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_file_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_file_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_file_client/models/set_label.rb +34 -22
- data/lib/pulp_file_client/models/set_label_response.rb +34 -22
- data/lib/pulp_file_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_file_client/models/unset_label.rb +32 -22
- data/lib/pulp_file_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +2 -3
- data/pulp_file_client.gemspec +9 -6
- data/spec/api/acs_file_api_spec.rb +12 -12
- data/spec/api/content_files_api_spec.rb +4 -4
- data/spec/api/distributions_file_api_spec.rb +13 -13
- data/spec/api/publications_file_api_spec.rb +16 -15
- data/spec/api/remotes_file_api_spec.rb +20 -19
- data/spec/api/repositories_file_api_spec.rb +15 -15
- data/spec/api/repositories_file_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/file_file_alternate_content_source_response_spec.rb +14 -19
- data/spec/models/file_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/file_file_content_response_spec.rb +18 -23
- data/spec/models/file_file_distribution_response_spec.rb +19 -24
- data/spec/models/file_file_distribution_spec.rb +13 -18
- data/spec/models/file_file_publication_response_spec.rb +14 -19
- data/spec/models/file_file_publication_spec.rb +9 -14
- data/spec/models/{file_file_remote_response_hidden_fields_spec.rb → file_file_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/file_file_remote_response_spec.rb +27 -32
- data/spec/models/file_file_remote_spec.rb +27 -32
- data/spec/models/file_file_repository_response_spec.rb +19 -24
- data/spec/models/file_file_repository_spec.rb +13 -18
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedfile_file_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedfile_file_distribution_spec.rb +13 -18
- data/spec/models/patchedfile_file_remote_spec.rb +27 -32
- data/spec/models/patchedfile_file_repository_spec.rb +13 -18
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +45 -25
- data/docs/FileFileContent.md +0 -27
- data/docs/FileFileRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_file_client/models/file_file_content.rb +0 -297
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/file_file_content_spec.rb +0 -71
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -57,23 +57,27 @@ module PulpFileClient
|
|
57
57
|
# header parameters
|
58
58
|
header_params = opts[:header_params] || {}
|
59
59
|
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
61
61
|
# HTTP header 'Content-Type'
|
62
|
-
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
if !content_type.nil?
|
64
|
+
header_params['Content-Type'] = content_type
|
65
|
+
end
|
63
66
|
|
64
67
|
# form parameters
|
65
68
|
form_params = opts[:form_params] || {}
|
66
69
|
|
67
70
|
# http body (model)
|
68
|
-
post_body = opts[:
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
69
72
|
|
70
73
|
# return_type
|
71
|
-
return_type = opts[:
|
74
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
72
75
|
|
73
76
|
# auth_names
|
74
|
-
auth_names = opts[:
|
77
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
75
78
|
|
76
79
|
new_options = opts.merge(
|
80
|
+
:operation => :"RemotesFileApi.add_role",
|
77
81
|
:header_params => header_params,
|
78
82
|
:query_params => query_params,
|
79
83
|
:form_params => form_params,
|
@@ -121,23 +125,27 @@ module PulpFileClient
|
|
121
125
|
# header parameters
|
122
126
|
header_params = opts[:header_params] || {}
|
123
127
|
# HTTP header 'Accept' (if needed)
|
124
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
125
129
|
# HTTP header 'Content-Type'
|
126
|
-
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
127
134
|
|
128
135
|
# form parameters
|
129
136
|
form_params = opts[:form_params] || {}
|
130
137
|
|
131
138
|
# http body (model)
|
132
|
-
post_body = opts[:
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(file_file_remote)
|
133
140
|
|
134
141
|
# return_type
|
135
|
-
return_type = opts[:
|
142
|
+
return_type = opts[:debug_return_type] || 'FileFileRemoteResponse'
|
136
143
|
|
137
144
|
# auth_names
|
138
|
-
auth_names = opts[:
|
145
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
139
146
|
|
140
147
|
new_options = opts.merge(
|
148
|
+
:operation => :"RemotesFileApi.create",
|
141
149
|
:header_params => header_params,
|
142
150
|
:query_params => query_params,
|
143
151
|
:form_params => form_params,
|
@@ -185,21 +193,22 @@ module PulpFileClient
|
|
185
193
|
# header parameters
|
186
194
|
header_params = opts[:header_params] || {}
|
187
195
|
# HTTP header 'Accept' (if needed)
|
188
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
189
197
|
|
190
198
|
# form parameters
|
191
199
|
form_params = opts[:form_params] || {}
|
192
200
|
|
193
201
|
# http body (model)
|
194
|
-
post_body = opts[:
|
202
|
+
post_body = opts[:debug_body]
|
195
203
|
|
196
204
|
# return_type
|
197
|
-
return_type = opts[:
|
205
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
198
206
|
|
199
207
|
# auth_names
|
200
|
-
auth_names = opts[:
|
208
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
201
209
|
|
202
210
|
new_options = opts.merge(
|
211
|
+
:operation => :"RemotesFileApi.delete",
|
203
212
|
:header_params => header_params,
|
204
213
|
:query_params => query_params,
|
205
214
|
:form_params => form_params,
|
@@ -234,12 +243,13 @@ module PulpFileClient
|
|
234
243
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
235
244
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
236
245
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
237
|
-
# @option opts [
|
238
|
-
# @option opts [
|
239
|
-
# @option opts [
|
240
|
-
# @option opts [
|
241
|
-
# @option opts [
|
242
|
-
# @option opts [
|
246
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
247
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
248
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
249
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
250
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
251
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
252
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
243
253
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
244
254
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
245
255
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -268,12 +278,13 @@ module PulpFileClient
|
|
268
278
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
269
279
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
270
280
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
271
|
-
# @option opts [
|
272
|
-
# @option opts [
|
273
|
-
# @option opts [
|
274
|
-
# @option opts [
|
275
|
-
# @option opts [
|
276
|
-
# @option opts [
|
281
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
282
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
283
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
284
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
285
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
286
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
287
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
277
288
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
278
289
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
279
290
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -310,6 +321,7 @@ module PulpFileClient
|
|
310
321
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
311
322
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
312
323
|
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
324
|
+
query_params[:'pulp_last_updated__isnull'] = opts[:'pulp_last_updated__isnull'] if !opts[:'pulp_last_updated__isnull'].nil?
|
313
325
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
314
326
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
315
327
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
@@ -320,21 +332,22 @@ module PulpFileClient
|
|
320
332
|
# header parameters
|
321
333
|
header_params = opts[:header_params] || {}
|
322
334
|
# HTTP header 'Accept' (if needed)
|
323
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
324
336
|
|
325
337
|
# form parameters
|
326
338
|
form_params = opts[:form_params] || {}
|
327
339
|
|
328
340
|
# http body (model)
|
329
|
-
post_body = opts[:
|
341
|
+
post_body = opts[:debug_body]
|
330
342
|
|
331
343
|
# return_type
|
332
|
-
return_type = opts[:
|
344
|
+
return_type = opts[:debug_return_type] || 'PaginatedfileFileRemoteResponseList'
|
333
345
|
|
334
346
|
# auth_names
|
335
|
-
auth_names = opts[:
|
347
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
336
348
|
|
337
349
|
new_options = opts.merge(
|
350
|
+
:operation => :"RemotesFileApi.list",
|
338
351
|
:header_params => header_params,
|
339
352
|
:query_params => query_params,
|
340
353
|
:form_params => form_params,
|
@@ -388,21 +401,22 @@ module PulpFileClient
|
|
388
401
|
# header parameters
|
389
402
|
header_params = opts[:header_params] || {}
|
390
403
|
# HTTP header 'Accept' (if needed)
|
391
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
392
405
|
|
393
406
|
# form parameters
|
394
407
|
form_params = opts[:form_params] || {}
|
395
408
|
|
396
409
|
# http body (model)
|
397
|
-
post_body = opts[:
|
410
|
+
post_body = opts[:debug_body]
|
398
411
|
|
399
412
|
# return_type
|
400
|
-
return_type = opts[:
|
413
|
+
return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
|
401
414
|
|
402
415
|
# auth_names
|
403
|
-
auth_names = opts[:
|
416
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
404
417
|
|
405
418
|
new_options = opts.merge(
|
419
|
+
:operation => :"RemotesFileApi.list_roles",
|
406
420
|
:header_params => header_params,
|
407
421
|
:query_params => query_params,
|
408
422
|
:form_params => form_params,
|
@@ -456,21 +470,22 @@ module PulpFileClient
|
|
456
470
|
# header parameters
|
457
471
|
header_params = opts[:header_params] || {}
|
458
472
|
# HTTP header 'Accept' (if needed)
|
459
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
473
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
460
474
|
|
461
475
|
# form parameters
|
462
476
|
form_params = opts[:form_params] || {}
|
463
477
|
|
464
478
|
# http body (model)
|
465
|
-
post_body = opts[:
|
479
|
+
post_body = opts[:debug_body]
|
466
480
|
|
467
481
|
# return_type
|
468
|
-
return_type = opts[:
|
482
|
+
return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
|
469
483
|
|
470
484
|
# auth_names
|
471
|
-
auth_names = opts[:
|
485
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
472
486
|
|
473
487
|
new_options = opts.merge(
|
488
|
+
:operation => :"RemotesFileApi.my_permissions",
|
474
489
|
:header_params => header_params,
|
475
490
|
:query_params => query_params,
|
476
491
|
:form_params => form_params,
|
@@ -524,23 +539,27 @@ module PulpFileClient
|
|
524
539
|
# header parameters
|
525
540
|
header_params = opts[:header_params] || {}
|
526
541
|
# HTTP header 'Accept' (if needed)
|
527
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
542
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
528
543
|
# HTTP header 'Content-Type'
|
529
|
-
|
544
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
545
|
+
if !content_type.nil?
|
546
|
+
header_params['Content-Type'] = content_type
|
547
|
+
end
|
530
548
|
|
531
549
|
# form parameters
|
532
550
|
form_params = opts[:form_params] || {}
|
533
551
|
|
534
552
|
# http body (model)
|
535
|
-
post_body = opts[:
|
553
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedfile_file_remote)
|
536
554
|
|
537
555
|
# return_type
|
538
|
-
return_type = opts[:
|
556
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
539
557
|
|
540
558
|
# auth_names
|
541
|
-
auth_names = opts[:
|
559
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
542
560
|
|
543
561
|
new_options = opts.merge(
|
562
|
+
:operation => :"RemotesFileApi.partial_update",
|
544
563
|
:header_params => header_params,
|
545
564
|
:query_params => query_params,
|
546
565
|
:form_params => form_params,
|
@@ -594,21 +613,22 @@ module PulpFileClient
|
|
594
613
|
# header parameters
|
595
614
|
header_params = opts[:header_params] || {}
|
596
615
|
# HTTP header 'Accept' (if needed)
|
597
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
616
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
598
617
|
|
599
618
|
# form parameters
|
600
619
|
form_params = opts[:form_params] || {}
|
601
620
|
|
602
621
|
# http body (model)
|
603
|
-
post_body = opts[:
|
622
|
+
post_body = opts[:debug_body]
|
604
623
|
|
605
624
|
# return_type
|
606
|
-
return_type = opts[:
|
625
|
+
return_type = opts[:debug_return_type] || 'FileFileRemoteResponse'
|
607
626
|
|
608
627
|
# auth_names
|
609
|
-
auth_names = opts[:
|
628
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
610
629
|
|
611
630
|
new_options = opts.merge(
|
631
|
+
:operation => :"RemotesFileApi.read",
|
612
632
|
:header_params => header_params,
|
613
633
|
:query_params => query_params,
|
614
634
|
:form_params => form_params,
|
@@ -662,23 +682,27 @@ module PulpFileClient
|
|
662
682
|
# header parameters
|
663
683
|
header_params = opts[:header_params] || {}
|
664
684
|
# HTTP header 'Accept' (if needed)
|
665
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
685
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
666
686
|
# HTTP header 'Content-Type'
|
667
|
-
|
687
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
688
|
+
if !content_type.nil?
|
689
|
+
header_params['Content-Type'] = content_type
|
690
|
+
end
|
668
691
|
|
669
692
|
# form parameters
|
670
693
|
form_params = opts[:form_params] || {}
|
671
694
|
|
672
695
|
# http body (model)
|
673
|
-
post_body = opts[:
|
696
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
674
697
|
|
675
698
|
# return_type
|
676
|
-
return_type = opts[:
|
699
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
677
700
|
|
678
701
|
# auth_names
|
679
|
-
auth_names = opts[:
|
702
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
680
703
|
|
681
704
|
new_options = opts.merge(
|
705
|
+
:operation => :"RemotesFileApi.remove_role",
|
682
706
|
:header_params => header_params,
|
683
707
|
:query_params => query_params,
|
684
708
|
:form_params => form_params,
|
@@ -732,23 +756,27 @@ module PulpFileClient
|
|
732
756
|
# header parameters
|
733
757
|
header_params = opts[:header_params] || {}
|
734
758
|
# HTTP header 'Accept' (if needed)
|
735
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
759
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
736
760
|
# HTTP header 'Content-Type'
|
737
|
-
|
761
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
762
|
+
if !content_type.nil?
|
763
|
+
header_params['Content-Type'] = content_type
|
764
|
+
end
|
738
765
|
|
739
766
|
# form parameters
|
740
767
|
form_params = opts[:form_params] || {}
|
741
768
|
|
742
769
|
# http body (model)
|
743
|
-
post_body = opts[:
|
770
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
744
771
|
|
745
772
|
# return_type
|
746
|
-
return_type = opts[:
|
773
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
747
774
|
|
748
775
|
# auth_names
|
749
|
-
auth_names = opts[:
|
776
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
750
777
|
|
751
778
|
new_options = opts.merge(
|
779
|
+
:operation => :"RemotesFileApi.set_label",
|
752
780
|
:header_params => header_params,
|
753
781
|
:query_params => query_params,
|
754
782
|
:form_params => form_params,
|
@@ -802,23 +830,27 @@ module PulpFileClient
|
|
802
830
|
# header parameters
|
803
831
|
header_params = opts[:header_params] || {}
|
804
832
|
# HTTP header 'Accept' (if needed)
|
805
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
833
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
806
834
|
# HTTP header 'Content-Type'
|
807
|
-
|
835
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
836
|
+
if !content_type.nil?
|
837
|
+
header_params['Content-Type'] = content_type
|
838
|
+
end
|
808
839
|
|
809
840
|
# form parameters
|
810
841
|
form_params = opts[:form_params] || {}
|
811
842
|
|
812
843
|
# http body (model)
|
813
|
-
post_body = opts[:
|
844
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
814
845
|
|
815
846
|
# return_type
|
816
|
-
return_type = opts[:
|
847
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
817
848
|
|
818
849
|
# auth_names
|
819
|
-
auth_names = opts[:
|
850
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
820
851
|
|
821
852
|
new_options = opts.merge(
|
853
|
+
:operation => :"RemotesFileApi.unset_label",
|
822
854
|
:header_params => header_params,
|
823
855
|
:query_params => query_params,
|
824
856
|
:form_params => form_params,
|
@@ -872,23 +904,27 @@ module PulpFileClient
|
|
872
904
|
# header parameters
|
873
905
|
header_params = opts[:header_params] || {}
|
874
906
|
# HTTP header 'Accept' (if needed)
|
875
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
907
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
876
908
|
# HTTP header 'Content-Type'
|
877
|
-
|
909
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
910
|
+
if !content_type.nil?
|
911
|
+
header_params['Content-Type'] = content_type
|
912
|
+
end
|
878
913
|
|
879
914
|
# form parameters
|
880
915
|
form_params = opts[:form_params] || {}
|
881
916
|
|
882
917
|
# http body (model)
|
883
|
-
post_body = opts[:
|
918
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(file_file_remote)
|
884
919
|
|
885
920
|
# return_type
|
886
|
-
return_type = opts[:
|
921
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
887
922
|
|
888
923
|
# auth_names
|
889
|
-
auth_names = opts[:
|
924
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
890
925
|
|
891
926
|
new_options = opts.merge(
|
927
|
+
:operation => :"RemotesFileApi.update",
|
892
928
|
:header_params => header_params,
|
893
929
|
:query_params => query_params,
|
894
930
|
:form_params => form_params,
|