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 => :"DistributionsFileApi.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_distribution)
|
133
140
|
|
134
141
|
# return_type
|
135
|
-
return_type = opts[:
|
142
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
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 => :"DistributionsFileApi.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 => :"DistributionsFileApi.delete",
|
203
212
|
:header_params => header_params,
|
204
213
|
:query_params => query_params,
|
205
214
|
:form_params => form_params,
|
@@ -323,21 +332,22 @@ module PulpFileClient
|
|
323
332
|
# header parameters
|
324
333
|
header_params = opts[:header_params] || {}
|
325
334
|
# HTTP header 'Accept' (if needed)
|
326
|
-
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']
|
327
336
|
|
328
337
|
# form parameters
|
329
338
|
form_params = opts[:form_params] || {}
|
330
339
|
|
331
340
|
# http body (model)
|
332
|
-
post_body = opts[:
|
341
|
+
post_body = opts[:debug_body]
|
333
342
|
|
334
343
|
# return_type
|
335
|
-
return_type = opts[:
|
344
|
+
return_type = opts[:debug_return_type] || 'PaginatedfileFileDistributionResponseList'
|
336
345
|
|
337
346
|
# auth_names
|
338
|
-
auth_names = opts[:
|
347
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
339
348
|
|
340
349
|
new_options = opts.merge(
|
350
|
+
:operation => :"DistributionsFileApi.list",
|
341
351
|
:header_params => header_params,
|
342
352
|
:query_params => query_params,
|
343
353
|
:form_params => form_params,
|
@@ -391,21 +401,22 @@ module PulpFileClient
|
|
391
401
|
# header parameters
|
392
402
|
header_params = opts[:header_params] || {}
|
393
403
|
# HTTP header 'Accept' (if needed)
|
394
|
-
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']
|
395
405
|
|
396
406
|
# form parameters
|
397
407
|
form_params = opts[:form_params] || {}
|
398
408
|
|
399
409
|
# http body (model)
|
400
|
-
post_body = opts[:
|
410
|
+
post_body = opts[:debug_body]
|
401
411
|
|
402
412
|
# return_type
|
403
|
-
return_type = opts[:
|
413
|
+
return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
|
404
414
|
|
405
415
|
# auth_names
|
406
|
-
auth_names = opts[:
|
416
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
407
417
|
|
408
418
|
new_options = opts.merge(
|
419
|
+
:operation => :"DistributionsFileApi.list_roles",
|
409
420
|
:header_params => header_params,
|
410
421
|
:query_params => query_params,
|
411
422
|
:form_params => form_params,
|
@@ -459,21 +470,22 @@ module PulpFileClient
|
|
459
470
|
# header parameters
|
460
471
|
header_params = opts[:header_params] || {}
|
461
472
|
# HTTP header 'Accept' (if needed)
|
462
|
-
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']
|
463
474
|
|
464
475
|
# form parameters
|
465
476
|
form_params = opts[:form_params] || {}
|
466
477
|
|
467
478
|
# http body (model)
|
468
|
-
post_body = opts[:
|
479
|
+
post_body = opts[:debug_body]
|
469
480
|
|
470
481
|
# return_type
|
471
|
-
return_type = opts[:
|
482
|
+
return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
|
472
483
|
|
473
484
|
# auth_names
|
474
|
-
auth_names = opts[:
|
485
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
475
486
|
|
476
487
|
new_options = opts.merge(
|
488
|
+
:operation => :"DistributionsFileApi.my_permissions",
|
477
489
|
:header_params => header_params,
|
478
490
|
:query_params => query_params,
|
479
491
|
:form_params => form_params,
|
@@ -527,23 +539,27 @@ module PulpFileClient
|
|
527
539
|
# header parameters
|
528
540
|
header_params = opts[:header_params] || {}
|
529
541
|
# HTTP header 'Accept' (if needed)
|
530
|
-
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']
|
531
543
|
# HTTP header 'Content-Type'
|
532
|
-
|
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
|
533
548
|
|
534
549
|
# form parameters
|
535
550
|
form_params = opts[:form_params] || {}
|
536
551
|
|
537
552
|
# http body (model)
|
538
|
-
post_body = opts[:
|
553
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedfile_file_distribution)
|
539
554
|
|
540
555
|
# return_type
|
541
|
-
return_type = opts[:
|
556
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
542
557
|
|
543
558
|
# auth_names
|
544
|
-
auth_names = opts[:
|
559
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
545
560
|
|
546
561
|
new_options = opts.merge(
|
562
|
+
:operation => :"DistributionsFileApi.partial_update",
|
547
563
|
:header_params => header_params,
|
548
564
|
:query_params => query_params,
|
549
565
|
:form_params => form_params,
|
@@ -597,21 +613,22 @@ module PulpFileClient
|
|
597
613
|
# header parameters
|
598
614
|
header_params = opts[:header_params] || {}
|
599
615
|
# HTTP header 'Accept' (if needed)
|
600
|
-
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']
|
601
617
|
|
602
618
|
# form parameters
|
603
619
|
form_params = opts[:form_params] || {}
|
604
620
|
|
605
621
|
# http body (model)
|
606
|
-
post_body = opts[:
|
622
|
+
post_body = opts[:debug_body]
|
607
623
|
|
608
624
|
# return_type
|
609
|
-
return_type = opts[:
|
625
|
+
return_type = opts[:debug_return_type] || 'FileFileDistributionResponse'
|
610
626
|
|
611
627
|
# auth_names
|
612
|
-
auth_names = opts[:
|
628
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
613
629
|
|
614
630
|
new_options = opts.merge(
|
631
|
+
:operation => :"DistributionsFileApi.read",
|
615
632
|
:header_params => header_params,
|
616
633
|
:query_params => query_params,
|
617
634
|
:form_params => form_params,
|
@@ -665,23 +682,27 @@ module PulpFileClient
|
|
665
682
|
# header parameters
|
666
683
|
header_params = opts[:header_params] || {}
|
667
684
|
# HTTP header 'Accept' (if needed)
|
668
|
-
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']
|
669
686
|
# HTTP header 'Content-Type'
|
670
|
-
|
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
|
671
691
|
|
672
692
|
# form parameters
|
673
693
|
form_params = opts[:form_params] || {}
|
674
694
|
|
675
695
|
# http body (model)
|
676
|
-
post_body = opts[:
|
696
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
677
697
|
|
678
698
|
# return_type
|
679
|
-
return_type = opts[:
|
699
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
680
700
|
|
681
701
|
# auth_names
|
682
|
-
auth_names = opts[:
|
702
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
683
703
|
|
684
704
|
new_options = opts.merge(
|
705
|
+
:operation => :"DistributionsFileApi.remove_role",
|
685
706
|
:header_params => header_params,
|
686
707
|
:query_params => query_params,
|
687
708
|
:form_params => form_params,
|
@@ -735,23 +756,27 @@ module PulpFileClient
|
|
735
756
|
# header parameters
|
736
757
|
header_params = opts[:header_params] || {}
|
737
758
|
# HTTP header 'Accept' (if needed)
|
738
|
-
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']
|
739
760
|
# HTTP header 'Content-Type'
|
740
|
-
|
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
|
741
765
|
|
742
766
|
# form parameters
|
743
767
|
form_params = opts[:form_params] || {}
|
744
768
|
|
745
769
|
# http body (model)
|
746
|
-
post_body = opts[:
|
770
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
747
771
|
|
748
772
|
# return_type
|
749
|
-
return_type = opts[:
|
773
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
750
774
|
|
751
775
|
# auth_names
|
752
|
-
auth_names = opts[:
|
776
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
753
777
|
|
754
778
|
new_options = opts.merge(
|
779
|
+
:operation => :"DistributionsFileApi.set_label",
|
755
780
|
:header_params => header_params,
|
756
781
|
:query_params => query_params,
|
757
782
|
:form_params => form_params,
|
@@ -805,23 +830,27 @@ module PulpFileClient
|
|
805
830
|
# header parameters
|
806
831
|
header_params = opts[:header_params] || {}
|
807
832
|
# HTTP header 'Accept' (if needed)
|
808
|
-
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']
|
809
834
|
# HTTP header 'Content-Type'
|
810
|
-
|
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
|
811
839
|
|
812
840
|
# form parameters
|
813
841
|
form_params = opts[:form_params] || {}
|
814
842
|
|
815
843
|
# http body (model)
|
816
|
-
post_body = opts[:
|
844
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
817
845
|
|
818
846
|
# return_type
|
819
|
-
return_type = opts[:
|
847
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
820
848
|
|
821
849
|
# auth_names
|
822
|
-
auth_names = opts[:
|
850
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
823
851
|
|
824
852
|
new_options = opts.merge(
|
853
|
+
:operation => :"DistributionsFileApi.unset_label",
|
825
854
|
:header_params => header_params,
|
826
855
|
:query_params => query_params,
|
827
856
|
:form_params => form_params,
|
@@ -875,23 +904,27 @@ module PulpFileClient
|
|
875
904
|
# header parameters
|
876
905
|
header_params = opts[:header_params] || {}
|
877
906
|
# HTTP header 'Accept' (if needed)
|
878
|
-
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']
|
879
908
|
# HTTP header 'Content-Type'
|
880
|
-
|
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
|
881
913
|
|
882
914
|
# form parameters
|
883
915
|
form_params = opts[:form_params] || {}
|
884
916
|
|
885
917
|
# http body (model)
|
886
|
-
post_body = opts[:
|
918
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(file_file_distribution)
|
887
919
|
|
888
920
|
# return_type
|
889
|
-
return_type = opts[:
|
921
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
890
922
|
|
891
923
|
# auth_names
|
892
|
-
auth_names = opts[:
|
924
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
893
925
|
|
894
926
|
new_options = opts.merge(
|
927
|
+
:operation => :"DistributionsFileApi.update",
|
895
928
|
:header_params => header_params,
|
896
929
|
:query_params => query_params,
|
897
930
|
:form_params => form_params,
|
@@ -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 => :"PublicationsFileApi.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_publication)
|
133
140
|
|
134
141
|
# return_type
|
135
|
-
return_type = opts[:
|
142
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
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 => :"PublicationsFileApi.create",
|
141
149
|
:header_params => header_params,
|
142
150
|
:query_params => query_params,
|
143
151
|
:form_params => form_params,
|
@@ -189,15 +197,16 @@ module PulpFileClient
|
|
189
197
|
form_params = opts[:form_params] || {}
|
190
198
|
|
191
199
|
# http body (model)
|
192
|
-
post_body = opts[:
|
200
|
+
post_body = opts[:debug_body]
|
193
201
|
|
194
202
|
# return_type
|
195
|
-
return_type = opts[:
|
203
|
+
return_type = opts[:debug_return_type]
|
196
204
|
|
197
205
|
# auth_names
|
198
|
-
auth_names = opts[:
|
206
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
199
207
|
|
200
208
|
new_options = opts.merge(
|
209
|
+
:operation => :"PublicationsFileApi.delete",
|
201
210
|
:header_params => header_params,
|
202
211
|
:query_params => query_params,
|
203
212
|
:form_params => form_params,
|
@@ -222,12 +231,13 @@ module PulpFileClient
|
|
222
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
223
232
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
224
233
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
225
|
-
# @option opts [
|
226
|
-
# @option opts [
|
227
|
-
# @option opts [
|
228
|
-
# @option opts [
|
229
|
-
# @option opts [
|
230
|
-
# @option opts [
|
234
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
235
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
236
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
237
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
238
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
239
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
240
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
231
241
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
232
242
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
233
243
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
@@ -250,12 +260,13 @@ module PulpFileClient
|
|
250
260
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
251
261
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
252
262
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
253
|
-
# @option opts [
|
254
|
-
# @option opts [
|
255
|
-
# @option opts [
|
256
|
-
# @option opts [
|
257
|
-
# @option opts [
|
258
|
-
# @option opts [
|
263
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
264
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
265
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
266
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
267
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
268
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
269
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
259
270
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
260
271
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
261
272
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
@@ -286,6 +297,7 @@ module PulpFileClient
|
|
286
297
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
287
298
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
288
299
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
300
|
+
query_params[:'pulp_created__isnull'] = opts[:'pulp_created__isnull'] if !opts[:'pulp_created__isnull'].nil?
|
289
301
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
290
302
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
291
303
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
@@ -300,21 +312,22 @@ module PulpFileClient
|
|
300
312
|
# header parameters
|
301
313
|
header_params = opts[:header_params] || {}
|
302
314
|
# HTTP header 'Accept' (if needed)
|
303
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
304
316
|
|
305
317
|
# form parameters
|
306
318
|
form_params = opts[:form_params] || {}
|
307
319
|
|
308
320
|
# http body (model)
|
309
|
-
post_body = opts[:
|
321
|
+
post_body = opts[:debug_body]
|
310
322
|
|
311
323
|
# return_type
|
312
|
-
return_type = opts[:
|
324
|
+
return_type = opts[:debug_return_type] || 'PaginatedfileFilePublicationResponseList'
|
313
325
|
|
314
326
|
# auth_names
|
315
|
-
auth_names = opts[:
|
327
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
316
328
|
|
317
329
|
new_options = opts.merge(
|
330
|
+
:operation => :"PublicationsFileApi.list",
|
318
331
|
:header_params => header_params,
|
319
332
|
:query_params => query_params,
|
320
333
|
:form_params => form_params,
|
@@ -368,21 +381,22 @@ module PulpFileClient
|
|
368
381
|
# header parameters
|
369
382
|
header_params = opts[:header_params] || {}
|
370
383
|
# HTTP header 'Accept' (if needed)
|
371
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
372
385
|
|
373
386
|
# form parameters
|
374
387
|
form_params = opts[:form_params] || {}
|
375
388
|
|
376
389
|
# http body (model)
|
377
|
-
post_body = opts[:
|
390
|
+
post_body = opts[:debug_body]
|
378
391
|
|
379
392
|
# return_type
|
380
|
-
return_type = opts[:
|
393
|
+
return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
|
381
394
|
|
382
395
|
# auth_names
|
383
|
-
auth_names = opts[:
|
396
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
384
397
|
|
385
398
|
new_options = opts.merge(
|
399
|
+
:operation => :"PublicationsFileApi.list_roles",
|
386
400
|
:header_params => header_params,
|
387
401
|
:query_params => query_params,
|
388
402
|
:form_params => form_params,
|
@@ -436,21 +450,22 @@ module PulpFileClient
|
|
436
450
|
# header parameters
|
437
451
|
header_params = opts[:header_params] || {}
|
438
452
|
# HTTP header 'Accept' (if needed)
|
439
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
440
454
|
|
441
455
|
# form parameters
|
442
456
|
form_params = opts[:form_params] || {}
|
443
457
|
|
444
458
|
# http body (model)
|
445
|
-
post_body = opts[:
|
459
|
+
post_body = opts[:debug_body]
|
446
460
|
|
447
461
|
# return_type
|
448
|
-
return_type = opts[:
|
462
|
+
return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
|
449
463
|
|
450
464
|
# auth_names
|
451
|
-
auth_names = opts[:
|
465
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
452
466
|
|
453
467
|
new_options = opts.merge(
|
468
|
+
:operation => :"PublicationsFileApi.my_permissions",
|
454
469
|
:header_params => header_params,
|
455
470
|
:query_params => query_params,
|
456
471
|
:form_params => form_params,
|
@@ -504,21 +519,22 @@ module PulpFileClient
|
|
504
519
|
# header parameters
|
505
520
|
header_params = opts[:header_params] || {}
|
506
521
|
# HTTP header 'Accept' (if needed)
|
507
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
522
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
508
523
|
|
509
524
|
# form parameters
|
510
525
|
form_params = opts[:form_params] || {}
|
511
526
|
|
512
527
|
# http body (model)
|
513
|
-
post_body = opts[:
|
528
|
+
post_body = opts[:debug_body]
|
514
529
|
|
515
530
|
# return_type
|
516
|
-
return_type = opts[:
|
531
|
+
return_type = opts[:debug_return_type] || 'FileFilePublicationResponse'
|
517
532
|
|
518
533
|
# auth_names
|
519
|
-
auth_names = opts[:
|
534
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
520
535
|
|
521
536
|
new_options = opts.merge(
|
537
|
+
:operation => :"PublicationsFileApi.read",
|
522
538
|
:header_params => header_params,
|
523
539
|
:query_params => query_params,
|
524
540
|
:form_params => form_params,
|
@@ -572,23 +588,27 @@ module PulpFileClient
|
|
572
588
|
# header parameters
|
573
589
|
header_params = opts[:header_params] || {}
|
574
590
|
# HTTP header 'Accept' (if needed)
|
575
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
591
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
576
592
|
# HTTP header 'Content-Type'
|
577
|
-
|
593
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
594
|
+
if !content_type.nil?
|
595
|
+
header_params['Content-Type'] = content_type
|
596
|
+
end
|
578
597
|
|
579
598
|
# form parameters
|
580
599
|
form_params = opts[:form_params] || {}
|
581
600
|
|
582
601
|
# http body (model)
|
583
|
-
post_body = opts[:
|
602
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
584
603
|
|
585
604
|
# return_type
|
586
|
-
return_type = opts[:
|
605
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
587
606
|
|
588
607
|
# auth_names
|
589
|
-
auth_names = opts[:
|
608
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
590
609
|
|
591
610
|
new_options = opts.merge(
|
611
|
+
:operation => :"PublicationsFileApi.remove_role",
|
592
612
|
:header_params => header_params,
|
593
613
|
:query_params => query_params,
|
594
614
|
:form_params => form_params,
|