pulp_python_client 3.12.5 → 3.13.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 +17 -16
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentPackagesApi.md +170 -120
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsPypiApi.md +385 -182
- data/docs/ExcludePlatformsEnum.md +4 -5
- 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/PackageMetadataResponse.md +14 -13
- data/docs/PackageTypesEnum.md +4 -5
- data/docs/PackageUploadTaskResponse.md +12 -11
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedpythonPythonDistributionResponseList.md +14 -13
- data/docs/PaginatedpythonPythonPackageContentResponseList.md +14 -13
- data/docs/PaginatedpythonPythonPublicationResponseList.md +14 -13
- data/docs/PaginatedpythonPythonRemoteResponseList.md +14 -13
- data/docs/PaginatedpythonPythonRepositoryResponseList.md +14 -13
- data/docs/PatchedpythonPythonDistribution.md +24 -23
- data/docs/PatchedpythonPythonRemote.md +60 -59
- data/docs/PatchedpythonPythonRepository.md +18 -17
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsPypiApi.md +267 -130
- data/docs/PypiApi.md +33 -17
- data/docs/PypiLegacyApi.md +34 -18
- data/docs/PypiMetadataApi.md +34 -18
- data/docs/PypiSimpleApi.md +95 -45
- data/docs/PythonPythonDistribution.md +24 -23
- data/docs/PythonPythonDistributionResponse.md +36 -35
- data/docs/PythonPythonPackageContentResponse.md +70 -69
- data/docs/PythonPythonPublication.md +10 -9
- data/docs/PythonPythonPublicationResponse.md +20 -19
- data/docs/PythonPythonRemote.md +60 -59
- data/docs/PythonPythonRemoteResponse.md +60 -59
- data/docs/PythonPythonRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/PythonPythonRepository.md +18 -17
- data/docs/PythonPythonRepositoryResponse.md +30 -29
- data/docs/RemotesPythonApi.md +420 -198
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesPythonApi.md +444 -207
- data/docs/RepositoriesPythonVersionsApi.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/SummaryResponse.md +12 -11
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +21 -15
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +89 -56
- data/lib/pulp_python_client/api/publications_pypi_api.rb +67 -47
- data/lib/pulp_python_client/api/pypi_api.rb +6 -5
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +11 -7
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +6 -5
- data/lib/pulp_python_client/api/pypi_simple_api.rb +19 -13
- data/lib/pulp_python_client/api/remotes_python_api.rb +113 -73
- data/lib/pulp_python_client/api/repositories_python_api.rb +107 -66
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +40 -30
- data/lib/pulp_python_client/api_client.rb +137 -102
- data/lib/pulp_python_client/api_error.rb +2 -1
- data/lib/pulp_python_client/configuration.rb +162 -21
- data/lib/pulp_python_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_python_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_python_client/models/exclude_platforms_enum.rb +8 -4
- data/lib/pulp_python_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_python_client/models/nested_role.rb +32 -22
- data/lib/pulp_python_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_python_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_python_client/models/package_metadata_response.rb +41 -37
- data/lib/pulp_python_client/models/package_types_enum.rb +8 -4
- data/lib/pulp_python_client/models/package_upload_task_response.rb +37 -23
- data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +34 -22
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +40 -24
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +82 -44
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +35 -23
- data/lib/pulp_python_client/models/policy_enum.rb +8 -4
- data/lib/pulp_python_client/models/python_python_distribution.rb +34 -22
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +36 -24
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +38 -24
- data/lib/pulp_python_client/models/python_python_publication.rb +30 -22
- data/lib/pulp_python_client/models/python_python_publication_response.rb +32 -24
- data/lib/pulp_python_client/models/python_python_remote.rb +76 -42
- data/lib/pulp_python_client/models/python_python_remote_response.rb +79 -45
- data/lib/pulp_python_client/models/{python_python_remote_response_hidden_fields.rb → python_python_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_python_client/models/python_python_repository.rb +32 -22
- data/lib/pulp_python_client/models/python_python_repository_response.rb +34 -24
- data/lib/pulp_python_client/models/repair.rb +30 -22
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_python_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_python_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_python_client/models/set_label.rb +34 -22
- data/lib/pulp_python_client/models/set_label_response.rb +34 -22
- data/lib/pulp_python_client/models/summary_response.rb +36 -22
- data/lib/pulp_python_client/models/unset_label.rb +32 -22
- data/lib/pulp_python_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_python_client/version.rb +2 -2
- data/lib/pulp_python_client.rb +2 -5
- data/pulp_python_client.gemspec +9 -6
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/distributions_pypi_api_spec.rb +13 -13
- data/spec/api/publications_pypi_api_spec.rb +16 -15
- data/spec/api/pypi_api_spec.rb +2 -2
- data/spec/api/pypi_legacy_api_spec.rb +2 -2
- data/spec/api/pypi_metadata_api_spec.rb +2 -2
- data/spec/api/pypi_simple_api_spec.rb +4 -4
- data/spec/api/remotes_python_api_spec.rb +21 -20
- data/spec/api/repositories_python_api_spec.rb +15 -15
- data/spec/api/repositories_python_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/exclude_platforms_enum_spec.rb +6 -11
- 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/package_metadata_response_spec.rb +10 -15
- data/spec/models/package_types_enum_spec.rb +6 -11
- data/spec/models/package_upload_task_response_spec.rb +9 -14
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedpython_python_distribution_spec.rb +15 -20
- data/spec/models/patchedpython_python_remote_spec.rb +33 -38
- data/spec/models/patchedpython_python_repository_spec.rb +12 -17
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/python_python_distribution_response_spec.rb +21 -26
- data/spec/models/python_python_distribution_spec.rb +15 -20
- data/spec/models/python_python_package_content_response_spec.rb +38 -43
- data/spec/models/python_python_publication_response_spec.rb +13 -18
- data/spec/models/python_python_publication_spec.rb +8 -13
- data/spec/models/{python_python_remote_response_hidden_fields_spec.rb → python_python_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/python_python_remote_response_spec.rb +33 -38
- data/spec/models/python_python_remote_spec.rb +33 -38
- data/spec/models/python_python_repository_response_spec.rb +18 -23
- data/spec/models/python_python_repository_spec.rb +12 -17
- 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/summary_response_spec.rb +9 -14
- 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 +81 -69
- data/docs/PackageUpload.md +0 -21
- data/docs/PythonBanderRemote.md +0 -21
- data/docs/PythonPythonPackageContent.md +0 -71
- data/docs/PythonPythonRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_python_client/models/package_upload.rb +0 -283
- data/lib/pulp_python_client/models/python_bander_remote.rb +0 -257
- data/lib/pulp_python_client/models/python_python_package_content.rb +0 -534
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/package_upload_spec.rb +0 -53
- data/spec/models/python_bander_remote_spec.rb +0 -53
- data/spec/models/python_python_package_content_spec.rb +0 -203
@@ -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 PulpPythonClient
|
|
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 => :"PublicationsPypiApi.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 PulpPythonClient
|
|
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(python_python_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 => :"PublicationsPypiApi.create",
|
141
149
|
:header_params => header_params,
|
142
150
|
:query_params => query_params,
|
143
151
|
:form_params => form_params,
|
@@ -189,15 +197,16 @@ module PulpPythonClient
|
|
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 => :"PublicationsPypiApi.delete",
|
201
210
|
:header_params => header_params,
|
202
211
|
:query_params => query_params,
|
203
212
|
:form_params => form_params,
|
@@ -222,12 +231,13 @@ module PulpPythonClient
|
|
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 PulpPythonClient
|
|
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 PulpPythonClient
|
|
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 PulpPythonClient
|
|
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] || 'PaginatedpythonPythonPublicationResponseList'
|
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 => :"PublicationsPypiApi.list",
|
318
331
|
:header_params => header_params,
|
319
332
|
:query_params => query_params,
|
320
333
|
:form_params => form_params,
|
@@ -368,21 +381,22 @@ module PulpPythonClient
|
|
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 => :"PublicationsPypiApi.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 PulpPythonClient
|
|
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 => :"PublicationsPypiApi.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 PulpPythonClient
|
|
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] || 'PythonPythonPublicationResponse'
|
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 => :"PublicationsPypiApi.read",
|
522
538
|
:header_params => header_params,
|
523
539
|
:query_params => query_params,
|
524
540
|
:form_params => form_params,
|
@@ -572,23 +588,27 @@ module PulpPythonClient
|
|
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 => :"PublicationsPypiApi.remove_role",
|
592
612
|
:header_params => header_params,
|
593
613
|
:query_params => query_params,
|
594
614
|
: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,21 +57,22 @@ module PulpPythonClient
|
|
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
|
|
62
62
|
# form parameters
|
63
63
|
form_params = opts[:form_params] || {}
|
64
64
|
|
65
65
|
# http body (model)
|
66
|
-
post_body = opts[:
|
66
|
+
post_body = opts[:debug_body]
|
67
67
|
|
68
68
|
# return_type
|
69
|
-
return_type = opts[:
|
69
|
+
return_type = opts[:debug_return_type] || 'SummaryResponse'
|
70
70
|
|
71
71
|
# auth_names
|
72
|
-
auth_names = opts[:
|
72
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
73
73
|
|
74
74
|
new_options = opts.merge(
|
75
|
+
:operation => :"PypiApi.read",
|
75
76
|
:header_params => header_params,
|
76
77
|
:query_params => query_params,
|
77
78
|
: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
|
|
@@ -38,7 +38,7 @@ module PulpPythonClient
|
|
38
38
|
# @param content [File] A Python package release file to upload to the index.
|
39
39
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
41
|
+
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail! (default to 'file_upload')
|
42
42
|
# @return [Array<(PackageUploadTaskResponse, Integer, Hash)>] PackageUploadTaskResponse data, response status code and response headers
|
43
43
|
def create_with_http_info(path, content, sha256_digest, opts = {})
|
44
44
|
if @api_client.config.debugging
|
@@ -77,9 +77,12 @@ module PulpPythonClient
|
|
77
77
|
# header parameters
|
78
78
|
header_params = opts[:header_params] || {}
|
79
79
|
# HTTP header 'Accept' (if needed)
|
80
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
80
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
81
81
|
# HTTP header 'Content-Type'
|
82
|
-
|
82
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
83
|
+
if !content_type.nil?
|
84
|
+
header_params['Content-Type'] = content_type
|
85
|
+
end
|
83
86
|
|
84
87
|
# form parameters
|
85
88
|
form_params = opts[:form_params] || {}
|
@@ -88,15 +91,16 @@ module PulpPythonClient
|
|
88
91
|
form_params['action'] = opts[:'action'] if !opts[:'action'].nil?
|
89
92
|
|
90
93
|
# http body (model)
|
91
|
-
post_body = opts[:
|
94
|
+
post_body = opts[:debug_body]
|
92
95
|
|
93
96
|
# return_type
|
94
|
-
return_type = opts[:
|
97
|
+
return_type = opts[:debug_return_type] || 'PackageUploadTaskResponse'
|
95
98
|
|
96
99
|
# auth_names
|
97
|
-
auth_names = opts[:
|
100
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
98
101
|
|
99
102
|
new_options = opts.merge(
|
103
|
+
:operation => :"PypiLegacyApi.create",
|
100
104
|
:header_params => header_params,
|
101
105
|
:query_params => query_params,
|
102
106
|
: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
|
|
@@ -63,21 +63,22 @@ module PulpPythonClient
|
|
63
63
|
# header parameters
|
64
64
|
header_params = opts[:header_params] || {}
|
65
65
|
# HTTP header 'Accept' (if needed)
|
66
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
67
67
|
|
68
68
|
# form parameters
|
69
69
|
form_params = opts[:form_params] || {}
|
70
70
|
|
71
71
|
# http body (model)
|
72
|
-
post_body = opts[:
|
72
|
+
post_body = opts[:debug_body]
|
73
73
|
|
74
74
|
# return_type
|
75
|
-
return_type = opts[:
|
75
|
+
return_type = opts[:debug_return_type] || 'PackageMetadataResponse'
|
76
76
|
|
77
77
|
# auth_names
|
78
|
-
auth_names = opts[:
|
78
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
79
79
|
|
80
80
|
new_options = opts.merge(
|
81
|
+
:operation => :"PypiMetadataApi.read",
|
81
82
|
:header_params => header_params,
|
82
83
|
:query_params => query_params,
|
83
84
|
: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
|
|
@@ -38,7 +38,7 @@ module PulpPythonClient
|
|
38
38
|
# @param content [File] A Python package release file to upload to the index.
|
39
39
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
41
|
+
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail! (default to 'file_upload')
|
42
42
|
# @return [Array<(PackageUploadTaskResponse, Integer, Hash)>] PackageUploadTaskResponse data, response status code and response headers
|
43
43
|
def create_with_http_info(path, content, sha256_digest, opts = {})
|
44
44
|
if @api_client.config.debugging
|
@@ -77,9 +77,12 @@ module PulpPythonClient
|
|
77
77
|
# header parameters
|
78
78
|
header_params = opts[:header_params] || {}
|
79
79
|
# HTTP header 'Accept' (if needed)
|
80
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
80
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
81
81
|
# HTTP header 'Content-Type'
|
82
|
-
|
82
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
83
|
+
if !content_type.nil?
|
84
|
+
header_params['Content-Type'] = content_type
|
85
|
+
end
|
83
86
|
|
84
87
|
# form parameters
|
85
88
|
form_params = opts[:form_params] || {}
|
@@ -88,15 +91,16 @@ module PulpPythonClient
|
|
88
91
|
form_params['action'] = opts[:'action'] if !opts[:'action'].nil?
|
89
92
|
|
90
93
|
# http body (model)
|
91
|
-
post_body = opts[:
|
94
|
+
post_body = opts[:debug_body]
|
92
95
|
|
93
96
|
# return_type
|
94
|
-
return_type = opts[:
|
97
|
+
return_type = opts[:debug_return_type] || 'PackageUploadTaskResponse'
|
95
98
|
|
96
99
|
# auth_names
|
97
|
-
auth_names = opts[:
|
100
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
98
101
|
|
99
102
|
new_options = opts.merge(
|
103
|
+
:operation => :"PypiSimpleApi.create",
|
100
104
|
:header_params => header_params,
|
101
105
|
:query_params => query_params,
|
102
106
|
:form_params => form_params,
|
@@ -160,15 +164,16 @@ module PulpPythonClient
|
|
160
164
|
form_params = opts[:form_params] || {}
|
161
165
|
|
162
166
|
# http body (model)
|
163
|
-
post_body = opts[:
|
167
|
+
post_body = opts[:debug_body]
|
164
168
|
|
165
169
|
# return_type
|
166
|
-
return_type = opts[:
|
170
|
+
return_type = opts[:debug_return_type]
|
167
171
|
|
168
172
|
# auth_names
|
169
|
-
auth_names = opts[:
|
173
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
170
174
|
|
171
175
|
new_options = opts.merge(
|
176
|
+
:operation => :"PypiSimpleApi.pypi_simple_package_read",
|
172
177
|
:header_params => header_params,
|
173
178
|
:query_params => query_params,
|
174
179
|
:form_params => form_params,
|
@@ -226,15 +231,16 @@ module PulpPythonClient
|
|
226
231
|
form_params = opts[:form_params] || {}
|
227
232
|
|
228
233
|
# http body (model)
|
229
|
-
post_body = opts[:
|
234
|
+
post_body = opts[:debug_body]
|
230
235
|
|
231
236
|
# return_type
|
232
|
-
return_type = opts[:
|
237
|
+
return_type = opts[:debug_return_type]
|
233
238
|
|
234
239
|
# auth_names
|
235
|
-
auth_names = opts[:
|
240
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
236
241
|
|
237
242
|
new_options = opts.merge(
|
243
|
+
:operation => :"PypiSimpleApi.read",
|
238
244
|
:header_params => header_params,
|
239
245
|
:query_params => query_params,
|
240
246
|
:form_params => form_params,
|