pulp_python_client 3.11.8 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -12
- data/docs/ContentPackagesApi.md +13 -19
- data/docs/DistributionsPypiApi.md +245 -41
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PackageMetadataResponse.md +3 -3
- data/docs/PublicationsPypiApi.md +237 -17
- data/docs/PypiApi.md +8 -4
- data/docs/PypiLegacyApi.md +1 -3
- data/docs/PypiMetadataApi.md +8 -4
- data/docs/PypiSimpleApi.md +1 -7
- data/docs/PythonPythonPackageContent.md +6 -6
- data/docs/PythonPythonPackageContentResponse.md +6 -6
- data/docs/RemotesPythonApi.md +245 -43
- data/docs/RepositoriesPythonApi.md +249 -53
- data/docs/RepositoriesPythonVersionsApi.md +5 -17
- data/lib/pulp_python_client/api/content_packages_api.rb +12 -21
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -24
- data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -12
- data/lib/pulp_python_client/api/pypi_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +0 -3
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_simple_api.rb +0 -9
- data/lib/pulp_python_client/api/remotes_python_api.rb +276 -27
- data/lib/pulp_python_client/api/repositories_python_api.rb +276 -30
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +0 -12
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_python_client/models/nested_role.rb +253 -0
- data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
- data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
- data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/content_packages_api_spec.rb +6 -9
- data/spec/api/distributions_pypi_api_spec.rb +54 -8
- data/spec/api/publications_pypi_api_spec.rb +54 -4
- data/spec/api/pypi_api_spec.rb +0 -1
- data/spec/api/pypi_legacy_api_spec.rb +0 -1
- data/spec/api/pypi_metadata_api_spec.rb +0 -1
- data/spec/api/pypi_simple_api_spec.rb +0 -3
- data/spec/api/remotes_python_api_spec.rb +54 -9
- data/spec/api/repositories_python_api_spec.rb +54 -10
- data/spec/api/repositories_python_versions_api_spec.rb +0 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +68 -52
|
@@ -19,11 +19,80 @@ module PulpPythonClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Add a role
|
|
23
|
+
# Add a role for this object to users/groups.
|
|
24
|
+
# @param python_python_publication_href [String]
|
|
25
|
+
# @param nested_role [NestedRole]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [NestedRoleResponse]
|
|
28
|
+
def add_role(python_python_publication_href, nested_role, opts = {})
|
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(python_python_publication_href, nested_role, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Add a role
|
|
34
|
+
# Add a role for this object to users/groups.
|
|
35
|
+
# @param python_python_publication_href [String]
|
|
36
|
+
# @param nested_role [NestedRole]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
39
|
+
def add_role_with_http_info(python_python_publication_href, nested_role, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.add_role ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
44
|
+
if @api_client.config.client_side_validation && python_python_publication_href.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.add_role"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'nested_role' is set
|
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsPypiApi.add_role"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '{python_python_publication_href}add_role/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
63
|
+
|
|
64
|
+
# form parameters
|
|
65
|
+
form_params = opts[:form_params] || {}
|
|
66
|
+
|
|
67
|
+
# http body (model)
|
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
|
69
|
+
|
|
70
|
+
# return_type
|
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
|
72
|
+
|
|
73
|
+
# auth_names
|
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
75
|
+
|
|
76
|
+
new_options = opts.merge(
|
|
77
|
+
:header_params => header_params,
|
|
78
|
+
:query_params => query_params,
|
|
79
|
+
:form_params => form_params,
|
|
80
|
+
:body => post_body,
|
|
81
|
+
:auth_names => auth_names,
|
|
82
|
+
:return_type => return_type
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug "API called: PublicationsPypiApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
+
end
|
|
89
|
+
return data, status_code, headers
|
|
90
|
+
end
|
|
91
|
+
|
|
22
92
|
# Create a python publication
|
|
23
93
|
# Dispatches a publish task, which generates metadata that will be used by pip.
|
|
24
94
|
# @param python_python_publication [PythonPythonPublication]
|
|
25
95
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
27
96
|
# @return [AsyncOperationResponse]
|
|
28
97
|
def create(python_python_publication, opts = {})
|
|
29
98
|
data, _status_code, _headers = create_with_http_info(python_python_publication, opts)
|
|
@@ -34,7 +103,6 @@ module PulpPythonClient
|
|
|
34
103
|
# Dispatches a publish task, which generates metadata that will be used by pip.
|
|
35
104
|
# @param python_python_publication [PythonPythonPublication]
|
|
36
105
|
# @param [Hash] opts the optional parameters
|
|
37
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
38
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
39
107
|
def create_with_http_info(python_python_publication, opts = {})
|
|
40
108
|
if @api_client.config.debugging
|
|
@@ -56,7 +124,6 @@ module PulpPythonClient
|
|
|
56
124
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
57
125
|
# HTTP header 'Content-Type'
|
|
58
126
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
59
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
60
127
|
|
|
61
128
|
# form parameters
|
|
62
129
|
form_params = opts[:form_params] || {}
|
|
@@ -90,7 +157,6 @@ module PulpPythonClient
|
|
|
90
157
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
91
158
|
# @param python_python_publication_href [String]
|
|
92
159
|
# @param [Hash] opts the optional parameters
|
|
93
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
94
160
|
# @return [nil]
|
|
95
161
|
def delete(python_python_publication_href, opts = {})
|
|
96
162
|
delete_with_http_info(python_python_publication_href, opts)
|
|
@@ -101,7 +167,6 @@ module PulpPythonClient
|
|
|
101
167
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
102
168
|
# @param python_python_publication_href [String]
|
|
103
169
|
# @param [Hash] opts the optional parameters
|
|
104
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
105
170
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
106
171
|
def delete_with_http_info(python_python_publication_href, opts = {})
|
|
107
172
|
if @api_client.config.debugging
|
|
@@ -119,7 +184,6 @@ module PulpPythonClient
|
|
|
119
184
|
|
|
120
185
|
# header parameters
|
|
121
186
|
header_params = opts[:header_params] || {}
|
|
122
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
123
187
|
|
|
124
188
|
# form parameters
|
|
125
189
|
form_params = opts[:form_params] || {}
|
|
@@ -152,7 +216,6 @@ module PulpPythonClient
|
|
|
152
216
|
# List python publications
|
|
153
217
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
154
218
|
# @param [Hash] opts the optional parameters
|
|
155
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
156
219
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
157
220
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
158
221
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -180,7 +243,6 @@ module PulpPythonClient
|
|
|
180
243
|
# List python publications
|
|
181
244
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
182
245
|
# @param [Hash] opts the optional parameters
|
|
183
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
184
246
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
185
247
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
186
248
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -236,7 +298,6 @@ module PulpPythonClient
|
|
|
236
298
|
header_params = opts[:header_params] || {}
|
|
237
299
|
# HTTP header 'Accept' (if needed)
|
|
238
300
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
239
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
240
301
|
|
|
241
302
|
# form parameters
|
|
242
303
|
form_params = opts[:form_params] || {}
|
|
@@ -266,11 +327,146 @@ module PulpPythonClient
|
|
|
266
327
|
return data, status_code, headers
|
|
267
328
|
end
|
|
268
329
|
|
|
330
|
+
# List roles
|
|
331
|
+
# List roles assigned to this object.
|
|
332
|
+
# @param python_python_publication_href [String]
|
|
333
|
+
# @param [Hash] opts the optional parameters
|
|
334
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
335
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
336
|
+
# @return [ObjectRolesResponse]
|
|
337
|
+
def list_roles(python_python_publication_href, opts = {})
|
|
338
|
+
data, _status_code, _headers = list_roles_with_http_info(python_python_publication_href, opts)
|
|
339
|
+
data
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# List roles
|
|
343
|
+
# List roles assigned to this object.
|
|
344
|
+
# @param python_python_publication_href [String]
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
347
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
348
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
349
|
+
def list_roles_with_http_info(python_python_publication_href, opts = {})
|
|
350
|
+
if @api_client.config.debugging
|
|
351
|
+
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.list_roles ...'
|
|
352
|
+
end
|
|
353
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
354
|
+
if @api_client.config.client_side_validation && python_python_publication_href.nil?
|
|
355
|
+
fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.list_roles"
|
|
356
|
+
end
|
|
357
|
+
# resource path
|
|
358
|
+
local_var_path = '{python_python_publication_href}list_roles/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
|
|
359
|
+
|
|
360
|
+
# query parameters
|
|
361
|
+
query_params = opts[:query_params] || {}
|
|
362
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
363
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
364
|
+
|
|
365
|
+
# header parameters
|
|
366
|
+
header_params = opts[:header_params] || {}
|
|
367
|
+
# HTTP header 'Accept' (if needed)
|
|
368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
369
|
+
|
|
370
|
+
# form parameters
|
|
371
|
+
form_params = opts[:form_params] || {}
|
|
372
|
+
|
|
373
|
+
# http body (model)
|
|
374
|
+
post_body = opts[:body]
|
|
375
|
+
|
|
376
|
+
# return_type
|
|
377
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
|
378
|
+
|
|
379
|
+
# auth_names
|
|
380
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
381
|
+
|
|
382
|
+
new_options = opts.merge(
|
|
383
|
+
:header_params => header_params,
|
|
384
|
+
:query_params => query_params,
|
|
385
|
+
:form_params => form_params,
|
|
386
|
+
:body => post_body,
|
|
387
|
+
:auth_names => auth_names,
|
|
388
|
+
:return_type => return_type
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug "API called: PublicationsPypiApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
|
+
end
|
|
395
|
+
return data, status_code, headers
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# List user permissions
|
|
399
|
+
# List permissions available to the current user on this object.
|
|
400
|
+
# @param python_python_publication_href [String]
|
|
401
|
+
# @param [Hash] opts the optional parameters
|
|
402
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
403
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
404
|
+
# @return [MyPermissionsResponse]
|
|
405
|
+
def my_permissions(python_python_publication_href, opts = {})
|
|
406
|
+
data, _status_code, _headers = my_permissions_with_http_info(python_python_publication_href, opts)
|
|
407
|
+
data
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# List user permissions
|
|
411
|
+
# List permissions available to the current user on this object.
|
|
412
|
+
# @param python_python_publication_href [String]
|
|
413
|
+
# @param [Hash] opts the optional parameters
|
|
414
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
415
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
416
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
417
|
+
def my_permissions_with_http_info(python_python_publication_href, opts = {})
|
|
418
|
+
if @api_client.config.debugging
|
|
419
|
+
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.my_permissions ...'
|
|
420
|
+
end
|
|
421
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
422
|
+
if @api_client.config.client_side_validation && python_python_publication_href.nil?
|
|
423
|
+
fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.my_permissions"
|
|
424
|
+
end
|
|
425
|
+
# resource path
|
|
426
|
+
local_var_path = '{python_python_publication_href}my_permissions/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
|
|
427
|
+
|
|
428
|
+
# query parameters
|
|
429
|
+
query_params = opts[:query_params] || {}
|
|
430
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
431
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
432
|
+
|
|
433
|
+
# header parameters
|
|
434
|
+
header_params = opts[:header_params] || {}
|
|
435
|
+
# HTTP header 'Accept' (if needed)
|
|
436
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
437
|
+
|
|
438
|
+
# form parameters
|
|
439
|
+
form_params = opts[:form_params] || {}
|
|
440
|
+
|
|
441
|
+
# http body (model)
|
|
442
|
+
post_body = opts[:body]
|
|
443
|
+
|
|
444
|
+
# return_type
|
|
445
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
|
446
|
+
|
|
447
|
+
# auth_names
|
|
448
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
449
|
+
|
|
450
|
+
new_options = opts.merge(
|
|
451
|
+
:header_params => header_params,
|
|
452
|
+
:query_params => query_params,
|
|
453
|
+
:form_params => form_params,
|
|
454
|
+
:body => post_body,
|
|
455
|
+
:auth_names => auth_names,
|
|
456
|
+
:return_type => return_type
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
460
|
+
if @api_client.config.debugging
|
|
461
|
+
@api_client.config.logger.debug "API called: PublicationsPypiApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
462
|
+
end
|
|
463
|
+
return data, status_code, headers
|
|
464
|
+
end
|
|
465
|
+
|
|
269
466
|
# Inspect a python publication
|
|
270
467
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
271
468
|
# @param python_python_publication_href [String]
|
|
272
469
|
# @param [Hash] opts the optional parameters
|
|
273
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
274
470
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
275
471
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
276
472
|
# @return [PythonPythonPublicationResponse]
|
|
@@ -283,7 +479,6 @@ module PulpPythonClient
|
|
|
283
479
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
284
480
|
# @param python_python_publication_href [String]
|
|
285
481
|
# @param [Hash] opts the optional parameters
|
|
286
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
287
482
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
288
483
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
289
484
|
# @return [Array<(PythonPythonPublicationResponse, Integer, Hash)>] PythonPythonPublicationResponse data, response status code and response headers
|
|
@@ -307,7 +502,6 @@ module PulpPythonClient
|
|
|
307
502
|
header_params = opts[:header_params] || {}
|
|
308
503
|
# HTTP header 'Accept' (if needed)
|
|
309
504
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
310
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
311
505
|
|
|
312
506
|
# form parameters
|
|
313
507
|
form_params = opts[:form_params] || {}
|
|
@@ -336,5 +530,75 @@ module PulpPythonClient
|
|
|
336
530
|
end
|
|
337
531
|
return data, status_code, headers
|
|
338
532
|
end
|
|
533
|
+
|
|
534
|
+
# Remove a role
|
|
535
|
+
# Remove a role for this object from users/groups.
|
|
536
|
+
# @param python_python_publication_href [String]
|
|
537
|
+
# @param nested_role [NestedRole]
|
|
538
|
+
# @param [Hash] opts the optional parameters
|
|
539
|
+
# @return [NestedRoleResponse]
|
|
540
|
+
def remove_role(python_python_publication_href, nested_role, opts = {})
|
|
541
|
+
data, _status_code, _headers = remove_role_with_http_info(python_python_publication_href, nested_role, opts)
|
|
542
|
+
data
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Remove a role
|
|
546
|
+
# Remove a role for this object from users/groups.
|
|
547
|
+
# @param python_python_publication_href [String]
|
|
548
|
+
# @param nested_role [NestedRole]
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
551
|
+
def remove_role_with_http_info(python_python_publication_href, nested_role, opts = {})
|
|
552
|
+
if @api_client.config.debugging
|
|
553
|
+
@api_client.config.logger.debug 'Calling API: PublicationsPypiApi.remove_role ...'
|
|
554
|
+
end
|
|
555
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
556
|
+
if @api_client.config.client_side_validation && python_python_publication_href.nil?
|
|
557
|
+
fail ArgumentError, "Missing the required parameter 'python_python_publication_href' when calling PublicationsPypiApi.remove_role"
|
|
558
|
+
end
|
|
559
|
+
# verify the required parameter 'nested_role' is set
|
|
560
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
|
561
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsPypiApi.remove_role"
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '{python_python_publication_href}remove_role/'.sub('{' + 'python_python_publication_href' + '}', CGI.escape(python_python_publication_href.to_s).gsub('%2F', '/'))
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
# HTTP header 'Accept' (if needed)
|
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
573
|
+
# HTTP header 'Content-Type'
|
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
575
|
+
|
|
576
|
+
# form parameters
|
|
577
|
+
form_params = opts[:form_params] || {}
|
|
578
|
+
|
|
579
|
+
# http body (model)
|
|
580
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
|
581
|
+
|
|
582
|
+
# return_type
|
|
583
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
|
584
|
+
|
|
585
|
+
# auth_names
|
|
586
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
587
|
+
|
|
588
|
+
new_options = opts.merge(
|
|
589
|
+
:header_params => header_params,
|
|
590
|
+
:query_params => query_params,
|
|
591
|
+
:form_params => form_params,
|
|
592
|
+
:body => post_body,
|
|
593
|
+
:auth_names => auth_names,
|
|
594
|
+
:return_type => return_type
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
598
|
+
if @api_client.config.debugging
|
|
599
|
+
@api_client.config.logger.debug "API called: PublicationsPypiApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
600
|
+
end
|
|
601
|
+
return data, status_code, headers
|
|
602
|
+
end
|
|
339
603
|
end
|
|
340
604
|
end
|
|
@@ -23,7 +23,6 @@ module PulpPythonClient
|
|
|
23
23
|
# Gets package summary stats of index.
|
|
24
24
|
# @param path [String]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
27
26
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
28
27
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
29
28
|
# @return [SummaryResponse]
|
|
@@ -36,7 +35,6 @@ module PulpPythonClient
|
|
|
36
35
|
# Gets package summary stats of index.
|
|
37
36
|
# @param path [String]
|
|
38
37
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
40
38
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
41
39
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
42
40
|
# @return [Array<(SummaryResponse, Integer, Hash)>] SummaryResponse data, response status code and response headers
|
|
@@ -60,7 +58,6 @@ module PulpPythonClient
|
|
|
60
58
|
header_params = opts[:header_params] || {}
|
|
61
59
|
# HTTP header 'Accept' (if needed)
|
|
62
60
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
63
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
64
61
|
|
|
65
62
|
# form parameters
|
|
66
63
|
form_params = opts[:form_params] || {}
|
|
@@ -72,7 +69,7 @@ module PulpPythonClient
|
|
|
72
69
|
return_type = opts[:return_type] || 'SummaryResponse'
|
|
73
70
|
|
|
74
71
|
# auth_names
|
|
75
|
-
auth_names = opts[:auth_names] || []
|
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
76
73
|
|
|
77
74
|
new_options = opts.merge(
|
|
78
75
|
:header_params => header_params,
|
|
@@ -25,7 +25,6 @@ module PulpPythonClient
|
|
|
25
25
|
# @param content [File] A Python package release file to upload to the index.
|
|
26
26
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
29
28
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail! (default to 'file_upload')
|
|
30
29
|
# @return [PackageUploadTaskResponse]
|
|
31
30
|
def create(path, content, sha256_digest, opts = {})
|
|
@@ -39,7 +38,6 @@ module PulpPythonClient
|
|
|
39
38
|
# @param content [File] A Python package release file to upload to the index.
|
|
40
39
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
|
41
40
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
41
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
42
|
# @return [Array<(PackageUploadTaskResponse, Integer, Hash)>] PackageUploadTaskResponse data, response status code and response headers
|
|
45
43
|
def create_with_http_info(path, content, sha256_digest, opts = {})
|
|
@@ -82,7 +80,6 @@ module PulpPythonClient
|
|
|
82
80
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
83
81
|
# HTTP header 'Content-Type'
|
|
84
82
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
85
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
86
83
|
|
|
87
84
|
# form parameters
|
|
88
85
|
form_params = opts[:form_params] || {}
|
|
@@ -24,7 +24,6 @@ module PulpPythonClient
|
|
|
24
24
|
# @param meta [String]
|
|
25
25
|
# @param path [String]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
28
27
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
29
28
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
30
29
|
# @return [PackageMetadataResponse]
|
|
@@ -38,7 +37,6 @@ module PulpPythonClient
|
|
|
38
37
|
# @param meta [String]
|
|
39
38
|
# @param path [String]
|
|
40
39
|
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
40
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
43
41
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
44
42
|
# @return [Array<(PackageMetadataResponse, Integer, Hash)>] PackageMetadataResponse data, response status code and response headers
|
|
@@ -66,7 +64,6 @@ module PulpPythonClient
|
|
|
66
64
|
header_params = opts[:header_params] || {}
|
|
67
65
|
# HTTP header 'Accept' (if needed)
|
|
68
66
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
69
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
70
67
|
|
|
71
68
|
# form parameters
|
|
72
69
|
form_params = opts[:form_params] || {}
|
|
@@ -78,7 +75,7 @@ module PulpPythonClient
|
|
|
78
75
|
return_type = opts[:return_type] || 'PackageMetadataResponse'
|
|
79
76
|
|
|
80
77
|
# auth_names
|
|
81
|
-
auth_names = opts[:auth_names] || []
|
|
78
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
82
79
|
|
|
83
80
|
new_options = opts.merge(
|
|
84
81
|
:header_params => header_params,
|
|
@@ -25,7 +25,6 @@ module PulpPythonClient
|
|
|
25
25
|
# @param content [File] A Python package release file to upload to the index.
|
|
26
26
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
29
28
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail! (default to 'file_upload')
|
|
30
29
|
# @return [PackageUploadTaskResponse]
|
|
31
30
|
def create(path, content, sha256_digest, opts = {})
|
|
@@ -39,7 +38,6 @@ module PulpPythonClient
|
|
|
39
38
|
# @param content [File] A Python package release file to upload to the index.
|
|
40
39
|
# @param sha256_digest [String] SHA256 of package to validate upload integrity.
|
|
41
40
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
41
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
42
|
# @return [Array<(PackageUploadTaskResponse, Integer, Hash)>] PackageUploadTaskResponse data, response status code and response headers
|
|
45
43
|
def create_with_http_info(path, content, sha256_digest, opts = {})
|
|
@@ -82,7 +80,6 @@ module PulpPythonClient
|
|
|
82
80
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
83
81
|
# HTTP header 'Content-Type'
|
|
84
82
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
85
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
86
83
|
|
|
87
84
|
# form parameters
|
|
88
85
|
form_params = opts[:form_params] || {}
|
|
@@ -120,7 +117,6 @@ module PulpPythonClient
|
|
|
120
117
|
# @param package [String]
|
|
121
118
|
# @param path [String]
|
|
122
119
|
# @param [Hash] opts the optional parameters
|
|
123
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
124
120
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
125
121
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
126
122
|
# @return [nil]
|
|
@@ -134,7 +130,6 @@ module PulpPythonClient
|
|
|
134
130
|
# @param package [String]
|
|
135
131
|
# @param path [String]
|
|
136
132
|
# @param [Hash] opts the optional parameters
|
|
137
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
138
133
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
139
134
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
140
135
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -160,7 +155,6 @@ module PulpPythonClient
|
|
|
160
155
|
|
|
161
156
|
# header parameters
|
|
162
157
|
header_params = opts[:header_params] || {}
|
|
163
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
164
158
|
|
|
165
159
|
# form parameters
|
|
166
160
|
form_params = opts[:form_params] || {}
|
|
@@ -194,7 +188,6 @@ module PulpPythonClient
|
|
|
194
188
|
# Gets the simple api html page for the index.
|
|
195
189
|
# @param path [String]
|
|
196
190
|
# @param [Hash] opts the optional parameters
|
|
197
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
198
191
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
199
192
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
200
193
|
# @return [nil]
|
|
@@ -207,7 +200,6 @@ module PulpPythonClient
|
|
|
207
200
|
# Gets the simple api html page for the index.
|
|
208
201
|
# @param path [String]
|
|
209
202
|
# @param [Hash] opts the optional parameters
|
|
210
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
211
203
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
212
204
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
213
205
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -229,7 +221,6 @@ module PulpPythonClient
|
|
|
229
221
|
|
|
230
222
|
# header parameters
|
|
231
223
|
header_params = opts[:header_params] || {}
|
|
232
|
-
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
233
224
|
|
|
234
225
|
# form parameters
|
|
235
226
|
form_params = opts[:form_params] || {}
|