pulp_python_client 3.11.2 → 3.12.0

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 +18 -2
@@ -4,13 +4,72 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](PublicationsPypiApi.md#add_role) | **POST** {python_python_publication_href}add_role/ | Add a role
7
8
  [**create**](PublicationsPypiApi.md#create) | **POST** /pulp/api/v3/publications/python/pypi/ | Create a python publication
8
9
  [**delete**](PublicationsPypiApi.md#delete) | **DELETE** {python_python_publication_href} | Delete a python publication
9
10
  [**list**](PublicationsPypiApi.md#list) | **GET** /pulp/api/v3/publications/python/pypi/ | List python publications
11
+ [**list_roles**](PublicationsPypiApi.md#list_roles) | **GET** {python_python_publication_href}list_roles/ | List roles
12
+ [**my_permissions**](PublicationsPypiApi.md#my_permissions) | **GET** {python_python_publication_href}my_permissions/ | List user permissions
10
13
  [**read**](PublicationsPypiApi.md#read) | **GET** {python_python_publication_href} | Inspect a python publication
14
+ [**remove_role**](PublicationsPypiApi.md#remove_role) | **POST** {python_python_publication_href}remove_role/ | Remove a role
11
15
 
12
16
 
13
17
 
18
+ ## add_role
19
+
20
+ > NestedRoleResponse add_role(python_python_publication_href, nested_role)
21
+
22
+ Add a role
23
+
24
+ Add a role for this object to users/groups.
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'pulp_python_client'
31
+ # setup authorization
32
+ PulpPythonClient.configure do |config|
33
+ # Configure HTTP basic authorization: basicAuth
34
+ config.username = 'YOUR USERNAME'
35
+ config.password = 'YOUR PASSWORD'
36
+ end
37
+
38
+ api_instance = PulpPythonClient::PublicationsPypiApi.new
39
+ python_python_publication_href = 'python_python_publication_href_example' # String |
40
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
41
+
42
+ begin
43
+ #Add a role
44
+ result = api_instance.add_role(python_python_publication_href, nested_role)
45
+ p result
46
+ rescue PulpPythonClient::ApiError => e
47
+ puts "Exception when calling PublicationsPypiApi->add_role: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **python_python_publication_href** | **String**| |
57
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
58
+
59
+ ### Return type
60
+
61
+ [**NestedRoleResponse**](NestedRoleResponse.md)
62
+
63
+ ### Authorization
64
+
65
+ [basicAuth](../README.md#basicAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
70
+ - **Accept**: application/json
71
+
72
+
14
73
  ## create
15
74
 
16
75
  > AsyncOperationResponse create(python_python_publication)
@@ -205,6 +264,124 @@ Name | Type | Description | Notes
205
264
  - **Accept**: application/json
206
265
 
207
266
 
267
+ ## list_roles
268
+
269
+ > ObjectRolesResponse list_roles(python_python_publication_href, opts)
270
+
271
+ List roles
272
+
273
+ List roles assigned to this object.
274
+
275
+ ### Example
276
+
277
+ ```ruby
278
+ # load the gem
279
+ require 'pulp_python_client'
280
+ # setup authorization
281
+ PulpPythonClient.configure do |config|
282
+ # Configure HTTP basic authorization: basicAuth
283
+ config.username = 'YOUR USERNAME'
284
+ config.password = 'YOUR PASSWORD'
285
+ end
286
+
287
+ api_instance = PulpPythonClient::PublicationsPypiApi.new
288
+ python_python_publication_href = 'python_python_publication_href_example' # String |
289
+ opts = {
290
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
291
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
292
+ }
293
+
294
+ begin
295
+ #List roles
296
+ result = api_instance.list_roles(python_python_publication_href, opts)
297
+ p result
298
+ rescue PulpPythonClient::ApiError => e
299
+ puts "Exception when calling PublicationsPypiApi->list_roles: #{e}"
300
+ end
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+
306
+ Name | Type | Description | Notes
307
+ ------------- | ------------- | ------------- | -------------
308
+ **python_python_publication_href** | **String**| |
309
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
310
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
311
+
312
+ ### Return type
313
+
314
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
315
+
316
+ ### Authorization
317
+
318
+ [basicAuth](../README.md#basicAuth)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: Not defined
323
+ - **Accept**: application/json
324
+
325
+
326
+ ## my_permissions
327
+
328
+ > MyPermissionsResponse my_permissions(python_python_publication_href, opts)
329
+
330
+ List user permissions
331
+
332
+ List permissions available to the current user on this object.
333
+
334
+ ### Example
335
+
336
+ ```ruby
337
+ # load the gem
338
+ require 'pulp_python_client'
339
+ # setup authorization
340
+ PulpPythonClient.configure do |config|
341
+ # Configure HTTP basic authorization: basicAuth
342
+ config.username = 'YOUR USERNAME'
343
+ config.password = 'YOUR PASSWORD'
344
+ end
345
+
346
+ api_instance = PulpPythonClient::PublicationsPypiApi.new
347
+ python_python_publication_href = 'python_python_publication_href_example' # String |
348
+ opts = {
349
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
350
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
351
+ }
352
+
353
+ begin
354
+ #List user permissions
355
+ result = api_instance.my_permissions(python_python_publication_href, opts)
356
+ p result
357
+ rescue PulpPythonClient::ApiError => e
358
+ puts "Exception when calling PublicationsPypiApi->my_permissions: #{e}"
359
+ end
360
+ ```
361
+
362
+ ### Parameters
363
+
364
+
365
+ Name | Type | Description | Notes
366
+ ------------- | ------------- | ------------- | -------------
367
+ **python_python_publication_href** | **String**| |
368
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
369
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
370
+
371
+ ### Return type
372
+
373
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
374
+
375
+ ### Authorization
376
+
377
+ [basicAuth](../README.md#basicAuth)
378
+
379
+ ### HTTP request headers
380
+
381
+ - **Content-Type**: Not defined
382
+ - **Accept**: application/json
383
+
384
+
208
385
  ## read
209
386
 
210
387
  > PythonPythonPublicationResponse read(python_python_publication_href, opts)
@@ -263,3 +440,58 @@ Name | Type | Description | Notes
263
440
  - **Content-Type**: Not defined
264
441
  - **Accept**: application/json
265
442
 
443
+
444
+ ## remove_role
445
+
446
+ > NestedRoleResponse remove_role(python_python_publication_href, nested_role)
447
+
448
+ Remove a role
449
+
450
+ Remove a role for this object from users/groups.
451
+
452
+ ### Example
453
+
454
+ ```ruby
455
+ # load the gem
456
+ require 'pulp_python_client'
457
+ # setup authorization
458
+ PulpPythonClient.configure do |config|
459
+ # Configure HTTP basic authorization: basicAuth
460
+ config.username = 'YOUR USERNAME'
461
+ config.password = 'YOUR PASSWORD'
462
+ end
463
+
464
+ api_instance = PulpPythonClient::PublicationsPypiApi.new
465
+ python_python_publication_href = 'python_python_publication_href_example' # String |
466
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
467
+
468
+ begin
469
+ #Remove a role
470
+ result = api_instance.remove_role(python_python_publication_href, nested_role)
471
+ p result
472
+ rescue PulpPythonClient::ApiError => e
473
+ puts "Exception when calling PublicationsPypiApi->remove_role: #{e}"
474
+ end
475
+ ```
476
+
477
+ ### Parameters
478
+
479
+
480
+ Name | Type | Description | Notes
481
+ ------------- | ------------- | ------------- | -------------
482
+ **python_python_publication_href** | **String**| |
483
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
484
+
485
+ ### Return type
486
+
487
+ [**NestedRoleResponse**](NestedRoleResponse.md)
488
+
489
+ ### Authorization
490
+
491
+ [basicAuth](../README.md#basicAuth)
492
+
493
+ ### HTTP request headers
494
+
495
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
496
+ - **Accept**: application/json
497
+
data/docs/PypiApi.md CHANGED
@@ -21,6 +21,12 @@ Gets package summary stats of index.
21
21
  ```ruby
22
22
  # load the gem
23
23
  require 'pulp_python_client'
24
+ # setup authorization
25
+ PulpPythonClient.configure do |config|
26
+ # Configure HTTP basic authorization: basicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
24
30
 
25
31
  api_instance = PulpPythonClient::PypiApi.new
26
32
  path = 'path_example' # String |
@@ -53,7 +59,7 @@ Name | Type | Description | Notes
53
59
 
54
60
  ### Authorization
55
61
 
56
- No authorization required
62
+ [basicAuth](../README.md#basicAuth)
57
63
 
58
64
  ### HTTP request headers
59
65
 
@@ -21,6 +21,12 @@ Retrieves the package's core-metadata specified by https://packaging.python.org/
21
21
  ```ruby
22
22
  # load the gem
23
23
  require 'pulp_python_client'
24
+ # setup authorization
25
+ PulpPythonClient.configure do |config|
26
+ # Configure HTTP basic authorization: basicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
24
30
 
25
31
  api_instance = PulpPythonClient::PypiMetadataApi.new
26
32
  meta = 'meta_example' # String |
@@ -55,7 +61,7 @@ Name | Type | Description | Notes
55
61
 
56
62
  ### Authorization
57
63
 
58
- No authorization required
64
+ [basicAuth](../README.md#basicAuth)
59
65
 
60
66
  ### HTTP request headers
61
67
 
@@ -23,14 +23,14 @@ Name | Type | Description | Notes
23
23
  **license** | **String** | Text indicating the license covering the distribution | [optional]
24
24
  **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional]
25
25
  **project_url** | **String** | A browsable URL for the project and a label for it, separated by a comma. | [optional]
26
- **project_urls** | [**Object**](.md) | A dictionary of labels and URLs for the project. | [optional]
26
+ **project_urls** | [**AnyType**](.md) | A dictionary of labels and URLs for the project. | [optional]
27
27
  **platform** | **String** | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional]
28
28
  **supported_platform** | **String** | Field to specify the OS and CPU for which the binary package was compiled. | [optional]
29
- **requires_dist** | [**Object**](.md) | A JSON list containing names of some other distutils project required by this distribution. | [optional]
30
- **provides_dist** | [**Object**](.md) | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
31
- **obsoletes_dist** | [**Object**](.md) | 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. | [optional]
32
- **requires_external** | [**Object**](.md) | A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
33
- **classifiers** | [**Object**](.md) | A JSON list containing classification values for a Python package. | [optional]
29
+ **requires_dist** | [**AnyType**](.md) | A JSON list containing names of some other distutils project required by this distribution. | [optional]
30
+ **provides_dist** | [**AnyType**](.md) | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
31
+ **obsoletes_dist** | [**AnyType**](.md) | 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. | [optional]
32
+ **requires_external** | [**AnyType**](.md) | A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
33
+ **classifiers** | [**AnyType**](.md) | A JSON list containing classification values for a Python package. | [optional]
34
34
 
35
35
  ## Code Sample
36
36
 
@@ -27,14 +27,14 @@ Name | Type | Description | Notes
27
27
  **license** | **String** | Text indicating the license covering the distribution | [optional]
28
28
  **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional]
29
29
  **project_url** | **String** | A browsable URL for the project and a label for it, separated by a comma. | [optional]
30
- **project_urls** | [**Object**](.md) | A dictionary of labels and URLs for the project. | [optional]
30
+ **project_urls** | [**AnyType**](.md) | A dictionary of labels and URLs for the project. | [optional]
31
31
  **platform** | **String** | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional]
32
32
  **supported_platform** | **String** | Field to specify the OS and CPU for which the binary package was compiled. | [optional]
33
- **requires_dist** | [**Object**](.md) | A JSON list containing names of some other distutils project required by this distribution. | [optional]
34
- **provides_dist** | [**Object**](.md) | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
35
- **obsoletes_dist** | [**Object**](.md) | 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. | [optional]
36
- **requires_external** | [**Object**](.md) | A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
37
- **classifiers** | [**Object**](.md) | A JSON list containing classification values for a Python package. | [optional]
33
+ **requires_dist** | [**AnyType**](.md) | A JSON list containing names of some other distutils project required by this distribution. | [optional]
34
+ **provides_dist** | [**AnyType**](.md) | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
35
+ **obsoletes_dist** | [**AnyType**](.md) | 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. | [optional]
36
+ **requires_external** | [**AnyType**](.md) | A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
37
+ **classifiers** | [**AnyType**](.md) | A JSON list containing classification values for a Python package. | [optional]
38
38
 
39
39
  ## Code Sample
40
40
 
@@ -4,18 +4,77 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RemotesPythonApi.md#add_role) | **POST** {python_python_remote_href}add_role/ | Add a role
7
8
  [**create**](RemotesPythonApi.md#create) | **POST** /pulp/api/v3/remotes/python/python/ | Create a python remote
8
9
  [**delete**](RemotesPythonApi.md#delete) | **DELETE** {python_python_remote_href} | Delete a python remote
9
10
  [**from_bandersnatch**](RemotesPythonApi.md#from_bandersnatch) | **POST** /pulp/api/v3/remotes/python/python/from_bandersnatch/ | Create from Bandersnatch
10
11
  [**list**](RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
12
+ [**list_roles**](RemotesPythonApi.md#list_roles) | **GET** {python_python_remote_href}list_roles/ | List roles
13
+ [**my_permissions**](RemotesPythonApi.md#my_permissions) | **GET** {python_python_remote_href}my_permissions/ | List user permissions
11
14
  [**partial_update**](RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
12
15
  [**read**](RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
16
+ [**remove_role**](RemotesPythonApi.md#remove_role) | **POST** {python_python_remote_href}remove_role/ | Remove a role
13
17
  [**set_label**](RemotesPythonApi.md#set_label) | **POST** {python_python_remote_href}set_label/ | Set a label
14
18
  [**unset_label**](RemotesPythonApi.md#unset_label) | **POST** {python_python_remote_href}unset_label/ | Unset a label
15
19
  [**update**](RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
16
20
 
17
21
 
18
22
 
23
+ ## add_role
24
+
25
+ > NestedRoleResponse add_role(python_python_remote_href, nested_role)
26
+
27
+ Add a role
28
+
29
+ Add a role for this object to users/groups.
30
+
31
+ ### Example
32
+
33
+ ```ruby
34
+ # load the gem
35
+ require 'pulp_python_client'
36
+ # setup authorization
37
+ PulpPythonClient.configure do |config|
38
+ # Configure HTTP basic authorization: basicAuth
39
+ config.username = 'YOUR USERNAME'
40
+ config.password = 'YOUR PASSWORD'
41
+ end
42
+
43
+ api_instance = PulpPythonClient::RemotesPythonApi.new
44
+ python_python_remote_href = 'python_python_remote_href_example' # String |
45
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
46
+
47
+ begin
48
+ #Add a role
49
+ result = api_instance.add_role(python_python_remote_href, nested_role)
50
+ p result
51
+ rescue PulpPythonClient::ApiError => e
52
+ puts "Exception when calling RemotesPythonApi->add_role: #{e}"
53
+ end
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ Name | Type | Description | Notes
60
+ ------------- | ------------- | ------------- | -------------
61
+ **python_python_remote_href** | **String**| |
62
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
63
+
64
+ ### Return type
65
+
66
+ [**NestedRoleResponse**](NestedRoleResponse.md)
67
+
68
+ ### Authorization
69
+
70
+ [basicAuth](../README.md#basicAuth)
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
75
+ - **Accept**: application/json
76
+
77
+
19
78
  ## create
20
79
 
21
80
  > PythonPythonRemoteResponse create(python_python_remote)
@@ -282,6 +341,124 @@ Name | Type | Description | Notes
282
341
  - **Accept**: application/json
283
342
 
284
343
 
344
+ ## list_roles
345
+
346
+ > ObjectRolesResponse list_roles(python_python_remote_href, opts)
347
+
348
+ List roles
349
+
350
+ List roles assigned to this object.
351
+
352
+ ### Example
353
+
354
+ ```ruby
355
+ # load the gem
356
+ require 'pulp_python_client'
357
+ # setup authorization
358
+ PulpPythonClient.configure do |config|
359
+ # Configure HTTP basic authorization: basicAuth
360
+ config.username = 'YOUR USERNAME'
361
+ config.password = 'YOUR PASSWORD'
362
+ end
363
+
364
+ api_instance = PulpPythonClient::RemotesPythonApi.new
365
+ python_python_remote_href = 'python_python_remote_href_example' # String |
366
+ opts = {
367
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
368
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
369
+ }
370
+
371
+ begin
372
+ #List roles
373
+ result = api_instance.list_roles(python_python_remote_href, opts)
374
+ p result
375
+ rescue PulpPythonClient::ApiError => e
376
+ puts "Exception when calling RemotesPythonApi->list_roles: #{e}"
377
+ end
378
+ ```
379
+
380
+ ### Parameters
381
+
382
+
383
+ Name | Type | Description | Notes
384
+ ------------- | ------------- | ------------- | -------------
385
+ **python_python_remote_href** | **String**| |
386
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
387
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
388
+
389
+ ### Return type
390
+
391
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
392
+
393
+ ### Authorization
394
+
395
+ [basicAuth](../README.md#basicAuth)
396
+
397
+ ### HTTP request headers
398
+
399
+ - **Content-Type**: Not defined
400
+ - **Accept**: application/json
401
+
402
+
403
+ ## my_permissions
404
+
405
+ > MyPermissionsResponse my_permissions(python_python_remote_href, opts)
406
+
407
+ List user permissions
408
+
409
+ List permissions available to the current user on this object.
410
+
411
+ ### Example
412
+
413
+ ```ruby
414
+ # load the gem
415
+ require 'pulp_python_client'
416
+ # setup authorization
417
+ PulpPythonClient.configure do |config|
418
+ # Configure HTTP basic authorization: basicAuth
419
+ config.username = 'YOUR USERNAME'
420
+ config.password = 'YOUR PASSWORD'
421
+ end
422
+
423
+ api_instance = PulpPythonClient::RemotesPythonApi.new
424
+ python_python_remote_href = 'python_python_remote_href_example' # String |
425
+ opts = {
426
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
427
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
428
+ }
429
+
430
+ begin
431
+ #List user permissions
432
+ result = api_instance.my_permissions(python_python_remote_href, opts)
433
+ p result
434
+ rescue PulpPythonClient::ApiError => e
435
+ puts "Exception when calling RemotesPythonApi->my_permissions: #{e}"
436
+ end
437
+ ```
438
+
439
+ ### Parameters
440
+
441
+
442
+ Name | Type | Description | Notes
443
+ ------------- | ------------- | ------------- | -------------
444
+ **python_python_remote_href** | **String**| |
445
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
446
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
447
+
448
+ ### Return type
449
+
450
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
451
+
452
+ ### Authorization
453
+
454
+ [basicAuth](../README.md#basicAuth)
455
+
456
+ ### HTTP request headers
457
+
458
+ - **Content-Type**: Not defined
459
+ - **Accept**: application/json
460
+
461
+
285
462
  ## partial_update
286
463
 
287
464
  > AsyncOperationResponse partial_update(python_python_remote_href, patchedpython_python_remote)
@@ -396,6 +573,61 @@ Name | Type | Description | Notes
396
573
  - **Accept**: application/json
397
574
 
398
575
 
576
+ ## remove_role
577
+
578
+ > NestedRoleResponse remove_role(python_python_remote_href, nested_role)
579
+
580
+ Remove a role
581
+
582
+ Remove a role for this object from users/groups.
583
+
584
+ ### Example
585
+
586
+ ```ruby
587
+ # load the gem
588
+ require 'pulp_python_client'
589
+ # setup authorization
590
+ PulpPythonClient.configure do |config|
591
+ # Configure HTTP basic authorization: basicAuth
592
+ config.username = 'YOUR USERNAME'
593
+ config.password = 'YOUR PASSWORD'
594
+ end
595
+
596
+ api_instance = PulpPythonClient::RemotesPythonApi.new
597
+ python_python_remote_href = 'python_python_remote_href_example' # String |
598
+ nested_role = PulpPythonClient::NestedRole.new # NestedRole |
599
+
600
+ begin
601
+ #Remove a role
602
+ result = api_instance.remove_role(python_python_remote_href, nested_role)
603
+ p result
604
+ rescue PulpPythonClient::ApiError => e
605
+ puts "Exception when calling RemotesPythonApi->remove_role: #{e}"
606
+ end
607
+ ```
608
+
609
+ ### Parameters
610
+
611
+
612
+ Name | Type | Description | Notes
613
+ ------------- | ------------- | ------------- | -------------
614
+ **python_python_remote_href** | **String**| |
615
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
616
+
617
+ ### Return type
618
+
619
+ [**NestedRoleResponse**](NestedRoleResponse.md)
620
+
621
+ ### Authorization
622
+
623
+ [basicAuth](../README.md#basicAuth)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
628
+ - **Accept**: application/json
629
+
630
+
399
631
  ## set_label
400
632
 
401
633
  > SetLabelResponse set_label(python_python_remote_href, set_label)