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.
- {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/METADATA +3 -3
- {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/RECORD +22 -18
- {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +5 -1
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +506 -0
- pulpcore/client/pulp_python/api/publications_pypi_api.py +506 -0
- pulpcore/client/pulp_python/api/pypi_api.py +1 -1
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +1 -1
- pulpcore/client/pulp_python/api/remotes_python_api.py +506 -0
- pulpcore/client/pulp_python/api/repositories_python_api.py +506 -0
- pulpcore/client/pulp_python/api_client.py +1 -1
- pulpcore/client/pulp_python/configuration.py +3 -3
- pulpcore/client/pulp_python/models/__init__.py +4 -0
- pulpcore/client/pulp_python/models/my_permissions_response.py +122 -0
- pulpcore/client/pulp_python/models/nested_role.py +177 -0
- pulpcore/client/pulp_python/models/nested_role_response.py +174 -0
- pulpcore/client/pulp_python/models/object_roles_response.py +122 -0
- pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -4
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py +8 -8
- pulpcore/client/pulp_python/models/python_python_remote.py +8 -8
- pulpcore/client/pulp_python/models/python_python_remote_response.py +8 -8
- {pulp_python_client-3.11.3.dist-info → pulp_python_client-3.12.1.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,133 @@ class PublicationsPypiApi(object):
|
|
|
37
37
|
api_client = ApiClient()
|
|
38
38
|
self.api_client = api_client
|
|
39
39
|
|
|
40
|
+
def add_role(self, python_python_publication_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_publication_href, nested_role, async_req=True)
|
|
47
|
+
>>> result = thread.get()
|
|
48
|
+
|
|
49
|
+
:param async_req bool: execute request asynchronously
|
|
50
|
+
:param str python_python_publication_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_publication_href, nested_role, **kwargs) # noqa: E501
|
|
65
|
+
|
|
66
|
+
def add_role_with_http_info(self, python_python_publication_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_publication_href, nested_role, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool: execute request asynchronously
|
|
76
|
+
:param str python_python_publication_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_publication_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_publication_href' is set
|
|
116
|
+
if self.api_client.client_side_validation and ('python_python_publication_href' not in local_var_params or # noqa: E501
|
|
117
|
+
local_var_params['python_python_publication_href'] is None): # noqa: E501
|
|
118
|
+
raise ApiValueError("Missing the required parameter `python_python_publication_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_publication_href' in local_var_params:
|
|
128
|
+
path_params['python_python_publication_href'] = local_var_params['python_python_publication_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_publication_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_publication, **kwargs): # noqa: E501
|
|
41
168
|
"""Create a python publication # noqa: E501
|
|
42
169
|
|
|
@@ -466,6 +593,258 @@ class PublicationsPypiApi(object):
|
|
|
466
593
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
467
594
|
collection_formats=collection_formats)
|
|
468
595
|
|
|
596
|
+
def list_roles(self, python_python_publication_href, **kwargs): # noqa: E501
|
|
597
|
+
"""List roles # noqa: E501
|
|
598
|
+
|
|
599
|
+
List roles assigned to this object. # noqa: E501
|
|
600
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
601
|
+
asynchronous HTTP request, please pass async_req=True
|
|
602
|
+
>>> thread = api.list_roles(python_python_publication_href, async_req=True)
|
|
603
|
+
>>> result = thread.get()
|
|
604
|
+
|
|
605
|
+
:param async_req bool: execute request asynchronously
|
|
606
|
+
:param str python_python_publication_href: (required)
|
|
607
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
608
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
609
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
610
|
+
be returned without reading/decoding response
|
|
611
|
+
data. Default is True.
|
|
612
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
613
|
+
number provided, it will be total request
|
|
614
|
+
timeout. It can also be a pair (tuple) of
|
|
615
|
+
(connection, read) timeouts.
|
|
616
|
+
:return: ObjectRolesResponse
|
|
617
|
+
If the method is called asynchronously,
|
|
618
|
+
returns the request thread.
|
|
619
|
+
"""
|
|
620
|
+
kwargs['_return_http_data_only'] = True
|
|
621
|
+
return self.list_roles_with_http_info(python_python_publication_href, **kwargs) # noqa: E501
|
|
622
|
+
|
|
623
|
+
def list_roles_with_http_info(self, python_python_publication_href, **kwargs): # noqa: E501
|
|
624
|
+
"""List roles # noqa: E501
|
|
625
|
+
|
|
626
|
+
List roles assigned to this object. # noqa: E501
|
|
627
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
628
|
+
asynchronous HTTP request, please pass async_req=True
|
|
629
|
+
>>> thread = api.list_roles_with_http_info(python_python_publication_href, async_req=True)
|
|
630
|
+
>>> result = thread.get()
|
|
631
|
+
|
|
632
|
+
:param async_req bool: execute request asynchronously
|
|
633
|
+
:param str python_python_publication_href: (required)
|
|
634
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
635
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
636
|
+
:param _return_http_data_only: response data without head status code
|
|
637
|
+
and headers
|
|
638
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
639
|
+
be returned without reading/decoding response
|
|
640
|
+
data. Default is True.
|
|
641
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
642
|
+
number provided, it will be total request
|
|
643
|
+
timeout. It can also be a pair (tuple) of
|
|
644
|
+
(connection, read) timeouts.
|
|
645
|
+
:return: tuple(ObjectRolesResponse, status_code(int), headers(HTTPHeaderDict))
|
|
646
|
+
If the method is called asynchronously,
|
|
647
|
+
returns the request thread.
|
|
648
|
+
"""
|
|
649
|
+
|
|
650
|
+
local_var_params = locals()
|
|
651
|
+
|
|
652
|
+
all_params = [
|
|
653
|
+
'python_python_publication_href',
|
|
654
|
+
'fields',
|
|
655
|
+
'exclude_fields'
|
|
656
|
+
]
|
|
657
|
+
all_params.extend(
|
|
658
|
+
[
|
|
659
|
+
'async_req',
|
|
660
|
+
'_return_http_data_only',
|
|
661
|
+
'_preload_content',
|
|
662
|
+
'_request_timeout'
|
|
663
|
+
]
|
|
664
|
+
)
|
|
665
|
+
|
|
666
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
667
|
+
if key not in all_params:
|
|
668
|
+
raise ApiTypeError(
|
|
669
|
+
"Got an unexpected keyword argument '%s'"
|
|
670
|
+
" to method list_roles" % key
|
|
671
|
+
)
|
|
672
|
+
local_var_params[key] = val
|
|
673
|
+
del local_var_params['kwargs']
|
|
674
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
675
|
+
if self.api_client.client_side_validation and ('python_python_publication_href' not in local_var_params or # noqa: E501
|
|
676
|
+
local_var_params['python_python_publication_href'] is None): # noqa: E501
|
|
677
|
+
raise ApiValueError("Missing the required parameter `python_python_publication_href` when calling `list_roles`") # noqa: E501
|
|
678
|
+
|
|
679
|
+
collection_formats = {}
|
|
680
|
+
|
|
681
|
+
path_params = {}
|
|
682
|
+
if 'python_python_publication_href' in local_var_params:
|
|
683
|
+
path_params['python_python_publication_href'] = local_var_params['python_python_publication_href'] # noqa: E501
|
|
684
|
+
|
|
685
|
+
query_params = []
|
|
686
|
+
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
687
|
+
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
688
|
+
collection_formats['fields'] = 'multi' # noqa: E501
|
|
689
|
+
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
|
690
|
+
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
|
691
|
+
collection_formats['exclude_fields'] = 'multi' # noqa: E501
|
|
692
|
+
|
|
693
|
+
header_params = {}
|
|
694
|
+
|
|
695
|
+
form_params = []
|
|
696
|
+
local_var_files = {}
|
|
697
|
+
|
|
698
|
+
body_params = None
|
|
699
|
+
# HTTP header `Accept`
|
|
700
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
701
|
+
['application/json']) # noqa: E501
|
|
702
|
+
|
|
703
|
+
# Authentication setting
|
|
704
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
705
|
+
|
|
706
|
+
return self.api_client.call_api(
|
|
707
|
+
'{python_python_publication_href}list_roles/', 'GET',
|
|
708
|
+
path_params,
|
|
709
|
+
query_params,
|
|
710
|
+
header_params,
|
|
711
|
+
body=body_params,
|
|
712
|
+
post_params=form_params,
|
|
713
|
+
files=local_var_files,
|
|
714
|
+
response_type='ObjectRolesResponse', # noqa: E501
|
|
715
|
+
auth_settings=auth_settings,
|
|
716
|
+
async_req=local_var_params.get('async_req'),
|
|
717
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
718
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
719
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
720
|
+
collection_formats=collection_formats)
|
|
721
|
+
|
|
722
|
+
def my_permissions(self, python_python_publication_href, **kwargs): # noqa: E501
|
|
723
|
+
"""List user permissions # noqa: E501
|
|
724
|
+
|
|
725
|
+
List permissions available to the current user on this object. # noqa: E501
|
|
726
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
727
|
+
asynchronous HTTP request, please pass async_req=True
|
|
728
|
+
>>> thread = api.my_permissions(python_python_publication_href, async_req=True)
|
|
729
|
+
>>> result = thread.get()
|
|
730
|
+
|
|
731
|
+
:param async_req bool: execute request asynchronously
|
|
732
|
+
:param str python_python_publication_href: (required)
|
|
733
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
734
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
735
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
736
|
+
be returned without reading/decoding response
|
|
737
|
+
data. Default is True.
|
|
738
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
739
|
+
number provided, it will be total request
|
|
740
|
+
timeout. It can also be a pair (tuple) of
|
|
741
|
+
(connection, read) timeouts.
|
|
742
|
+
:return: MyPermissionsResponse
|
|
743
|
+
If the method is called asynchronously,
|
|
744
|
+
returns the request thread.
|
|
745
|
+
"""
|
|
746
|
+
kwargs['_return_http_data_only'] = True
|
|
747
|
+
return self.my_permissions_with_http_info(python_python_publication_href, **kwargs) # noqa: E501
|
|
748
|
+
|
|
749
|
+
def my_permissions_with_http_info(self, python_python_publication_href, **kwargs): # noqa: E501
|
|
750
|
+
"""List user permissions # noqa: E501
|
|
751
|
+
|
|
752
|
+
List permissions available to the current user on this object. # noqa: E501
|
|
753
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
754
|
+
asynchronous HTTP request, please pass async_req=True
|
|
755
|
+
>>> thread = api.my_permissions_with_http_info(python_python_publication_href, async_req=True)
|
|
756
|
+
>>> result = thread.get()
|
|
757
|
+
|
|
758
|
+
:param async_req bool: execute request asynchronously
|
|
759
|
+
:param str python_python_publication_href: (required)
|
|
760
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
761
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
762
|
+
:param _return_http_data_only: response data without head status code
|
|
763
|
+
and headers
|
|
764
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
765
|
+
be returned without reading/decoding response
|
|
766
|
+
data. Default is True.
|
|
767
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
768
|
+
number provided, it will be total request
|
|
769
|
+
timeout. It can also be a pair (tuple) of
|
|
770
|
+
(connection, read) timeouts.
|
|
771
|
+
:return: tuple(MyPermissionsResponse, status_code(int), headers(HTTPHeaderDict))
|
|
772
|
+
If the method is called asynchronously,
|
|
773
|
+
returns the request thread.
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
local_var_params = locals()
|
|
777
|
+
|
|
778
|
+
all_params = [
|
|
779
|
+
'python_python_publication_href',
|
|
780
|
+
'fields',
|
|
781
|
+
'exclude_fields'
|
|
782
|
+
]
|
|
783
|
+
all_params.extend(
|
|
784
|
+
[
|
|
785
|
+
'async_req',
|
|
786
|
+
'_return_http_data_only',
|
|
787
|
+
'_preload_content',
|
|
788
|
+
'_request_timeout'
|
|
789
|
+
]
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
793
|
+
if key not in all_params:
|
|
794
|
+
raise ApiTypeError(
|
|
795
|
+
"Got an unexpected keyword argument '%s'"
|
|
796
|
+
" to method my_permissions" % key
|
|
797
|
+
)
|
|
798
|
+
local_var_params[key] = val
|
|
799
|
+
del local_var_params['kwargs']
|
|
800
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
801
|
+
if self.api_client.client_side_validation and ('python_python_publication_href' not in local_var_params or # noqa: E501
|
|
802
|
+
local_var_params['python_python_publication_href'] is None): # noqa: E501
|
|
803
|
+
raise ApiValueError("Missing the required parameter `python_python_publication_href` when calling `my_permissions`") # noqa: E501
|
|
804
|
+
|
|
805
|
+
collection_formats = {}
|
|
806
|
+
|
|
807
|
+
path_params = {}
|
|
808
|
+
if 'python_python_publication_href' in local_var_params:
|
|
809
|
+
path_params['python_python_publication_href'] = local_var_params['python_python_publication_href'] # noqa: E501
|
|
810
|
+
|
|
811
|
+
query_params = []
|
|
812
|
+
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
813
|
+
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
814
|
+
collection_formats['fields'] = 'multi' # noqa: E501
|
|
815
|
+
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
|
816
|
+
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
|
817
|
+
collection_formats['exclude_fields'] = 'multi' # noqa: E501
|
|
818
|
+
|
|
819
|
+
header_params = {}
|
|
820
|
+
|
|
821
|
+
form_params = []
|
|
822
|
+
local_var_files = {}
|
|
823
|
+
|
|
824
|
+
body_params = None
|
|
825
|
+
# HTTP header `Accept`
|
|
826
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
827
|
+
['application/json']) # noqa: E501
|
|
828
|
+
|
|
829
|
+
# Authentication setting
|
|
830
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
831
|
+
|
|
832
|
+
return self.api_client.call_api(
|
|
833
|
+
'{python_python_publication_href}my_permissions/', 'GET',
|
|
834
|
+
path_params,
|
|
835
|
+
query_params,
|
|
836
|
+
header_params,
|
|
837
|
+
body=body_params,
|
|
838
|
+
post_params=form_params,
|
|
839
|
+
files=local_var_files,
|
|
840
|
+
response_type='MyPermissionsResponse', # noqa: E501
|
|
841
|
+
auth_settings=auth_settings,
|
|
842
|
+
async_req=local_var_params.get('async_req'),
|
|
843
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
844
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
845
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
846
|
+
collection_formats=collection_formats)
|
|
847
|
+
|
|
469
848
|
def read(self, python_python_publication_href, **kwargs): # noqa: E501
|
|
470
849
|
"""Inspect a python publication # noqa: E501
|
|
471
850
|
|
|
@@ -591,3 +970,130 @@ class PublicationsPypiApi(object):
|
|
|
591
970
|
_preload_content=local_var_params.get('_preload_content', True),
|
|
592
971
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
593
972
|
collection_formats=collection_formats)
|
|
973
|
+
|
|
974
|
+
def remove_role(self, python_python_publication_href, nested_role, **kwargs): # noqa: E501
|
|
975
|
+
"""Remove a role # noqa: E501
|
|
976
|
+
|
|
977
|
+
Remove a role for this object from users/groups. # noqa: E501
|
|
978
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
979
|
+
asynchronous HTTP request, please pass async_req=True
|
|
980
|
+
>>> thread = api.remove_role(python_python_publication_href, nested_role, async_req=True)
|
|
981
|
+
>>> result = thread.get()
|
|
982
|
+
|
|
983
|
+
:param async_req bool: execute request asynchronously
|
|
984
|
+
:param str python_python_publication_href: (required)
|
|
985
|
+
:param NestedRole nested_role: (required)
|
|
986
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
987
|
+
be returned without reading/decoding response
|
|
988
|
+
data. Default is True.
|
|
989
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
990
|
+
number provided, it will be total request
|
|
991
|
+
timeout. It can also be a pair (tuple) of
|
|
992
|
+
(connection, read) timeouts.
|
|
993
|
+
:return: NestedRoleResponse
|
|
994
|
+
If the method is called asynchronously,
|
|
995
|
+
returns the request thread.
|
|
996
|
+
"""
|
|
997
|
+
kwargs['_return_http_data_only'] = True
|
|
998
|
+
return self.remove_role_with_http_info(python_python_publication_href, nested_role, **kwargs) # noqa: E501
|
|
999
|
+
|
|
1000
|
+
def remove_role_with_http_info(self, python_python_publication_href, nested_role, **kwargs): # noqa: E501
|
|
1001
|
+
"""Remove a role # noqa: E501
|
|
1002
|
+
|
|
1003
|
+
Remove a role for this object from users/groups. # noqa: E501
|
|
1004
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1005
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1006
|
+
>>> thread = api.remove_role_with_http_info(python_python_publication_href, nested_role, async_req=True)
|
|
1007
|
+
>>> result = thread.get()
|
|
1008
|
+
|
|
1009
|
+
:param async_req bool: execute request asynchronously
|
|
1010
|
+
:param str python_python_publication_href: (required)
|
|
1011
|
+
:param NestedRole nested_role: (required)
|
|
1012
|
+
:param _return_http_data_only: response data without head status code
|
|
1013
|
+
and headers
|
|
1014
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1015
|
+
be returned without reading/decoding response
|
|
1016
|
+
data. Default is True.
|
|
1017
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1018
|
+
number provided, it will be total request
|
|
1019
|
+
timeout. It can also be a pair (tuple) of
|
|
1020
|
+
(connection, read) timeouts.
|
|
1021
|
+
:return: tuple(NestedRoleResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1022
|
+
If the method is called asynchronously,
|
|
1023
|
+
returns the request thread.
|
|
1024
|
+
"""
|
|
1025
|
+
|
|
1026
|
+
local_var_params = locals()
|
|
1027
|
+
|
|
1028
|
+
all_params = [
|
|
1029
|
+
'python_python_publication_href',
|
|
1030
|
+
'nested_role'
|
|
1031
|
+
]
|
|
1032
|
+
all_params.extend(
|
|
1033
|
+
[
|
|
1034
|
+
'async_req',
|
|
1035
|
+
'_return_http_data_only',
|
|
1036
|
+
'_preload_content',
|
|
1037
|
+
'_request_timeout'
|
|
1038
|
+
]
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1042
|
+
if key not in all_params:
|
|
1043
|
+
raise ApiTypeError(
|
|
1044
|
+
"Got an unexpected keyword argument '%s'"
|
|
1045
|
+
" to method remove_role" % key
|
|
1046
|
+
)
|
|
1047
|
+
local_var_params[key] = val
|
|
1048
|
+
del local_var_params['kwargs']
|
|
1049
|
+
# verify the required parameter 'python_python_publication_href' is set
|
|
1050
|
+
if self.api_client.client_side_validation and ('python_python_publication_href' not in local_var_params or # noqa: E501
|
|
1051
|
+
local_var_params['python_python_publication_href'] is None): # noqa: E501
|
|
1052
|
+
raise ApiValueError("Missing the required parameter `python_python_publication_href` when calling `remove_role`") # noqa: E501
|
|
1053
|
+
# verify the required parameter 'nested_role' is set
|
|
1054
|
+
if self.api_client.client_side_validation and ('nested_role' not in local_var_params or # noqa: E501
|
|
1055
|
+
local_var_params['nested_role'] is None): # noqa: E501
|
|
1056
|
+
raise ApiValueError("Missing the required parameter `nested_role` when calling `remove_role`") # noqa: E501
|
|
1057
|
+
|
|
1058
|
+
collection_formats = {}
|
|
1059
|
+
|
|
1060
|
+
path_params = {}
|
|
1061
|
+
if 'python_python_publication_href' in local_var_params:
|
|
1062
|
+
path_params['python_python_publication_href'] = local_var_params['python_python_publication_href'] # noqa: E501
|
|
1063
|
+
|
|
1064
|
+
query_params = []
|
|
1065
|
+
|
|
1066
|
+
header_params = {}
|
|
1067
|
+
|
|
1068
|
+
form_params = []
|
|
1069
|
+
local_var_files = {}
|
|
1070
|
+
|
|
1071
|
+
body_params = None
|
|
1072
|
+
if 'nested_role' in local_var_params:
|
|
1073
|
+
body_params = local_var_params['nested_role']
|
|
1074
|
+
# HTTP header `Accept`
|
|
1075
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1076
|
+
['application/json']) # noqa: E501
|
|
1077
|
+
|
|
1078
|
+
# HTTP header `Content-Type`
|
|
1079
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1080
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
1081
|
+
|
|
1082
|
+
# Authentication setting
|
|
1083
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1084
|
+
|
|
1085
|
+
return self.api_client.call_api(
|
|
1086
|
+
'{python_python_publication_href}remove_role/', 'POST',
|
|
1087
|
+
path_params,
|
|
1088
|
+
query_params,
|
|
1089
|
+
header_params,
|
|
1090
|
+
body=body_params,
|
|
1091
|
+
post_params=form_params,
|
|
1092
|
+
files=local_var_files,
|
|
1093
|
+
response_type='NestedRoleResponse', # noqa: E501
|
|
1094
|
+
auth_settings=auth_settings,
|
|
1095
|
+
async_req=local_var_params.get('async_req'),
|
|
1096
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1097
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1098
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1099
|
+
collection_formats=collection_formats)
|
|
@@ -145,7 +145,7 @@ class PypiApi(object):
|
|
|
145
145
|
['application/json']) # noqa: E501
|
|
146
146
|
|
|
147
147
|
# Authentication setting
|
|
148
|
-
auth_settings = [] # noqa: E501
|
|
148
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
149
149
|
|
|
150
150
|
return self.api_client.call_api(
|
|
151
151
|
'/pypi/{path}/', 'GET',
|
|
@@ -154,7 +154,7 @@ class PypiMetadataApi(object):
|
|
|
154
154
|
['application/json']) # noqa: E501
|
|
155
155
|
|
|
156
156
|
# Authentication setting
|
|
157
|
-
auth_settings = [] # noqa: E501
|
|
157
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
158
158
|
|
|
159
159
|
return self.api_client.call_api(
|
|
160
160
|
'/pypi/{path}/pypi/{meta}/', 'GET',
|