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
|
@@ -284,13 +284,18 @@ class RepositoriesPythonApi(object):
|
|
|
284
284
|
:param str name: Filter results where name matches value
|
|
285
285
|
:param str name__contains: Filter results where name contains value
|
|
286
286
|
:param str name__icontains: Filter results where name contains value
|
|
287
|
+
:param str name__iexact: Filter results where name matches value
|
|
287
288
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
289
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
290
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
291
|
+
:param str name__regex: Filter results where name matches regex value
|
|
288
292
|
:param str name__startswith: Filter results where name starts with value
|
|
289
293
|
:param int offset: The initial index from which to return the results.
|
|
290
294
|
: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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
291
295
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
292
296
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
293
297
|
:param str pulp_label_select: Filter labels by search string
|
|
298
|
+
:param str q:
|
|
294
299
|
:param str remote: Foreign Key referenced by HREF
|
|
295
300
|
:param int retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
296
301
|
:param int retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
@@ -332,13 +337,18 @@ class RepositoriesPythonApi(object):
|
|
|
332
337
|
:param str name: Filter results where name matches value
|
|
333
338
|
:param str name__contains: Filter results where name contains value
|
|
334
339
|
:param str name__icontains: Filter results where name contains value
|
|
340
|
+
:param str name__iexact: Filter results where name matches value
|
|
335
341
|
:param list[str] name__in: Filter results where name is in a comma-separated list of values
|
|
342
|
+
:param str name__iregex: Filter results where name matches regex value
|
|
343
|
+
:param str name__istartswith: Filter results where name starts with value
|
|
344
|
+
:param str name__regex: Filter results where name matches regex value
|
|
336
345
|
:param str name__startswith: Filter results where name starts with value
|
|
337
346
|
:param int offset: The initial index from which to return the results.
|
|
338
347
|
: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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
339
348
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
340
349
|
:param list[str] pulp_id__in: Multiple values may be separated by commas.
|
|
341
350
|
:param str pulp_label_select: Filter labels by search string
|
|
351
|
+
:param str q:
|
|
342
352
|
:param str remote: Foreign Key referenced by HREF
|
|
343
353
|
:param int retain_repo_versions: Filter results where retain_repo_versions matches value
|
|
344
354
|
:param int retain_repo_versions__gt: Filter results where retain_repo_versions is greater than value
|
|
@@ -373,13 +383,18 @@ class RepositoriesPythonApi(object):
|
|
|
373
383
|
'name',
|
|
374
384
|
'name__contains',
|
|
375
385
|
'name__icontains',
|
|
386
|
+
'name__iexact',
|
|
376
387
|
'name__in',
|
|
388
|
+
'name__iregex',
|
|
389
|
+
'name__istartswith',
|
|
390
|
+
'name__regex',
|
|
377
391
|
'name__startswith',
|
|
378
392
|
'offset',
|
|
379
393
|
'ordering',
|
|
380
394
|
'pulp_href__in',
|
|
381
395
|
'pulp_id__in',
|
|
382
396
|
'pulp_label_select',
|
|
397
|
+
'q',
|
|
383
398
|
'remote',
|
|
384
399
|
'retain_repo_versions',
|
|
385
400
|
'retain_repo_versions__gt',
|
|
@@ -426,9 +441,17 @@ class RepositoriesPythonApi(object):
|
|
|
426
441
|
query_params.append(('name__contains', local_var_params['name__contains'])) # noqa: E501
|
|
427
442
|
if 'name__icontains' in local_var_params and local_var_params['name__icontains'] is not None: # noqa: E501
|
|
428
443
|
query_params.append(('name__icontains', local_var_params['name__icontains'])) # noqa: E501
|
|
444
|
+
if 'name__iexact' in local_var_params and local_var_params['name__iexact'] is not None: # noqa: E501
|
|
445
|
+
query_params.append(('name__iexact', local_var_params['name__iexact'])) # noqa: E501
|
|
429
446
|
if 'name__in' in local_var_params and local_var_params['name__in'] is not None: # noqa: E501
|
|
430
447
|
query_params.append(('name__in', local_var_params['name__in'])) # noqa: E501
|
|
431
448
|
collection_formats['name__in'] = 'csv' # noqa: E501
|
|
449
|
+
if 'name__iregex' in local_var_params and local_var_params['name__iregex'] is not None: # noqa: E501
|
|
450
|
+
query_params.append(('name__iregex', local_var_params['name__iregex'])) # noqa: E501
|
|
451
|
+
if 'name__istartswith' in local_var_params and local_var_params['name__istartswith'] is not None: # noqa: E501
|
|
452
|
+
query_params.append(('name__istartswith', local_var_params['name__istartswith'])) # noqa: E501
|
|
453
|
+
if 'name__regex' in local_var_params and local_var_params['name__regex'] is not None: # noqa: E501
|
|
454
|
+
query_params.append(('name__regex', local_var_params['name__regex'])) # noqa: E501
|
|
432
455
|
if 'name__startswith' in local_var_params and local_var_params['name__startswith'] is not None: # noqa: E501
|
|
433
456
|
query_params.append(('name__startswith', local_var_params['name__startswith'])) # noqa: E501
|
|
434
457
|
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
|
|
@@ -444,6 +467,8 @@ class RepositoriesPythonApi(object):
|
|
|
444
467
|
collection_formats['pulp_id__in'] = 'csv' # noqa: E501
|
|
445
468
|
if 'pulp_label_select' in local_var_params and local_var_params['pulp_label_select'] is not None: # noqa: E501
|
|
446
469
|
query_params.append(('pulp_label_select', local_var_params['pulp_label_select'])) # noqa: E501
|
|
470
|
+
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
|
471
|
+
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
|
447
472
|
if 'remote' in local_var_params and local_var_params['remote'] is not None: # noqa: E501
|
|
448
473
|
query_params.append(('remote', local_var_params['remote'])) # noqa: E501
|
|
449
474
|
if 'retain_repo_versions' in local_var_params and local_var_params['retain_repo_versions'] is not None: # noqa: E501
|
|
@@ -881,6 +906,133 @@ class RepositoriesPythonApi(object):
|
|
|
881
906
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
882
907
|
collection_formats=collection_formats)
|
|
883
908
|
|
|
909
|
+
def set_label(self, python_python_repository_href, set_label, **kwargs): # noqa: E501
|
|
910
|
+
"""Set a label # noqa: E501
|
|
911
|
+
|
|
912
|
+
Set a single pulp_label on the object to a specific value or null. # 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.set_label(python_python_repository_href, set_label, 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 SetLabel set_label: (required)
|
|
921
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
922
|
+
be returned without reading/decoding response
|
|
923
|
+
data. Default is True.
|
|
924
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
925
|
+
number provided, it will be total request
|
|
926
|
+
timeout. It can also be a pair (tuple) of
|
|
927
|
+
(connection, read) timeouts.
|
|
928
|
+
:return: SetLabelResponse
|
|
929
|
+
If the method is called asynchronously,
|
|
930
|
+
returns the request thread.
|
|
931
|
+
"""
|
|
932
|
+
kwargs['_return_http_data_only'] = True
|
|
933
|
+
return self.set_label_with_http_info(python_python_repository_href, set_label, **kwargs) # noqa: E501
|
|
934
|
+
|
|
935
|
+
def set_label_with_http_info(self, python_python_repository_href, set_label, **kwargs): # noqa: E501
|
|
936
|
+
"""Set a label # noqa: E501
|
|
937
|
+
|
|
938
|
+
Set a single pulp_label on the object to a specific value or null. # noqa: E501
|
|
939
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
940
|
+
asynchronous HTTP request, please pass async_req=True
|
|
941
|
+
>>> thread = api.set_label_with_http_info(python_python_repository_href, set_label, async_req=True)
|
|
942
|
+
>>> result = thread.get()
|
|
943
|
+
|
|
944
|
+
:param async_req bool: execute request asynchronously
|
|
945
|
+
:param str python_python_repository_href: (required)
|
|
946
|
+
:param SetLabel set_label: (required)
|
|
947
|
+
:param _return_http_data_only: response data without head status code
|
|
948
|
+
and headers
|
|
949
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
950
|
+
be returned without reading/decoding response
|
|
951
|
+
data. Default is True.
|
|
952
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
953
|
+
number provided, it will be total request
|
|
954
|
+
timeout. It can also be a pair (tuple) of
|
|
955
|
+
(connection, read) timeouts.
|
|
956
|
+
:return: tuple(SetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
957
|
+
If the method is called asynchronously,
|
|
958
|
+
returns the request thread.
|
|
959
|
+
"""
|
|
960
|
+
|
|
961
|
+
local_var_params = locals()
|
|
962
|
+
|
|
963
|
+
all_params = [
|
|
964
|
+
'python_python_repository_href',
|
|
965
|
+
'set_label'
|
|
966
|
+
]
|
|
967
|
+
all_params.extend(
|
|
968
|
+
[
|
|
969
|
+
'async_req',
|
|
970
|
+
'_return_http_data_only',
|
|
971
|
+
'_preload_content',
|
|
972
|
+
'_request_timeout'
|
|
973
|
+
]
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
977
|
+
if key not in all_params:
|
|
978
|
+
raise ApiTypeError(
|
|
979
|
+
"Got an unexpected keyword argument '%s'"
|
|
980
|
+
" to method set_label" % key
|
|
981
|
+
)
|
|
982
|
+
local_var_params[key] = val
|
|
983
|
+
del local_var_params['kwargs']
|
|
984
|
+
# verify the required parameter 'python_python_repository_href' is set
|
|
985
|
+
if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
|
|
986
|
+
local_var_params['python_python_repository_href'] is None): # noqa: E501
|
|
987
|
+
raise ApiValueError("Missing the required parameter `python_python_repository_href` when calling `set_label`") # noqa: E501
|
|
988
|
+
# verify the required parameter 'set_label' is set
|
|
989
|
+
if self.api_client.client_side_validation and ('set_label' not in local_var_params or # noqa: E501
|
|
990
|
+
local_var_params['set_label'] is None): # noqa: E501
|
|
991
|
+
raise ApiValueError("Missing the required parameter `set_label` when calling `set_label`") # noqa: E501
|
|
992
|
+
|
|
993
|
+
collection_formats = {}
|
|
994
|
+
|
|
995
|
+
path_params = {}
|
|
996
|
+
if 'python_python_repository_href' in local_var_params:
|
|
997
|
+
path_params['python_python_repository_href'] = local_var_params['python_python_repository_href'] # noqa: E501
|
|
998
|
+
|
|
999
|
+
query_params = []
|
|
1000
|
+
|
|
1001
|
+
header_params = {}
|
|
1002
|
+
|
|
1003
|
+
form_params = []
|
|
1004
|
+
local_var_files = {}
|
|
1005
|
+
|
|
1006
|
+
body_params = None
|
|
1007
|
+
if 'set_label' in local_var_params:
|
|
1008
|
+
body_params = local_var_params['set_label']
|
|
1009
|
+
# HTTP header `Accept`
|
|
1010
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1011
|
+
['application/json']) # noqa: E501
|
|
1012
|
+
|
|
1013
|
+
# HTTP header `Content-Type`
|
|
1014
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1015
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
1016
|
+
|
|
1017
|
+
# Authentication setting
|
|
1018
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1019
|
+
|
|
1020
|
+
return self.api_client.call_api(
|
|
1021
|
+
'{python_python_repository_href}set_label/', 'POST',
|
|
1022
|
+
path_params,
|
|
1023
|
+
query_params,
|
|
1024
|
+
header_params,
|
|
1025
|
+
body=body_params,
|
|
1026
|
+
post_params=form_params,
|
|
1027
|
+
files=local_var_files,
|
|
1028
|
+
response_type='SetLabelResponse', # noqa: E501
|
|
1029
|
+
auth_settings=auth_settings,
|
|
1030
|
+
async_req=local_var_params.get('async_req'),
|
|
1031
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1032
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1033
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1034
|
+
collection_formats=collection_formats)
|
|
1035
|
+
|
|
884
1036
|
def sync(self, python_python_repository_href, repository_sync_url, **kwargs): # noqa: E501
|
|
885
1037
|
"""Sync from remote # noqa: E501
|
|
886
1038
|
|
|
@@ -1008,6 +1160,133 @@ class RepositoriesPythonApi(object):
|
|
|
1008
1160
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1009
1161
|
collection_formats=collection_formats)
|
|
1010
1162
|
|
|
1163
|
+
def unset_label(self, python_python_repository_href, unset_label, **kwargs): # noqa: E501
|
|
1164
|
+
"""Unset a label # noqa: E501
|
|
1165
|
+
|
|
1166
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
1167
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1168
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1169
|
+
>>> thread = api.unset_label(python_python_repository_href, unset_label, async_req=True)
|
|
1170
|
+
>>> result = thread.get()
|
|
1171
|
+
|
|
1172
|
+
:param async_req bool: execute request asynchronously
|
|
1173
|
+
:param str python_python_repository_href: (required)
|
|
1174
|
+
:param UnsetLabel unset_label: (required)
|
|
1175
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1176
|
+
be returned without reading/decoding response
|
|
1177
|
+
data. Default is True.
|
|
1178
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1179
|
+
number provided, it will be total request
|
|
1180
|
+
timeout. It can also be a pair (tuple) of
|
|
1181
|
+
(connection, read) timeouts.
|
|
1182
|
+
:return: UnsetLabelResponse
|
|
1183
|
+
If the method is called asynchronously,
|
|
1184
|
+
returns the request thread.
|
|
1185
|
+
"""
|
|
1186
|
+
kwargs['_return_http_data_only'] = True
|
|
1187
|
+
return self.unset_label_with_http_info(python_python_repository_href, unset_label, **kwargs) # noqa: E501
|
|
1188
|
+
|
|
1189
|
+
def unset_label_with_http_info(self, python_python_repository_href, unset_label, **kwargs): # noqa: E501
|
|
1190
|
+
"""Unset a label # noqa: E501
|
|
1191
|
+
|
|
1192
|
+
Unset a single pulp_label on the object. # noqa: E501
|
|
1193
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1194
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1195
|
+
>>> thread = api.unset_label_with_http_info(python_python_repository_href, unset_label, async_req=True)
|
|
1196
|
+
>>> result = thread.get()
|
|
1197
|
+
|
|
1198
|
+
:param async_req bool: execute request asynchronously
|
|
1199
|
+
:param str python_python_repository_href: (required)
|
|
1200
|
+
:param UnsetLabel unset_label: (required)
|
|
1201
|
+
:param _return_http_data_only: response data without head status code
|
|
1202
|
+
and headers
|
|
1203
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
1204
|
+
be returned without reading/decoding response
|
|
1205
|
+
data. Default is True.
|
|
1206
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1207
|
+
number provided, it will be total request
|
|
1208
|
+
timeout. It can also be a pair (tuple) of
|
|
1209
|
+
(connection, read) timeouts.
|
|
1210
|
+
:return: tuple(UnsetLabelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1211
|
+
If the method is called asynchronously,
|
|
1212
|
+
returns the request thread.
|
|
1213
|
+
"""
|
|
1214
|
+
|
|
1215
|
+
local_var_params = locals()
|
|
1216
|
+
|
|
1217
|
+
all_params = [
|
|
1218
|
+
'python_python_repository_href',
|
|
1219
|
+
'unset_label'
|
|
1220
|
+
]
|
|
1221
|
+
all_params.extend(
|
|
1222
|
+
[
|
|
1223
|
+
'async_req',
|
|
1224
|
+
'_return_http_data_only',
|
|
1225
|
+
'_preload_content',
|
|
1226
|
+
'_request_timeout'
|
|
1227
|
+
]
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
1231
|
+
if key not in all_params:
|
|
1232
|
+
raise ApiTypeError(
|
|
1233
|
+
"Got an unexpected keyword argument '%s'"
|
|
1234
|
+
" to method unset_label" % key
|
|
1235
|
+
)
|
|
1236
|
+
local_var_params[key] = val
|
|
1237
|
+
del local_var_params['kwargs']
|
|
1238
|
+
# verify the required parameter 'python_python_repository_href' is set
|
|
1239
|
+
if self.api_client.client_side_validation and ('python_python_repository_href' not in local_var_params or # noqa: E501
|
|
1240
|
+
local_var_params['python_python_repository_href'] is None): # noqa: E501
|
|
1241
|
+
raise ApiValueError("Missing the required parameter `python_python_repository_href` when calling `unset_label`") # noqa: E501
|
|
1242
|
+
# verify the required parameter 'unset_label' is set
|
|
1243
|
+
if self.api_client.client_side_validation and ('unset_label' not in local_var_params or # noqa: E501
|
|
1244
|
+
local_var_params['unset_label'] is None): # noqa: E501
|
|
1245
|
+
raise ApiValueError("Missing the required parameter `unset_label` when calling `unset_label`") # noqa: E501
|
|
1246
|
+
|
|
1247
|
+
collection_formats = {}
|
|
1248
|
+
|
|
1249
|
+
path_params = {}
|
|
1250
|
+
if 'python_python_repository_href' in local_var_params:
|
|
1251
|
+
path_params['python_python_repository_href'] = local_var_params['python_python_repository_href'] # noqa: E501
|
|
1252
|
+
|
|
1253
|
+
query_params = []
|
|
1254
|
+
|
|
1255
|
+
header_params = {}
|
|
1256
|
+
|
|
1257
|
+
form_params = []
|
|
1258
|
+
local_var_files = {}
|
|
1259
|
+
|
|
1260
|
+
body_params = None
|
|
1261
|
+
if 'unset_label' in local_var_params:
|
|
1262
|
+
body_params = local_var_params['unset_label']
|
|
1263
|
+
# HTTP header `Accept`
|
|
1264
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1265
|
+
['application/json']) # noqa: E501
|
|
1266
|
+
|
|
1267
|
+
# HTTP header `Content-Type`
|
|
1268
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1269
|
+
['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
|
|
1270
|
+
|
|
1271
|
+
# Authentication setting
|
|
1272
|
+
auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
|
|
1273
|
+
|
|
1274
|
+
return self.api_client.call_api(
|
|
1275
|
+
'{python_python_repository_href}unset_label/', 'POST',
|
|
1276
|
+
path_params,
|
|
1277
|
+
query_params,
|
|
1278
|
+
header_params,
|
|
1279
|
+
body=body_params,
|
|
1280
|
+
post_params=form_params,
|
|
1281
|
+
files=local_var_files,
|
|
1282
|
+
response_type='UnsetLabelResponse', # noqa: E501
|
|
1283
|
+
auth_settings=auth_settings,
|
|
1284
|
+
async_req=local_var_params.get('async_req'),
|
|
1285
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
1286
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
1287
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
1288
|
+
collection_formats=collection_formats)
|
|
1289
|
+
|
|
1011
1290
|
def update(self, python_python_repository_href, python_python_repository, **kwargs): # noqa: E501
|
|
1012
1291
|
"""Update a python repository # noqa: E501
|
|
1013
1292
|
|
|
@@ -180,6 +180,7 @@ class RepositoriesPythonVersionsApi(object):
|
|
|
180
180
|
:param datetime pulp_created__lte: Filter results where pulp_created is less than or equal to value
|
|
181
181
|
:param list[datetime] pulp_created__range: Filter results where pulp_created is between two comma separated values
|
|
182
182
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
183
|
+
:param str q:
|
|
183
184
|
:param list[str] fields: A list of fields to include in the response.
|
|
184
185
|
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
185
186
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -225,6 +226,7 @@ class RepositoriesPythonVersionsApi(object):
|
|
|
225
226
|
:param datetime pulp_created__lte: Filter results where pulp_created is less than or equal to value
|
|
226
227
|
:param list[datetime] pulp_created__range: Filter results where pulp_created is between two comma separated values
|
|
227
228
|
:param list[str] pulp_href__in: Multiple values may be separated by commas.
|
|
229
|
+
:param str q:
|
|
228
230
|
:param list[str] fields: A list of fields to include in the response.
|
|
229
231
|
:param list[str] exclude_fields: A list of fields to exclude from the response.
|
|
230
232
|
:param _return_http_data_only: response data without head status code
|
|
@@ -263,6 +265,7 @@ class RepositoriesPythonVersionsApi(object):
|
|
|
263
265
|
'pulp_created__lte',
|
|
264
266
|
'pulp_created__range',
|
|
265
267
|
'pulp_href__in',
|
|
268
|
+
'q',
|
|
266
269
|
'fields',
|
|
267
270
|
'exclude_fields'
|
|
268
271
|
]
|
|
@@ -335,6 +338,8 @@ class RepositoriesPythonVersionsApi(object):
|
|
|
335
338
|
if 'pulp_href__in' in local_var_params and local_var_params['pulp_href__in'] is not None: # noqa: E501
|
|
336
339
|
query_params.append(('pulp_href__in', local_var_params['pulp_href__in'])) # noqa: E501
|
|
337
340
|
collection_formats['pulp_href__in'] = 'csv' # noqa: E501
|
|
341
|
+
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
|
|
342
|
+
query_params.append(('q', local_var_params['q'])) # noqa: E501
|
|
338
343
|
if 'fields' in local_var_params and local_var_params['fields'] is not None: # noqa: E501
|
|
339
344
|
query_params.append(('fields', local_var_params['fields'])) # noqa: E501
|
|
340
345
|
collection_formats['fields'] = 'multi' # noqa: E501
|
|
@@ -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.10.
|
|
82
|
+
self.user_agent = 'OpenAPI-Generator/3.10.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="
|
|
94
|
+
def __init__(self, host="http://localhost:24817",
|
|
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.10.
|
|
379
|
+
"SDK Package Version: 3.10.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': "
|
|
389
|
+
'url': "http://localhost:24817/",
|
|
390
390
|
'description': "No description provided",
|
|
391
391
|
}
|
|
392
392
|
]
|
|
@@ -48,4 +48,8 @@ from pulpcore.client.pulp_python.models.repair import Repair
|
|
|
48
48
|
from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent
|
|
49
49
|
from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL
|
|
50
50
|
from pulpcore.client.pulp_python.models.repository_version_response import RepositoryVersionResponse
|
|
51
|
+
from pulpcore.client.pulp_python.models.set_label import SetLabel
|
|
52
|
+
from pulpcore.client.pulp_python.models.set_label_response import SetLabelResponse
|
|
51
53
|
from pulpcore.client.pulp_python.models.summary_response import SummaryResponse
|
|
54
|
+
from pulpcore.client.pulp_python.models.unset_label import UnsetLabel
|
|
55
|
+
from pulpcore.client.pulp_python.models.unset_label_response import UnsetLabelResponse
|
|
@@ -59,12 +59,10 @@ class PaginatedRepositoryVersionResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedRepositoryVersionResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedRepositoryVersionResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedRepositoryVersionResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedRepositoryVersionResponseList. # noqa: E501
|
|
148
148
|
:type: list[RepositoryVersionResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|
|
@@ -59,12 +59,10 @@ class PaginatedpythonPythonDistributionResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedpythonPythonDistributionResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedpythonPythonDistributionResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedpythonPythonDistributionResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedpythonPythonDistributionResponseList. # noqa: E501
|
|
148
148
|
:type: list[PythonPythonDistributionResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|
|
@@ -59,12 +59,10 @@ class PaginatedpythonPythonPackageContentResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedpythonPythonPackageContentResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedpythonPythonPackageContentResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedpythonPythonPackageContentResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedpythonPythonPackageContentResponseList. # noqa: E501
|
|
148
148
|
:type: list[PythonPythonPackageContentResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|
|
@@ -59,12 +59,10 @@ class PaginatedpythonPythonPublicationResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedpythonPythonPublicationResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedpythonPythonPublicationResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedpythonPythonPublicationResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedpythonPythonPublicationResponseList. # noqa: E501
|
|
148
148
|
:type: list[PythonPythonPublicationResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|
|
@@ -59,12 +59,10 @@ class PaginatedpythonPythonRemoteResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedpythonPythonRemoteResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedpythonPythonRemoteResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedpythonPythonRemoteResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedpythonPythonRemoteResponseList. # noqa: E501
|
|
148
148
|
:type: list[PythonPythonRemoteResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|
|
@@ -59,12 +59,10 @@ class PaginatedpythonPythonRepositoryResponseList(object):
|
|
|
59
59
|
self._results = None
|
|
60
60
|
self.discriminator = None
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
self.count = count
|
|
62
|
+
self.count = count
|
|
64
63
|
self.next = next
|
|
65
64
|
self.previous = previous
|
|
66
|
-
|
|
67
|
-
self.results = results
|
|
65
|
+
self.results = results
|
|
68
66
|
|
|
69
67
|
@property
|
|
70
68
|
def count(self):
|
|
@@ -84,6 +82,8 @@ class PaginatedpythonPythonRepositoryResponseList(object):
|
|
|
84
82
|
:param count: The count of this PaginatedpythonPythonRepositoryResponseList. # noqa: E501
|
|
85
83
|
:type: int
|
|
86
84
|
"""
|
|
85
|
+
if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501
|
|
86
|
+
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
|
|
87
87
|
|
|
88
88
|
self._count = count
|
|
89
89
|
|
|
@@ -147,6 +147,8 @@ class PaginatedpythonPythonRepositoryResponseList(object):
|
|
|
147
147
|
:param results: The results of this PaginatedpythonPythonRepositoryResponseList. # noqa: E501
|
|
148
148
|
:type: list[PythonPythonRepositoryResponse]
|
|
149
149
|
"""
|
|
150
|
+
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
|
151
|
+
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
|
150
152
|
|
|
151
153
|
self._results = results
|
|
152
154
|
|