pulp-python-client 3.11.2__py3-none-any.whl → 3.12.0__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.2.dist-info → pulp_python_client-3.12.0.dist-info}/METADATA +1 -1
- {pulp_python_client-3.11.2.dist-info → pulp_python_client-3.12.0.dist-info}/RECORD +19 -15
- 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 +1 -1
- 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
- {pulp_python_client-3.11.2.dist-info → pulp_python_client-3.12.0.dist-info}/WHEEL +0 -0
- {pulp_python_client-3.11.2.dist-info → pulp_python_client-3.12.0.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,133 @@ class RemotesPythonApi(object):
|
|
|
37
37
|
api_client = ApiClient()
|
|
38
38
|
self.api_client = api_client
|
|
39
39
|
|
|
40
|
+
def add_role(self, python_python_remote_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_remote_href, nested_role, async_req=True)
|
|
47
|
+
>>> result = thread.get()
|
|
48
|
+
|
|
49
|
+
:param async_req bool: execute request asynchronously
|
|
50
|
+
:param str python_python_remote_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_remote_href, nested_role, **kwargs) # noqa: E501
|
|
65
|
+
|
|
66
|
+
def add_role_with_http_info(self, python_python_remote_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_remote_href, nested_role, async_req=True)
|
|
73
|
+
>>> result = thread.get()
|
|
74
|
+
|
|
75
|
+
:param async_req bool: execute request asynchronously
|
|
76
|
+
:param str python_python_remote_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_remote_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_remote_href' is set
|
|
116
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
117
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
118
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_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_remote_href' in local_var_params:
|
|
128
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_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_remote_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_remote, **kwargs): # noqa: E501
|
|
41
168
|
"""Create a python remote # noqa: E501
|
|
42
169
|
|
|
@@ -636,6 +763,258 @@ class RemotesPythonApi(object):
|
|
|
636
763
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
637
764
|
collection_formats=collection_formats)
|
|
638
765
|
|
|
766
|
+
def list_roles(self, python_python_remote_href, **kwargs): # noqa: E501
|
|
767
|
+
"""List roles # noqa: E501
|
|
768
|
+
|
|
769
|
+
List roles assigned to this object. # noqa: E501
|
|
770
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
771
|
+
asynchronous HTTP request, please pass async_req=True
|
|
772
|
+
>>> thread = api.list_roles(python_python_remote_href, async_req=True)
|
|
773
|
+
>>> result = thread.get()
|
|
774
|
+
|
|
775
|
+
:param async_req bool: execute request asynchronously
|
|
776
|
+
:param str python_python_remote_href: (required)
|
|
777
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
778
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
779
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
780
|
+
be returned without reading/decoding response
|
|
781
|
+
data. Default is True.
|
|
782
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
783
|
+
number provided, it will be total request
|
|
784
|
+
timeout. It can also be a pair (tuple) of
|
|
785
|
+
(connection, read) timeouts.
|
|
786
|
+
:return: ObjectRolesResponse
|
|
787
|
+
If the method is called asynchronously,
|
|
788
|
+
returns the request thread.
|
|
789
|
+
"""
|
|
790
|
+
kwargs['_return_http_data_only'] = True
|
|
791
|
+
return self.list_roles_with_http_info(python_python_remote_href, **kwargs) # noqa: E501
|
|
792
|
+
|
|
793
|
+
def list_roles_with_http_info(self, python_python_remote_href, **kwargs): # noqa: E501
|
|
794
|
+
"""List roles # noqa: E501
|
|
795
|
+
|
|
796
|
+
List roles assigned to this object. # noqa: E501
|
|
797
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
798
|
+
asynchronous HTTP request, please pass async_req=True
|
|
799
|
+
>>> thread = api.list_roles_with_http_info(python_python_remote_href, async_req=True)
|
|
800
|
+
>>> result = thread.get()
|
|
801
|
+
|
|
802
|
+
:param async_req bool: execute request asynchronously
|
|
803
|
+
:param str python_python_remote_href: (required)
|
|
804
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
805
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
806
|
+
:param _return_http_data_only: response data without head status code
|
|
807
|
+
and headers
|
|
808
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
809
|
+
be returned without reading/decoding response
|
|
810
|
+
data. Default is True.
|
|
811
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
812
|
+
number provided, it will be total request
|
|
813
|
+
timeout. It can also be a pair (tuple) of
|
|
814
|
+
(connection, read) timeouts.
|
|
815
|
+
:return: tuple(ObjectRolesResponse, status_code(int), headers(HTTPHeaderDict))
|
|
816
|
+
If the method is called asynchronously,
|
|
817
|
+
returns the request thread.
|
|
818
|
+
"""
|
|
819
|
+
|
|
820
|
+
local_var_params = locals()
|
|
821
|
+
|
|
822
|
+
all_params = [
|
|
823
|
+
'python_python_remote_href',
|
|
824
|
+
'fields',
|
|
825
|
+
'exclude_fields'
|
|
826
|
+
]
|
|
827
|
+
all_params.extend(
|
|
828
|
+
[
|
|
829
|
+
'async_req',
|
|
830
|
+
'_return_http_data_only',
|
|
831
|
+
'_preload_content',
|
|
832
|
+
'_request_timeout'
|
|
833
|
+
]
|
|
834
|
+
)
|
|
835
|
+
|
|
836
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
837
|
+
if key not in all_params:
|
|
838
|
+
raise ApiTypeError(
|
|
839
|
+
"Got an unexpected keyword argument '%s'"
|
|
840
|
+
" to method list_roles" % key
|
|
841
|
+
)
|
|
842
|
+
local_var_params[key] = val
|
|
843
|
+
del local_var_params['kwargs']
|
|
844
|
+
# verify the required parameter 'python_python_remote_href' is set
|
|
845
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
846
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
847
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_href` when calling `list_roles`") # noqa: E501
|
|
848
|
+
|
|
849
|
+
collection_formats = {}
|
|
850
|
+
|
|
851
|
+
path_params = {}
|
|
852
|
+
if 'python_python_remote_href' in local_var_params:
|
|
853
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_href'] # noqa: E501
|
|
854
|
+
|
|
855
|
+
query_params = []
|
|
856
|
+
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
857
|
+
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
858
|
+
collection_formats['fields'] = 'multi' # noqa: E501
|
|
859
|
+
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
|
860
|
+
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
|
861
|
+
collection_formats['exclude_fields'] = 'multi' # noqa: E501
|
|
862
|
+
|
|
863
|
+
header_params = {}
|
|
864
|
+
|
|
865
|
+
form_params = []
|
|
866
|
+
local_var_files = {}
|
|
867
|
+
|
|
868
|
+
body_params = None
|
|
869
|
+
# HTTP header `Accept`
|
|
870
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
871
|
+
['application/json']) # noqa: E501
|
|
872
|
+
|
|
873
|
+
# Authentication setting
|
|
874
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
875
|
+
|
|
876
|
+
return self.api_client.call_api(
|
|
877
|
+
'{python_python_remote_href}list_roles/', 'GET',
|
|
878
|
+
path_params,
|
|
879
|
+
query_params,
|
|
880
|
+
header_params,
|
|
881
|
+
body=body_params,
|
|
882
|
+
post_params=form_params,
|
|
883
|
+
files=local_var_files,
|
|
884
|
+
response_type='ObjectRolesResponse', # noqa: E501
|
|
885
|
+
auth_settings=auth_settings,
|
|
886
|
+
async_req=local_var_params.get('async_req'),
|
|
887
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
888
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
889
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
890
|
+
collection_formats=collection_formats)
|
|
891
|
+
|
|
892
|
+
def my_permissions(self, python_python_remote_href, **kwargs): # noqa: E501
|
|
893
|
+
"""List user permissions # noqa: E501
|
|
894
|
+
|
|
895
|
+
List permissions available to the current user on this object. # noqa: E501
|
|
896
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
897
|
+
asynchronous HTTP request, please pass async_req=True
|
|
898
|
+
>>> thread = api.my_permissions(python_python_remote_href, async_req=True)
|
|
899
|
+
>>> result = thread.get()
|
|
900
|
+
|
|
901
|
+
:param async_req bool: execute request asynchronously
|
|
902
|
+
:param str python_python_remote_href: (required)
|
|
903
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
904
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
905
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
906
|
+
be returned without reading/decoding response
|
|
907
|
+
data. Default is True.
|
|
908
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
909
|
+
number provided, it will be total request
|
|
910
|
+
timeout. It can also be a pair (tuple) of
|
|
911
|
+
(connection, read) timeouts.
|
|
912
|
+
:return: MyPermissionsResponse
|
|
913
|
+
If the method is called asynchronously,
|
|
914
|
+
returns the request thread.
|
|
915
|
+
"""
|
|
916
|
+
kwargs['_return_http_data_only'] = True
|
|
917
|
+
return self.my_permissions_with_http_info(python_python_remote_href, **kwargs) # noqa: E501
|
|
918
|
+
|
|
919
|
+
def my_permissions_with_http_info(self, python_python_remote_href, **kwargs): # noqa: E501
|
|
920
|
+
"""List user permissions # noqa: E501
|
|
921
|
+
|
|
922
|
+
List permissions available to the current user on this object. # noqa: E501
|
|
923
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
924
|
+
asynchronous HTTP request, please pass async_req=True
|
|
925
|
+
>>> thread = api.my_permissions_with_http_info(python_python_remote_href, async_req=True)
|
|
926
|
+
>>> result = thread.get()
|
|
927
|
+
|
|
928
|
+
:param async_req bool: execute request asynchronously
|
|
929
|
+
:param str python_python_remote_href: (required)
|
|
930
|
+
:param list[str] fields: A list of fields to include in the response.
|
|
931
|
+
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
932
|
+
:param _return_http_data_only: response data without head status code
|
|
933
|
+
and headers
|
|
934
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
935
|
+
be returned without reading/decoding response
|
|
936
|
+
data. Default is True.
|
|
937
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
938
|
+
number provided, it will be total request
|
|
939
|
+
timeout. It can also be a pair (tuple) of
|
|
940
|
+
(connection, read) timeouts.
|
|
941
|
+
:return: tuple(MyPermissionsResponse, status_code(int), headers(HTTPHeaderDict))
|
|
942
|
+
If the method is called asynchronously,
|
|
943
|
+
returns the request thread.
|
|
944
|
+
"""
|
|
945
|
+
|
|
946
|
+
local_var_params = locals()
|
|
947
|
+
|
|
948
|
+
all_params = [
|
|
949
|
+
'python_python_remote_href',
|
|
950
|
+
'fields',
|
|
951
|
+
'exclude_fields'
|
|
952
|
+
]
|
|
953
|
+
all_params.extend(
|
|
954
|
+
[
|
|
955
|
+
'async_req',
|
|
956
|
+
'_return_http_data_only',
|
|
957
|
+
'_preload_content',
|
|
958
|
+
'_request_timeout'
|
|
959
|
+
]
|
|
960
|
+
)
|
|
961
|
+
|
|
962
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
963
|
+
if key not in all_params:
|
|
964
|
+
raise ApiTypeError(
|
|
965
|
+
"Got an unexpected keyword argument '%s'"
|
|
966
|
+
" to method my_permissions" % key
|
|
967
|
+
)
|
|
968
|
+
local_var_params[key] = val
|
|
969
|
+
del local_var_params['kwargs']
|
|
970
|
+
# verify the required parameter 'python_python_remote_href' is set
|
|
971
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
972
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
973
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_href` when calling `my_permissions`") # noqa: E501
|
|
974
|
+
|
|
975
|
+
collection_formats = {}
|
|
976
|
+
|
|
977
|
+
path_params = {}
|
|
978
|
+
if 'python_python_remote_href' in local_var_params:
|
|
979
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_href'] # noqa: E501
|
|
980
|
+
|
|
981
|
+
query_params = []
|
|
982
|
+
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
983
|
+
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
984
|
+
collection_formats['fields'] = 'multi' # noqa: E501
|
|
985
|
+
if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
|
|
986
|
+
query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
|
|
987
|
+
collection_formats['exclude_fields'] = 'multi' # noqa: E501
|
|
988
|
+
|
|
989
|
+
header_params = {}
|
|
990
|
+
|
|
991
|
+
form_params = []
|
|
992
|
+
local_var_files = {}
|
|
993
|
+
|
|
994
|
+
body_params = None
|
|
995
|
+
# HTTP header `Accept`
|
|
996
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
997
|
+
['application/json']) # noqa: E501
|
|
998
|
+
|
|
999
|
+
# Authentication setting
|
|
1000
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1001
|
+
|
|
1002
|
+
return self.api_client.call_api(
|
|
1003
|
+
'{python_python_remote_href}my_permissions/', 'GET',
|
|
1004
|
+
path_params,
|
|
1005
|
+
query_params,
|
|
1006
|
+
header_params,
|
|
1007
|
+
body=body_params,
|
|
1008
|
+
post_params=form_params,
|
|
1009
|
+
files=local_var_files,
|
|
1010
|
+
response_type='MyPermissionsResponse', # noqa: E501
|
|
1011
|
+
auth_settings=auth_settings,
|
|
1012
|
+
async_req=local_var_params.get('async_req'),
|
|
1013
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1014
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1015
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1016
|
+
collection_formats=collection_formats)
|
|
1017
|
+
|
|
639
1018
|
def partial_update(self, python_python_remote_href, patchedpython_python_remote, **kwargs): # noqa: E501
|
|
640
1019
|
"""Update a python remote # noqa: E501
|
|
641
1020
|
|
|
@@ -889,6 +1268,133 @@ class RemotesPythonApi(object):
|
|
|
889
1268
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
890
1269
|
collection_formats=collection_formats)
|
|
891
1270
|
|
|
1271
|
+
def remove_role(self, python_python_remote_href, nested_role, **kwargs): # noqa: E501
|
|
1272
|
+
"""Remove a role # noqa: E501
|
|
1273
|
+
|
|
1274
|
+
Remove a role for this object from users/groups. # noqa: E501
|
|
1275
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1276
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1277
|
+
>>> thread = api.remove_role(python_python_remote_href, nested_role, async_req=True)
|
|
1278
|
+
>>> result = thread.get()
|
|
1279
|
+
|
|
1280
|
+
:param async_req bool: execute request asynchronously
|
|
1281
|
+
:param str python_python_remote_href: (required)
|
|
1282
|
+
:param NestedRole nested_role: (required)
|
|
1283
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1284
|
+
be returned without reading/decoding response
|
|
1285
|
+
data. Default is True.
|
|
1286
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1287
|
+
number provided, it will be total request
|
|
1288
|
+
timeout. It can also be a pair (tuple) of
|
|
1289
|
+
(connection, read) timeouts.
|
|
1290
|
+
:return: NestedRoleResponse
|
|
1291
|
+
If the method is called asynchronously,
|
|
1292
|
+
returns the request thread.
|
|
1293
|
+
"""
|
|
1294
|
+
kwargs['_return_http_data_only'] = True
|
|
1295
|
+
return self.remove_role_with_http_info(python_python_remote_href, nested_role, **kwargs) # noqa: E501
|
|
1296
|
+
|
|
1297
|
+
def remove_role_with_http_info(self, python_python_remote_href, nested_role, **kwargs): # noqa: E501
|
|
1298
|
+
"""Remove a role # noqa: E501
|
|
1299
|
+
|
|
1300
|
+
Remove a role for this object from users/groups. # noqa: E501
|
|
1301
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1302
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1303
|
+
>>> thread = api.remove_role_with_http_info(python_python_remote_href, nested_role, async_req=True)
|
|
1304
|
+
>>> result = thread.get()
|
|
1305
|
+
|
|
1306
|
+
:param async_req bool: execute request asynchronously
|
|
1307
|
+
:param str python_python_remote_href: (required)
|
|
1308
|
+
:param NestedRole nested_role: (required)
|
|
1309
|
+
:param _return_http_data_only: response data without head status code
|
|
1310
|
+
and headers
|
|
1311
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1312
|
+
be returned without reading/decoding response
|
|
1313
|
+
data. Default is True.
|
|
1314
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1315
|
+
number provided, it will be total request
|
|
1316
|
+
timeout. It can also be a pair (tuple) of
|
|
1317
|
+
(connection, read) timeouts.
|
|
1318
|
+
:return: tuple(NestedRoleResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1319
|
+
If the method is called asynchronously,
|
|
1320
|
+
returns the request thread.
|
|
1321
|
+
"""
|
|
1322
|
+
|
|
1323
|
+
local_var_params = locals()
|
|
1324
|
+
|
|
1325
|
+
all_params = [
|
|
1326
|
+
'python_python_remote_href',
|
|
1327
|
+
'nested_role'
|
|
1328
|
+
]
|
|
1329
|
+
all_params.extend(
|
|
1330
|
+
[
|
|
1331
|
+
'async_req',
|
|
1332
|
+
'_return_http_data_only',
|
|
1333
|
+
'_preload_content',
|
|
1334
|
+
'_request_timeout'
|
|
1335
|
+
]
|
|
1336
|
+
)
|
|
1337
|
+
|
|
1338
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1339
|
+
if key not in all_params:
|
|
1340
|
+
raise ApiTypeError(
|
|
1341
|
+
"Got an unexpected keyword argument '%s'"
|
|
1342
|
+
" to method remove_role" % key
|
|
1343
|
+
)
|
|
1344
|
+
local_var_params[key] = val
|
|
1345
|
+
del local_var_params['kwargs']
|
|
1346
|
+
# verify the required parameter 'python_python_remote_href' is set
|
|
1347
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
1348
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
1349
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_href` when calling `remove_role`") # noqa: E501
|
|
1350
|
+
# verify the required parameter 'nested_role' is set
|
|
1351
|
+
if self.api_client.client_side_validation and ('nested_role' not in local_var_params or # noqa: E501
|
|
1352
|
+
local_var_params['nested_role'] is None): # noqa: E501
|
|
1353
|
+
raise ApiValueError("Missing the required parameter `nested_role` when calling `remove_role`") # noqa: E501
|
|
1354
|
+
|
|
1355
|
+
collection_formats = {}
|
|
1356
|
+
|
|
1357
|
+
path_params = {}
|
|
1358
|
+
if 'python_python_remote_href' in local_var_params:
|
|
1359
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_href'] # noqa: E501
|
|
1360
|
+
|
|
1361
|
+
query_params = []
|
|
1362
|
+
|
|
1363
|
+
header_params = {}
|
|
1364
|
+
|
|
1365
|
+
form_params = []
|
|
1366
|
+
local_var_files = {}
|
|
1367
|
+
|
|
1368
|
+
body_params = None
|
|
1369
|
+
if 'nested_role' in local_var_params:
|
|
1370
|
+
body_params = local_var_params['nested_role']
|
|
1371
|
+
# HTTP header `Accept`
|
|
1372
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1373
|
+
['application/json']) # noqa: E501
|
|
1374
|
+
|
|
1375
|
+
# HTTP header `Content-Type`
|
|
1376
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1377
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
1378
|
+
|
|
1379
|
+
# Authentication setting
|
|
1380
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1381
|
+
|
|
1382
|
+
return self.api_client.call_api(
|
|
1383
|
+
'{python_python_remote_href}remove_role/', 'POST',
|
|
1384
|
+
path_params,
|
|
1385
|
+
query_params,
|
|
1386
|
+
header_params,
|
|
1387
|
+
body=body_params,
|
|
1388
|
+
post_params=form_params,
|
|
1389
|
+
files=local_var_files,
|
|
1390
|
+
response_type='NestedRoleResponse', # noqa: E501
|
|
1391
|
+
auth_settings=auth_settings,
|
|
1392
|
+
async_req=local_var_params.get('async_req'),
|
|
1393
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1394
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1395
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1396
|
+
collection_formats=collection_formats)
|
|
1397
|
+
|
|
892
1398
|
def set_label(self, python_python_remote_href, set_label, **kwargs): # noqa: E501
|
|
893
1399
|
"""Set a label # noqa: E501
|
|
894
1400
|
|