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
@@ -37,6 +37,133 @@ class RepositoriesPythonApi(object):
37
37
  api_client = ApiClient()
38
38
  self.api_client = api_client
39
39
 
40
+ def add_role(self, python_python_repository_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_repository_href, nested_role, async_req=True)
47
+ >>> result = thread.get()
48
+
49
+ :param async_req bool: execute request asynchronously
50
+ :param str python_python_repository_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_repository_href, nested_role, **kwargs) # noqa: E501
65
+
66
+ def add_role_with_http_info(self, python_python_repository_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_repository_href, nested_role, async_req=True)
73
+ >>> result = thread.get()
74
+
75
+ :param async_req bool: execute request asynchronously
76
+ :param str python_python_repository_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_repository_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_repository_href' is set
116
+ if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
117
+ local_var_params['python_python_repository_href'] is None): # noqa: E501
118
+ raise ApiValueError("Missing the required parameter `python_python_repository_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_repository_href' in local_var_params:
128
+ path_params['python_python_repository_href'] = local_var_params['python_python_repository_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_repository_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_repository, **kwargs): # noqa: E501
41
168
  """Create a python repository # noqa: E501
42
169
 
@@ -526,6 +653,132 @@ class RepositoriesPythonApi(object):
526
653
  _request_timeout=local_var_params.get('_request_timeout'),
527
654
  collection_formats=collection_formats)
528
655
 
656
+ def list_roles(self, python_python_repository_href, **kwargs): # noqa: E501
657
+ """List roles # noqa: E501
658
+
659
+ List roles assigned to this object. # noqa: E501
660
+ This method makes a synchronous HTTP request by default. To make an
661
+ asynchronous HTTP request, please pass async_req=True
662
+ >>> thread = api.list_roles(python_python_repository_href, async_req=True)
663
+ >>> result = thread.get()
664
+
665
+ :param async_req bool: execute request asynchronously
666
+ :param str python_python_repository_href: (required)
667
+ :param list[str] fields: A list of fields to include in the response.
668
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
669
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
670
+ be returned without reading/decoding response
671
+ data. Default is True.
672
+ :param _request_timeout: timeout setting for this request. If one
673
+ number provided, it will be total request
674
+ timeout. It can also be a pair (tuple) of
675
+ (connection, read) timeouts.
676
+ :return: ObjectRolesResponse
677
+ If the method is called asynchronously,
678
+ returns the request thread.
679
+ """
680
+ kwargs['_return_http_data_only'] = True
681
+ return self.list_roles_with_http_info(python_python_repository_href, **kwargs) # noqa: E501
682
+
683
+ def list_roles_with_http_info(self, python_python_repository_href, **kwargs): # noqa: E501
684
+ """List roles # noqa: E501
685
+
686
+ List roles assigned to this object. # noqa: E501
687
+ This method makes a synchronous HTTP request by default. To make an
688
+ asynchronous HTTP request, please pass async_req=True
689
+ >>> thread = api.list_roles_with_http_info(python_python_repository_href, async_req=True)
690
+ >>> result = thread.get()
691
+
692
+ :param async_req bool: execute request asynchronously
693
+ :param str python_python_repository_href: (required)
694
+ :param list[str] fields: A list of fields to include in the response.
695
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
696
+ :param _return_http_data_only: response data without head status code
697
+ and headers
698
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
699
+ be returned without reading/decoding response
700
+ data. Default is True.
701
+ :param _request_timeout: timeout setting for this request. If one
702
+ number provided, it will be total request
703
+ timeout. It can also be a pair (tuple) of
704
+ (connection, read) timeouts.
705
+ :return: tuple(ObjectRolesResponse, status_code(int), headers(HTTPHeaderDict))
706
+ If the method is called asynchronously,
707
+ returns the request thread.
708
+ """
709
+
710
+ local_var_params = locals()
711
+
712
+ all_params = [
713
+ 'python_python_repository_href',
714
+ 'fields',
715
+ 'exclude_fields'
716
+ ]
717
+ all_params.extend(
718
+ [
719
+ 'async_req',
720
+ '_return_http_data_only',
721
+ '_preload_content',
722
+ '_request_timeout'
723
+ ]
724
+ )
725
+
726
+ for key, val in six.iteritems(local_var_params['kwargs']):
727
+ if key not in all_params:
728
+ raise ApiTypeError(
729
+ "Got an unexpected keyword argument '%s'"
730
+ " to method list_roles" % key
731
+ )
732
+ local_var_params[key] = val
733
+ del local_var_params['kwargs']
734
+ # verify the required parameter 'python_python_repository_href' is set
735
+ if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
736
+ local_var_params['python_python_repository_href'] is None): # noqa: E501
737
+ raise ApiValueError("Missing the required parameter `python_python_repository_href` when calling `list_roles`") # noqa: E501
738
+
739
+ collection_formats = {}
740
+
741
+ path_params = {}
742
+ if 'python_python_repository_href' in local_var_params:
743
+ path_params['python_python_repository_href'] = local_var_params['python_python_repository_href'] # noqa: E501
744
+
745
+ query_params = []
746
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
747
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
748
+ collection_formats['fields'] = 'multi' # noqa: E501
749
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
750
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
751
+ collection_formats['exclude_fields'] = 'multi' # noqa: E501
752
+
753
+ header_params = {}
754
+
755
+ form_params = []
756
+ local_var_files = {}
757
+
758
+ body_params = None
759
+ # HTTP header `Accept`
760
+ header_params['Accept'] = self.api_client.select_header_accept(
761
+ ['application/json']) # noqa: E501
762
+
763
+ # Authentication setting
764
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
765
+
766
+ return self.api_client.call_api(
767
+ '{python_python_repository_href}list_roles/', 'GET',
768
+ path_params,
769
+ query_params,
770
+ header_params,
771
+ body=body_params,
772
+ post_params=form_params,
773
+ files=local_var_files,
774
+ response_type='ObjectRolesResponse', # noqa: E501
775
+ auth_settings=auth_settings,
776
+ async_req=local_var_params.get('async_req'),
777
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
778
+ _preload_content=local_var_params.get('_preload_content', True),
779
+ _request_timeout=local_var_params.get('_request_timeout'),
780
+ collection_formats=collection_formats)
781
+
529
782
  def modify(self, python_python_repository_href, repository_add_remove_content, **kwargs): # noqa: E501
530
783
  """Modify Repository Content # noqa: E501
531
784
 
@@ -653,6 +906,132 @@ class RepositoriesPythonApi(object):
653
906
  _request_timeout=local_var_params.get('_request_timeout'),
654
907
  collection_formats=collection_formats)
655
908
 
909
+ def my_permissions(self, python_python_repository_href, **kwargs): # noqa: E501
910
+ """List user permissions # noqa: E501
911
+
912
+ List permissions available to the current user on this object. # noqa: E501
913
+ This method makes a synchronous HTTP request by default. To make an
914
+ asynchronous HTTP request, please pass async_req=True
915
+ >>> thread = api.my_permissions(python_python_repository_href, async_req=True)
916
+ >>> result = thread.get()
917
+
918
+ :param async_req bool: execute request asynchronously
919
+ :param str python_python_repository_href: (required)
920
+ :param list[str] fields: A list of fields to include in the response.
921
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
922
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
923
+ be returned without reading/decoding response
924
+ data. Default is True.
925
+ :param _request_timeout: timeout setting for this request. If one
926
+ number provided, it will be total request
927
+ timeout. It can also be a pair (tuple) of
928
+ (connection, read) timeouts.
929
+ :return: MyPermissionsResponse
930
+ If the method is called asynchronously,
931
+ returns the request thread.
932
+ """
933
+ kwargs['_return_http_data_only'] = True
934
+ return self.my_permissions_with_http_info(python_python_repository_href, **kwargs) # noqa: E501
935
+
936
+ def my_permissions_with_http_info(self, python_python_repository_href, **kwargs): # noqa: E501
937
+ """List user permissions # noqa: E501
938
+
939
+ List permissions available to the current user on this object. # noqa: E501
940
+ This method makes a synchronous HTTP request by default. To make an
941
+ asynchronous HTTP request, please pass async_req=True
942
+ >>> thread = api.my_permissions_with_http_info(python_python_repository_href, async_req=True)
943
+ >>> result = thread.get()
944
+
945
+ :param async_req bool: execute request asynchronously
946
+ :param str python_python_repository_href: (required)
947
+ :param list[str] fields: A list of fields to include in the response.
948
+ :param list[str] exclude_fields: A list of fields to exclude from the response.
949
+ :param _return_http_data_only: response data without head status code
950
+ and headers
951
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
952
+ be returned without reading/decoding response
953
+ data. Default is True.
954
+ :param _request_timeout: timeout setting for this request. If one
955
+ number provided, it will be total request
956
+ timeout. It can also be a pair (tuple) of
957
+ (connection, read) timeouts.
958
+ :return: tuple(MyPermissionsResponse, status_code(int), headers(HTTPHeaderDict))
959
+ If the method is called asynchronously,
960
+ returns the request thread.
961
+ """
962
+
963
+ local_var_params = locals()
964
+
965
+ all_params = [
966
+ 'python_python_repository_href',
967
+ 'fields',
968
+ 'exclude_fields'
969
+ ]
970
+ all_params.extend(
971
+ [
972
+ 'async_req',
973
+ '_return_http_data_only',
974
+ '_preload_content',
975
+ '_request_timeout'
976
+ ]
977
+ )
978
+
979
+ for key, val in six.iteritems(local_var_params['kwargs']):
980
+ if key not in all_params:
981
+ raise ApiTypeError(
982
+ "Got an unexpected keyword argument '%s'"
983
+ " to method my_permissions" % key
984
+ )
985
+ local_var_params[key] = val
986
+ del local_var_params['kwargs']
987
+ # verify the required parameter 'python_python_repository_href' is set
988
+ if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
989
+ local_var_params['python_python_repository_href'] is None): # noqa: E501
990
+ raise ApiValueError("Missing the required parameter `python_python_repository_href` when calling `my_permissions`") # noqa: E501
991
+
992
+ collection_formats = {}
993
+
994
+ path_params = {}
995
+ if 'python_python_repository_href' in local_var_params:
996
+ path_params['python_python_repository_href'] = local_var_params['python_python_repository_href'] # noqa: E501
997
+
998
+ query_params = []
999
+ if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
1000
+ query_params.append(('fields', local_var_params['fields'])) # noqa: E501
1001
+ collection_formats['fields'] = 'multi' # noqa: E501
1002
+ if 'exclude_fields' in local_var_params and local_var_params['exclude_fields'] is not None: # noqa: E501
1003
+ query_params.append(('exclude_fields', local_var_params['exclude_fields'])) # noqa: E501
1004
+ collection_formats['exclude_fields'] = 'multi' # noqa: E501
1005
+
1006
+ header_params = {}
1007
+
1008
+ form_params = []
1009
+ local_var_files = {}
1010
+
1011
+ body_params = None
1012
+ # HTTP header `Accept`
1013
+ header_params['Accept'] = self.api_client.select_header_accept(
1014
+ ['application/json']) # noqa: E501
1015
+
1016
+ # Authentication setting
1017
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
1018
+
1019
+ return self.api_client.call_api(
1020
+ '{python_python_repository_href}my_permissions/', 'GET',
1021
+ path_params,
1022
+ query_params,
1023
+ header_params,
1024
+ body=body_params,
1025
+ post_params=form_params,
1026
+ files=local_var_files,
1027
+ response_type='MyPermissionsResponse', # noqa: E501
1028
+ auth_settings=auth_settings,
1029
+ async_req=local_var_params.get('async_req'),
1030
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1031
+ _preload_content=local_var_params.get('_preload_content', True),
1032
+ _request_timeout=local_var_params.get('_request_timeout'),
1033
+ collection_formats=collection_formats)
1034
+
656
1035
  def partial_update(self, python_python_repository_href, patchedpython_python_repository, **kwargs): # noqa: E501
657
1036
  """Update a python repository # noqa: E501
658
1037
 
@@ -906,6 +1285,133 @@ class RepositoriesPythonApi(object):
906
1285
  _request_timeout=local_var_params.get('_request_timeout'),
907
1286
  collection_formats=collection_formats)
908
1287
 
1288
+ def remove_role(self, python_python_repository_href, nested_role, **kwargs): # noqa: E501
1289
+ """Remove a role # noqa: E501
1290
+
1291
+ Remove a role for this object from users/groups. # noqa: E501
1292
+ This method makes a synchronous HTTP request by default. To make an
1293
+ asynchronous HTTP request, please pass async_req=True
1294
+ >>> thread = api.remove_role(python_python_repository_href, nested_role, async_req=True)
1295
+ >>> result = thread.get()
1296
+
1297
+ :param async_req bool: execute request asynchronously
1298
+ :param str python_python_repository_href: (required)
1299
+ :param NestedRole nested_role: (required)
1300
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1301
+ be returned without reading/decoding response
1302
+ data. Default is True.
1303
+ :param _request_timeout: timeout setting for this request. If one
1304
+ number provided, it will be total request
1305
+ timeout. It can also be a pair (tuple) of
1306
+ (connection, read) timeouts.
1307
+ :return: NestedRoleResponse
1308
+ If the method is called asynchronously,
1309
+ returns the request thread.
1310
+ """
1311
+ kwargs['_return_http_data_only'] = True
1312
+ return self.remove_role_with_http_info(python_python_repository_href, nested_role, **kwargs) # noqa: E501
1313
+
1314
+ def remove_role_with_http_info(self, python_python_repository_href, nested_role, **kwargs): # noqa: E501
1315
+ """Remove a role # noqa: E501
1316
+
1317
+ Remove a role for this object from users/groups. # noqa: E501
1318
+ This method makes a synchronous HTTP request by default. To make an
1319
+ asynchronous HTTP request, please pass async_req=True
1320
+ >>> thread = api.remove_role_with_http_info(python_python_repository_href, nested_role, async_req=True)
1321
+ >>> result = thread.get()
1322
+
1323
+ :param async_req bool: execute request asynchronously
1324
+ :param str python_python_repository_href: (required)
1325
+ :param NestedRole nested_role: (required)
1326
+ :param _return_http_data_only: response data without head status code
1327
+ and headers
1328
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1329
+ be returned without reading/decoding response
1330
+ data. Default is True.
1331
+ :param _request_timeout: timeout setting for this request. If one
1332
+ number provided, it will be total request
1333
+ timeout. It can also be a pair (tuple) of
1334
+ (connection, read) timeouts.
1335
+ :return: tuple(NestedRoleResponse, status_code(int), headers(HTTPHeaderDict))
1336
+ If the method is called asynchronously,
1337
+ returns the request thread.
1338
+ """
1339
+
1340
+ local_var_params = locals()
1341
+
1342
+ all_params = [
1343
+ 'python_python_repository_href',
1344
+ 'nested_role'
1345
+ ]
1346
+ all_params.extend(
1347
+ [
1348
+ 'async_req',
1349
+ '_return_http_data_only',
1350
+ '_preload_content',
1351
+ '_request_timeout'
1352
+ ]
1353
+ )
1354
+
1355
+ for key, val in six.iteritems(local_var_params['kwargs']):
1356
+ if key not in all_params:
1357
+ raise ApiTypeError(
1358
+ "Got an unexpected keyword argument '%s'"
1359
+ " to method remove_role" % key
1360
+ )
1361
+ local_var_params[key] = val
1362
+ del local_var_params['kwargs']
1363
+ # verify the required parameter 'python_python_repository_href' is set
1364
+ if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
1365
+ local_var_params['python_python_repository_href'] is None): # noqa: E501
1366
+ raise ApiValueError("Missing the required parameter `python_python_repository_href` when calling `remove_role`") # noqa: E501
1367
+ # verify the required parameter 'nested_role' is set
1368
+ if self.api_client.client_side_validation and ('nested_role' not in local_var_params or # noqa: E501
1369
+ local_var_params['nested_role'] is None): # noqa: E501
1370
+ raise ApiValueError("Missing the required parameter `nested_role` when calling `remove_role`") # noqa: E501
1371
+
1372
+ collection_formats = {}
1373
+
1374
+ path_params = {}
1375
+ if 'python_python_repository_href' in local_var_params:
1376
+ path_params['python_python_repository_href'] = local_var_params['python_python_repository_href'] # noqa: E501
1377
+
1378
+ query_params = []
1379
+
1380
+ header_params = {}
1381
+
1382
+ form_params = []
1383
+ local_var_files = {}
1384
+
1385
+ body_params = None
1386
+ if 'nested_role' in local_var_params:
1387
+ body_params = local_var_params['nested_role']
1388
+ # HTTP header `Accept`
1389
+ header_params['Accept'] = self.api_client.select_header_accept(
1390
+ ['application/json']) # noqa: E501
1391
+
1392
+ # HTTP header `Content-Type`
1393
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1394
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
1395
+
1396
+ # Authentication setting
1397
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
1398
+
1399
+ return self.api_client.call_api(
1400
+ '{python_python_repository_href}remove_role/', 'POST',
1401
+ path_params,
1402
+ query_params,
1403
+ header_params,
1404
+ body=body_params,
1405
+ post_params=form_params,
1406
+ files=local_var_files,
1407
+ response_type='NestedRoleResponse', # noqa: E501
1408
+ auth_settings=auth_settings,
1409
+ async_req=local_var_params.get('async_req'),
1410
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1411
+ _preload_content=local_var_params.get('_preload_content', True),
1412
+ _request_timeout=local_var_params.get('_request_timeout'),
1413
+ collection_formats=collection_formats)
1414
+
909
1415
  def set_label(self, python_python_repository_href, set_label, **kwargs): # noqa: E501
910
1416
  """Set a label # noqa: E501
911
1417
 
@@ -79,7 +79,7 @@ class ApiClient(object):
79
79
  self.default_headers[header_name] = header_value
80
80
  self.cookie = cookie
81
81
  # Set default User-Agent.
82
- self.user_agent = 'OpenAPI-Generator/3.11.3/python'
82
+ self.user_agent = 'OpenAPI-Generator/3.12.1/python'
83
83
  self.client_side_validation = configuration.client_side_validation
84
84
 
85
85
  def __enter__(self):
@@ -91,7 +91,7 @@ conf = pulpcore.client.pulp_python.Configuration(
91
91
 
92
92
  _default = None
93
93
 
94
- def __init__(self, host="http://localhost:24817",
94
+ def __init__(self, host="http://pulp",
95
95
  api_key=None, api_key_prefix=None,
96
96
  username=None, password=None,
97
97
  discard_unknown_keys=False,
@@ -376,7 +376,7 @@ conf = pulpcore.client.pulp_python.Configuration(
376
376
  "OS: {env}\n"\
377
377
  "Python Version: {pyversion}\n"\
378
378
  "Version of the API: v3\n"\
379
- "SDK Package Version: 3.11.3".\
379
+ "SDK Package Version: 3.12.1".\
380
380
  format(env=sys.platform, pyversion=sys.version)
381
381
 
382
382
  def get_host_settings(self):
@@ -386,7 +386,7 @@ conf = pulpcore.client.pulp_python.Configuration(
386
386
  """
387
387
  return [
388
388
  {
389
- 'url': "http://localhost:24817/",
389
+ 'url': "http://pulp/",
390
390
  'description': "No description provided",
391
391
  }
392
392
  ]
@@ -18,6 +18,10 @@ from __future__ import absolute_import
18
18
  from pulpcore.client.pulp_python.models.async_operation_response import AsyncOperationResponse
19
19
  from pulpcore.client.pulp_python.models.content_summary_response import ContentSummaryResponse
20
20
  from pulpcore.client.pulp_python.models.exclude_platforms_enum import ExcludePlatformsEnum
21
+ from pulpcore.client.pulp_python.models.my_permissions_response import MyPermissionsResponse
22
+ from pulpcore.client.pulp_python.models.nested_role import NestedRole
23
+ from pulpcore.client.pulp_python.models.nested_role_response import NestedRoleResponse
24
+ from pulpcore.client.pulp_python.models.object_roles_response import ObjectRolesResponse
21
25
  from pulpcore.client.pulp_python.models.package_metadata_response import PackageMetadataResponse
22
26
  from pulpcore.client.pulp_python.models.package_types_enum import PackageTypesEnum
23
27
  from pulpcore.client.pulp_python.models.package_upload import PackageUpload