crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250821.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 crc-pulpcore-client might be problematic. Click here for more details.
- crc-pulpcore-client/api_client.py +1 -1
- crc-pulpcore-client/configuration.py +3 -3
- crc-pulpcore-client/models/artifact_distribution_response.py +13 -13
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250821.1.dist-info}/METADATA +1 -1
- crc_pulpcore_client-20250821.1.dist-info/RECORD +234 -0
- crc_pulpcore_client-20250821.1.dist-info/top_level.txt +1 -0
- crc_pulpcore_client-20250819.1.dist-info/RECORD +0 -464
- crc_pulpcore_client-20250819.1.dist-info/top_level.txt +0 -2
- services-pulpcore-client/__init__.py +0 -2
- services-pulpcore-client/api/__init__.py +0 -53
- services-pulpcore-client/api/access_policies_api.py +0 -1864
- services-pulpcore-client/api/artifacts_api.py +0 -1615
- services-pulpcore-client/api/content_api.py +0 -598
- services-pulpcore-client/api/content_openpgp_publickey_api.py +0 -1887
- services-pulpcore-client/api/content_openpgp_publicsubkey_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_signature_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userattribute_api.py +0 -1518
- services-pulpcore-client/api/content_openpgp_userid_api.py +0 -1655
- services-pulpcore-client/api/contentguards_api.py +0 -667
- services-pulpcore-client/api/contentguards_composite_api.py +0 -3401
- services-pulpcore-client/api/contentguards_content_redirect_api.py +0 -3401
- services-pulpcore-client/api/contentguards_header_api.py +0 -3401
- services-pulpcore-client/api/contentguards_rbac_api.py +0 -3401
- services-pulpcore-client/api/distributions_api.py +0 -822
- services-pulpcore-client/api/distributions_artifacts_api.py +0 -1103
- services-pulpcore-client/api/distributions_openpgp_api.py +0 -2676
- services-pulpcore-client/api/domains_api.py +0 -3106
- services-pulpcore-client/api/exporters_filesystem_api.py +0 -2157
- services-pulpcore-client/api/exporters_filesystem_exports_api.py +0 -1288
- services-pulpcore-client/api/exporters_pulp_api.py +0 -2157
- services-pulpcore-client/api/exporters_pulp_exports_api.py +0 -1288
- services-pulpcore-client/api/groups_api.py +0 -3368
- services-pulpcore-client/api/groups_roles_api.py +0 -1496
- services-pulpcore-client/api/groups_users_api.py +0 -972
- services-pulpcore-client/api/importers_pulp_api.py +0 -2149
- services-pulpcore-client/api/importers_pulp_import_check_api.py +0 -350
- services-pulpcore-client/api/importers_pulp_imports_api.py +0 -1288
- services-pulpcore-client/api/livez_api.py +0 -329
- services-pulpcore-client/api/login_api.py +0 -897
- services-pulpcore-client/api/orphans_api.py +0 -319
- services-pulpcore-client/api/orphans_cleanup_api.py +0 -350
- services-pulpcore-client/api/publications_api.py +0 -765
- services-pulpcore-client/api/remotes_api.py +0 -850
- services-pulpcore-client/api/repair_api.py +0 -350
- services-pulpcore-client/api/repositories_api.py +0 -872
- services-pulpcore-client/api/repositories_openpgp_keyring_api.py +0 -4546
- services-pulpcore-client/api/repositories_reclaim_space_api.py +0 -350
- services-pulpcore-client/api/repository_versions_api.py +0 -764
- services-pulpcore-client/api/roles_api.py +0 -2269
- services-pulpcore-client/api/signing_services_api.py +0 -811
- services-pulpcore-client/api/status_api.py +0 -337
- services-pulpcore-client/api/task_groups_api.py +0 -1012
- services-pulpcore-client/api/task_schedules_api.py +0 -2114
- services-pulpcore-client/api/tasks_api.py +0 -4299
- services-pulpcore-client/api/uploads_api.py +0 -3346
- services-pulpcore-client/api/upstream_pulps_api.py +0 -4001
- services-pulpcore-client/api/users_api.py +0 -2373
- services-pulpcore-client/api/users_roles_api.py +0 -1496
- services-pulpcore-client/api/workers_api.py +0 -1148
- services-pulpcore-client/api_client.py +0 -798
- services-pulpcore-client/api_response.py +0 -21
- services-pulpcore-client/configuration.py +0 -628
- services-pulpcore-client/exceptions.py +0 -200
- services-pulpcore-client/models/__init__.py +0 -189
- services-pulpcore-client/models/access_policy.py +0 -94
- services-pulpcore-client/models/access_policy_response.py +0 -119
- services-pulpcore-client/models/api_app_status_response.py +0 -99
- services-pulpcore-client/models/artifact_distribution_response.py +0 -126
- services-pulpcore-client/models/artifact_response.py +0 -149
- services-pulpcore-client/models/async_operation_response.py +0 -88
- services-pulpcore-client/models/composite_content_guard.py +0 -98
- services-pulpcore-client/models/composite_content_guard_response.py +0 -114
- services-pulpcore-client/models/content_app_status_response.py +0 -99
- services-pulpcore-client/models/content_guard_response.py +0 -112
- services-pulpcore-client/models/content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/content_redirect_content_guard_response.py +0 -112
- services-pulpcore-client/models/content_settings_response.py +0 -95
- services-pulpcore-client/models/content_summary_response.py +0 -92
- services-pulpcore-client/models/database_connection_response.py +0 -88
- services-pulpcore-client/models/distribution_response.py +0 -133
- services-pulpcore-client/models/domain.py +0 -114
- services-pulpcore-client/models/domain_backend_migrator.py +0 -91
- services-pulpcore-client/models/domain_response.py +0 -131
- services-pulpcore-client/models/evaluation_response.py +0 -92
- services-pulpcore-client/models/filesystem_export.py +0 -99
- services-pulpcore-client/models/filesystem_export_response.py +0 -118
- services-pulpcore-client/models/filesystem_exporter.py +0 -94
- services-pulpcore-client/models/filesystem_exporter_response.py +0 -110
- services-pulpcore-client/models/generic_remote_response.py +0 -199
- services-pulpcore-client/models/generic_remote_response_hidden_fields_inner.py +0 -90
- services-pulpcore-client/models/generic_remote_response_policy_enum.py +0 -39
- services-pulpcore-client/models/group.py +0 -89
- services-pulpcore-client/models/group_progress_report_response.py +0 -111
- services-pulpcore-client/models/group_response.py +0 -101
- services-pulpcore-client/models/group_role.py +0 -110
- services-pulpcore-client/models/group_role_response.py +0 -134
- services-pulpcore-client/models/group_user.py +0 -89
- services-pulpcore-client/models/group_user_response.py +0 -97
- services-pulpcore-client/models/header_content_guard.py +0 -107
- services-pulpcore-client/models/header_content_guard_response.py +0 -123
- services-pulpcore-client/models/import_response.py +0 -107
- services-pulpcore-client/models/login_response.py +0 -98
- services-pulpcore-client/models/method_enum.py +0 -39
- services-pulpcore-client/models/minimal_task_response.py +0 -125
- services-pulpcore-client/models/multiple_artifact_content_response.py +0 -107
- services-pulpcore-client/models/my_permissions_response.py +0 -88
- services-pulpcore-client/models/nested_open_pgp_public_subkey.py +0 -92
- services-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +0 -104
- services-pulpcore-client/models/nested_open_pgp_signature.py +0 -120
- services-pulpcore-client/models/nested_open_pgp_signature_response.py +0 -124
- services-pulpcore-client/models/nested_open_pgp_user_attribute.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +0 -101
- services-pulpcore-client/models/nested_open_pgp_user_id.py +0 -89
- services-pulpcore-client/models/nested_open_pgp_user_id_response.py +0 -100
- services-pulpcore-client/models/nested_role.py +0 -93
- services-pulpcore-client/models/nested_role_response.py +0 -92
- services-pulpcore-client/models/object_roles_response.py +0 -96
- services-pulpcore-client/models/open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/open_pgp_distribution_response.py +0 -140
- services-pulpcore-client/models/open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/open_pgp_keyring_response.py +0 -137
- services-pulpcore-client/models/open_pgp_public_key_response.py +0 -150
- services-pulpcore-client/models/open_pgp_public_subkey_response.py +0 -126
- services-pulpcore-client/models/open_pgp_signature_response.py +0 -146
- services-pulpcore-client/models/open_pgp_user_attribute_response.py +0 -124
- services-pulpcore-client/models/open_pgp_user_id_response.py +0 -123
- services-pulpcore-client/models/orphans_cleanup.py +0 -96
- services-pulpcore-client/models/paginated_access_policy_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_artifact_response_list.py +0 -112
- services-pulpcore-client/models/paginated_composite_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_domain_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_generic_remote_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_group_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_header_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_import_response_list.py +0 -112
- services-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +0 -112
- services-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +0 -112
- services-pulpcore-client/models/paginated_publication_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_export_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_exporter_response_list.py +0 -112
- services-pulpcore-client/models/paginated_pulp_importer_response_list.py +0 -112
- services-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_response_list.py +0 -112
- services-pulpcore-client/models/paginated_repository_version_response_list.py +0 -112
- services-pulpcore-client/models/paginated_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_signing_service_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_group_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_response_list.py +0 -112
- services-pulpcore-client/models/paginated_task_schedule_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upload_response_list.py +0 -112
- services-pulpcore-client/models/paginated_upstream_pulp_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_response_list.py +0 -112
- services-pulpcore-client/models/paginated_user_role_response_list.py +0 -112
- services-pulpcore-client/models/paginated_worker_response_list.py +0 -112
- services-pulpcore-client/models/patched_access_policy.py +0 -94
- services-pulpcore-client/models/patched_composite_content_guard.py +0 -98
- services-pulpcore-client/models/patched_content_redirect_content_guard.py +0 -96
- services-pulpcore-client/models/patched_domain.py +0 -117
- services-pulpcore-client/models/patched_filesystem_exporter.py +0 -94
- services-pulpcore-client/models/patched_group.py +0 -89
- services-pulpcore-client/models/patched_header_content_guard.py +0 -107
- services-pulpcore-client/models/patched_open_pgp_distribution.py +0 -116
- services-pulpcore-client/models/patched_open_pgp_keyring.py +0 -112
- services-pulpcore-client/models/patched_pulp_exporter.py +0 -100
- services-pulpcore-client/models/patched_pulp_importer.py +0 -91
- services-pulpcore-client/models/patched_rbac_content_guard.py +0 -96
- services-pulpcore-client/models/patched_role.py +0 -98
- services-pulpcore-client/models/patched_task_cancel.py +0 -89
- services-pulpcore-client/models/patched_upstream_pulp.py +0 -147
- services-pulpcore-client/models/patched_user.py +0 -106
- services-pulpcore-client/models/policy357_enum.py +0 -39
- services-pulpcore-client/models/profile_artifact_response.py +0 -88
- services-pulpcore-client/models/progress_report_response.py +0 -115
- services-pulpcore-client/models/publication_response.py +0 -107
- services-pulpcore-client/models/pulp_export.py +0 -104
- services-pulpcore-client/models/pulp_export_response.py +0 -126
- services-pulpcore-client/models/pulp_exporter.py +0 -100
- services-pulpcore-client/models/pulp_exporter_response.py +0 -116
- services-pulpcore-client/models/pulp_import.py +0 -93
- services-pulpcore-client/models/pulp_import_check.py +0 -93
- services-pulpcore-client/models/pulp_import_check_response.py +0 -102
- services-pulpcore-client/models/pulp_importer.py +0 -91
- services-pulpcore-client/models/pulp_importer_response.py +0 -107
- services-pulpcore-client/models/purge.py +0 -92
- services-pulpcore-client/models/rbac_content_guard.py +0 -96
- services-pulpcore-client/models/rbac_content_guard_response.py +0 -136
- services-pulpcore-client/models/reclaim_space.py +0 -90
- services-pulpcore-client/models/redis_connection_response.py +0 -88
- services-pulpcore-client/models/repair.py +0 -88
- services-pulpcore-client/models/repository_add_remove_content.py +0 -93
- services-pulpcore-client/models/repository_response.py +0 -137
- services-pulpcore-client/models/repository_version_response.py +0 -121
- services-pulpcore-client/models/role.py +0 -98
- services-pulpcore-client/models/role_response.py +0 -118
- services-pulpcore-client/models/set_label.py +0 -103
- services-pulpcore-client/models/set_label_response.py +0 -103
- services-pulpcore-client/models/signing_service_response.py +0 -111
- services-pulpcore-client/models/states_enum.py +0 -40
- services-pulpcore-client/models/status_response.py +0 -152
- services-pulpcore-client/models/storage_class_enum.py +0 -40
- services-pulpcore-client/models/storage_response.py +0 -108
- services-pulpcore-client/models/task_group_operation_response.py +0 -88
- services-pulpcore-client/models/task_group_response.py +0 -150
- services-pulpcore-client/models/task_response.py +0 -167
- services-pulpcore-client/models/task_schedule_response.py +0 -127
- services-pulpcore-client/models/unset_label.py +0 -96
- services-pulpcore-client/models/unset_label_response.py +0 -100
- services-pulpcore-client/models/upload.py +0 -88
- services-pulpcore-client/models/upload_chunk_response.py +0 -94
- services-pulpcore-client/models/upload_commit.py +0 -89
- services-pulpcore-client/models/upload_detail_response.py +0 -121
- services-pulpcore-client/models/upload_response.py +0 -109
- services-pulpcore-client/models/upstream_pulp.py +0 -147
- services-pulpcore-client/models/upstream_pulp_response.py +0 -158
- services-pulpcore-client/models/user.py +0 -106
- services-pulpcore-client/models/user_group.py +0 -89
- services-pulpcore-client/models/user_group_response.py +0 -97
- services-pulpcore-client/models/user_response.py +0 -140
- services-pulpcore-client/models/user_role.py +0 -110
- services-pulpcore-client/models/user_role_response.py +0 -134
- services-pulpcore-client/models/version_response.py +0 -96
- services-pulpcore-client/models/worker_response.py +0 -119
- services-pulpcore-client/py.typed +0 -0
- services-pulpcore-client/rest.py +0 -258
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250821.1.dist-info}/WHEEL +0 -0
|
@@ -1,897 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Pulp 3 API
|
|
5
|
-
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: v3
|
|
9
|
-
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
""" # noqa: E501
|
|
14
|
-
|
|
15
|
-
import warnings
|
|
16
|
-
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
-
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
-
from typing_extensions import Annotated
|
|
19
|
-
|
|
20
|
-
from pydantic import Field, StrictStr
|
|
21
|
-
from typing import List, Optional
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from services-pulpcore-client.models.login_response import LoginResponse
|
|
24
|
-
|
|
25
|
-
from services-pulpcore-client.api_client import ApiClient, RequestSerialized
|
|
26
|
-
from services-pulpcore-client.api_response import ApiResponse
|
|
27
|
-
from services-pulpcore-client.rest import RESTResponseType
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class LoginApi:
|
|
31
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
-
Ref: https://openapi-generator.tech
|
|
33
|
-
|
|
34
|
-
Do not edit the class manually.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
def __init__(self, api_client=None) -> None:
|
|
38
|
-
if api_client is None:
|
|
39
|
-
api_client = ApiClient.get_default()
|
|
40
|
-
self.api_client = api_client
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@validate_call
|
|
44
|
-
def login(
|
|
45
|
-
self,
|
|
46
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
47
|
-
pulp_domain: StrictStr = "default",
|
|
48
|
-
_request_timeout: Union[
|
|
49
|
-
None,
|
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
-
Tuple[
|
|
52
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
-
]
|
|
55
|
-
] = None,
|
|
56
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
-
_content_type: Optional[StrictStr] = None,
|
|
58
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
-
) -> LoginResponse:
|
|
61
|
-
"""login
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:param pulp_domain: (required)
|
|
65
|
-
:type pulp_domain: str
|
|
66
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
67
|
-
:type x_task_diagnostics: List[str]
|
|
68
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
69
|
-
number provided, it will be total request
|
|
70
|
-
timeout. It can also be a pair (tuple) of
|
|
71
|
-
(connection, read) timeouts.
|
|
72
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
73
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
74
|
-
request; this effectively ignores the
|
|
75
|
-
authentication in the spec for a single request.
|
|
76
|
-
:type _request_auth: dict, optional
|
|
77
|
-
:param _content_type: force content-type for the request.
|
|
78
|
-
:type _content_type: str, Optional
|
|
79
|
-
:param _headers: set to override the headers for a single
|
|
80
|
-
request; this effectively ignores the headers
|
|
81
|
-
in the spec for a single request.
|
|
82
|
-
:type _headers: dict, optional
|
|
83
|
-
:param _host_index: set to override the host_index for a single
|
|
84
|
-
request; this effectively ignores the host_index
|
|
85
|
-
in the spec for a single request.
|
|
86
|
-
:type _host_index: int, optional
|
|
87
|
-
:return: Returns the result object.
|
|
88
|
-
""" # noqa: E501
|
|
89
|
-
|
|
90
|
-
_param = self._login_serialize(
|
|
91
|
-
pulp_domain=pulp_domain,
|
|
92
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
93
|
-
_request_auth=_request_auth,
|
|
94
|
-
_content_type=_content_type,
|
|
95
|
-
_headers=_headers,
|
|
96
|
-
_host_index=_host_index
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
-
'201': "LoginResponse",
|
|
101
|
-
}
|
|
102
|
-
response_data = self.api_client.call_api(
|
|
103
|
-
*_param,
|
|
104
|
-
_request_timeout=_request_timeout
|
|
105
|
-
)
|
|
106
|
-
response_data.read()
|
|
107
|
-
return self.api_client.response_deserialize(
|
|
108
|
-
response_data=response_data,
|
|
109
|
-
response_types_map=_response_types_map,
|
|
110
|
-
).data
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
@validate_call
|
|
114
|
-
def login_with_http_info(
|
|
115
|
-
self,
|
|
116
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
117
|
-
pulp_domain: StrictStr = "default",
|
|
118
|
-
_request_timeout: Union[
|
|
119
|
-
None,
|
|
120
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
121
|
-
Tuple[
|
|
122
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
124
|
-
]
|
|
125
|
-
] = None,
|
|
126
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
127
|
-
_content_type: Optional[StrictStr] = None,
|
|
128
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
130
|
-
) -> ApiResponse[LoginResponse]:
|
|
131
|
-
"""login
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
:param pulp_domain: (required)
|
|
135
|
-
:type pulp_domain: str
|
|
136
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
137
|
-
:type x_task_diagnostics: List[str]
|
|
138
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
139
|
-
number provided, it will be total request
|
|
140
|
-
timeout. It can also be a pair (tuple) of
|
|
141
|
-
(connection, read) timeouts.
|
|
142
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
143
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
144
|
-
request; this effectively ignores the
|
|
145
|
-
authentication in the spec for a single request.
|
|
146
|
-
:type _request_auth: dict, optional
|
|
147
|
-
:param _content_type: force content-type for the request.
|
|
148
|
-
:type _content_type: str, Optional
|
|
149
|
-
:param _headers: set to override the headers for a single
|
|
150
|
-
request; this effectively ignores the headers
|
|
151
|
-
in the spec for a single request.
|
|
152
|
-
:type _headers: dict, optional
|
|
153
|
-
:param _host_index: set to override the host_index for a single
|
|
154
|
-
request; this effectively ignores the host_index
|
|
155
|
-
in the spec for a single request.
|
|
156
|
-
:type _host_index: int, optional
|
|
157
|
-
:return: Returns the result object.
|
|
158
|
-
""" # noqa: E501
|
|
159
|
-
|
|
160
|
-
_param = self._login_serialize(
|
|
161
|
-
pulp_domain=pulp_domain,
|
|
162
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
163
|
-
_request_auth=_request_auth,
|
|
164
|
-
_content_type=_content_type,
|
|
165
|
-
_headers=_headers,
|
|
166
|
-
_host_index=_host_index
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
-
'201': "LoginResponse",
|
|
171
|
-
}
|
|
172
|
-
response_data = self.api_client.call_api(
|
|
173
|
-
*_param,
|
|
174
|
-
_request_timeout=_request_timeout
|
|
175
|
-
)
|
|
176
|
-
response_data.read()
|
|
177
|
-
return self.api_client.response_deserialize(
|
|
178
|
-
response_data=response_data,
|
|
179
|
-
response_types_map=_response_types_map,
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
@validate_call
|
|
184
|
-
def login_without_preload_content(
|
|
185
|
-
self,
|
|
186
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
187
|
-
pulp_domain: StrictStr = "default",
|
|
188
|
-
_request_timeout: Union[
|
|
189
|
-
None,
|
|
190
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
191
|
-
Tuple[
|
|
192
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
194
|
-
]
|
|
195
|
-
] = None,
|
|
196
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
197
|
-
_content_type: Optional[StrictStr] = None,
|
|
198
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
200
|
-
) -> RESTResponseType:
|
|
201
|
-
"""login
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
:param pulp_domain: (required)
|
|
205
|
-
:type pulp_domain: str
|
|
206
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
207
|
-
:type x_task_diagnostics: List[str]
|
|
208
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
209
|
-
number provided, it will be total request
|
|
210
|
-
timeout. It can also be a pair (tuple) of
|
|
211
|
-
(connection, read) timeouts.
|
|
212
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
213
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
214
|
-
request; this effectively ignores the
|
|
215
|
-
authentication in the spec for a single request.
|
|
216
|
-
:type _request_auth: dict, optional
|
|
217
|
-
:param _content_type: force content-type for the request.
|
|
218
|
-
:type _content_type: str, Optional
|
|
219
|
-
:param _headers: set to override the headers for a single
|
|
220
|
-
request; this effectively ignores the headers
|
|
221
|
-
in the spec for a single request.
|
|
222
|
-
:type _headers: dict, optional
|
|
223
|
-
:param _host_index: set to override the host_index for a single
|
|
224
|
-
request; this effectively ignores the host_index
|
|
225
|
-
in the spec for a single request.
|
|
226
|
-
:type _host_index: int, optional
|
|
227
|
-
:return: Returns the result object.
|
|
228
|
-
""" # noqa: E501
|
|
229
|
-
|
|
230
|
-
_param = self._login_serialize(
|
|
231
|
-
pulp_domain=pulp_domain,
|
|
232
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
233
|
-
_request_auth=_request_auth,
|
|
234
|
-
_content_type=_content_type,
|
|
235
|
-
_headers=_headers,
|
|
236
|
-
_host_index=_host_index
|
|
237
|
-
)
|
|
238
|
-
|
|
239
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
-
'201': "LoginResponse",
|
|
241
|
-
}
|
|
242
|
-
response_data = self.api_client.call_api(
|
|
243
|
-
*_param,
|
|
244
|
-
_request_timeout=_request_timeout
|
|
245
|
-
)
|
|
246
|
-
return response_data.response
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
def _login_serialize(
|
|
250
|
-
self,
|
|
251
|
-
pulp_domain,
|
|
252
|
-
x_task_diagnostics,
|
|
253
|
-
_request_auth,
|
|
254
|
-
_content_type,
|
|
255
|
-
_headers,
|
|
256
|
-
_host_index,
|
|
257
|
-
) -> RequestSerialized:
|
|
258
|
-
|
|
259
|
-
_host = None
|
|
260
|
-
|
|
261
|
-
_collection_formats: Dict[str, str] = {
|
|
262
|
-
'X-Task-Diagnostics': 'csv',
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
_path_params: Dict[str, str] = {}
|
|
266
|
-
_query_params: List[Tuple[str, str]] = []
|
|
267
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
268
|
-
_form_params: List[Tuple[str, str]] = []
|
|
269
|
-
_files: Dict[
|
|
270
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
271
|
-
] = {}
|
|
272
|
-
_body_params: Optional[bytes] = None
|
|
273
|
-
|
|
274
|
-
# process the path parameters
|
|
275
|
-
if pulp_domain is not None:
|
|
276
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
277
|
-
# process the query parameters
|
|
278
|
-
# process the header parameters
|
|
279
|
-
if x_task_diagnostics is not None:
|
|
280
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
281
|
-
# process the form parameters
|
|
282
|
-
# process the body parameter
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
# set the HTTP header `Accept`
|
|
286
|
-
if 'Accept' not in _header_params:
|
|
287
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
288
|
-
[
|
|
289
|
-
'application/json'
|
|
290
|
-
]
|
|
291
|
-
)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
# authentication setting
|
|
295
|
-
_auth_settings: List[str] = [
|
|
296
|
-
'json_header_remote_authentication',
|
|
297
|
-
'basicAuth',
|
|
298
|
-
'cookieAuth'
|
|
299
|
-
]
|
|
300
|
-
|
|
301
|
-
return self.api_client.param_serialize(
|
|
302
|
-
method='POST',
|
|
303
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/login/',
|
|
304
|
-
path_params=_path_params,
|
|
305
|
-
query_params=_query_params,
|
|
306
|
-
header_params=_header_params,
|
|
307
|
-
body=_body_params,
|
|
308
|
-
post_params=_form_params,
|
|
309
|
-
files=_files,
|
|
310
|
-
auth_settings=_auth_settings,
|
|
311
|
-
collection_formats=_collection_formats,
|
|
312
|
-
_host=_host,
|
|
313
|
-
_request_auth=_request_auth
|
|
314
|
-
)
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
@validate_call
|
|
320
|
-
def login_read(
|
|
321
|
-
self,
|
|
322
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
323
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
324
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
325
|
-
pulp_domain: StrictStr = "default",
|
|
326
|
-
_request_timeout: Union[
|
|
327
|
-
None,
|
|
328
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
329
|
-
Tuple[
|
|
330
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
331
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
332
|
-
]
|
|
333
|
-
] = None,
|
|
334
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
335
|
-
_content_type: Optional[StrictStr] = None,
|
|
336
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
337
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
338
|
-
) -> LoginResponse:
|
|
339
|
-
"""login_read
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
:param pulp_domain: (required)
|
|
343
|
-
:type pulp_domain: str
|
|
344
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
345
|
-
:type x_task_diagnostics: List[str]
|
|
346
|
-
:param fields: A list of fields to include in the response.
|
|
347
|
-
:type fields: List[str]
|
|
348
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
349
|
-
:type exclude_fields: List[str]
|
|
350
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
351
|
-
number provided, it will be total request
|
|
352
|
-
timeout. It can also be a pair (tuple) of
|
|
353
|
-
(connection, read) timeouts.
|
|
354
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
355
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
356
|
-
request; this effectively ignores the
|
|
357
|
-
authentication in the spec for a single request.
|
|
358
|
-
:type _request_auth: dict, optional
|
|
359
|
-
:param _content_type: force content-type for the request.
|
|
360
|
-
:type _content_type: str, Optional
|
|
361
|
-
:param _headers: set to override the headers for a single
|
|
362
|
-
request; this effectively ignores the headers
|
|
363
|
-
in the spec for a single request.
|
|
364
|
-
:type _headers: dict, optional
|
|
365
|
-
:param _host_index: set to override the host_index for a single
|
|
366
|
-
request; this effectively ignores the host_index
|
|
367
|
-
in the spec for a single request.
|
|
368
|
-
:type _host_index: int, optional
|
|
369
|
-
:return: Returns the result object.
|
|
370
|
-
""" # noqa: E501
|
|
371
|
-
|
|
372
|
-
_param = self._login_read_serialize(
|
|
373
|
-
pulp_domain=pulp_domain,
|
|
374
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
375
|
-
fields=fields,
|
|
376
|
-
exclude_fields=exclude_fields,
|
|
377
|
-
_request_auth=_request_auth,
|
|
378
|
-
_content_type=_content_type,
|
|
379
|
-
_headers=_headers,
|
|
380
|
-
_host_index=_host_index
|
|
381
|
-
)
|
|
382
|
-
|
|
383
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
384
|
-
'200': "LoginResponse",
|
|
385
|
-
}
|
|
386
|
-
response_data = self.api_client.call_api(
|
|
387
|
-
*_param,
|
|
388
|
-
_request_timeout=_request_timeout
|
|
389
|
-
)
|
|
390
|
-
response_data.read()
|
|
391
|
-
return self.api_client.response_deserialize(
|
|
392
|
-
response_data=response_data,
|
|
393
|
-
response_types_map=_response_types_map,
|
|
394
|
-
).data
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
@validate_call
|
|
398
|
-
def login_read_with_http_info(
|
|
399
|
-
self,
|
|
400
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
401
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
402
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
403
|
-
pulp_domain: StrictStr = "default",
|
|
404
|
-
_request_timeout: Union[
|
|
405
|
-
None,
|
|
406
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
407
|
-
Tuple[
|
|
408
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
409
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
410
|
-
]
|
|
411
|
-
] = None,
|
|
412
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
413
|
-
_content_type: Optional[StrictStr] = None,
|
|
414
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
415
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
416
|
-
) -> ApiResponse[LoginResponse]:
|
|
417
|
-
"""login_read
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
:param pulp_domain: (required)
|
|
421
|
-
:type pulp_domain: str
|
|
422
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
423
|
-
:type x_task_diagnostics: List[str]
|
|
424
|
-
:param fields: A list of fields to include in the response.
|
|
425
|
-
:type fields: List[str]
|
|
426
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
427
|
-
:type exclude_fields: List[str]
|
|
428
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
429
|
-
number provided, it will be total request
|
|
430
|
-
timeout. It can also be a pair (tuple) of
|
|
431
|
-
(connection, read) timeouts.
|
|
432
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
433
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
434
|
-
request; this effectively ignores the
|
|
435
|
-
authentication in the spec for a single request.
|
|
436
|
-
:type _request_auth: dict, optional
|
|
437
|
-
:param _content_type: force content-type for the request.
|
|
438
|
-
:type _content_type: str, Optional
|
|
439
|
-
:param _headers: set to override the headers for a single
|
|
440
|
-
request; this effectively ignores the headers
|
|
441
|
-
in the spec for a single request.
|
|
442
|
-
:type _headers: dict, optional
|
|
443
|
-
:param _host_index: set to override the host_index for a single
|
|
444
|
-
request; this effectively ignores the host_index
|
|
445
|
-
in the spec for a single request.
|
|
446
|
-
:type _host_index: int, optional
|
|
447
|
-
:return: Returns the result object.
|
|
448
|
-
""" # noqa: E501
|
|
449
|
-
|
|
450
|
-
_param = self._login_read_serialize(
|
|
451
|
-
pulp_domain=pulp_domain,
|
|
452
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
453
|
-
fields=fields,
|
|
454
|
-
exclude_fields=exclude_fields,
|
|
455
|
-
_request_auth=_request_auth,
|
|
456
|
-
_content_type=_content_type,
|
|
457
|
-
_headers=_headers,
|
|
458
|
-
_host_index=_host_index
|
|
459
|
-
)
|
|
460
|
-
|
|
461
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
462
|
-
'200': "LoginResponse",
|
|
463
|
-
}
|
|
464
|
-
response_data = self.api_client.call_api(
|
|
465
|
-
*_param,
|
|
466
|
-
_request_timeout=_request_timeout
|
|
467
|
-
)
|
|
468
|
-
response_data.read()
|
|
469
|
-
return self.api_client.response_deserialize(
|
|
470
|
-
response_data=response_data,
|
|
471
|
-
response_types_map=_response_types_map,
|
|
472
|
-
)
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
@validate_call
|
|
476
|
-
def login_read_without_preload_content(
|
|
477
|
-
self,
|
|
478
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
479
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
480
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
481
|
-
pulp_domain: StrictStr = "default",
|
|
482
|
-
_request_timeout: Union[
|
|
483
|
-
None,
|
|
484
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
485
|
-
Tuple[
|
|
486
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
487
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
488
|
-
]
|
|
489
|
-
] = None,
|
|
490
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
491
|
-
_content_type: Optional[StrictStr] = None,
|
|
492
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
493
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
494
|
-
) -> RESTResponseType:
|
|
495
|
-
"""login_read
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
:param pulp_domain: (required)
|
|
499
|
-
:type pulp_domain: str
|
|
500
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
501
|
-
:type x_task_diagnostics: List[str]
|
|
502
|
-
:param fields: A list of fields to include in the response.
|
|
503
|
-
:type fields: List[str]
|
|
504
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
505
|
-
:type exclude_fields: List[str]
|
|
506
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
507
|
-
number provided, it will be total request
|
|
508
|
-
timeout. It can also be a pair (tuple) of
|
|
509
|
-
(connection, read) timeouts.
|
|
510
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
511
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
512
|
-
request; this effectively ignores the
|
|
513
|
-
authentication in the spec for a single request.
|
|
514
|
-
:type _request_auth: dict, optional
|
|
515
|
-
:param _content_type: force content-type for the request.
|
|
516
|
-
:type _content_type: str, Optional
|
|
517
|
-
:param _headers: set to override the headers for a single
|
|
518
|
-
request; this effectively ignores the headers
|
|
519
|
-
in the spec for a single request.
|
|
520
|
-
:type _headers: dict, optional
|
|
521
|
-
:param _host_index: set to override the host_index for a single
|
|
522
|
-
request; this effectively ignores the host_index
|
|
523
|
-
in the spec for a single request.
|
|
524
|
-
:type _host_index: int, optional
|
|
525
|
-
:return: Returns the result object.
|
|
526
|
-
""" # noqa: E501
|
|
527
|
-
|
|
528
|
-
_param = self._login_read_serialize(
|
|
529
|
-
pulp_domain=pulp_domain,
|
|
530
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
531
|
-
fields=fields,
|
|
532
|
-
exclude_fields=exclude_fields,
|
|
533
|
-
_request_auth=_request_auth,
|
|
534
|
-
_content_type=_content_type,
|
|
535
|
-
_headers=_headers,
|
|
536
|
-
_host_index=_host_index
|
|
537
|
-
)
|
|
538
|
-
|
|
539
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
540
|
-
'200': "LoginResponse",
|
|
541
|
-
}
|
|
542
|
-
response_data = self.api_client.call_api(
|
|
543
|
-
*_param,
|
|
544
|
-
_request_timeout=_request_timeout
|
|
545
|
-
)
|
|
546
|
-
return response_data.response
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
def _login_read_serialize(
|
|
550
|
-
self,
|
|
551
|
-
pulp_domain,
|
|
552
|
-
x_task_diagnostics,
|
|
553
|
-
fields,
|
|
554
|
-
exclude_fields,
|
|
555
|
-
_request_auth,
|
|
556
|
-
_content_type,
|
|
557
|
-
_headers,
|
|
558
|
-
_host_index,
|
|
559
|
-
) -> RequestSerialized:
|
|
560
|
-
|
|
561
|
-
_host = None
|
|
562
|
-
|
|
563
|
-
_collection_formats: Dict[str, str] = {
|
|
564
|
-
'X-Task-Diagnostics': 'csv',
|
|
565
|
-
'fields': 'multi',
|
|
566
|
-
'exclude_fields': 'multi',
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
_path_params: Dict[str, str] = {}
|
|
570
|
-
_query_params: List[Tuple[str, str]] = []
|
|
571
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
572
|
-
_form_params: List[Tuple[str, str]] = []
|
|
573
|
-
_files: Dict[
|
|
574
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
575
|
-
] = {}
|
|
576
|
-
_body_params: Optional[bytes] = None
|
|
577
|
-
|
|
578
|
-
# process the path parameters
|
|
579
|
-
if pulp_domain is not None:
|
|
580
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
581
|
-
# process the query parameters
|
|
582
|
-
if fields is not None:
|
|
583
|
-
|
|
584
|
-
_query_params.append(('fields', fields))
|
|
585
|
-
|
|
586
|
-
if exclude_fields is not None:
|
|
587
|
-
|
|
588
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
589
|
-
|
|
590
|
-
# process the header parameters
|
|
591
|
-
if x_task_diagnostics is not None:
|
|
592
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
593
|
-
# process the form parameters
|
|
594
|
-
# process the body parameter
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
# set the HTTP header `Accept`
|
|
598
|
-
if 'Accept' not in _header_params:
|
|
599
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
600
|
-
[
|
|
601
|
-
'application/json'
|
|
602
|
-
]
|
|
603
|
-
)
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
# authentication setting
|
|
607
|
-
_auth_settings: List[str] = [
|
|
608
|
-
'json_header_remote_authentication',
|
|
609
|
-
'basicAuth',
|
|
610
|
-
'cookieAuth'
|
|
611
|
-
]
|
|
612
|
-
|
|
613
|
-
return self.api_client.param_serialize(
|
|
614
|
-
method='GET',
|
|
615
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/login/',
|
|
616
|
-
path_params=_path_params,
|
|
617
|
-
query_params=_query_params,
|
|
618
|
-
header_params=_header_params,
|
|
619
|
-
body=_body_params,
|
|
620
|
-
post_params=_form_params,
|
|
621
|
-
files=_files,
|
|
622
|
-
auth_settings=_auth_settings,
|
|
623
|
-
collection_formats=_collection_formats,
|
|
624
|
-
_host=_host,
|
|
625
|
-
_request_auth=_request_auth
|
|
626
|
-
)
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
@validate_call
|
|
632
|
-
def logout(
|
|
633
|
-
self,
|
|
634
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
635
|
-
pulp_domain: StrictStr = "default",
|
|
636
|
-
_request_timeout: Union[
|
|
637
|
-
None,
|
|
638
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
639
|
-
Tuple[
|
|
640
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
641
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
642
|
-
]
|
|
643
|
-
] = None,
|
|
644
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
645
|
-
_content_type: Optional[StrictStr] = None,
|
|
646
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
647
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
648
|
-
) -> None:
|
|
649
|
-
"""logout
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
:param pulp_domain: (required)
|
|
653
|
-
:type pulp_domain: str
|
|
654
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
655
|
-
:type x_task_diagnostics: List[str]
|
|
656
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
657
|
-
number provided, it will be total request
|
|
658
|
-
timeout. It can also be a pair (tuple) of
|
|
659
|
-
(connection, read) timeouts.
|
|
660
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
661
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
662
|
-
request; this effectively ignores the
|
|
663
|
-
authentication in the spec for a single request.
|
|
664
|
-
:type _request_auth: dict, optional
|
|
665
|
-
:param _content_type: force content-type for the request.
|
|
666
|
-
:type _content_type: str, Optional
|
|
667
|
-
:param _headers: set to override the headers for a single
|
|
668
|
-
request; this effectively ignores the headers
|
|
669
|
-
in the spec for a single request.
|
|
670
|
-
:type _headers: dict, optional
|
|
671
|
-
:param _host_index: set to override the host_index for a single
|
|
672
|
-
request; this effectively ignores the host_index
|
|
673
|
-
in the spec for a single request.
|
|
674
|
-
:type _host_index: int, optional
|
|
675
|
-
:return: Returns the result object.
|
|
676
|
-
""" # noqa: E501
|
|
677
|
-
|
|
678
|
-
_param = self._logout_serialize(
|
|
679
|
-
pulp_domain=pulp_domain,
|
|
680
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
681
|
-
_request_auth=_request_auth,
|
|
682
|
-
_content_type=_content_type,
|
|
683
|
-
_headers=_headers,
|
|
684
|
-
_host_index=_host_index
|
|
685
|
-
)
|
|
686
|
-
|
|
687
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
688
|
-
'204': None,
|
|
689
|
-
}
|
|
690
|
-
response_data = self.api_client.call_api(
|
|
691
|
-
*_param,
|
|
692
|
-
_request_timeout=_request_timeout
|
|
693
|
-
)
|
|
694
|
-
response_data.read()
|
|
695
|
-
return self.api_client.response_deserialize(
|
|
696
|
-
response_data=response_data,
|
|
697
|
-
response_types_map=_response_types_map,
|
|
698
|
-
).data
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
@validate_call
|
|
702
|
-
def logout_with_http_info(
|
|
703
|
-
self,
|
|
704
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
705
|
-
pulp_domain: StrictStr = "default",
|
|
706
|
-
_request_timeout: Union[
|
|
707
|
-
None,
|
|
708
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
709
|
-
Tuple[
|
|
710
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
711
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
712
|
-
]
|
|
713
|
-
] = None,
|
|
714
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
715
|
-
_content_type: Optional[StrictStr] = None,
|
|
716
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
717
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
718
|
-
) -> ApiResponse[None]:
|
|
719
|
-
"""logout
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
:param pulp_domain: (required)
|
|
723
|
-
:type pulp_domain: str
|
|
724
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
725
|
-
:type x_task_diagnostics: List[str]
|
|
726
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
727
|
-
number provided, it will be total request
|
|
728
|
-
timeout. It can also be a pair (tuple) of
|
|
729
|
-
(connection, read) timeouts.
|
|
730
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
731
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
732
|
-
request; this effectively ignores the
|
|
733
|
-
authentication in the spec for a single request.
|
|
734
|
-
:type _request_auth: dict, optional
|
|
735
|
-
:param _content_type: force content-type for the request.
|
|
736
|
-
:type _content_type: str, Optional
|
|
737
|
-
:param _headers: set to override the headers for a single
|
|
738
|
-
request; this effectively ignores the headers
|
|
739
|
-
in the spec for a single request.
|
|
740
|
-
:type _headers: dict, optional
|
|
741
|
-
:param _host_index: set to override the host_index for a single
|
|
742
|
-
request; this effectively ignores the host_index
|
|
743
|
-
in the spec for a single request.
|
|
744
|
-
:type _host_index: int, optional
|
|
745
|
-
:return: Returns the result object.
|
|
746
|
-
""" # noqa: E501
|
|
747
|
-
|
|
748
|
-
_param = self._logout_serialize(
|
|
749
|
-
pulp_domain=pulp_domain,
|
|
750
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
751
|
-
_request_auth=_request_auth,
|
|
752
|
-
_content_type=_content_type,
|
|
753
|
-
_headers=_headers,
|
|
754
|
-
_host_index=_host_index
|
|
755
|
-
)
|
|
756
|
-
|
|
757
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
758
|
-
'204': None,
|
|
759
|
-
}
|
|
760
|
-
response_data = self.api_client.call_api(
|
|
761
|
-
*_param,
|
|
762
|
-
_request_timeout=_request_timeout
|
|
763
|
-
)
|
|
764
|
-
response_data.read()
|
|
765
|
-
return self.api_client.response_deserialize(
|
|
766
|
-
response_data=response_data,
|
|
767
|
-
response_types_map=_response_types_map,
|
|
768
|
-
)
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
@validate_call
|
|
772
|
-
def logout_without_preload_content(
|
|
773
|
-
self,
|
|
774
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
775
|
-
pulp_domain: StrictStr = "default",
|
|
776
|
-
_request_timeout: Union[
|
|
777
|
-
None,
|
|
778
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
779
|
-
Tuple[
|
|
780
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
781
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
782
|
-
]
|
|
783
|
-
] = None,
|
|
784
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
785
|
-
_content_type: Optional[StrictStr] = None,
|
|
786
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
787
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
788
|
-
) -> RESTResponseType:
|
|
789
|
-
"""logout
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
:param pulp_domain: (required)
|
|
793
|
-
:type pulp_domain: str
|
|
794
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
795
|
-
:type x_task_diagnostics: List[str]
|
|
796
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
797
|
-
number provided, it will be total request
|
|
798
|
-
timeout. It can also be a pair (tuple) of
|
|
799
|
-
(connection, read) timeouts.
|
|
800
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
801
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
802
|
-
request; this effectively ignores the
|
|
803
|
-
authentication in the spec for a single request.
|
|
804
|
-
:type _request_auth: dict, optional
|
|
805
|
-
:param _content_type: force content-type for the request.
|
|
806
|
-
:type _content_type: str, Optional
|
|
807
|
-
:param _headers: set to override the headers for a single
|
|
808
|
-
request; this effectively ignores the headers
|
|
809
|
-
in the spec for a single request.
|
|
810
|
-
:type _headers: dict, optional
|
|
811
|
-
:param _host_index: set to override the host_index for a single
|
|
812
|
-
request; this effectively ignores the host_index
|
|
813
|
-
in the spec for a single request.
|
|
814
|
-
:type _host_index: int, optional
|
|
815
|
-
:return: Returns the result object.
|
|
816
|
-
""" # noqa: E501
|
|
817
|
-
|
|
818
|
-
_param = self._logout_serialize(
|
|
819
|
-
pulp_domain=pulp_domain,
|
|
820
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
821
|
-
_request_auth=_request_auth,
|
|
822
|
-
_content_type=_content_type,
|
|
823
|
-
_headers=_headers,
|
|
824
|
-
_host_index=_host_index
|
|
825
|
-
)
|
|
826
|
-
|
|
827
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
828
|
-
'204': None,
|
|
829
|
-
}
|
|
830
|
-
response_data = self.api_client.call_api(
|
|
831
|
-
*_param,
|
|
832
|
-
_request_timeout=_request_timeout
|
|
833
|
-
)
|
|
834
|
-
return response_data.response
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
def _logout_serialize(
|
|
838
|
-
self,
|
|
839
|
-
pulp_domain,
|
|
840
|
-
x_task_diagnostics,
|
|
841
|
-
_request_auth,
|
|
842
|
-
_content_type,
|
|
843
|
-
_headers,
|
|
844
|
-
_host_index,
|
|
845
|
-
) -> RequestSerialized:
|
|
846
|
-
|
|
847
|
-
_host = None
|
|
848
|
-
|
|
849
|
-
_collection_formats: Dict[str, str] = {
|
|
850
|
-
'X-Task-Diagnostics': 'csv',
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
_path_params: Dict[str, str] = {}
|
|
854
|
-
_query_params: List[Tuple[str, str]] = []
|
|
855
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
856
|
-
_form_params: List[Tuple[str, str]] = []
|
|
857
|
-
_files: Dict[
|
|
858
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
859
|
-
] = {}
|
|
860
|
-
_body_params: Optional[bytes] = None
|
|
861
|
-
|
|
862
|
-
# process the path parameters
|
|
863
|
-
if pulp_domain is not None:
|
|
864
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
865
|
-
# process the query parameters
|
|
866
|
-
# process the header parameters
|
|
867
|
-
if x_task_diagnostics is not None:
|
|
868
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
869
|
-
# process the form parameters
|
|
870
|
-
# process the body parameter
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
# authentication setting
|
|
876
|
-
_auth_settings: List[str] = [
|
|
877
|
-
'json_header_remote_authentication',
|
|
878
|
-
'basicAuth',
|
|
879
|
-
'cookieAuth'
|
|
880
|
-
]
|
|
881
|
-
|
|
882
|
-
return self.api_client.param_serialize(
|
|
883
|
-
method='DELETE',
|
|
884
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/login/',
|
|
885
|
-
path_params=_path_params,
|
|
886
|
-
query_params=_query_params,
|
|
887
|
-
header_params=_header_params,
|
|
888
|
-
body=_body_params,
|
|
889
|
-
post_params=_form_params,
|
|
890
|
-
files=_files,
|
|
891
|
-
auth_settings=_auth_settings,
|
|
892
|
-
collection_formats=_collection_formats,
|
|
893
|
-
_host=_host,
|
|
894
|
-
_request_auth=_request_auth
|
|
895
|
-
)
|
|
896
|
-
|
|
897
|
-
|