pulp-python-client 3.11.3__py3-none-any.whl → 3.12.1__py3-none-any.whl

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.

Potentially problematic release.


This version of pulp-python-client might be problematic. Click here for more details.

Files changed (22) hide show
  1. {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/METADATA +3 -3
  2. {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/RECORD +22 -18
  3. {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/WHEEL +1 -1
  4. pulpcore/client/pulp_python/__init__.py +5 -1
  5. pulpcore/client/pulp_python/api/distributions_pypi_api.py +506 -0
  6. pulpcore/client/pulp_python/api/publications_pypi_api.py +506 -0
  7. pulpcore/client/pulp_python/api/pypi_api.py +1 -1
  8. pulpcore/client/pulp_python/api/pypi_metadata_api.py +1 -1
  9. pulpcore/client/pulp_python/api/remotes_python_api.py +506 -0
  10. pulpcore/client/pulp_python/api/repositories_python_api.py +506 -0
  11. pulpcore/client/pulp_python/api_client.py +1 -1
  12. pulpcore/client/pulp_python/configuration.py +3 -3
  13. pulpcore/client/pulp_python/models/__init__.py +4 -0
  14. pulpcore/client/pulp_python/models/my_permissions_response.py +122 -0
  15. pulpcore/client/pulp_python/models/nested_role.py +177 -0
  16. pulpcore/client/pulp_python/models/nested_role_response.py +174 -0
  17. pulpcore/client/pulp_python/models/object_roles_response.py +122 -0
  18. pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -4
  19. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +8 -8
  20. pulpcore/client/pulp_python/models/python_python_remote.py +8 -8
  21. pulpcore/client/pulp_python/models/python_python_remote_response.py +8 -8
  22. {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-python-client
3
- Version: 3.11.3
3
+ Version: 3.12.1
4
4
  Summary: Pulp 3 API
5
5
  Home-page:
6
6
  Author: Pulp Team
@@ -8,8 +8,8 @@ Author-email: pulp-list@redhat.com
8
8
  License: GPLv2+
9
9
  Keywords: pulp,pulpcore,client,Pulp 3 API
10
10
  Requires-Python: >=3.4
11
- Requires-Dist: urllib3>=1.15
12
- Requires-Dist: six>=1.10
11
+ Requires-Dist: urllib3 >=1.15
12
+ Requires-Dist: six >=1.10
13
13
  Requires-Dist: certifi
14
14
  Requires-Dist: python-dateutil
15
15
 
@@ -1,29 +1,33 @@
1
1
  pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
2
2
  pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
3
- pulpcore/client/pulp_python/__init__.py,sha256=AIC6ch6bFyJO2_cNjWTIQy-7iwubNefqUAgSmhgzU-g,5553
4
- pulpcore/client/pulp_python/api_client.py,sha256=n6R_ibq_etyjXjB3IKI2QhkFF8Rp-hiakgcMt6QEY6g,26290
5
- pulpcore/client/pulp_python/configuration.py,sha256=k5BKamAW7E76Rs4VuRVZkdPo7FwPsrto10pVnDIdtFY,13990
3
+ pulpcore/client/pulp_python/__init__.py,sha256=jk0LDmmfDwveOLa7k9QbzN046otXQ62F_4RZ6I7R67c,5892
4
+ pulpcore/client/pulp_python/api_client.py,sha256=BNy00iPG7gOu0_FPlrXU1kRe5q2Osf9OcxUXLa4cdNs,26290
5
+ pulpcore/client/pulp_python/configuration.py,sha256=epC_3GoeFYYKI30PtqQl-7PzAbB-cror26ZWWVgzM-s,13968
6
6
  pulpcore/client/pulp_python/exceptions.py,sha256=4P8pBnEQ5hqaudJJMdmM57YfxTTRFcvkQ86GsvtKNEs,3769
7
7
  pulpcore/client/pulp_python/rest.py,sha256=LT9W8ZNtZbFDfYEEqBWcQ70vp8XfJLiN2TtKyozgk4U,12314
8
8
  pulpcore/client/pulp_python/api/__init__.py,sha256=Kevd065wwgBI2gr_HXjcVAcTSqLHvBS_VAYlQkbNAYU,909
9
9
  pulpcore/client/pulp_python/api/content_packages_api.py,sha256=auS-1XYfdH6Z2vnmA2SQFpB-dYcfXfw1yFGLX5OdNyU,49196
10
- pulpcore/client/pulp_python/api/distributions_pypi_api.py,sha256=tGMMVebO3xOxtG37iqPXLC_58RvewDmkZDCZXnt5m9w,60745
11
- pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=DXVfU4nk2ZRmPLnzdeDwoRD6aXcelIrGevu0PLMpNuM,31112
12
- pulpcore/client/pulp_python/api/pypi_api.py,sha256=4b8op0jY4_nHB_PPm-T0Xzr0Eqw7h3h0XnUUcLvpsjY,6615
10
+ pulpcore/client/pulp_python/api/distributions_pypi_api.py,sha256=ku5IVq-_VZp9RpVvgvhXxdbfuy0vP4RK5VmxRIcM3Vk,85968
11
+ pulpcore/client/pulp_python/api/publications_pypi_api.py,sha256=ujpYm4s4OhUjlb0lzt9LZPnjYI-R6aXoqH1ychlJJG8,56271
12
+ pulpcore/client/pulp_python/api/pypi_api.py,sha256=ce97kpSZBhTIKsQx0_k3AgA17f7QAkJ3pqoG-Y_dH-o,6640
13
13
  pulpcore/client/pulp_python/api/pypi_legacy_api.py,sha256=RmvbEF-YqIikUksTaZ-Peao0T0-4jrvx922Wg7B8OZw,9226
14
- pulpcore/client/pulp_python/api/pypi_metadata_api.py,sha256=af40pMUEdDIb3Z_3QOhaSYCk4-Rkmj-MH9tE65qXFZY,7580
14
+ pulpcore/client/pulp_python/api/pypi_metadata_api.py,sha256=EQlEc5dArAiWtYYrCo8veR9sQve1bkNzepcIwCXIu_g,7605
15
15
  pulpcore/client/pulp_python/api/pypi_simple_api.py,sha256=vaMDnI3Oqi0JJCnRwuQPDYNUbKmm4ktbtTD2aPM7RVY,21506
16
- pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=LDj4GaFnOw_0gbt1Gwsgzw-rXSVdQUji6b-4FkoCKPg,70618
17
- pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=lN3y77Xsu1is0EXrpfqY7c2Vtue0dRLm_1KUY4_AfMo,75764
16
+ pulpcore/client/pulp_python/api/remotes_python_api.py,sha256=W3cHKFjR-WQKh_cdJDpJMjO4UD-2mo5rIgoB_xT5jUw,95457
17
+ pulpcore/client/pulp_python/api/repositories_python_api.py,sha256=lp0MW-JaWmIYKL7vYQpl0VlrVIyjgUjq-biWOZ9VQe4,100859
18
18
  pulpcore/client/pulp_python/api/repositories_python_versions_api.py,sha256=WqfBLvCcV2u2DzBtL59uHaqeyKJuUB2j3FjhcNk8J7I,34096
19
- pulpcore/client/pulp_python/models/__init__.py,sha256=V7AuvPwp0syJfbqw5EW1HOReFfYrZMpBLoiNE-mAaiA,4203
19
+ pulpcore/client/pulp_python/models/__init__.py,sha256=iao4RoTwk18uJVWr-e0jd2KA4bQWnTSBcAPsFUaoWeA,4542
20
20
  pulpcore/client/pulp_python/models/async_operation_response.py,sha256=I7rVENGhKiRyMqQ_XnGsH0gPYb2wEh1tpgQ2AxoZvgE,3575
21
21
  pulpcore/client/pulp_python/models/content_summary_response.py,sha256=p5puVCEez70e-HkCTlUccZ7ND-UfFkcwg0cO4P1I9rQ,5302
22
22
  pulpcore/client/pulp_python/models/exclude_platforms_enum.py,sha256=pBOeomv14HntYotXCW13BB8hvUZXc-A_xGtBLz0sETo,2908
23
+ pulpcore/client/pulp_python/models/my_permissions_response.py,sha256=Lh8sQBb7C526uAR22i2xGjaxjpD4HuQJ6LI0yZ0ZdnQ,3644
24
+ pulpcore/client/pulp_python/models/nested_role.py,sha256=ecOL7IICk8N8PkFIL_DXRTcPzb4FAneT4zJnvklk5jU,4859
25
+ pulpcore/client/pulp_python/models/nested_role_response.py,sha256=TMYX2A9fmc18JKcz_D7ZdA7-JtE75gS8d8AcvsgrecI,4749
26
+ pulpcore/client/pulp_python/models/object_roles_response.py,sha256=1dPNuLGTl68vKbdvftzjCIsgC-ARKuEWaR1Li4UgEDU,3547
23
27
  pulpcore/client/pulp_python/models/package_metadata_response.py,sha256=VwwmNNuPDKiLZnho9dLDoZqJZcZjF245ksOmHEGR6RU,6412
24
28
  pulpcore/client/pulp_python/models/package_types_enum.py,sha256=GJHD6pglj10qyB4Ap-mPbFzR5TO7TRXlvR0TbspzXoU,3093
25
29
  pulpcore/client/pulp_python/models/package_upload.py,sha256=nZymY1TmC2x1E2YFNZfTyXDLR8N5vOhndK3EIXFGM4E,6276
26
- pulpcore/client/pulp_python/models/package_upload_task_response.py,sha256=DcbKw4CPUL2t4RxsguqdgLzSmundaKuZNb4pvifdjA8,5386
30
+ pulpcore/client/pulp_python/models/package_upload_task_response.py,sha256=DyocWJBf2OUUuomRIlIBVyhLJBrcXsw6V_KOW9qpo3Y,4984
27
31
  pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py,sha256=IMzcMPg2LP8HZNy4G2Z2P5elpr9-NkC08hBdrav-sAI,5990
28
32
  pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py,sha256=cKnKaCTcRl68iCARZfAmoSQCmyPzEKwuizvGM8Abm4s,6151
29
33
  pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py,sha256=CQiMkR1cLlI1vFKL6felc6DEDIaOOMQJ6NlWdHydUgE,6197
@@ -31,7 +35,7 @@ pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_l
31
35
  pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py,sha256=PrIFucl1vzjajOL_hvfEGDQHR4DUjsTYNF18hkxm1Ok,6013
32
36
  pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py,sha256=lQ_VSabGgUfTl7Z5kTdGV1sgKSPTLBI5r8whjBB6B0s,6105
33
37
  pulpcore/client/pulp_python/models/patchedpython_python_distribution.py,sha256=14hsCKjn6gvvUz20b_sW7Z8rxpVIBbKb0K3dabLmWt4,11314
34
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py,sha256=lqLlWoMfWQd1X4gFEOuOxVfpJ3q8hspz18TqBeOMW9g,34010
38
+ pulpcore/client/pulp_python/models/patchedpython_python_remote.py,sha256=xQ0lnzjHajhglcLWUNNmJkK6lNqOVe0TGi3A2EIFT8o,34026
35
39
  pulpcore/client/pulp_python/models/patchedpython_python_repository.py,sha256=laidxfBKqEm2-LNTm7YsMl8_JMrAgiOmT21pXIW2ujw,8968
36
40
  pulpcore/client/pulp_python/models/policy_enum.py,sha256=73sYQjy3uC2cxirdImyK1VIZtivP3ZdoGjVwzlXP9vc,2862
37
41
  pulpcore/client/pulp_python/models/python_bander_remote.py,sha256=MeYhjtFxH7ffQpv7c0_y99yofNlrNHYna_wzjJui2Mg,6771
@@ -41,8 +45,8 @@ pulpcore/client/pulp_python/models/python_python_package_content.py,sha256=kAwd-
41
45
  pulpcore/client/pulp_python/models/python_python_package_content_response.py,sha256=AQ2_T51m7lFXvqEqj9MaO1GI_jHGHbg3p5SkAAoVl6w,33939
42
46
  pulpcore/client/pulp_python/models/python_python_publication.py,sha256=WTrDUV3q7pTf-cI7LTTrv_OQz0xuqAqSHVc8fTbnzb4,4488
43
47
  pulpcore/client/pulp_python/models/python_python_publication_response.py,sha256=46zUsGER5G8tgBxQ83RIEDT__-7kGJ_stdYhcq6xC8I,8680
44
- pulpcore/client/pulp_python/models/python_python_remote.py,sha256=_gPevP9XgllZ-lHLfUpcyFQwfRfHsHXRCpBF8qTsoxA,33533
45
- pulpcore/client/pulp_python/models/python_python_remote_response.py,sha256=Ts8j6-NKJoVchOM1feOVkBwbU1tgMm59f0VtRdBFeqA,31010
48
+ pulpcore/client/pulp_python/models/python_python_remote.py,sha256=5PxRjJiPtuMHsvzwv1IkVHm3T78ftQSnY3rpdEearF0,33549
49
+ pulpcore/client/pulp_python/models/python_python_remote_response.py,sha256=xuMX7T6Zhce4vBHZbkPUitHqDXbKK3K5XbJkIHaFYPM,31026
46
50
  pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py,sha256=FMQnJB2ReyO6XAUzui-KVDsXvh5-k_Xu5mVLfpPXmfM,4495
47
51
  pulpcore/client/pulp_python/models/python_python_repository.py,sha256=OleE3896uKYswXkzmuNdXVQwr9f-oqNyp6YsrDC6vmo,8926
48
52
  pulpcore/client/pulp_python/models/python_python_repository_response.py,sha256=2Ps5Lyk6QOHH1lnJIhuW_7_tLio_NjJ9xV1BAX7SqcI,13458
@@ -55,7 +59,7 @@ pulpcore/client/pulp_python/models/set_label_response.py,sha256=n0PkgGraiIISAl2U
55
59
  pulpcore/client/pulp_python/models/summary_response.py,sha256=tnsbMSIsJ7Wn3TxKOFYPNgwutne1jy6Vx-aaOZejiRA,5498
56
60
  pulpcore/client/pulp_python/models/unset_label.py,sha256=jOchl5kHsTLqXAI6TSlm3qydKvjrMLusScLEEybe-8A,3896
57
61
  pulpcore/client/pulp_python/models/unset_label_response.py,sha256=zz9WS1LOXfadx_kZ3MEhQE0ipzN_6zSvVLIRHt3Yn1g,4346
58
- pulp_python_client-3.11.3.dist-info/METADATA,sha256=oB1ob9lRf9tOFySJhp4h3AYhdR7Z0utu5_G4eRFdvbo,419
59
- pulp_python_client-3.11.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
60
- pulp_python_client-3.11.3.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
61
- pulp_python_client-3.11.3.dist-info/RECORD,,
62
+ pulp_python_client-3.12.1.dist-info/METADATA,sha256=vkfFH-YePP8VfmlQAtpLP5ncEG7UCNtM2w2tMykVbTo,421
63
+ pulp_python_client-3.12.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
64
+ pulp_python_client-3.12.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
65
+ pulp_python_client-3.12.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.11.3"
18
+ __version__ = "3.12.1"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pulpcore.client.pulp_python.api.content_packages_api import ContentPackagesApi
@@ -41,6 +41,10 @@ from pulpcore.client.pulp_python.exceptions import ApiException
41
41
  from pulpcore.client.pulp_python.models.async_operation_response import AsyncOperationResponse
42
42
  from pulpcore.client.pulp_python.models.content_summary_response import ContentSummaryResponse
43
43
  from pulpcore.client.pulp_python.models.exclude_platforms_enum import ExcludePlatformsEnum
44
+ from pulpcore.client.pulp_python.models.my_permissions_response import MyPermissionsResponse
45
+ from pulpcore.client.pulp_python.models.nested_role import NestedRole
46
+ from pulpcore.client.pulp_python.models.nested_role_response import NestedRoleResponse
47
+ from pulpcore.client.pulp_python.models.object_roles_response import ObjectRolesResponse
44
48
  from pulpcore.client.pulp_python.models.package_metadata_response import PackageMetadataResponse
45
49
  from pulpcore.client.pulp_python.models.package_types_enum import PackageTypesEnum
46
50
  from pulpcore.client.pulp_python.models.package_upload import PackageUpload
@@ -37,6 +37,133 @@ class DistributionsPypiApi(object):
37
37
  api_client = ApiClient()
38
38
  self.api_client = api_client
39
39
 
40
+ def add_role(self, python_python_distribution_href, nested_role, **kwargs): # noqa: E501
41
+ """Add a role # noqa: E501
42
+
43
+ Add a role for this object to users/groups. # noqa: E501
44
+ This method makes a synchronous HTTP request by default. To make an
45
+ asynchronous HTTP request, please pass async_req=True
46
+ >>> thread = api.add_role(python_python_distribution_href, nested_role, async_req=True)
47
+ >>> result = thread.get()
48
+
49
+ :param async_req bool: execute request asynchronously
50
+ :param str python_python_distribution_href: (required)
51
+ :param NestedRole nested_role: (required)
52
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
53
+ be returned without reading/decoding response
54
+ data. Default is True.
55
+ :param _request_timeout: timeout setting for this request. If one
56
+ number provided, it will be total request
57
+ timeout. It can also be a pair (tuple) of
58
+ (connection, read) timeouts.
59
+ :return: NestedRoleResponse
60
+ If the method is called asynchronously,
61
+ returns the request thread.
62
+ """
63
+ kwargs['_return_http_data_only'] = True
64
+ return self.add_role_with_http_info(python_python_distribution_href, nested_role, **kwargs) # noqa: E501
65
+
66
+ def add_role_with_http_info(self, python_python_distribution_href, nested_role, **kwargs): # noqa: E501
67
+ """Add a role # noqa: E501
68
+
69
+ Add a role for this object to users/groups. # noqa: E501
70
+ This method makes a synchronous HTTP request by default. To make an
71
+ asynchronous HTTP request, please pass async_req=True
72
+ >>> thread = api.add_role_with_http_info(python_python_distribution_href, nested_role, async_req=True)
73
+ >>> result = thread.get()
74
+
75
+ :param async_req bool: execute request asynchronously
76
+ :param str python_python_distribution_href: (required)
77
+ :param NestedRole nested_role: (required)
78
+ :param _return_http_data_only: response data without head status code
79
+ and headers
80
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
81
+ be returned without reading/decoding response
82
+ data. Default is True.
83
+ :param _request_timeout: timeout setting for this request. If one
84
+ number provided, it will be total request
85
+ timeout. It can also be a pair (tuple) of
86
+ (connection, read) timeouts.
87
+ :return: tuple(NestedRoleResponse, status_code(int), headers(HTTPHeaderDict))
88
+ If the method is called asynchronously,
89
+ returns the request thread.
90
+ """
91
+
92
+ local_var_params = locals()
93
+
94
+ all_params = [
95
+ 'python_python_distribution_href',
96
+ 'nested_role'
97
+ ]
98
+ all_params.extend(
99
+ [
100
+ 'async_req',
101
+ '_return_http_data_only',
102
+ '_preload_content',
103
+ '_request_timeout'
104
+ ]
105
+ )
106
+
107
+ for key, val in six.iteritems(local_var_params['kwargs']):
108
+ if key not in all_params:
109
+ raise ApiTypeError(
110
+ "Got an unexpected keyword argument '%s'"
111
+ " to method add_role" % key
112
+ )
113
+ local_var_params[key] = val
114
+ del local_var_params['kwargs']
115
+ # verify the required parameter 'python_python_distribution_href' is set
116
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
117
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
118
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `add_role`") # noqa: E501
119
+ # verify the required parameter 'nested_role' is set
120
+ if self.api_client.client_side_validation and ('nested_role' not in local_var_params or # noqa: E501
121
+ local_var_params['nested_role'] is None): # noqa: E501
122
+ raise ApiValueError("Missing the required parameter `nested_role` when calling `add_role`") # noqa: E501
123
+
124
+ collection_formats = {}
125
+
126
+ path_params = {}
127
+ if 'python_python_distribution_href' in local_var_params:
128
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
129
+
130
+ query_params = []
131
+
132
+ header_params = {}
133
+
134
+ form_params = []
135
+ local_var_files = {}
136
+
137
+ body_params = None
138
+ if 'nested_role' in local_var_params:
139
+ body_params = local_var_params['nested_role']
140
+ # HTTP header `Accept`
141
+ header_params['Accept'] = self.api_client.select_header_accept(
142
+ ['application/json']) # noqa: E501
143
+
144
+ # HTTP header `Content-Type`
145
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
146
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
147
+
148
+ # Authentication setting
149
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
150
+
151
+ return self.api_client.call_api(
152
+ '{python_python_distribution_href}add_role/', 'POST',
153
+ path_params,
154
+ query_params,
155
+ header_params,
156
+ body=body_params,
157
+ post_params=form_params,
158
+ files=local_var_files,
159
+ response_type='NestedRoleResponse', # noqa: E501
160
+ auth_settings=auth_settings,
161
+ async_req=local_var_params.get('async_req'),
162
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
163
+ _preload_content=local_var_params.get('_preload_content', True),
164
+ _request_timeout=local_var_params.get('_request_timeout'),
165
+ collection_formats=collection_formats)
166
+
40
167
  def create(self, python_python_distribution, **kwargs): # noqa: E501
41
168
  """Create a python distribution # noqa: E501
42
169
 
@@ -507,6 +634,258 @@ class DistributionsPypiApi(object):
507
634
  _request_timeout=local_var_params.get('_request_timeout'),
508
635
  collection_formats=collection_formats)
509
636
 
637
+ def list_roles(self, python_python_distribution_href, **kwargs): # noqa: E501
638
+ """List roles # noqa: E501
639
+
640
+ List roles assigned to this object. # noqa: E501
641
+ This method makes a synchronous HTTP request by default. To make an
642
+ asynchronous HTTP request, please pass async_req=True
643
+ >>> thread = api.list_roles(python_python_distribution_href, async_req=True)
644
+ >>> result = thread.get()
645
+
646
+ :param async_req bool: execute request asynchronously
647
+ :param str python_python_distribution_href: (required)
648
+ :param list[str] fields: A list of fields to include in the response.
649
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
650
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
651
+ be returned without reading/decoding response
652
+ data. Default is True.
653
+ :param _request_timeout: timeout setting for this request. If one
654
+ number provided, it will be total request
655
+ timeout. It can also be a pair (tuple) of
656
+ (connection, read) timeouts.
657
+ :return: ObjectRolesResponse
658
+ If the method is called asynchronously,
659
+ returns the request thread.
660
+ """
661
+ kwargs['_return_http_data_only'] = True
662
+ return self.list_roles_with_http_info(python_python_distribution_href, **kwargs) # noqa: E501
663
+
664
+ def list_roles_with_http_info(self, python_python_distribution_href, **kwargs): # noqa: E501
665
+ """List roles # noqa: E501
666
+
667
+ List roles assigned to this object. # noqa: E501
668
+ This method makes a synchronous HTTP request by default. To make an
669
+ asynchronous HTTP request, please pass async_req=True
670
+ >>> thread = api.list_roles_with_http_info(python_python_distribution_href, async_req=True)
671
+ >>> result = thread.get()
672
+
673
+ :param async_req bool: execute request asynchronously
674
+ :param str python_python_distribution_href: (required)
675
+ :param list[str] fields: A list of fields to include in the response.
676
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
677
+ :param _return_http_data_only: response data without head status code
678
+ and headers
679
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
680
+ be returned without reading/decoding response
681
+ data. Default is True.
682
+ :param _request_timeout: timeout setting for this request. If one
683
+ number provided, it will be total request
684
+ timeout. It can also be a pair (tuple) of
685
+ (connection, read) timeouts.
686
+ :return: tuple(ObjectRolesResponse, status_code(int), headers(HTTPHeaderDict))
687
+ If the method is called asynchronously,
688
+ returns the request thread.
689
+ """
690
+
691
+ local_var_params = locals()
692
+
693
+ all_params = [
694
+ 'python_python_distribution_href',
695
+ 'fields',
696
+ 'exclude_fields'
697
+ ]
698
+ all_params.extend(
699
+ [
700
+ 'async_req',
701
+ '_return_http_data_only',
702
+ '_preload_content',
703
+ '_request_timeout'
704
+ ]
705
+ )
706
+
707
+ for key, val in six.iteritems(local_var_params['kwargs']):
708
+ if key not in all_params:
709
+ raise ApiTypeError(
710
+ "Got an unexpected keyword argument '%s'"
711
+ " to method list_roles" % key
712
+ )
713
+ local_var_params[key] = val
714
+ del local_var_params['kwargs']
715
+ # verify the required parameter 'python_python_distribution_href' is set
716
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
717
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
718
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `list_roles`") # noqa: E501
719
+
720
+ collection_formats = {}
721
+
722
+ path_params = {}
723
+ if 'python_python_distribution_href' in local_var_params:
724
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
725
+
726
+ query_params = []
727
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
728
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
729
+ collection_formats['fields'] = 'multi' # noqa: E501
730
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
731
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
732
+ collection_formats['exclude_fields'] = 'multi' # noqa: E501
733
+
734
+ header_params = {}
735
+
736
+ form_params = []
737
+ local_var_files = {}
738
+
739
+ body_params = None
740
+ # HTTP header `Accept`
741
+ header_params['Accept'] = self.api_client.select_header_accept(
742
+ ['application/json']) # noqa: E501
743
+
744
+ # Authentication setting
745
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
746
+
747
+ return self.api_client.call_api(
748
+ '{python_python_distribution_href}list_roles/', 'GET',
749
+ path_params,
750
+ query_params,
751
+ header_params,
752
+ body=body_params,
753
+ post_params=form_params,
754
+ files=local_var_files,
755
+ response_type='ObjectRolesResponse', # noqa: E501
756
+ auth_settings=auth_settings,
757
+ async_req=local_var_params.get('async_req'),
758
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
759
+ _preload_content=local_var_params.get('_preload_content', True),
760
+ _request_timeout=local_var_params.get('_request_timeout'),
761
+ collection_formats=collection_formats)
762
+
763
+ def my_permissions(self, python_python_distribution_href, **kwargs): # noqa: E501
764
+ """List user permissions # noqa: E501
765
+
766
+ List permissions available to the current user on this object. # noqa: E501
767
+ This method makes a synchronous HTTP request by default. To make an
768
+ asynchronous HTTP request, please pass async_req=True
769
+ >>> thread = api.my_permissions(python_python_distribution_href, async_req=True)
770
+ >>> result = thread.get()
771
+
772
+ :param async_req bool: execute request asynchronously
773
+ :param str python_python_distribution_href: (required)
774
+ :param list[str] fields: A list of fields to include in the response.
775
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
776
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
777
+ be returned without reading/decoding response
778
+ data. Default is True.
779
+ :param _request_timeout: timeout setting for this request. If one
780
+ number provided, it will be total request
781
+ timeout. It can also be a pair (tuple) of
782
+ (connection, read) timeouts.
783
+ :return: MyPermissionsResponse
784
+ If the method is called asynchronously,
785
+ returns the request thread.
786
+ """
787
+ kwargs['_return_http_data_only'] = True
788
+ return self.my_permissions_with_http_info(python_python_distribution_href, **kwargs) # noqa: E501
789
+
790
+ def my_permissions_with_http_info(self, python_python_distribution_href, **kwargs): # noqa: E501
791
+ """List user permissions # noqa: E501
792
+
793
+ List permissions available to the current user on this object. # noqa: E501
794
+ This method makes a synchronous HTTP request by default. To make an
795
+ asynchronous HTTP request, please pass async_req=True
796
+ >>> thread = api.my_permissions_with_http_info(python_python_distribution_href, async_req=True)
797
+ >>> result = thread.get()
798
+
799
+ :param async_req bool: execute request asynchronously
800
+ :param str python_python_distribution_href: (required)
801
+ :param list[str] fields: A list of fields to include in the response.
802
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
803
+ :param _return_http_data_only: response data without head status code
804
+ and headers
805
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
806
+ be returned without reading/decoding response
807
+ data. Default is True.
808
+ :param _request_timeout: timeout setting for this request. If one
809
+ number provided, it will be total request
810
+ timeout. It can also be a pair (tuple) of
811
+ (connection, read) timeouts.
812
+ :return: tuple(MyPermissionsResponse, status_code(int), headers(HTTPHeaderDict))
813
+ If the method is called asynchronously,
814
+ returns the request thread.
815
+ """
816
+
817
+ local_var_params = locals()
818
+
819
+ all_params = [
820
+ 'python_python_distribution_href',
821
+ 'fields',
822
+ 'exclude_fields'
823
+ ]
824
+ all_params.extend(
825
+ [
826
+ 'async_req',
827
+ '_return_http_data_only',
828
+ '_preload_content',
829
+ '_request_timeout'
830
+ ]
831
+ )
832
+
833
+ for key, val in six.iteritems(local_var_params['kwargs']):
834
+ if key not in all_params:
835
+ raise ApiTypeError(
836
+ "Got an unexpected keyword argument '%s'"
837
+ " to method my_permissions" % key
838
+ )
839
+ local_var_params[key] = val
840
+ del local_var_params['kwargs']
841
+ # verify the required parameter 'python_python_distribution_href' is set
842
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
843
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
844
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `my_permissions`") # noqa: E501
845
+
846
+ collection_formats = {}
847
+
848
+ path_params = {}
849
+ if 'python_python_distribution_href' in local_var_params:
850
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
851
+
852
+ query_params = []
853
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
854
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
855
+ collection_formats['fields'] = 'multi' # noqa: E501
856
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
857
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
858
+ collection_formats['exclude_fields'] = 'multi' # noqa: E501
859
+
860
+ header_params = {}
861
+
862
+ form_params = []
863
+ local_var_files = {}
864
+
865
+ body_params = None
866
+ # HTTP header `Accept`
867
+ header_params['Accept'] = self.api_client.select_header_accept(
868
+ ['application/json']) # noqa: E501
869
+
870
+ # Authentication setting
871
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
872
+
873
+ return self.api_client.call_api(
874
+ '{python_python_distribution_href}my_permissions/', 'GET',
875
+ path_params,
876
+ query_params,
877
+ header_params,
878
+ body=body_params,
879
+ post_params=form_params,
880
+ files=local_var_files,
881
+ response_type='MyPermissionsResponse', # noqa: E501
882
+ auth_settings=auth_settings,
883
+ async_req=local_var_params.get('async_req'),
884
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
885
+ _preload_content=local_var_params.get('_preload_content', True),
886
+ _request_timeout=local_var_params.get('_request_timeout'),
887
+ collection_formats=collection_formats)
888
+
510
889
  def partial_update(self, python_python_distribution_href, patchedpython_python_distribution, **kwargs): # noqa: E501
511
890
  """Update a python distribution # noqa: E501
512
891
 
@@ -760,6 +1139,133 @@ class DistributionsPypiApi(object):
760
1139
  _request_timeout=local_var_params.get('_request_timeout'),
761
1140
  collection_formats=collection_formats)
762
1141
 
1142
+ def remove_role(self, python_python_distribution_href, nested_role, **kwargs): # noqa: E501
1143
+ """Remove a role # noqa: E501
1144
+
1145
+ Remove a role for this object from users/groups. # noqa: E501
1146
+ This method makes a synchronous HTTP request by default. To make an
1147
+ asynchronous HTTP request, please pass async_req=True
1148
+ >>> thread = api.remove_role(python_python_distribution_href, nested_role, async_req=True)
1149
+ >>> result = thread.get()
1150
+
1151
+ :param async_req bool: execute request asynchronously
1152
+ :param str python_python_distribution_href: (required)
1153
+ :param NestedRole nested_role: (required)
1154
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1155
+ be returned without reading/decoding response
1156
+ data. Default is True.
1157
+ :param _request_timeout: timeout setting for this request. If one
1158
+ number provided, it will be total request
1159
+ timeout. It can also be a pair (tuple) of
1160
+ (connection, read) timeouts.
1161
+ :return: NestedRoleResponse
1162
+ If the method is called asynchronously,
1163
+ returns the request thread.
1164
+ """
1165
+ kwargs['_return_http_data_only'] = True
1166
+ return self.remove_role_with_http_info(python_python_distribution_href, nested_role, **kwargs) # noqa: E501
1167
+
1168
+ def remove_role_with_http_info(self, python_python_distribution_href, nested_role, **kwargs): # noqa: E501
1169
+ """Remove a role # noqa: E501
1170
+
1171
+ Remove a role for this object from users/groups. # noqa: E501
1172
+ This method makes a synchronous HTTP request by default. To make an
1173
+ asynchronous HTTP request, please pass async_req=True
1174
+ >>> thread = api.remove_role_with_http_info(python_python_distribution_href, nested_role, async_req=True)
1175
+ >>> result = thread.get()
1176
+
1177
+ :param async_req bool: execute request asynchronously
1178
+ :param str python_python_distribution_href: (required)
1179
+ :param NestedRole nested_role: (required)
1180
+ :param _return_http_data_only: response data without head status code
1181
+ and headers
1182
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1183
+ be returned without reading/decoding response
1184
+ data. Default is True.
1185
+ :param _request_timeout: timeout setting for this request. If one
1186
+ number provided, it will be total request
1187
+ timeout. It can also be a pair (tuple) of
1188
+ (connection, read) timeouts.
1189
+ :return: tuple(NestedRoleResponse, status_code(int), headers(HTTPHeaderDict))
1190
+ If the method is called asynchronously,
1191
+ returns the request thread.
1192
+ """
1193
+
1194
+ local_var_params = locals()
1195
+
1196
+ all_params = [
1197
+ 'python_python_distribution_href',
1198
+ 'nested_role'
1199
+ ]
1200
+ all_params.extend(
1201
+ [
1202
+ 'async_req',
1203
+ '_return_http_data_only',
1204
+ '_preload_content',
1205
+ '_request_timeout'
1206
+ ]
1207
+ )
1208
+
1209
+ for key, val in six.iteritems(local_var_params['kwargs']):
1210
+ if key not in all_params:
1211
+ raise ApiTypeError(
1212
+ "Got an unexpected keyword argument '%s'"
1213
+ " to method remove_role" % key
1214
+ )
1215
+ local_var_params[key] = val
1216
+ del local_var_params['kwargs']
1217
+ # verify the required parameter 'python_python_distribution_href' is set
1218
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
1219
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
1220
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `remove_role`") # noqa: E501
1221
+ # verify the required parameter 'nested_role' is set
1222
+ if self.api_client.client_side_validation and ('nested_role' not in local_var_params or # noqa: E501
1223
+ local_var_params['nested_role'] is None): # noqa: E501
1224
+ raise ApiValueError("Missing the required parameter `nested_role` when calling `remove_role`") # noqa: E501
1225
+
1226
+ collection_formats = {}
1227
+
1228
+ path_params = {}
1229
+ if 'python_python_distribution_href' in local_var_params:
1230
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
1231
+
1232
+ query_params = []
1233
+
1234
+ header_params = {}
1235
+
1236
+ form_params = []
1237
+ local_var_files = {}
1238
+
1239
+ body_params = None
1240
+ if 'nested_role' in local_var_params:
1241
+ body_params = local_var_params['nested_role']
1242
+ # HTTP header `Accept`
1243
+ header_params['Accept'] = self.api_client.select_header_accept(
1244
+ ['application/json']) # noqa: E501
1245
+
1246
+ # HTTP header `Content-Type`
1247
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1248
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
1249
+
1250
+ # Authentication setting
1251
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
1252
+
1253
+ return self.api_client.call_api(
1254
+ '{python_python_distribution_href}remove_role/', 'POST',
1255
+ path_params,
1256
+ query_params,
1257
+ header_params,
1258
+ body=body_params,
1259
+ post_params=form_params,
1260
+ files=local_var_files,
1261
+ response_type='NestedRoleResponse', # noqa: E501
1262
+ auth_settings=auth_settings,
1263
+ async_req=local_var_params.get('async_req'),
1264
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1265
+ _preload_content=local_var_params.get('_preload_content', True),
1266
+ _request_timeout=local_var_params.get('_request_timeout'),
1267
+ collection_formats=collection_formats)
1268
+
763
1269
  def set_label(self, python_python_distribution_href, set_label, **kwargs): # noqa: E501
764
1270
  """Set a label # noqa: E501
765
1271