pulp_python_client 3.11.2 → 3.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -10
  3. data/docs/ContentPackagesApi.md +12 -12
  4. data/docs/DistributionsPypiApi.md +232 -0
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PackageMetadataResponse.md +3 -3
  10. data/docs/PublicationsPypiApi.md +232 -0
  11. data/docs/PypiApi.md +7 -1
  12. data/docs/PypiMetadataApi.md +7 -1
  13. data/docs/PythonPythonPackageContent.md +6 -6
  14. data/docs/PythonPythonPackageContentResponse.md +6 -6
  15. data/docs/RemotesPythonApi.md +232 -0
  16. data/docs/RepositoriesPythonApi.md +232 -0
  17. data/lib/pulp_python_client/api/content_packages_api.rb +12 -12
  18. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
  19. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
  20. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  21. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  22. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
  23. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
  24. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  25. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  26. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  27. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  28. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  29. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  30. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  31. data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
  32. data/lib/pulp_python_client/version.rb +1 -1
  33. data/lib/pulp_python_client.rb +4 -0
  34. data/spec/api/content_packages_api_spec.rb +6 -6
  35. data/spec/api/distributions_pypi_api_spec.rb +54 -0
  36. data/spec/api/publications_pypi_api_spec.rb +54 -0
  37. data/spec/api/remotes_python_api_spec.rb +54 -0
  38. data/spec/api/repositories_python_api_spec.rb +54 -0
  39. data/spec/models/my_permissions_response_spec.rb +41 -0
  40. data/spec/models/nested_role_response_spec.rb +53 -0
  41. data/spec/models/nested_role_spec.rb +53 -0
  42. data/spec/models/object_roles_response_spec.rb +41 -0
  43. metadata +17 -1
@@ -4,12 +4,16 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RepositoriesPythonApi.md#add_role) | **POST** {python_python_repository_href}add_role/ | Add a role
7
8
  [**create**](RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
8
9
  [**delete**](RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
9
10
  [**list**](RepositoriesPythonApi.md#list) | **GET** /pulp/api/v3/repositories/python/python/ | List python repositorys
11
+ [**list_roles**](RepositoriesPythonApi.md#list_roles) | **GET** {python_python_repository_href}list_roles/ | List roles
10
12
  [**modify**](RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
13
+ [**my_permissions**](RepositoriesPythonApi.md#my_permissions) | **GET** {python_python_repository_href}my_permissions/ | List user permissions
11
14
  [**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
12
15
  [**read**](RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
16
+ [**remove_role**](RepositoriesPythonApi.md#remove_role) | **POST** {python_python_repository_href}remove_role/ | Remove a role
13
17
  [**set_label**](RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
14
18
  [**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
15
19
  [**unset_label**](RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
@@ -17,6 +21,61 @@ Method | HTTP request | Description
17
21
 
18
22
 
19
23
 
24
+ ## add_role
25
+
26
+ > NestedRoleResponse add_role(python_python_repository_href, nested_role)
27
+
28
+ Add a role
29
+
30
+ Add a role for this object to users/groups.
31
+
32
+ ### Example
33
+
34
+ ```ruby
35
+ # load the gem
36
+ require 'pulp_python_client'
37
+ # setup authorization
38
+ PulpPythonClient.configure do |config|
39
+ # Configure HTTP basic authorization: basicAuth
40
+ config.username = 'YOUR USERNAME'
41
+ config.password = 'YOUR PASSWORD'
42
+ end
43
+
44
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
45
+ python_python_repository_href = 'python_python_repository_href_example' # String |
46
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
47
+
48
+ begin
49
+ #Add a role
50
+ result = api_instance.add_role(python_python_repository_href, nested_role)
51
+ p result
52
+ rescue PulpPythonClient::ApiError => e
53
+ puts "Exception when calling RepositoriesPythonApi->add_role: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+
60
+ Name | Type | Description | Notes
61
+ ------------- | ------------- | ------------- | -------------
62
+ **python_python_repository_href** | **String**| |
63
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
64
+
65
+ ### Return type
66
+
67
+ [**NestedRoleResponse**](NestedRoleResponse.md)
68
+
69
+ ### Authorization
70
+
71
+ [basicAuth](../README.md#basicAuth)
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
76
+ - **Accept**: application/json
77
+
78
+
20
79
  ## create
21
80
 
22
81
  > PythonPythonRepositoryResponse create(python_python_repository)
@@ -234,6 +293,65 @@ Name | Type | Description | Notes
234
293
  - **Accept**: application/json
235
294
 
236
295
 
296
+ ## list_roles
297
+
298
+ > ObjectRolesResponse list_roles(python_python_repository_href, opts)
299
+
300
+ List roles
301
+
302
+ List roles assigned to this object.
303
+
304
+ ### Example
305
+
306
+ ```ruby
307
+ # load the gem
308
+ require 'pulp_python_client'
309
+ # setup authorization
310
+ PulpPythonClient.configure do |config|
311
+ # Configure HTTP basic authorization: basicAuth
312
+ config.username = 'YOUR USERNAME'
313
+ config.password = 'YOUR PASSWORD'
314
+ end
315
+
316
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
317
+ python_python_repository_href = 'python_python_repository_href_example' # String |
318
+ opts = {
319
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
320
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
321
+ }
322
+
323
+ begin
324
+ #List roles
325
+ result = api_instance.list_roles(python_python_repository_href, opts)
326
+ p result
327
+ rescue PulpPythonClient::ApiError => e
328
+ puts "Exception when calling RepositoriesPythonApi->list_roles: #{e}"
329
+ end
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+
335
+ Name | Type | Description | Notes
336
+ ------------- | ------------- | ------------- | -------------
337
+ **python_python_repository_href** | **String**| |
338
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
339
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
340
+
341
+ ### Return type
342
+
343
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
344
+
345
+ ### Authorization
346
+
347
+ [basicAuth](../README.md#basicAuth)
348
+
349
+ ### HTTP request headers
350
+
351
+ - **Content-Type**: Not defined
352
+ - **Accept**: application/json
353
+
354
+
237
355
  ## modify
238
356
 
239
357
  > AsyncOperationResponse modify(python_python_repository_href, repository_add_remove_content)
@@ -289,6 +407,65 @@ Name | Type | Description | Notes
289
407
  - **Accept**: application/json
290
408
 
291
409
 
410
+ ## my_permissions
411
+
412
+ > MyPermissionsResponse my_permissions(python_python_repository_href, opts)
413
+
414
+ List user permissions
415
+
416
+ List permissions available to the current user on this object.
417
+
418
+ ### Example
419
+
420
+ ```ruby
421
+ # load the gem
422
+ require 'pulp_python_client'
423
+ # setup authorization
424
+ PulpPythonClient.configure do |config|
425
+ # Configure HTTP basic authorization: basicAuth
426
+ config.username = 'YOUR USERNAME'
427
+ config.password = 'YOUR PASSWORD'
428
+ end
429
+
430
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
431
+ python_python_repository_href = 'python_python_repository_href_example' # String |
432
+ opts = {
433
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
434
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
435
+ }
436
+
437
+ begin
438
+ #List user permissions
439
+ result = api_instance.my_permissions(python_python_repository_href, opts)
440
+ p result
441
+ rescue PulpPythonClient::ApiError => e
442
+ puts "Exception when calling RepositoriesPythonApi->my_permissions: #{e}"
443
+ end
444
+ ```
445
+
446
+ ### Parameters
447
+
448
+
449
+ Name | Type | Description | Notes
450
+ ------------- | ------------- | ------------- | -------------
451
+ **python_python_repository_href** | **String**| |
452
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
453
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
454
+
455
+ ### Return type
456
+
457
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
458
+
459
+ ### Authorization
460
+
461
+ [basicAuth](../README.md#basicAuth)
462
+
463
+ ### HTTP request headers
464
+
465
+ - **Content-Type**: Not defined
466
+ - **Accept**: application/json
467
+
468
+
292
469
  ## partial_update
293
470
 
294
471
  > AsyncOperationResponse partial_update(python_python_repository_href, patchedpython_python_repository)
@@ -403,6 +580,61 @@ Name | Type | Description | Notes
403
580
  - **Accept**: application/json
404
581
 
405
582
 
583
+ ## remove_role
584
+
585
+ > NestedRoleResponse remove_role(python_python_repository_href, nested_role)
586
+
587
+ Remove a role
588
+
589
+ Remove a role for this object from users/groups.
590
+
591
+ ### Example
592
+
593
+ ```ruby
594
+ # load the gem
595
+ require 'pulp_python_client'
596
+ # setup authorization
597
+ PulpPythonClient.configure do |config|
598
+ # Configure HTTP basic authorization: basicAuth
599
+ config.username = 'YOUR USERNAME'
600
+ config.password = 'YOUR PASSWORD'
601
+ end
602
+
603
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
604
+ python_python_repository_href = 'python_python_repository_href_example' # String |
605
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
606
+
607
+ begin
608
+ #Remove a role
609
+ result = api_instance.remove_role(python_python_repository_href, nested_role)
610
+ p result
611
+ rescue PulpPythonClient::ApiError => e
612
+ puts "Exception when calling RepositoriesPythonApi->remove_role: #{e}"
613
+ end
614
+ ```
615
+
616
+ ### Parameters
617
+
618
+
619
+ Name | Type | Description | Notes
620
+ ------------- | ------------- | ------------- | -------------
621
+ **python_python_repository_href** | **String**| |
622
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
623
+
624
+ ### Return type
625
+
626
+ [**NestedRoleResponse**](NestedRoleResponse.md)
627
+
628
+ ### Authorization
629
+
630
+ [basicAuth](../README.md#basicAuth)
631
+
632
+ ### HTTP request headers
633
+
634
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
635
+ - **Accept**: application/json
636
+
637
+
406
638
  ## set_label
407
639
 
408
640
  > SetLabelResponse set_label(python_python_repository_href, set_label)
@@ -41,14 +41,14 @@ module PulpPythonClient
41
41
  # @option opts [String] :license Text indicating the license covering the distribution
42
42
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
43
43
  # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
44
- # @option opts [Object] :project_urls A dictionary of labels and URLs for the project.
44
+ # @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
45
45
  # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
46
46
  # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
47
- # @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
48
- # @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
49
- # @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
50
- # @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
51
- # @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
47
+ # @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
48
+ # @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
49
+ # @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
50
+ # @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
51
+ # @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
52
52
  # @return [AsyncOperationResponse]
53
53
  def create(relative_path, opts = {})
54
54
  data, _status_code, _headers = create_with_http_info(relative_path, opts)
@@ -77,14 +77,14 @@ module PulpPythonClient
77
77
  # @option opts [String] :license Text indicating the license covering the distribution
78
78
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
79
79
  # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
80
- # @option opts [Object] :project_urls A dictionary of labels and URLs for the project.
80
+ # @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
81
81
  # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
82
82
  # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
83
- # @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
84
- # @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
85
- # @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
86
- # @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
87
- # @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
83
+ # @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
84
+ # @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
85
+ # @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
86
+ # @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
87
+ # @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
88
88
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
89
89
  def create_with_http_info(relative_path, opts = {})
90
90
  if @api_client.config.debugging
@@ -19,6 +19,76 @@ 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_distribution_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(python_python_distribution_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(python_python_distribution_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_distribution_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_distribution_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'python_python_distribution_href' is set
44
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.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 DistributionsPypiApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{python_python_distribution_href}add_role/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_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: DistributionsPypiApi#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 distribution
23
93
  # Trigger an asynchronous create task
24
94
  # @param python_python_distribution [PythonPythonDistribution]
@@ -280,6 +350,142 @@ module PulpPythonClient
280
350
  return data, status_code, headers
281
351
  end
282
352
 
353
+ # List roles
354
+ # List roles assigned to this object.
355
+ # @param python_python_distribution_href [String]
356
+ # @param [Hash] opts the optional parameters
357
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
358
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
359
+ # @return [ObjectRolesResponse]
360
+ def list_roles(python_python_distribution_href, opts = {})
361
+ data, _status_code, _headers = list_roles_with_http_info(python_python_distribution_href, opts)
362
+ data
363
+ end
364
+
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param python_python_distribution_href [String]
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
370
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
371
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
372
+ def list_roles_with_http_info(python_python_distribution_href, opts = {})
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list_roles ...'
375
+ end
376
+ # verify the required parameter 'python_python_distribution_href' is set
377
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
378
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.list_roles"
379
+ end
380
+ # resource path
381
+ local_var_path = '{python_python_distribution_href}list_roles/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
382
+
383
+ # query parameters
384
+ query_params = opts[:query_params] || {}
385
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
386
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
387
+
388
+ # header parameters
389
+ header_params = opts[:header_params] || {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
392
+
393
+ # form parameters
394
+ form_params = opts[:form_params] || {}
395
+
396
+ # http body (model)
397
+ post_body = opts[:body]
398
+
399
+ # return_type
400
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
401
+
402
+ # auth_names
403
+ auth_names = opts[:auth_names] || ['basicAuth']
404
+
405
+ new_options = opts.merge(
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => return_type
412
+ )
413
+
414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
420
+
421
+ # List user permissions
422
+ # List permissions available to the current user on this object.
423
+ # @param python_python_distribution_href [String]
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
426
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
427
+ # @return [MyPermissionsResponse]
428
+ def my_permissions(python_python_distribution_href, opts = {})
429
+ data, _status_code, _headers = my_permissions_with_http_info(python_python_distribution_href, opts)
430
+ data
431
+ end
432
+
433
+ # List user permissions
434
+ # List permissions available to the current user on this object.
435
+ # @param python_python_distribution_href [String]
436
+ # @param [Hash] opts the optional parameters
437
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
438
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
439
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
440
+ def my_permissions_with_http_info(python_python_distribution_href, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.my_permissions ...'
443
+ end
444
+ # verify the required parameter 'python_python_distribution_href' is set
445
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
446
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.my_permissions"
447
+ end
448
+ # resource path
449
+ local_var_path = '{python_python_distribution_href}my_permissions/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
450
+
451
+ # query parameters
452
+ query_params = opts[:query_params] || {}
453
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
454
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
460
+
461
+ # form parameters
462
+ form_params = opts[:form_params] || {}
463
+
464
+ # http body (model)
465
+ post_body = opts[:body]
466
+
467
+ # return_type
468
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
469
+
470
+ # auth_names
471
+ auth_names = opts[:auth_names] || ['basicAuth']
472
+
473
+ new_options = opts.merge(
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => return_type
480
+ )
481
+
482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
+ end
486
+ return data, status_code, headers
487
+ end
488
+
283
489
  # Update a python distribution
284
490
  # Trigger an asynchronous partial update task
285
491
  # @param python_python_distribution_href [String]
@@ -418,6 +624,76 @@ module PulpPythonClient
418
624
  return data, status_code, headers
419
625
  end
420
626
 
627
+ # Remove a role
628
+ # Remove a role for this object from users/groups.
629
+ # @param python_python_distribution_href [String]
630
+ # @param nested_role [NestedRole]
631
+ # @param [Hash] opts the optional parameters
632
+ # @return [NestedRoleResponse]
633
+ def remove_role(python_python_distribution_href, nested_role, opts = {})
634
+ data, _status_code, _headers = remove_role_with_http_info(python_python_distribution_href, nested_role, opts)
635
+ data
636
+ end
637
+
638
+ # Remove a role
639
+ # Remove a role for this object from users/groups.
640
+ # @param python_python_distribution_href [String]
641
+ # @param nested_role [NestedRole]
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
644
+ def remove_role_with_http_info(python_python_distribution_href, nested_role, opts = {})
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug 'Calling API: DistributionsPypiApi.remove_role ...'
647
+ end
648
+ # verify the required parameter 'python_python_distribution_href' is set
649
+ if @api_client.config.client_side_validation && python_python_distribution_href.nil?
650
+ fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.remove_role"
651
+ end
652
+ # verify the required parameter 'nested_role' is set
653
+ if @api_client.config.client_side_validation && nested_role.nil?
654
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsPypiApi.remove_role"
655
+ end
656
+ # resource path
657
+ local_var_path = '{python_python_distribution_href}remove_role/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
658
+
659
+ # query parameters
660
+ query_params = opts[:query_params] || {}
661
+
662
+ # header parameters
663
+ header_params = opts[:header_params] || {}
664
+ # HTTP header 'Accept' (if needed)
665
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
666
+ # HTTP header 'Content-Type'
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
668
+
669
+ # form parameters
670
+ form_params = opts[:form_params] || {}
671
+
672
+ # http body (model)
673
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
674
+
675
+ # return_type
676
+ return_type = opts[:return_type] || 'NestedRoleResponse'
677
+
678
+ # auth_names
679
+ auth_names = opts[:auth_names] || ['basicAuth']
680
+
681
+ new_options = opts.merge(
682
+ :header_params => header_params,
683
+ :query_params => query_params,
684
+ :form_params => form_params,
685
+ :body => post_body,
686
+ :auth_names => auth_names,
687
+ :return_type => return_type
688
+ )
689
+
690
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
691
+ if @api_client.config.debugging
692
+ @api_client.config.logger.debug "API called: DistributionsPypiApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
+ end
694
+ return data, status_code, headers
695
+ end
696
+
421
697
  # Set a label
422
698
  # Set a single pulp_label on the object to a specific value or null.
423
699
  # @param python_python_distribution_href [String]