pulp-python-client 3.10.0__py3-none-any.whl → 3.10.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.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/METADATA +6 -8
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/RECORD +29 -25
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +5 -1
- pulpcore/client/pulp_python/api/content_packages_api.py +10 -5
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +281 -2
- pulpcore/client/pulp_python/api/publications_pypi_api.py +5 -0
- pulpcore/client/pulp_python/api/remotes_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_api.py +279 -0
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +5 -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/paginated_repository_version_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +6 -4
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +6 -4
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution.py +29 -1
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +29 -1
- pulpcore/client/pulp_python/models/python_python_package_content.py +29 -29
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +6 -4
- pulpcore/client/pulp_python/models/set_label.py +153 -0
- pulpcore/client/pulp_python/models/set_label_response.py +150 -0
- pulpcore/client/pulp_python/models/unset_label.py +128 -0
- pulpcore/client/pulp_python/models/unset_label_response.py +151 -0
- {pulp_python_client-3.10.0.dist-info → pulp_python_client-3.10.1.dist-info}/top_level.txt +0 -0
|
@@ -418,7 +418,11 @@ class RemotesPythonApi(object):
|
|
|
418
418
|
:param str name: Filter results where name matches value
|
|
419
419
|
:param str name__contains: Filter results where name contains value
|
|
420
420
|
:param str name__icontains: Filter results where name contains value
|
|
421
|
+
:param str name__iexact: Filter results where name matches value
|
|
421
422
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
423
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
424
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
425
|
+
:param str name__regex: Filter results where name matches regex value
|
|
422
426
|
:param str name__startswith: Filter results where name starts with value
|
|
423
427
|
:param int offset: The initial index from which to return the results.
|
|
424
428
|
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -431,6 +435,7 @@ class RemotesPythonApi(object):
|
|
|
431
435
|
:param datetime pulp_last_updated__lt: Filter results where pulp_last_updated is less than value
|
|
432
436
|
:param datetime pulp_last_updated__lte: Filter results where pulp_last_updated is less than or equal to value
|
|
433
437
|
:param list[datetime] pulp_last_updated__range: Filter results where pulp_last_updated is between two comma separated values
|
|
438
|
+
:param str q:
|
|
434
439
|
:param list[str] fields: A list of fields to include in the response.
|
|
435
440
|
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
436
441
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -461,7 +466,11 @@ class RemotesPythonApi(object):
|
|
|
461
466
|
:param str name: Filter results where name matches value
|
|
462
467
|
:param str name__contains: Filter results where name contains value
|
|
463
468
|
:param str name__icontains: Filter results where name contains value
|
|
469
|
+
:param str name__iexact: Filter results where name matches value
|
|
464
470
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
471
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
472
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
473
|
+
:param str name__regex: Filter results where name matches regex value
|
|
465
474
|
:param str name__startswith: Filter results where name starts with value
|
|
466
475
|
:param int offset: The initial index from which to return the results.
|
|
467
476
|
:param list[str] ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -474,6 +483,7 @@ class RemotesPythonApi(object):
|
|
|
474
483
|
:param datetime pulp_last_updated__lt: Filter results where pulp_last_updated is less than value
|
|
475
484
|
:param datetime pulp_last_updated__lte: Filter results where pulp_last_updated is less than or equal to value
|
|
476
485
|
:param list[datetime] pulp_last_updated__range: Filter results where pulp_last_updated is between two comma separated values
|
|
486
|
+
:param str q:
|
|
477
487
|
:param list[str] fields: A list of fields to include in the response.
|
|
478
488
|
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
479
489
|
:param _return_http_data_only: response data without head status code
|
|
@@ -497,7 +507,11 @@ class RemotesPythonApi(object):
|
|
|
497
507
|
'name',
|
|
498
508
|
'name__contains',
|
|
499
509
|
'name__icontains',
|
|
510
|
+
'name__iexact',
|
|
500
511
|
'name__in',
|
|
512
|
+
'name__iregex',
|
|
513
|
+
'name__istartswith',
|
|
514
|
+
'name__regex',
|
|
501
515
|
'name__startswith',
|
|
502
516
|
'offset',
|
|
503
517
|
'ordering',
|
|
@@ -510,6 +524,7 @@ class RemotesPythonApi(object):
|
|
|
510
524
|
'pulp_last_updated__lt',
|
|
511
525
|
'pulp_last_updated__lte',
|
|
512
526
|
'pulp_last_updated__range',
|
|
527
|
+
'q',
|
|
513
528
|
'fields',
|
|
514
529
|
'exclude_fields'
|
|
515
530
|
]
|
|
@@ -544,9 +559,17 @@ class RemotesPythonApi(object):
|
|
|
544
559
|
query_params.append(('name__contains', local_var_params['name__contains'])) # noqa: E501
|
|
545
560
|
if 'name__icontains' in local_var_params and local_var_params['name__icontains'] is not None: # noqa: E501
|
|
546
561
|
query_params.append(('name__icontains', local_var_params['name__icontains'])) # noqa: E501
|
|
562
|
+
if 'name__iexact' in local_var_params and local_var_params['name__iexact'] is not None: # noqa: E501
|
|
563
|
+
query_params.append(('name__iexact', local_var_params['name__iexact'])) # noqa: E501
|
|
547
564
|
if 'name__in' in local_var_params and local_var_params['name__in'] is not None: # noqa: E501
|
|
548
565
|
query_params.append(('name__in', local_var_params['name__in'])) # noqa: E501
|
|
549
566
|
collection_formats['name__in'] = 'csv' # noqa: E501
|
|
567
|
+
if 'name__iregex' in local_var_params and local_var_params['name__iregex'] is not None: # noqa: E501
|
|
568
|
+
query_params.append(('name__iregex', local_var_params['name__iregex'])) # noqa: E501
|
|
569
|
+
if 'name__istartswith' in local_var_params and local_var_params['name__istartswith'] is not None: # noqa: E501
|
|
570
|
+
query_params.append(('name__istartswith', local_var_params['name__istartswith'])) # noqa: E501
|
|
571
|
+
if 'name__regex' in local_var_params and local_var_params['name__regex'] is not None: # noqa: E501
|
|
572
|
+
query_params.append(('name__regex', local_var_params['name__regex'])) # noqa: E501
|
|
550
573
|
if 'name__startswith' in local_var_params and local_var_params['name__startswith'] is not None: # noqa: E501
|
|
551
574
|
query_params.append(('name__startswith', local_var_params['name__startswith'])) # noqa: E501
|
|
552
575
|
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
|
@@ -575,6 +598,8 @@ class RemotesPythonApi(object):
|
|
|
575
598
|
if 'pulp_last_updated__range' in local_var_params and local_var_params['pulp_last_updated__range'] is not None: # noqa: E501
|
|
576
599
|
query_params.append(('pulp_last_updated__range', local_var_params['pulp_last_updated__range'])) # noqa: E501
|
|
577
600
|
collection_formats['pulp_last_updated__range'] = 'csv' # noqa: E501
|
|
601
|
+
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
|
602
|
+
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
|
578
603
|
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
579
604
|
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
580
605
|
collection_formats['fields'] = 'multi' # noqa: E501
|
|
@@ -864,6 +889,260 @@ class RemotesPythonApi(object):
|
|
|
864
889
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
865
890
|
collection_formats=collection_formats)
|
|
866
891
|
|
|
892
|
+
def set_label(self, python_python_remote_href, set_label, **kwargs): # noqa: E501
|
|
893
|
+
"""Set a label # noqa: E501
|
|
894
|
+
|
|
895
|
+
Set a single pulp_label on the object to a specific value or null. # 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.set_label(python_python_remote_href, set_label, 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 SetLabel set_label: (required)
|
|
904
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
905
|
+
be returned without reading/decoding response
|
|
906
|
+
data. Default is True.
|
|
907
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
908
|
+
number provided, it will be total request
|
|
909
|
+
timeout. It can also be a pair (tuple) of
|
|
910
|
+
(connection, read) timeouts.
|
|
911
|
+
:return: SetLabelResponse
|
|
912
|
+
If the method is called asynchronously,
|
|
913
|
+
returns the request thread.
|
|
914
|
+
"""
|
|
915
|
+
kwargs['_return_http_data_only'] = True
|
|
916
|
+
return self.set_label_with_http_info(python_python_remote_href, set_label, **kwargs) # noqa: E501
|
|
917
|
+
|
|
918
|
+
def set_label_with_http_info(self, python_python_remote_href, set_label, **kwargs): # noqa: E501
|
|
919
|
+
"""Set a label # noqa: E501
|
|
920
|
+
|
|
921
|
+
Set a single pulp_label on the object to a specific value or null. # noqa: E501
|
|
922
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
923
|
+
asynchronous HTTP request, please pass async_req=True
|
|
924
|
+
>>> thread = api.set_label_with_http_info(python_python_remote_href, set_label, async_req=True)
|
|
925
|
+
>>> result = thread.get()
|
|
926
|
+
|
|
927
|
+
:param async_req bool: execute request asynchronously
|
|
928
|
+
:param str python_python_remote_href: (required)
|
|
929
|
+
:param SetLabel set_label: (required)
|
|
930
|
+
:param _return_http_data_only: response data without head status code
|
|
931
|
+
and headers
|
|
932
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
933
|
+
be returned without reading/decoding response
|
|
934
|
+
data. Default is True.
|
|
935
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
936
|
+
number provided, it will be total request
|
|
937
|
+
timeout. It can also be a pair (tuple) of
|
|
938
|
+
(connection, read) timeouts.
|
|
939
|
+
:return: tuple(SetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
940
|
+
If the method is called asynchronously,
|
|
941
|
+
returns the request thread.
|
|
942
|
+
"""
|
|
943
|
+
|
|
944
|
+
local_var_params = locals()
|
|
945
|
+
|
|
946
|
+
all_params = [
|
|
947
|
+
'python_python_remote_href',
|
|
948
|
+
'set_label'
|
|
949
|
+
]
|
|
950
|
+
all_params.extend(
|
|
951
|
+
[
|
|
952
|
+
'async_req',
|
|
953
|
+
'_return_http_data_only',
|
|
954
|
+
'_preload_content',
|
|
955
|
+
'_request_timeout'
|
|
956
|
+
]
|
|
957
|
+
)
|
|
958
|
+
|
|
959
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
960
|
+
if key not in all_params:
|
|
961
|
+
raise ApiTypeError(
|
|
962
|
+
"Got an unexpected keyword argument '%s'"
|
|
963
|
+
" to method set_label" % key
|
|
964
|
+
)
|
|
965
|
+
local_var_params[key] = val
|
|
966
|
+
del local_var_params['kwargs']
|
|
967
|
+
# verify the required parameter 'python_python_remote_href' is set
|
|
968
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
969
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
970
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_href` when calling `set_label`") # noqa: E501
|
|
971
|
+
# verify the required parameter 'set_label' is set
|
|
972
|
+
if self.api_client.client_side_validation and ('set_label' not in local_var_params or # noqa: E501
|
|
973
|
+
local_var_params['set_label'] is None): # noqa: E501
|
|
974
|
+
raise ApiValueError("Missing the required parameter `set_label` when calling `set_label`") # noqa: E501
|
|
975
|
+
|
|
976
|
+
collection_formats = {}
|
|
977
|
+
|
|
978
|
+
path_params = {}
|
|
979
|
+
if 'python_python_remote_href' in local_var_params:
|
|
980
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_href'] # noqa: E501
|
|
981
|
+
|
|
982
|
+
query_params = []
|
|
983
|
+
|
|
984
|
+
header_params = {}
|
|
985
|
+
|
|
986
|
+
form_params = []
|
|
987
|
+
local_var_files = {}
|
|
988
|
+
|
|
989
|
+
body_params = None
|
|
990
|
+
if 'set_label' in local_var_params:
|
|
991
|
+
body_params = local_var_params['set_label']
|
|
992
|
+
# HTTP header `Accept`
|
|
993
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
994
|
+
['application/json']) # noqa: E501
|
|
995
|
+
|
|
996
|
+
# HTTP header `Content-Type`
|
|
997
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
998
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
999
|
+
|
|
1000
|
+
# Authentication setting
|
|
1001
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1002
|
+
|
|
1003
|
+
return self.api_client.call_api(
|
|
1004
|
+
'{python_python_remote_href}set_label/', 'POST',
|
|
1005
|
+
path_params,
|
|
1006
|
+
query_params,
|
|
1007
|
+
header_params,
|
|
1008
|
+
body=body_params,
|
|
1009
|
+
post_params=form_params,
|
|
1010
|
+
files=local_var_files,
|
|
1011
|
+
response_type='SetLabelResponse', # noqa: E501
|
|
1012
|
+
auth_settings=auth_settings,
|
|
1013
|
+
async_req=local_var_params.get('async_req'),
|
|
1014
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1015
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1016
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1017
|
+
collection_formats=collection_formats)
|
|
1018
|
+
|
|
1019
|
+
def unset_label(self, python_python_remote_href, unset_label, **kwargs): # noqa: E501
|
|
1020
|
+
"""Unset a label # noqa: E501
|
|
1021
|
+
|
|
1022
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
1023
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1024
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1025
|
+
>>> thread = api.unset_label(python_python_remote_href, unset_label, async_req=True)
|
|
1026
|
+
>>> result = thread.get()
|
|
1027
|
+
|
|
1028
|
+
:param async_req bool: execute request asynchronously
|
|
1029
|
+
:param str python_python_remote_href: (required)
|
|
1030
|
+
:param UnsetLabel unset_label: (required)
|
|
1031
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1032
|
+
be returned without reading/decoding response
|
|
1033
|
+
data. Default is True.
|
|
1034
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1035
|
+
number provided, it will be total request
|
|
1036
|
+
timeout. It can also be a pair (tuple) of
|
|
1037
|
+
(connection, read) timeouts.
|
|
1038
|
+
:return: UnsetLabelResponse
|
|
1039
|
+
If the method is called asynchronously,
|
|
1040
|
+
returns the request thread.
|
|
1041
|
+
"""
|
|
1042
|
+
kwargs['_return_http_data_only'] = True
|
|
1043
|
+
return self.unset_label_with_http_info(python_python_remote_href, unset_label, **kwargs) # noqa: E501
|
|
1044
|
+
|
|
1045
|
+
def unset_label_with_http_info(self, python_python_remote_href, unset_label, **kwargs): # noqa: E501
|
|
1046
|
+
"""Unset a label # noqa: E501
|
|
1047
|
+
|
|
1048
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
1049
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1050
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1051
|
+
>>> thread = api.unset_label_with_http_info(python_python_remote_href, unset_label, async_req=True)
|
|
1052
|
+
>>> result = thread.get()
|
|
1053
|
+
|
|
1054
|
+
:param async_req bool: execute request asynchronously
|
|
1055
|
+
:param str python_python_remote_href: (required)
|
|
1056
|
+
:param UnsetLabel unset_label: (required)
|
|
1057
|
+
:param _return_http_data_only: response data without head status code
|
|
1058
|
+
and headers
|
|
1059
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1060
|
+
be returned without reading/decoding response
|
|
1061
|
+
data. Default is True.
|
|
1062
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1063
|
+
number provided, it will be total request
|
|
1064
|
+
timeout. It can also be a pair (tuple) of
|
|
1065
|
+
(connection, read) timeouts.
|
|
1066
|
+
:return: tuple(UnsetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1067
|
+
If the method is called asynchronously,
|
|
1068
|
+
returns the request thread.
|
|
1069
|
+
"""
|
|
1070
|
+
|
|
1071
|
+
local_var_params = locals()
|
|
1072
|
+
|
|
1073
|
+
all_params = [
|
|
1074
|
+
'python_python_remote_href',
|
|
1075
|
+
'unset_label'
|
|
1076
|
+
]
|
|
1077
|
+
all_params.extend(
|
|
1078
|
+
[
|
|
1079
|
+
'async_req',
|
|
1080
|
+
'_return_http_data_only',
|
|
1081
|
+
'_preload_content',
|
|
1082
|
+
'_request_timeout'
|
|
1083
|
+
]
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1087
|
+
if key not in all_params:
|
|
1088
|
+
raise ApiTypeError(
|
|
1089
|
+
"Got an unexpected keyword argument '%s'"
|
|
1090
|
+
" to method unset_label" % key
|
|
1091
|
+
)
|
|
1092
|
+
local_var_params[key] = val
|
|
1093
|
+
del local_var_params['kwargs']
|
|
1094
|
+
# verify the required parameter 'python_python_remote_href' is set
|
|
1095
|
+
if self.api_client.client_side_validation and ('python_python_remote_href' not in local_var_params or # noqa: E501
|
|
1096
|
+
local_var_params['python_python_remote_href'] is None): # noqa: E501
|
|
1097
|
+
raise ApiValueError("Missing the required parameter `python_python_remote_href` when calling `unset_label`") # noqa: E501
|
|
1098
|
+
# verify the required parameter 'unset_label' is set
|
|
1099
|
+
if self.api_client.client_side_validation and ('unset_label' not in local_var_params or # noqa: E501
|
|
1100
|
+
local_var_params['unset_label'] is None): # noqa: E501
|
|
1101
|
+
raise ApiValueError("Missing the required parameter `unset_label` when calling `unset_label`") # noqa: E501
|
|
1102
|
+
|
|
1103
|
+
collection_formats = {}
|
|
1104
|
+
|
|
1105
|
+
path_params = {}
|
|
1106
|
+
if 'python_python_remote_href' in local_var_params:
|
|
1107
|
+
path_params['python_python_remote_href'] = local_var_params['python_python_remote_href'] # noqa: E501
|
|
1108
|
+
|
|
1109
|
+
query_params = []
|
|
1110
|
+
|
|
1111
|
+
header_params = {}
|
|
1112
|
+
|
|
1113
|
+
form_params = []
|
|
1114
|
+
local_var_files = {}
|
|
1115
|
+
|
|
1116
|
+
body_params = None
|
|
1117
|
+
if 'unset_label' in local_var_params:
|
|
1118
|
+
body_params = local_var_params['unset_label']
|
|
1119
|
+
# HTTP header `Accept`
|
|
1120
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1121
|
+
['application/json']) # noqa: E501
|
|
1122
|
+
|
|
1123
|
+
# HTTP header `Content-Type`
|
|
1124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1125
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
1126
|
+
|
|
1127
|
+
# Authentication setting
|
|
1128
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1129
|
+
|
|
1130
|
+
return self.api_client.call_api(
|
|
1131
|
+
'{python_python_remote_href}unset_label/', 'POST',
|
|
1132
|
+
path_params,
|
|
1133
|
+
query_params,
|
|
1134
|
+
header_params,
|
|
1135
|
+
body=body_params,
|
|
1136
|
+
post_params=form_params,
|
|
1137
|
+
files=local_var_files,
|
|
1138
|
+
response_type='UnsetLabelResponse', # noqa: E501
|
|
1139
|
+
auth_settings=auth_settings,
|
|
1140
|
+
async_req=local_var_params.get('async_req'),
|
|
1141
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1142
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1143
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1144
|
+
collection_formats=collection_formats)
|
|
1145
|
+
|
|
867
1146
|
def update(self, python_python_remote_href, python_python_remote, **kwargs): # noqa: E501
|
|
868
1147
|
"""Update a python remote # noqa: E501
|
|
869
1148
|
|