crc-pulpcore-client 20250819.1__py3-none-any.whl → 20250820.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 +17 -17
- {crc_pulpcore_client-20250819.1.dist-info → crc_pulpcore_client-20250820.1.dist-info}/METADATA +1 -1
- crc_pulpcore_client-20250820.1.dist-info/RECORD +234 -0
- crc_pulpcore_client-20250820.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-20250820.1.dist-info}/WHEEL +0 -0
|
@@ -1,4001 +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 datetime import datetime
|
|
21
|
-
from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
|
|
22
|
-
from typing import List, Optional
|
|
23
|
-
from typing_extensions import Annotated
|
|
24
|
-
from services-pulpcore-client.models.my_permissions_response import MyPermissionsResponse
|
|
25
|
-
from services-pulpcore-client.models.nested_role import NestedRole
|
|
26
|
-
from services-pulpcore-client.models.nested_role_response import NestedRoleResponse
|
|
27
|
-
from services-pulpcore-client.models.object_roles_response import ObjectRolesResponse
|
|
28
|
-
from services-pulpcore-client.models.paginated_upstream_pulp_response_list import PaginatedUpstreamPulpResponseList
|
|
29
|
-
from services-pulpcore-client.models.patched_upstream_pulp import PatchedUpstreamPulp
|
|
30
|
-
from services-pulpcore-client.models.task_group_operation_response import TaskGroupOperationResponse
|
|
31
|
-
from services-pulpcore-client.models.upstream_pulp import UpstreamPulp
|
|
32
|
-
from services-pulpcore-client.models.upstream_pulp_response import UpstreamPulpResponse
|
|
33
|
-
|
|
34
|
-
from services-pulpcore-client.api_client import ApiClient, RequestSerialized
|
|
35
|
-
from services-pulpcore-client.api_response import ApiResponse
|
|
36
|
-
from services-pulpcore-client.rest import RESTResponseType
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class UpstreamPulpsApi:
|
|
40
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
41
|
-
Ref: https://openapi-generator.tech
|
|
42
|
-
|
|
43
|
-
Do not edit the class manually.
|
|
44
|
-
"""
|
|
45
|
-
|
|
46
|
-
def __init__(self, api_client=None) -> None:
|
|
47
|
-
if api_client is None:
|
|
48
|
-
api_client = ApiClient.get_default()
|
|
49
|
-
self.api_client = api_client
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@validate_call
|
|
53
|
-
def add_role(
|
|
54
|
-
self,
|
|
55
|
-
upstream_pulp_href: StrictStr,
|
|
56
|
-
nested_role: NestedRole,
|
|
57
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
58
|
-
_request_timeout: Union[
|
|
59
|
-
None,
|
|
60
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
-
Tuple[
|
|
62
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
63
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
64
|
-
]
|
|
65
|
-
] = None,
|
|
66
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
-
_content_type: Optional[StrictStr] = None,
|
|
68
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
69
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
70
|
-
) -> NestedRoleResponse:
|
|
71
|
-
"""Add a role
|
|
72
|
-
|
|
73
|
-
Add a role for this object to users/groups.
|
|
74
|
-
|
|
75
|
-
:param upstream_pulp_href: (required)
|
|
76
|
-
:type upstream_pulp_href: str
|
|
77
|
-
:param nested_role: (required)
|
|
78
|
-
:type nested_role: NestedRole
|
|
79
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
80
|
-
:type x_task_diagnostics: List[str]
|
|
81
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
82
|
-
number provided, it will be total request
|
|
83
|
-
timeout. It can also be a pair (tuple) of
|
|
84
|
-
(connection, read) timeouts.
|
|
85
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
86
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
87
|
-
request; this effectively ignores the
|
|
88
|
-
authentication in the spec for a single request.
|
|
89
|
-
:type _request_auth: dict, optional
|
|
90
|
-
:param _content_type: force content-type for the request.
|
|
91
|
-
:type _content_type: str, Optional
|
|
92
|
-
:param _headers: set to override the headers for a single
|
|
93
|
-
request; this effectively ignores the headers
|
|
94
|
-
in the spec for a single request.
|
|
95
|
-
:type _headers: dict, optional
|
|
96
|
-
:param _host_index: set to override the host_index for a single
|
|
97
|
-
request; this effectively ignores the host_index
|
|
98
|
-
in the spec for a single request.
|
|
99
|
-
:type _host_index: int, optional
|
|
100
|
-
:return: Returns the result object.
|
|
101
|
-
""" # noqa: E501
|
|
102
|
-
|
|
103
|
-
_param = self._add_role_serialize(
|
|
104
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
105
|
-
nested_role=nested_role,
|
|
106
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
107
|
-
_request_auth=_request_auth,
|
|
108
|
-
_content_type=_content_type,
|
|
109
|
-
_headers=_headers,
|
|
110
|
-
_host_index=_host_index
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
114
|
-
'201': "NestedRoleResponse",
|
|
115
|
-
}
|
|
116
|
-
response_data = self.api_client.call_api(
|
|
117
|
-
*_param,
|
|
118
|
-
_request_timeout=_request_timeout
|
|
119
|
-
)
|
|
120
|
-
response_data.read()
|
|
121
|
-
return self.api_client.response_deserialize(
|
|
122
|
-
response_data=response_data,
|
|
123
|
-
response_types_map=_response_types_map,
|
|
124
|
-
).data
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@validate_call
|
|
128
|
-
def add_role_with_http_info(
|
|
129
|
-
self,
|
|
130
|
-
upstream_pulp_href: StrictStr,
|
|
131
|
-
nested_role: NestedRole,
|
|
132
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
133
|
-
_request_timeout: Union[
|
|
134
|
-
None,
|
|
135
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
136
|
-
Tuple[
|
|
137
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
138
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
139
|
-
]
|
|
140
|
-
] = None,
|
|
141
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
142
|
-
_content_type: Optional[StrictStr] = None,
|
|
143
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
144
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
145
|
-
) -> ApiResponse[NestedRoleResponse]:
|
|
146
|
-
"""Add a role
|
|
147
|
-
|
|
148
|
-
Add a role for this object to users/groups.
|
|
149
|
-
|
|
150
|
-
:param upstream_pulp_href: (required)
|
|
151
|
-
:type upstream_pulp_href: str
|
|
152
|
-
:param nested_role: (required)
|
|
153
|
-
:type nested_role: NestedRole
|
|
154
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
155
|
-
:type x_task_diagnostics: List[str]
|
|
156
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
157
|
-
number provided, it will be total request
|
|
158
|
-
timeout. It can also be a pair (tuple) of
|
|
159
|
-
(connection, read) timeouts.
|
|
160
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
161
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
162
|
-
request; this effectively ignores the
|
|
163
|
-
authentication in the spec for a single request.
|
|
164
|
-
:type _request_auth: dict, optional
|
|
165
|
-
:param _content_type: force content-type for the request.
|
|
166
|
-
:type _content_type: str, Optional
|
|
167
|
-
:param _headers: set to override the headers for a single
|
|
168
|
-
request; this effectively ignores the headers
|
|
169
|
-
in the spec for a single request.
|
|
170
|
-
:type _headers: dict, optional
|
|
171
|
-
:param _host_index: set to override the host_index for a single
|
|
172
|
-
request; this effectively ignores the host_index
|
|
173
|
-
in the spec for a single request.
|
|
174
|
-
:type _host_index: int, optional
|
|
175
|
-
:return: Returns the result object.
|
|
176
|
-
""" # noqa: E501
|
|
177
|
-
|
|
178
|
-
_param = self._add_role_serialize(
|
|
179
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
180
|
-
nested_role=nested_role,
|
|
181
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
182
|
-
_request_auth=_request_auth,
|
|
183
|
-
_content_type=_content_type,
|
|
184
|
-
_headers=_headers,
|
|
185
|
-
_host_index=_host_index
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
189
|
-
'201': "NestedRoleResponse",
|
|
190
|
-
}
|
|
191
|
-
response_data = self.api_client.call_api(
|
|
192
|
-
*_param,
|
|
193
|
-
_request_timeout=_request_timeout
|
|
194
|
-
)
|
|
195
|
-
response_data.read()
|
|
196
|
-
return self.api_client.response_deserialize(
|
|
197
|
-
response_data=response_data,
|
|
198
|
-
response_types_map=_response_types_map,
|
|
199
|
-
)
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
@validate_call
|
|
203
|
-
def add_role_without_preload_content(
|
|
204
|
-
self,
|
|
205
|
-
upstream_pulp_href: StrictStr,
|
|
206
|
-
nested_role: NestedRole,
|
|
207
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
208
|
-
_request_timeout: Union[
|
|
209
|
-
None,
|
|
210
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
211
|
-
Tuple[
|
|
212
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
213
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
214
|
-
]
|
|
215
|
-
] = None,
|
|
216
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
217
|
-
_content_type: Optional[StrictStr] = None,
|
|
218
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
219
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
220
|
-
) -> RESTResponseType:
|
|
221
|
-
"""Add a role
|
|
222
|
-
|
|
223
|
-
Add a role for this object to users/groups.
|
|
224
|
-
|
|
225
|
-
:param upstream_pulp_href: (required)
|
|
226
|
-
:type upstream_pulp_href: str
|
|
227
|
-
:param nested_role: (required)
|
|
228
|
-
:type nested_role: NestedRole
|
|
229
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
230
|
-
:type x_task_diagnostics: List[str]
|
|
231
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
232
|
-
number provided, it will be total request
|
|
233
|
-
timeout. It can also be a pair (tuple) of
|
|
234
|
-
(connection, read) timeouts.
|
|
235
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
236
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
237
|
-
request; this effectively ignores the
|
|
238
|
-
authentication in the spec for a single request.
|
|
239
|
-
:type _request_auth: dict, optional
|
|
240
|
-
:param _content_type: force content-type for the request.
|
|
241
|
-
:type _content_type: str, Optional
|
|
242
|
-
:param _headers: set to override the headers for a single
|
|
243
|
-
request; this effectively ignores the headers
|
|
244
|
-
in the spec for a single request.
|
|
245
|
-
:type _headers: dict, optional
|
|
246
|
-
:param _host_index: set to override the host_index for a single
|
|
247
|
-
request; this effectively ignores the host_index
|
|
248
|
-
in the spec for a single request.
|
|
249
|
-
:type _host_index: int, optional
|
|
250
|
-
:return: Returns the result object.
|
|
251
|
-
""" # noqa: E501
|
|
252
|
-
|
|
253
|
-
_param = self._add_role_serialize(
|
|
254
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
255
|
-
nested_role=nested_role,
|
|
256
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
257
|
-
_request_auth=_request_auth,
|
|
258
|
-
_content_type=_content_type,
|
|
259
|
-
_headers=_headers,
|
|
260
|
-
_host_index=_host_index
|
|
261
|
-
)
|
|
262
|
-
|
|
263
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
264
|
-
'201': "NestedRoleResponse",
|
|
265
|
-
}
|
|
266
|
-
response_data = self.api_client.call_api(
|
|
267
|
-
*_param,
|
|
268
|
-
_request_timeout=_request_timeout
|
|
269
|
-
)
|
|
270
|
-
return response_data.response
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
def _add_role_serialize(
|
|
274
|
-
self,
|
|
275
|
-
upstream_pulp_href,
|
|
276
|
-
nested_role,
|
|
277
|
-
x_task_diagnostics,
|
|
278
|
-
_request_auth,
|
|
279
|
-
_content_type,
|
|
280
|
-
_headers,
|
|
281
|
-
_host_index,
|
|
282
|
-
) -> RequestSerialized:
|
|
283
|
-
|
|
284
|
-
_host = None
|
|
285
|
-
|
|
286
|
-
_collection_formats: Dict[str, str] = {
|
|
287
|
-
'X-Task-Diagnostics': 'csv',
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
_path_params: Dict[str, str] = {}
|
|
291
|
-
_query_params: List[Tuple[str, str]] = []
|
|
292
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
293
|
-
_form_params: List[Tuple[str, str]] = []
|
|
294
|
-
_files: Dict[
|
|
295
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
296
|
-
] = {}
|
|
297
|
-
_body_params: Optional[bytes] = None
|
|
298
|
-
|
|
299
|
-
# process the path parameters
|
|
300
|
-
if upstream_pulp_href is not None:
|
|
301
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
302
|
-
# process the query parameters
|
|
303
|
-
# process the header parameters
|
|
304
|
-
if x_task_diagnostics is not None:
|
|
305
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
306
|
-
# process the form parameters
|
|
307
|
-
# process the body parameter
|
|
308
|
-
if nested_role is not None:
|
|
309
|
-
_body_params = nested_role
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
# set the HTTP header `Accept`
|
|
313
|
-
if 'Accept' not in _header_params:
|
|
314
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
315
|
-
[
|
|
316
|
-
'application/json'
|
|
317
|
-
]
|
|
318
|
-
)
|
|
319
|
-
|
|
320
|
-
# set the HTTP header `Content-Type`
|
|
321
|
-
if _content_type:
|
|
322
|
-
_header_params['Content-Type'] = _content_type
|
|
323
|
-
else:
|
|
324
|
-
_default_content_type = (
|
|
325
|
-
self.api_client.select_header_content_type(
|
|
326
|
-
[
|
|
327
|
-
'application/json',
|
|
328
|
-
'application/x-www-form-urlencoded',
|
|
329
|
-
'multipart/form-data'
|
|
330
|
-
]
|
|
331
|
-
)
|
|
332
|
-
)
|
|
333
|
-
if _default_content_type is not None:
|
|
334
|
-
_header_params['Content-Type'] = _default_content_type
|
|
335
|
-
|
|
336
|
-
# authentication setting
|
|
337
|
-
_auth_settings: List[str] = [
|
|
338
|
-
'json_header_remote_authentication',
|
|
339
|
-
'basicAuth',
|
|
340
|
-
'cookieAuth'
|
|
341
|
-
]
|
|
342
|
-
|
|
343
|
-
return self.api_client.param_serialize(
|
|
344
|
-
method='POST',
|
|
345
|
-
resource_path='{upstream_pulp_href}add_role/',
|
|
346
|
-
path_params=_path_params,
|
|
347
|
-
query_params=_query_params,
|
|
348
|
-
header_params=_header_params,
|
|
349
|
-
body=_body_params,
|
|
350
|
-
post_params=_form_params,
|
|
351
|
-
files=_files,
|
|
352
|
-
auth_settings=_auth_settings,
|
|
353
|
-
collection_formats=_collection_formats,
|
|
354
|
-
_host=_host,
|
|
355
|
-
_request_auth=_request_auth
|
|
356
|
-
)
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
@validate_call
|
|
362
|
-
def create(
|
|
363
|
-
self,
|
|
364
|
-
upstream_pulp: UpstreamPulp,
|
|
365
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
366
|
-
pulp_domain: StrictStr = "default",
|
|
367
|
-
_request_timeout: Union[
|
|
368
|
-
None,
|
|
369
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
370
|
-
Tuple[
|
|
371
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
372
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
373
|
-
]
|
|
374
|
-
] = None,
|
|
375
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
376
|
-
_content_type: Optional[StrictStr] = None,
|
|
377
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
378
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
379
|
-
) -> UpstreamPulpResponse:
|
|
380
|
-
"""Create an upstream pulp
|
|
381
|
-
|
|
382
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
383
|
-
|
|
384
|
-
:param pulp_domain: (required)
|
|
385
|
-
:type pulp_domain: str
|
|
386
|
-
:param upstream_pulp: (required)
|
|
387
|
-
:type upstream_pulp: UpstreamPulp
|
|
388
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
389
|
-
:type x_task_diagnostics: List[str]
|
|
390
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
391
|
-
number provided, it will be total request
|
|
392
|
-
timeout. It can also be a pair (tuple) of
|
|
393
|
-
(connection, read) timeouts.
|
|
394
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
395
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
396
|
-
request; this effectively ignores the
|
|
397
|
-
authentication in the spec for a single request.
|
|
398
|
-
:type _request_auth: dict, optional
|
|
399
|
-
:param _content_type: force content-type for the request.
|
|
400
|
-
:type _content_type: str, Optional
|
|
401
|
-
:param _headers: set to override the headers for a single
|
|
402
|
-
request; this effectively ignores the headers
|
|
403
|
-
in the spec for a single request.
|
|
404
|
-
:type _headers: dict, optional
|
|
405
|
-
:param _host_index: set to override the host_index for a single
|
|
406
|
-
request; this effectively ignores the host_index
|
|
407
|
-
in the spec for a single request.
|
|
408
|
-
:type _host_index: int, optional
|
|
409
|
-
:return: Returns the result object.
|
|
410
|
-
""" # noqa: E501
|
|
411
|
-
|
|
412
|
-
_param = self._create_serialize(
|
|
413
|
-
pulp_domain=pulp_domain,
|
|
414
|
-
upstream_pulp=upstream_pulp,
|
|
415
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
416
|
-
_request_auth=_request_auth,
|
|
417
|
-
_content_type=_content_type,
|
|
418
|
-
_headers=_headers,
|
|
419
|
-
_host_index=_host_index
|
|
420
|
-
)
|
|
421
|
-
|
|
422
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
423
|
-
'201': "UpstreamPulpResponse",
|
|
424
|
-
}
|
|
425
|
-
response_data = self.api_client.call_api(
|
|
426
|
-
*_param,
|
|
427
|
-
_request_timeout=_request_timeout
|
|
428
|
-
)
|
|
429
|
-
response_data.read()
|
|
430
|
-
return self.api_client.response_deserialize(
|
|
431
|
-
response_data=response_data,
|
|
432
|
-
response_types_map=_response_types_map,
|
|
433
|
-
).data
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
@validate_call
|
|
437
|
-
def create_with_http_info(
|
|
438
|
-
self,
|
|
439
|
-
upstream_pulp: UpstreamPulp,
|
|
440
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
441
|
-
pulp_domain: StrictStr = "default",
|
|
442
|
-
_request_timeout: Union[
|
|
443
|
-
None,
|
|
444
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
445
|
-
Tuple[
|
|
446
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
447
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
448
|
-
]
|
|
449
|
-
] = None,
|
|
450
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
-
_content_type: Optional[StrictStr] = None,
|
|
452
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
453
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
454
|
-
) -> ApiResponse[UpstreamPulpResponse]:
|
|
455
|
-
"""Create an upstream pulp
|
|
456
|
-
|
|
457
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
458
|
-
|
|
459
|
-
:param pulp_domain: (required)
|
|
460
|
-
:type pulp_domain: str
|
|
461
|
-
:param upstream_pulp: (required)
|
|
462
|
-
:type upstream_pulp: UpstreamPulp
|
|
463
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
464
|
-
:type x_task_diagnostics: List[str]
|
|
465
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
466
|
-
number provided, it will be total request
|
|
467
|
-
timeout. It can also be a pair (tuple) of
|
|
468
|
-
(connection, read) timeouts.
|
|
469
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
470
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
471
|
-
request; this effectively ignores the
|
|
472
|
-
authentication in the spec for a single request.
|
|
473
|
-
:type _request_auth: dict, optional
|
|
474
|
-
:param _content_type: force content-type for the request.
|
|
475
|
-
:type _content_type: str, Optional
|
|
476
|
-
:param _headers: set to override the headers for a single
|
|
477
|
-
request; this effectively ignores the headers
|
|
478
|
-
in the spec for a single request.
|
|
479
|
-
:type _headers: dict, optional
|
|
480
|
-
:param _host_index: set to override the host_index for a single
|
|
481
|
-
request; this effectively ignores the host_index
|
|
482
|
-
in the spec for a single request.
|
|
483
|
-
:type _host_index: int, optional
|
|
484
|
-
:return: Returns the result object.
|
|
485
|
-
""" # noqa: E501
|
|
486
|
-
|
|
487
|
-
_param = self._create_serialize(
|
|
488
|
-
pulp_domain=pulp_domain,
|
|
489
|
-
upstream_pulp=upstream_pulp,
|
|
490
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
491
|
-
_request_auth=_request_auth,
|
|
492
|
-
_content_type=_content_type,
|
|
493
|
-
_headers=_headers,
|
|
494
|
-
_host_index=_host_index
|
|
495
|
-
)
|
|
496
|
-
|
|
497
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
498
|
-
'201': "UpstreamPulpResponse",
|
|
499
|
-
}
|
|
500
|
-
response_data = self.api_client.call_api(
|
|
501
|
-
*_param,
|
|
502
|
-
_request_timeout=_request_timeout
|
|
503
|
-
)
|
|
504
|
-
response_data.read()
|
|
505
|
-
return self.api_client.response_deserialize(
|
|
506
|
-
response_data=response_data,
|
|
507
|
-
response_types_map=_response_types_map,
|
|
508
|
-
)
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
@validate_call
|
|
512
|
-
def create_without_preload_content(
|
|
513
|
-
self,
|
|
514
|
-
upstream_pulp: UpstreamPulp,
|
|
515
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
516
|
-
pulp_domain: StrictStr = "default",
|
|
517
|
-
_request_timeout: Union[
|
|
518
|
-
None,
|
|
519
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
520
|
-
Tuple[
|
|
521
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
522
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
523
|
-
]
|
|
524
|
-
] = None,
|
|
525
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
526
|
-
_content_type: Optional[StrictStr] = None,
|
|
527
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
528
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
529
|
-
) -> RESTResponseType:
|
|
530
|
-
"""Create an upstream pulp
|
|
531
|
-
|
|
532
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
533
|
-
|
|
534
|
-
:param pulp_domain: (required)
|
|
535
|
-
:type pulp_domain: str
|
|
536
|
-
:param upstream_pulp: (required)
|
|
537
|
-
:type upstream_pulp: UpstreamPulp
|
|
538
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
539
|
-
:type x_task_diagnostics: List[str]
|
|
540
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
541
|
-
number provided, it will be total request
|
|
542
|
-
timeout. It can also be a pair (tuple) of
|
|
543
|
-
(connection, read) timeouts.
|
|
544
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
545
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
546
|
-
request; this effectively ignores the
|
|
547
|
-
authentication in the spec for a single request.
|
|
548
|
-
:type _request_auth: dict, optional
|
|
549
|
-
:param _content_type: force content-type for the request.
|
|
550
|
-
:type _content_type: str, Optional
|
|
551
|
-
:param _headers: set to override the headers for a single
|
|
552
|
-
request; this effectively ignores the headers
|
|
553
|
-
in the spec for a single request.
|
|
554
|
-
:type _headers: dict, optional
|
|
555
|
-
:param _host_index: set to override the host_index for a single
|
|
556
|
-
request; this effectively ignores the host_index
|
|
557
|
-
in the spec for a single request.
|
|
558
|
-
:type _host_index: int, optional
|
|
559
|
-
:return: Returns the result object.
|
|
560
|
-
""" # noqa: E501
|
|
561
|
-
|
|
562
|
-
_param = self._create_serialize(
|
|
563
|
-
pulp_domain=pulp_domain,
|
|
564
|
-
upstream_pulp=upstream_pulp,
|
|
565
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
566
|
-
_request_auth=_request_auth,
|
|
567
|
-
_content_type=_content_type,
|
|
568
|
-
_headers=_headers,
|
|
569
|
-
_host_index=_host_index
|
|
570
|
-
)
|
|
571
|
-
|
|
572
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
573
|
-
'201': "UpstreamPulpResponse",
|
|
574
|
-
}
|
|
575
|
-
response_data = self.api_client.call_api(
|
|
576
|
-
*_param,
|
|
577
|
-
_request_timeout=_request_timeout
|
|
578
|
-
)
|
|
579
|
-
return response_data.response
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
def _create_serialize(
|
|
583
|
-
self,
|
|
584
|
-
pulp_domain,
|
|
585
|
-
upstream_pulp,
|
|
586
|
-
x_task_diagnostics,
|
|
587
|
-
_request_auth,
|
|
588
|
-
_content_type,
|
|
589
|
-
_headers,
|
|
590
|
-
_host_index,
|
|
591
|
-
) -> RequestSerialized:
|
|
592
|
-
|
|
593
|
-
_host = None
|
|
594
|
-
|
|
595
|
-
_collection_formats: Dict[str, str] = {
|
|
596
|
-
'X-Task-Diagnostics': 'csv',
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
_path_params: Dict[str, str] = {}
|
|
600
|
-
_query_params: List[Tuple[str, str]] = []
|
|
601
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
602
|
-
_form_params: List[Tuple[str, str]] = []
|
|
603
|
-
_files: Dict[
|
|
604
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
605
|
-
] = {}
|
|
606
|
-
_body_params: Optional[bytes] = None
|
|
607
|
-
|
|
608
|
-
# process the path parameters
|
|
609
|
-
if pulp_domain is not None:
|
|
610
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
611
|
-
# process the query parameters
|
|
612
|
-
# process the header parameters
|
|
613
|
-
if x_task_diagnostics is not None:
|
|
614
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
615
|
-
# process the form parameters
|
|
616
|
-
# process the body parameter
|
|
617
|
-
if upstream_pulp is not None:
|
|
618
|
-
_body_params = upstream_pulp
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
# set the HTTP header `Accept`
|
|
622
|
-
if 'Accept' not in _header_params:
|
|
623
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
624
|
-
[
|
|
625
|
-
'application/json'
|
|
626
|
-
]
|
|
627
|
-
)
|
|
628
|
-
|
|
629
|
-
# set the HTTP header `Content-Type`
|
|
630
|
-
if _content_type:
|
|
631
|
-
_header_params['Content-Type'] = _content_type
|
|
632
|
-
else:
|
|
633
|
-
_default_content_type = (
|
|
634
|
-
self.api_client.select_header_content_type(
|
|
635
|
-
[
|
|
636
|
-
'application/json',
|
|
637
|
-
'application/x-www-form-urlencoded',
|
|
638
|
-
'multipart/form-data'
|
|
639
|
-
]
|
|
640
|
-
)
|
|
641
|
-
)
|
|
642
|
-
if _default_content_type is not None:
|
|
643
|
-
_header_params['Content-Type'] = _default_content_type
|
|
644
|
-
|
|
645
|
-
# authentication setting
|
|
646
|
-
_auth_settings: List[str] = [
|
|
647
|
-
'json_header_remote_authentication',
|
|
648
|
-
'basicAuth',
|
|
649
|
-
'cookieAuth'
|
|
650
|
-
]
|
|
651
|
-
|
|
652
|
-
return self.api_client.param_serialize(
|
|
653
|
-
method='POST',
|
|
654
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/upstream-pulps/',
|
|
655
|
-
path_params=_path_params,
|
|
656
|
-
query_params=_query_params,
|
|
657
|
-
header_params=_header_params,
|
|
658
|
-
body=_body_params,
|
|
659
|
-
post_params=_form_params,
|
|
660
|
-
files=_files,
|
|
661
|
-
auth_settings=_auth_settings,
|
|
662
|
-
collection_formats=_collection_formats,
|
|
663
|
-
_host=_host,
|
|
664
|
-
_request_auth=_request_auth
|
|
665
|
-
)
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
@validate_call
|
|
671
|
-
def delete(
|
|
672
|
-
self,
|
|
673
|
-
upstream_pulp_href: StrictStr,
|
|
674
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
675
|
-
_request_timeout: Union[
|
|
676
|
-
None,
|
|
677
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
678
|
-
Tuple[
|
|
679
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
680
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
681
|
-
]
|
|
682
|
-
] = None,
|
|
683
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
684
|
-
_content_type: Optional[StrictStr] = None,
|
|
685
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
686
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
687
|
-
) -> None:
|
|
688
|
-
"""Delete an upstream pulp
|
|
689
|
-
|
|
690
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
691
|
-
|
|
692
|
-
:param upstream_pulp_href: (required)
|
|
693
|
-
:type upstream_pulp_href: str
|
|
694
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
695
|
-
:type x_task_diagnostics: List[str]
|
|
696
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
697
|
-
number provided, it will be total request
|
|
698
|
-
timeout. It can also be a pair (tuple) of
|
|
699
|
-
(connection, read) timeouts.
|
|
700
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
701
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
702
|
-
request; this effectively ignores the
|
|
703
|
-
authentication in the spec for a single request.
|
|
704
|
-
:type _request_auth: dict, optional
|
|
705
|
-
:param _content_type: force content-type for the request.
|
|
706
|
-
:type _content_type: str, Optional
|
|
707
|
-
:param _headers: set to override the headers for a single
|
|
708
|
-
request; this effectively ignores the headers
|
|
709
|
-
in the spec for a single request.
|
|
710
|
-
:type _headers: dict, optional
|
|
711
|
-
:param _host_index: set to override the host_index for a single
|
|
712
|
-
request; this effectively ignores the host_index
|
|
713
|
-
in the spec for a single request.
|
|
714
|
-
:type _host_index: int, optional
|
|
715
|
-
:return: Returns the result object.
|
|
716
|
-
""" # noqa: E501
|
|
717
|
-
|
|
718
|
-
_param = self._delete_serialize(
|
|
719
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
720
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
721
|
-
_request_auth=_request_auth,
|
|
722
|
-
_content_type=_content_type,
|
|
723
|
-
_headers=_headers,
|
|
724
|
-
_host_index=_host_index
|
|
725
|
-
)
|
|
726
|
-
|
|
727
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
728
|
-
'204': None,
|
|
729
|
-
}
|
|
730
|
-
response_data = self.api_client.call_api(
|
|
731
|
-
*_param,
|
|
732
|
-
_request_timeout=_request_timeout
|
|
733
|
-
)
|
|
734
|
-
response_data.read()
|
|
735
|
-
return self.api_client.response_deserialize(
|
|
736
|
-
response_data=response_data,
|
|
737
|
-
response_types_map=_response_types_map,
|
|
738
|
-
).data
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
@validate_call
|
|
742
|
-
def delete_with_http_info(
|
|
743
|
-
self,
|
|
744
|
-
upstream_pulp_href: StrictStr,
|
|
745
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
746
|
-
_request_timeout: Union[
|
|
747
|
-
None,
|
|
748
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
749
|
-
Tuple[
|
|
750
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
751
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
752
|
-
]
|
|
753
|
-
] = None,
|
|
754
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
755
|
-
_content_type: Optional[StrictStr] = None,
|
|
756
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
757
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
758
|
-
) -> ApiResponse[None]:
|
|
759
|
-
"""Delete an upstream pulp
|
|
760
|
-
|
|
761
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
762
|
-
|
|
763
|
-
:param upstream_pulp_href: (required)
|
|
764
|
-
:type upstream_pulp_href: str
|
|
765
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
766
|
-
:type x_task_diagnostics: List[str]
|
|
767
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
768
|
-
number provided, it will be total request
|
|
769
|
-
timeout. It can also be a pair (tuple) of
|
|
770
|
-
(connection, read) timeouts.
|
|
771
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
772
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
773
|
-
request; this effectively ignores the
|
|
774
|
-
authentication in the spec for a single request.
|
|
775
|
-
:type _request_auth: dict, optional
|
|
776
|
-
:param _content_type: force content-type for the request.
|
|
777
|
-
:type _content_type: str, Optional
|
|
778
|
-
:param _headers: set to override the headers for a single
|
|
779
|
-
request; this effectively ignores the headers
|
|
780
|
-
in the spec for a single request.
|
|
781
|
-
:type _headers: dict, optional
|
|
782
|
-
:param _host_index: set to override the host_index for a single
|
|
783
|
-
request; this effectively ignores the host_index
|
|
784
|
-
in the spec for a single request.
|
|
785
|
-
:type _host_index: int, optional
|
|
786
|
-
:return: Returns the result object.
|
|
787
|
-
""" # noqa: E501
|
|
788
|
-
|
|
789
|
-
_param = self._delete_serialize(
|
|
790
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
791
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
792
|
-
_request_auth=_request_auth,
|
|
793
|
-
_content_type=_content_type,
|
|
794
|
-
_headers=_headers,
|
|
795
|
-
_host_index=_host_index
|
|
796
|
-
)
|
|
797
|
-
|
|
798
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
799
|
-
'204': None,
|
|
800
|
-
}
|
|
801
|
-
response_data = self.api_client.call_api(
|
|
802
|
-
*_param,
|
|
803
|
-
_request_timeout=_request_timeout
|
|
804
|
-
)
|
|
805
|
-
response_data.read()
|
|
806
|
-
return self.api_client.response_deserialize(
|
|
807
|
-
response_data=response_data,
|
|
808
|
-
response_types_map=_response_types_map,
|
|
809
|
-
)
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
@validate_call
|
|
813
|
-
def delete_without_preload_content(
|
|
814
|
-
self,
|
|
815
|
-
upstream_pulp_href: StrictStr,
|
|
816
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
817
|
-
_request_timeout: Union[
|
|
818
|
-
None,
|
|
819
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
820
|
-
Tuple[
|
|
821
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
822
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
823
|
-
]
|
|
824
|
-
] = None,
|
|
825
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
826
|
-
_content_type: Optional[StrictStr] = None,
|
|
827
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
828
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
829
|
-
) -> RESTResponseType:
|
|
830
|
-
"""Delete an upstream pulp
|
|
831
|
-
|
|
832
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
833
|
-
|
|
834
|
-
:param upstream_pulp_href: (required)
|
|
835
|
-
:type upstream_pulp_href: str
|
|
836
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
837
|
-
:type x_task_diagnostics: List[str]
|
|
838
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
839
|
-
number provided, it will be total request
|
|
840
|
-
timeout. It can also be a pair (tuple) of
|
|
841
|
-
(connection, read) timeouts.
|
|
842
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
843
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
844
|
-
request; this effectively ignores the
|
|
845
|
-
authentication in the spec for a single request.
|
|
846
|
-
:type _request_auth: dict, optional
|
|
847
|
-
:param _content_type: force content-type for the request.
|
|
848
|
-
:type _content_type: str, Optional
|
|
849
|
-
:param _headers: set to override the headers for a single
|
|
850
|
-
request; this effectively ignores the headers
|
|
851
|
-
in the spec for a single request.
|
|
852
|
-
:type _headers: dict, optional
|
|
853
|
-
:param _host_index: set to override the host_index for a single
|
|
854
|
-
request; this effectively ignores the host_index
|
|
855
|
-
in the spec for a single request.
|
|
856
|
-
:type _host_index: int, optional
|
|
857
|
-
:return: Returns the result object.
|
|
858
|
-
""" # noqa: E501
|
|
859
|
-
|
|
860
|
-
_param = self._delete_serialize(
|
|
861
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
862
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
863
|
-
_request_auth=_request_auth,
|
|
864
|
-
_content_type=_content_type,
|
|
865
|
-
_headers=_headers,
|
|
866
|
-
_host_index=_host_index
|
|
867
|
-
)
|
|
868
|
-
|
|
869
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
870
|
-
'204': None,
|
|
871
|
-
}
|
|
872
|
-
response_data = self.api_client.call_api(
|
|
873
|
-
*_param,
|
|
874
|
-
_request_timeout=_request_timeout
|
|
875
|
-
)
|
|
876
|
-
return response_data.response
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
def _delete_serialize(
|
|
880
|
-
self,
|
|
881
|
-
upstream_pulp_href,
|
|
882
|
-
x_task_diagnostics,
|
|
883
|
-
_request_auth,
|
|
884
|
-
_content_type,
|
|
885
|
-
_headers,
|
|
886
|
-
_host_index,
|
|
887
|
-
) -> RequestSerialized:
|
|
888
|
-
|
|
889
|
-
_host = None
|
|
890
|
-
|
|
891
|
-
_collection_formats: Dict[str, str] = {
|
|
892
|
-
'X-Task-Diagnostics': 'csv',
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
_path_params: Dict[str, str] = {}
|
|
896
|
-
_query_params: List[Tuple[str, str]] = []
|
|
897
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
898
|
-
_form_params: List[Tuple[str, str]] = []
|
|
899
|
-
_files: Dict[
|
|
900
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
901
|
-
] = {}
|
|
902
|
-
_body_params: Optional[bytes] = None
|
|
903
|
-
|
|
904
|
-
# process the path parameters
|
|
905
|
-
if upstream_pulp_href is not None:
|
|
906
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
907
|
-
# process the query parameters
|
|
908
|
-
# process the header parameters
|
|
909
|
-
if x_task_diagnostics is not None:
|
|
910
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
911
|
-
# process the form parameters
|
|
912
|
-
# process the body parameter
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
# authentication setting
|
|
918
|
-
_auth_settings: List[str] = [
|
|
919
|
-
'json_header_remote_authentication',
|
|
920
|
-
'basicAuth',
|
|
921
|
-
'cookieAuth'
|
|
922
|
-
]
|
|
923
|
-
|
|
924
|
-
return self.api_client.param_serialize(
|
|
925
|
-
method='DELETE',
|
|
926
|
-
resource_path='{upstream_pulp_href}',
|
|
927
|
-
path_params=_path_params,
|
|
928
|
-
query_params=_query_params,
|
|
929
|
-
header_params=_header_params,
|
|
930
|
-
body=_body_params,
|
|
931
|
-
post_params=_form_params,
|
|
932
|
-
files=_files,
|
|
933
|
-
auth_settings=_auth_settings,
|
|
934
|
-
collection_formats=_collection_formats,
|
|
935
|
-
_host=_host,
|
|
936
|
-
_request_auth=_request_auth
|
|
937
|
-
)
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
@validate_call
|
|
943
|
-
def list(
|
|
944
|
-
self,
|
|
945
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
946
|
-
base_url: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
947
|
-
base_url__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
948
|
-
base_url__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
949
|
-
base_url__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
950
|
-
base_url__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_url is in a comma-separated list of values")] = None,
|
|
951
|
-
base_url__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
952
|
-
base_url__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
953
|
-
base_url__regex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
954
|
-
base_url__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
955
|
-
last_replication: Annotated[Optional[datetime], Field(description="Filter results where last_replication matches value")] = None,
|
|
956
|
-
last_replication__gt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than value")] = None,
|
|
957
|
-
last_replication__gte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than or equal to value")] = None,
|
|
958
|
-
last_replication__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_replication has a null value")] = None,
|
|
959
|
-
last_replication__lt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than value")] = None,
|
|
960
|
-
last_replication__lte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than or equal to value")] = None,
|
|
961
|
-
last_replication__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_replication is between two comma separated values")] = None,
|
|
962
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
963
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
964
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
965
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
966
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
967
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
968
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
969
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
970
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
971
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
972
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
973
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
974
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
975
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
976
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
977
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
978
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
979
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
980
|
-
pulp_domain: StrictStr = "default",
|
|
981
|
-
_request_timeout: Union[
|
|
982
|
-
None,
|
|
983
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
984
|
-
Tuple[
|
|
985
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
986
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
987
|
-
]
|
|
988
|
-
] = None,
|
|
989
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
990
|
-
_content_type: Optional[StrictStr] = None,
|
|
991
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
992
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
993
|
-
) -> PaginatedUpstreamPulpResponseList:
|
|
994
|
-
"""List upstream pulps
|
|
995
|
-
|
|
996
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
997
|
-
|
|
998
|
-
:param pulp_domain: (required)
|
|
999
|
-
:type pulp_domain: str
|
|
1000
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1001
|
-
:type x_task_diagnostics: List[str]
|
|
1002
|
-
:param base_url: Filter results where base_url matches value
|
|
1003
|
-
:type base_url: str
|
|
1004
|
-
:param base_url__contains: Filter results where base_url contains value
|
|
1005
|
-
:type base_url__contains: str
|
|
1006
|
-
:param base_url__icontains: Filter results where base_url contains value
|
|
1007
|
-
:type base_url__icontains: str
|
|
1008
|
-
:param base_url__iexact: Filter results where base_url matches value
|
|
1009
|
-
:type base_url__iexact: str
|
|
1010
|
-
:param base_url__in: Filter results where base_url is in a comma-separated list of values
|
|
1011
|
-
:type base_url__in: List[str]
|
|
1012
|
-
:param base_url__iregex: Filter results where base_url matches regex value
|
|
1013
|
-
:type base_url__iregex: str
|
|
1014
|
-
:param base_url__istartswith: Filter results where base_url starts with value
|
|
1015
|
-
:type base_url__istartswith: str
|
|
1016
|
-
:param base_url__regex: Filter results where base_url matches regex value
|
|
1017
|
-
:type base_url__regex: str
|
|
1018
|
-
:param base_url__startswith: Filter results where base_url starts with value
|
|
1019
|
-
:type base_url__startswith: str
|
|
1020
|
-
:param last_replication: Filter results where last_replication matches value
|
|
1021
|
-
:type last_replication: datetime
|
|
1022
|
-
:param last_replication__gt: Filter results where last_replication is greater than value
|
|
1023
|
-
:type last_replication__gt: datetime
|
|
1024
|
-
:param last_replication__gte: Filter results where last_replication is greater than or equal to value
|
|
1025
|
-
:type last_replication__gte: datetime
|
|
1026
|
-
:param last_replication__isnull: Filter results where last_replication has a null value
|
|
1027
|
-
:type last_replication__isnull: bool
|
|
1028
|
-
:param last_replication__lt: Filter results where last_replication is less than value
|
|
1029
|
-
:type last_replication__lt: datetime
|
|
1030
|
-
:param last_replication__lte: Filter results where last_replication is less than or equal to value
|
|
1031
|
-
:type last_replication__lte: datetime
|
|
1032
|
-
:param last_replication__range: Filter results where last_replication is between two comma separated values
|
|
1033
|
-
:type last_replication__range: List[datetime]
|
|
1034
|
-
:param limit: Number of results to return per page.
|
|
1035
|
-
:type limit: int
|
|
1036
|
-
:param name: Filter results where name matches value
|
|
1037
|
-
:type name: str
|
|
1038
|
-
:param name__contains: Filter results where name contains value
|
|
1039
|
-
:type name__contains: str
|
|
1040
|
-
:param name__icontains: Filter results where name contains value
|
|
1041
|
-
:type name__icontains: str
|
|
1042
|
-
:param name__iexact: Filter results where name matches value
|
|
1043
|
-
:type name__iexact: str
|
|
1044
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1045
|
-
:type name__in: List[str]
|
|
1046
|
-
:param name__iregex: Filter results where name matches regex value
|
|
1047
|
-
:type name__iregex: str
|
|
1048
|
-
:param name__istartswith: Filter results where name starts with value
|
|
1049
|
-
:type name__istartswith: str
|
|
1050
|
-
:param name__regex: Filter results where name matches regex value
|
|
1051
|
-
:type name__regex: str
|
|
1052
|
-
:param name__startswith: Filter results where name starts with value
|
|
1053
|
-
:type name__startswith: str
|
|
1054
|
-
:param offset: The initial index from which to return the results.
|
|
1055
|
-
:type offset: int
|
|
1056
|
-
:param 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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1057
|
-
:type ordering: List[str]
|
|
1058
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
1059
|
-
:type prn__in: List[str]
|
|
1060
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1061
|
-
:type pulp_href__in: List[str]
|
|
1062
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1063
|
-
:type pulp_id__in: List[str]
|
|
1064
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1065
|
-
:type q: str
|
|
1066
|
-
:param fields: A list of fields to include in the response.
|
|
1067
|
-
:type fields: List[str]
|
|
1068
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1069
|
-
:type exclude_fields: List[str]
|
|
1070
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1071
|
-
number provided, it will be total request
|
|
1072
|
-
timeout. It can also be a pair (tuple) of
|
|
1073
|
-
(connection, read) timeouts.
|
|
1074
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1075
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1076
|
-
request; this effectively ignores the
|
|
1077
|
-
authentication in the spec for a single request.
|
|
1078
|
-
:type _request_auth: dict, optional
|
|
1079
|
-
:param _content_type: force content-type for the request.
|
|
1080
|
-
:type _content_type: str, Optional
|
|
1081
|
-
:param _headers: set to override the headers for a single
|
|
1082
|
-
request; this effectively ignores the headers
|
|
1083
|
-
in the spec for a single request.
|
|
1084
|
-
:type _headers: dict, optional
|
|
1085
|
-
:param _host_index: set to override the host_index for a single
|
|
1086
|
-
request; this effectively ignores the host_index
|
|
1087
|
-
in the spec for a single request.
|
|
1088
|
-
:type _host_index: int, optional
|
|
1089
|
-
:return: Returns the result object.
|
|
1090
|
-
""" # noqa: E501
|
|
1091
|
-
|
|
1092
|
-
_param = self._list_serialize(
|
|
1093
|
-
pulp_domain=pulp_domain,
|
|
1094
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1095
|
-
base_url=base_url,
|
|
1096
|
-
base_url__contains=base_url__contains,
|
|
1097
|
-
base_url__icontains=base_url__icontains,
|
|
1098
|
-
base_url__iexact=base_url__iexact,
|
|
1099
|
-
base_url__in=base_url__in,
|
|
1100
|
-
base_url__iregex=base_url__iregex,
|
|
1101
|
-
base_url__istartswith=base_url__istartswith,
|
|
1102
|
-
base_url__regex=base_url__regex,
|
|
1103
|
-
base_url__startswith=base_url__startswith,
|
|
1104
|
-
last_replication=last_replication,
|
|
1105
|
-
last_replication__gt=last_replication__gt,
|
|
1106
|
-
last_replication__gte=last_replication__gte,
|
|
1107
|
-
last_replication__isnull=last_replication__isnull,
|
|
1108
|
-
last_replication__lt=last_replication__lt,
|
|
1109
|
-
last_replication__lte=last_replication__lte,
|
|
1110
|
-
last_replication__range=last_replication__range,
|
|
1111
|
-
limit=limit,
|
|
1112
|
-
name=name,
|
|
1113
|
-
name__contains=name__contains,
|
|
1114
|
-
name__icontains=name__icontains,
|
|
1115
|
-
name__iexact=name__iexact,
|
|
1116
|
-
name__in=name__in,
|
|
1117
|
-
name__iregex=name__iregex,
|
|
1118
|
-
name__istartswith=name__istartswith,
|
|
1119
|
-
name__regex=name__regex,
|
|
1120
|
-
name__startswith=name__startswith,
|
|
1121
|
-
offset=offset,
|
|
1122
|
-
ordering=ordering,
|
|
1123
|
-
prn__in=prn__in,
|
|
1124
|
-
pulp_href__in=pulp_href__in,
|
|
1125
|
-
pulp_id__in=pulp_id__in,
|
|
1126
|
-
q=q,
|
|
1127
|
-
fields=fields,
|
|
1128
|
-
exclude_fields=exclude_fields,
|
|
1129
|
-
_request_auth=_request_auth,
|
|
1130
|
-
_content_type=_content_type,
|
|
1131
|
-
_headers=_headers,
|
|
1132
|
-
_host_index=_host_index
|
|
1133
|
-
)
|
|
1134
|
-
|
|
1135
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1136
|
-
'200': "PaginatedUpstreamPulpResponseList",
|
|
1137
|
-
}
|
|
1138
|
-
response_data = self.api_client.call_api(
|
|
1139
|
-
*_param,
|
|
1140
|
-
_request_timeout=_request_timeout
|
|
1141
|
-
)
|
|
1142
|
-
response_data.read()
|
|
1143
|
-
return self.api_client.response_deserialize(
|
|
1144
|
-
response_data=response_data,
|
|
1145
|
-
response_types_map=_response_types_map,
|
|
1146
|
-
).data
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
@validate_call
|
|
1150
|
-
def list_with_http_info(
|
|
1151
|
-
self,
|
|
1152
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1153
|
-
base_url: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
1154
|
-
base_url__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
1155
|
-
base_url__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
1156
|
-
base_url__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
1157
|
-
base_url__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_url is in a comma-separated list of values")] = None,
|
|
1158
|
-
base_url__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
1159
|
-
base_url__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
1160
|
-
base_url__regex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
1161
|
-
base_url__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
1162
|
-
last_replication: Annotated[Optional[datetime], Field(description="Filter results where last_replication matches value")] = None,
|
|
1163
|
-
last_replication__gt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than value")] = None,
|
|
1164
|
-
last_replication__gte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than or equal to value")] = None,
|
|
1165
|
-
last_replication__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_replication has a null value")] = None,
|
|
1166
|
-
last_replication__lt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than value")] = None,
|
|
1167
|
-
last_replication__lte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than or equal to value")] = None,
|
|
1168
|
-
last_replication__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_replication is between two comma separated values")] = None,
|
|
1169
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1170
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1171
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1172
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1173
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1174
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1175
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1176
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1177
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1178
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1179
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1180
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1181
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1182
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1183
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1184
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1185
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1186
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1187
|
-
pulp_domain: StrictStr = "default",
|
|
1188
|
-
_request_timeout: Union[
|
|
1189
|
-
None,
|
|
1190
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1191
|
-
Tuple[
|
|
1192
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1193
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1194
|
-
]
|
|
1195
|
-
] = None,
|
|
1196
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1197
|
-
_content_type: Optional[StrictStr] = None,
|
|
1198
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1199
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1200
|
-
) -> ApiResponse[PaginatedUpstreamPulpResponseList]:
|
|
1201
|
-
"""List upstream pulps
|
|
1202
|
-
|
|
1203
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
1204
|
-
|
|
1205
|
-
:param pulp_domain: (required)
|
|
1206
|
-
:type pulp_domain: str
|
|
1207
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1208
|
-
:type x_task_diagnostics: List[str]
|
|
1209
|
-
:param base_url: Filter results where base_url matches value
|
|
1210
|
-
:type base_url: str
|
|
1211
|
-
:param base_url__contains: Filter results where base_url contains value
|
|
1212
|
-
:type base_url__contains: str
|
|
1213
|
-
:param base_url__icontains: Filter results where base_url contains value
|
|
1214
|
-
:type base_url__icontains: str
|
|
1215
|
-
:param base_url__iexact: Filter results where base_url matches value
|
|
1216
|
-
:type base_url__iexact: str
|
|
1217
|
-
:param base_url__in: Filter results where base_url is in a comma-separated list of values
|
|
1218
|
-
:type base_url__in: List[str]
|
|
1219
|
-
:param base_url__iregex: Filter results where base_url matches regex value
|
|
1220
|
-
:type base_url__iregex: str
|
|
1221
|
-
:param base_url__istartswith: Filter results where base_url starts with value
|
|
1222
|
-
:type base_url__istartswith: str
|
|
1223
|
-
:param base_url__regex: Filter results where base_url matches regex value
|
|
1224
|
-
:type base_url__regex: str
|
|
1225
|
-
:param base_url__startswith: Filter results where base_url starts with value
|
|
1226
|
-
:type base_url__startswith: str
|
|
1227
|
-
:param last_replication: Filter results where last_replication matches value
|
|
1228
|
-
:type last_replication: datetime
|
|
1229
|
-
:param last_replication__gt: Filter results where last_replication is greater than value
|
|
1230
|
-
:type last_replication__gt: datetime
|
|
1231
|
-
:param last_replication__gte: Filter results where last_replication is greater than or equal to value
|
|
1232
|
-
:type last_replication__gte: datetime
|
|
1233
|
-
:param last_replication__isnull: Filter results where last_replication has a null value
|
|
1234
|
-
:type last_replication__isnull: bool
|
|
1235
|
-
:param last_replication__lt: Filter results where last_replication is less than value
|
|
1236
|
-
:type last_replication__lt: datetime
|
|
1237
|
-
:param last_replication__lte: Filter results where last_replication is less than or equal to value
|
|
1238
|
-
:type last_replication__lte: datetime
|
|
1239
|
-
:param last_replication__range: Filter results where last_replication is between two comma separated values
|
|
1240
|
-
:type last_replication__range: List[datetime]
|
|
1241
|
-
:param limit: Number of results to return per page.
|
|
1242
|
-
:type limit: int
|
|
1243
|
-
:param name: Filter results where name matches value
|
|
1244
|
-
:type name: str
|
|
1245
|
-
:param name__contains: Filter results where name contains value
|
|
1246
|
-
:type name__contains: str
|
|
1247
|
-
:param name__icontains: Filter results where name contains value
|
|
1248
|
-
:type name__icontains: str
|
|
1249
|
-
:param name__iexact: Filter results where name matches value
|
|
1250
|
-
:type name__iexact: str
|
|
1251
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1252
|
-
:type name__in: List[str]
|
|
1253
|
-
:param name__iregex: Filter results where name matches regex value
|
|
1254
|
-
:type name__iregex: str
|
|
1255
|
-
:param name__istartswith: Filter results where name starts with value
|
|
1256
|
-
:type name__istartswith: str
|
|
1257
|
-
:param name__regex: Filter results where name matches regex value
|
|
1258
|
-
:type name__regex: str
|
|
1259
|
-
:param name__startswith: Filter results where name starts with value
|
|
1260
|
-
:type name__startswith: str
|
|
1261
|
-
:param offset: The initial index from which to return the results.
|
|
1262
|
-
:type offset: int
|
|
1263
|
-
:param 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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1264
|
-
:type ordering: List[str]
|
|
1265
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
1266
|
-
:type prn__in: List[str]
|
|
1267
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1268
|
-
:type pulp_href__in: List[str]
|
|
1269
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1270
|
-
:type pulp_id__in: List[str]
|
|
1271
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1272
|
-
:type q: str
|
|
1273
|
-
:param fields: A list of fields to include in the response.
|
|
1274
|
-
:type fields: List[str]
|
|
1275
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1276
|
-
:type exclude_fields: List[str]
|
|
1277
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1278
|
-
number provided, it will be total request
|
|
1279
|
-
timeout. It can also be a pair (tuple) of
|
|
1280
|
-
(connection, read) timeouts.
|
|
1281
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1282
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1283
|
-
request; this effectively ignores the
|
|
1284
|
-
authentication in the spec for a single request.
|
|
1285
|
-
:type _request_auth: dict, optional
|
|
1286
|
-
:param _content_type: force content-type for the request.
|
|
1287
|
-
:type _content_type: str, Optional
|
|
1288
|
-
:param _headers: set to override the headers for a single
|
|
1289
|
-
request; this effectively ignores the headers
|
|
1290
|
-
in the spec for a single request.
|
|
1291
|
-
:type _headers: dict, optional
|
|
1292
|
-
:param _host_index: set to override the host_index for a single
|
|
1293
|
-
request; this effectively ignores the host_index
|
|
1294
|
-
in the spec for a single request.
|
|
1295
|
-
:type _host_index: int, optional
|
|
1296
|
-
:return: Returns the result object.
|
|
1297
|
-
""" # noqa: E501
|
|
1298
|
-
|
|
1299
|
-
_param = self._list_serialize(
|
|
1300
|
-
pulp_domain=pulp_domain,
|
|
1301
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1302
|
-
base_url=base_url,
|
|
1303
|
-
base_url__contains=base_url__contains,
|
|
1304
|
-
base_url__icontains=base_url__icontains,
|
|
1305
|
-
base_url__iexact=base_url__iexact,
|
|
1306
|
-
base_url__in=base_url__in,
|
|
1307
|
-
base_url__iregex=base_url__iregex,
|
|
1308
|
-
base_url__istartswith=base_url__istartswith,
|
|
1309
|
-
base_url__regex=base_url__regex,
|
|
1310
|
-
base_url__startswith=base_url__startswith,
|
|
1311
|
-
last_replication=last_replication,
|
|
1312
|
-
last_replication__gt=last_replication__gt,
|
|
1313
|
-
last_replication__gte=last_replication__gte,
|
|
1314
|
-
last_replication__isnull=last_replication__isnull,
|
|
1315
|
-
last_replication__lt=last_replication__lt,
|
|
1316
|
-
last_replication__lte=last_replication__lte,
|
|
1317
|
-
last_replication__range=last_replication__range,
|
|
1318
|
-
limit=limit,
|
|
1319
|
-
name=name,
|
|
1320
|
-
name__contains=name__contains,
|
|
1321
|
-
name__icontains=name__icontains,
|
|
1322
|
-
name__iexact=name__iexact,
|
|
1323
|
-
name__in=name__in,
|
|
1324
|
-
name__iregex=name__iregex,
|
|
1325
|
-
name__istartswith=name__istartswith,
|
|
1326
|
-
name__regex=name__regex,
|
|
1327
|
-
name__startswith=name__startswith,
|
|
1328
|
-
offset=offset,
|
|
1329
|
-
ordering=ordering,
|
|
1330
|
-
prn__in=prn__in,
|
|
1331
|
-
pulp_href__in=pulp_href__in,
|
|
1332
|
-
pulp_id__in=pulp_id__in,
|
|
1333
|
-
q=q,
|
|
1334
|
-
fields=fields,
|
|
1335
|
-
exclude_fields=exclude_fields,
|
|
1336
|
-
_request_auth=_request_auth,
|
|
1337
|
-
_content_type=_content_type,
|
|
1338
|
-
_headers=_headers,
|
|
1339
|
-
_host_index=_host_index
|
|
1340
|
-
)
|
|
1341
|
-
|
|
1342
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1343
|
-
'200': "PaginatedUpstreamPulpResponseList",
|
|
1344
|
-
}
|
|
1345
|
-
response_data = self.api_client.call_api(
|
|
1346
|
-
*_param,
|
|
1347
|
-
_request_timeout=_request_timeout
|
|
1348
|
-
)
|
|
1349
|
-
response_data.read()
|
|
1350
|
-
return self.api_client.response_deserialize(
|
|
1351
|
-
response_data=response_data,
|
|
1352
|
-
response_types_map=_response_types_map,
|
|
1353
|
-
)
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
@validate_call
|
|
1357
|
-
def list_without_preload_content(
|
|
1358
|
-
self,
|
|
1359
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1360
|
-
base_url: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
1361
|
-
base_url__contains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
1362
|
-
base_url__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where base_url contains value")] = None,
|
|
1363
|
-
base_url__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches value")] = None,
|
|
1364
|
-
base_url__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where base_url is in a comma-separated list of values")] = None,
|
|
1365
|
-
base_url__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
1366
|
-
base_url__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
1367
|
-
base_url__regex: Annotated[Optional[StrictStr], Field(description="Filter results where base_url matches regex value")] = None,
|
|
1368
|
-
base_url__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where base_url starts with value")] = None,
|
|
1369
|
-
last_replication: Annotated[Optional[datetime], Field(description="Filter results where last_replication matches value")] = None,
|
|
1370
|
-
last_replication__gt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than value")] = None,
|
|
1371
|
-
last_replication__gte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is greater than or equal to value")] = None,
|
|
1372
|
-
last_replication__isnull: Annotated[Optional[StrictBool], Field(description="Filter results where last_replication has a null value")] = None,
|
|
1373
|
-
last_replication__lt: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than value")] = None,
|
|
1374
|
-
last_replication__lte: Annotated[Optional[datetime], Field(description="Filter results where last_replication is less than or equal to value")] = None,
|
|
1375
|
-
last_replication__range: Annotated[Optional[List[datetime]], Field(description="Filter results where last_replication is between two comma separated values")] = None,
|
|
1376
|
-
limit: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
|
|
1377
|
-
name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1378
|
-
name__contains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1379
|
-
name__icontains: Annotated[Optional[StrictStr], Field(description="Filter results where name contains value")] = None,
|
|
1380
|
-
name__iexact: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
|
|
1381
|
-
name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
|
|
1382
|
-
name__iregex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1383
|
-
name__istartswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1384
|
-
name__regex: Annotated[Optional[StrictStr], Field(description="Filter results where name matches regex value")] = None,
|
|
1385
|
-
name__startswith: Annotated[Optional[StrictStr], Field(description="Filter results where name starts with value")] = None,
|
|
1386
|
-
offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
|
|
1387
|
-
ordering: Annotated[Optional[List[StrictStr]], Field(description="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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
|
|
1388
|
-
prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1389
|
-
pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1390
|
-
pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
|
|
1391
|
-
q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
|
|
1392
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1393
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1394
|
-
pulp_domain: StrictStr = "default",
|
|
1395
|
-
_request_timeout: Union[
|
|
1396
|
-
None,
|
|
1397
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1398
|
-
Tuple[
|
|
1399
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1400
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1401
|
-
]
|
|
1402
|
-
] = None,
|
|
1403
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1404
|
-
_content_type: Optional[StrictStr] = None,
|
|
1405
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1406
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1407
|
-
) -> RESTResponseType:
|
|
1408
|
-
"""List upstream pulps
|
|
1409
|
-
|
|
1410
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
1411
|
-
|
|
1412
|
-
:param pulp_domain: (required)
|
|
1413
|
-
:type pulp_domain: str
|
|
1414
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1415
|
-
:type x_task_diagnostics: List[str]
|
|
1416
|
-
:param base_url: Filter results where base_url matches value
|
|
1417
|
-
:type base_url: str
|
|
1418
|
-
:param base_url__contains: Filter results where base_url contains value
|
|
1419
|
-
:type base_url__contains: str
|
|
1420
|
-
:param base_url__icontains: Filter results where base_url contains value
|
|
1421
|
-
:type base_url__icontains: str
|
|
1422
|
-
:param base_url__iexact: Filter results where base_url matches value
|
|
1423
|
-
:type base_url__iexact: str
|
|
1424
|
-
:param base_url__in: Filter results where base_url is in a comma-separated list of values
|
|
1425
|
-
:type base_url__in: List[str]
|
|
1426
|
-
:param base_url__iregex: Filter results where base_url matches regex value
|
|
1427
|
-
:type base_url__iregex: str
|
|
1428
|
-
:param base_url__istartswith: Filter results where base_url starts with value
|
|
1429
|
-
:type base_url__istartswith: str
|
|
1430
|
-
:param base_url__regex: Filter results where base_url matches regex value
|
|
1431
|
-
:type base_url__regex: str
|
|
1432
|
-
:param base_url__startswith: Filter results where base_url starts with value
|
|
1433
|
-
:type base_url__startswith: str
|
|
1434
|
-
:param last_replication: Filter results where last_replication matches value
|
|
1435
|
-
:type last_replication: datetime
|
|
1436
|
-
:param last_replication__gt: Filter results where last_replication is greater than value
|
|
1437
|
-
:type last_replication__gt: datetime
|
|
1438
|
-
:param last_replication__gte: Filter results where last_replication is greater than or equal to value
|
|
1439
|
-
:type last_replication__gte: datetime
|
|
1440
|
-
:param last_replication__isnull: Filter results where last_replication has a null value
|
|
1441
|
-
:type last_replication__isnull: bool
|
|
1442
|
-
:param last_replication__lt: Filter results where last_replication is less than value
|
|
1443
|
-
:type last_replication__lt: datetime
|
|
1444
|
-
:param last_replication__lte: Filter results where last_replication is less than or equal to value
|
|
1445
|
-
:type last_replication__lte: datetime
|
|
1446
|
-
:param last_replication__range: Filter results where last_replication is between two comma separated values
|
|
1447
|
-
:type last_replication__range: List[datetime]
|
|
1448
|
-
:param limit: Number of results to return per page.
|
|
1449
|
-
:type limit: int
|
|
1450
|
-
:param name: Filter results where name matches value
|
|
1451
|
-
:type name: str
|
|
1452
|
-
:param name__contains: Filter results where name contains value
|
|
1453
|
-
:type name__contains: str
|
|
1454
|
-
:param name__icontains: Filter results where name contains value
|
|
1455
|
-
:type name__icontains: str
|
|
1456
|
-
:param name__iexact: Filter results where name matches value
|
|
1457
|
-
:type name__iexact: str
|
|
1458
|
-
:param name__in: Filter results where name is in a comma-separated list of values
|
|
1459
|
-
:type name__in: List[str]
|
|
1460
|
-
:param name__iregex: Filter results where name matches regex value
|
|
1461
|
-
:type name__iregex: str
|
|
1462
|
-
:param name__istartswith: Filter results where name starts with value
|
|
1463
|
-
:type name__istartswith: str
|
|
1464
|
-
:param name__regex: Filter results where name matches regex value
|
|
1465
|
-
:type name__regex: str
|
|
1466
|
-
:param name__startswith: Filter results where name starts with value
|
|
1467
|
-
:type name__startswith: str
|
|
1468
|
-
:param offset: The initial index from which to return the results.
|
|
1469
|
-
:type offset: int
|
|
1470
|
-
:param 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) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (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) * `q_select` - Q select * `-q_select` - Q select (descending) * `policy` - Policy * `-policy` - Policy (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
1471
|
-
:type ordering: List[str]
|
|
1472
|
-
:param prn__in: Multiple values may be separated by commas.
|
|
1473
|
-
:type prn__in: List[str]
|
|
1474
|
-
:param pulp_href__in: Multiple values may be separated by commas.
|
|
1475
|
-
:type pulp_href__in: List[str]
|
|
1476
|
-
:param pulp_id__in: Multiple values may be separated by commas.
|
|
1477
|
-
:type pulp_id__in: List[str]
|
|
1478
|
-
:param q: Filter results by using NOT, AND and OR operations on other filters
|
|
1479
|
-
:type q: str
|
|
1480
|
-
:param fields: A list of fields to include in the response.
|
|
1481
|
-
:type fields: List[str]
|
|
1482
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1483
|
-
:type exclude_fields: List[str]
|
|
1484
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1485
|
-
number provided, it will be total request
|
|
1486
|
-
timeout. It can also be a pair (tuple) of
|
|
1487
|
-
(connection, read) timeouts.
|
|
1488
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1489
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1490
|
-
request; this effectively ignores the
|
|
1491
|
-
authentication in the spec for a single request.
|
|
1492
|
-
:type _request_auth: dict, optional
|
|
1493
|
-
:param _content_type: force content-type for the request.
|
|
1494
|
-
:type _content_type: str, Optional
|
|
1495
|
-
:param _headers: set to override the headers for a single
|
|
1496
|
-
request; this effectively ignores the headers
|
|
1497
|
-
in the spec for a single request.
|
|
1498
|
-
:type _headers: dict, optional
|
|
1499
|
-
:param _host_index: set to override the host_index for a single
|
|
1500
|
-
request; this effectively ignores the host_index
|
|
1501
|
-
in the spec for a single request.
|
|
1502
|
-
:type _host_index: int, optional
|
|
1503
|
-
:return: Returns the result object.
|
|
1504
|
-
""" # noqa: E501
|
|
1505
|
-
|
|
1506
|
-
_param = self._list_serialize(
|
|
1507
|
-
pulp_domain=pulp_domain,
|
|
1508
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1509
|
-
base_url=base_url,
|
|
1510
|
-
base_url__contains=base_url__contains,
|
|
1511
|
-
base_url__icontains=base_url__icontains,
|
|
1512
|
-
base_url__iexact=base_url__iexact,
|
|
1513
|
-
base_url__in=base_url__in,
|
|
1514
|
-
base_url__iregex=base_url__iregex,
|
|
1515
|
-
base_url__istartswith=base_url__istartswith,
|
|
1516
|
-
base_url__regex=base_url__regex,
|
|
1517
|
-
base_url__startswith=base_url__startswith,
|
|
1518
|
-
last_replication=last_replication,
|
|
1519
|
-
last_replication__gt=last_replication__gt,
|
|
1520
|
-
last_replication__gte=last_replication__gte,
|
|
1521
|
-
last_replication__isnull=last_replication__isnull,
|
|
1522
|
-
last_replication__lt=last_replication__lt,
|
|
1523
|
-
last_replication__lte=last_replication__lte,
|
|
1524
|
-
last_replication__range=last_replication__range,
|
|
1525
|
-
limit=limit,
|
|
1526
|
-
name=name,
|
|
1527
|
-
name__contains=name__contains,
|
|
1528
|
-
name__icontains=name__icontains,
|
|
1529
|
-
name__iexact=name__iexact,
|
|
1530
|
-
name__in=name__in,
|
|
1531
|
-
name__iregex=name__iregex,
|
|
1532
|
-
name__istartswith=name__istartswith,
|
|
1533
|
-
name__regex=name__regex,
|
|
1534
|
-
name__startswith=name__startswith,
|
|
1535
|
-
offset=offset,
|
|
1536
|
-
ordering=ordering,
|
|
1537
|
-
prn__in=prn__in,
|
|
1538
|
-
pulp_href__in=pulp_href__in,
|
|
1539
|
-
pulp_id__in=pulp_id__in,
|
|
1540
|
-
q=q,
|
|
1541
|
-
fields=fields,
|
|
1542
|
-
exclude_fields=exclude_fields,
|
|
1543
|
-
_request_auth=_request_auth,
|
|
1544
|
-
_content_type=_content_type,
|
|
1545
|
-
_headers=_headers,
|
|
1546
|
-
_host_index=_host_index
|
|
1547
|
-
)
|
|
1548
|
-
|
|
1549
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1550
|
-
'200': "PaginatedUpstreamPulpResponseList",
|
|
1551
|
-
}
|
|
1552
|
-
response_data = self.api_client.call_api(
|
|
1553
|
-
*_param,
|
|
1554
|
-
_request_timeout=_request_timeout
|
|
1555
|
-
)
|
|
1556
|
-
return response_data.response
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
def _list_serialize(
|
|
1560
|
-
self,
|
|
1561
|
-
pulp_domain,
|
|
1562
|
-
x_task_diagnostics,
|
|
1563
|
-
base_url,
|
|
1564
|
-
base_url__contains,
|
|
1565
|
-
base_url__icontains,
|
|
1566
|
-
base_url__iexact,
|
|
1567
|
-
base_url__in,
|
|
1568
|
-
base_url__iregex,
|
|
1569
|
-
base_url__istartswith,
|
|
1570
|
-
base_url__regex,
|
|
1571
|
-
base_url__startswith,
|
|
1572
|
-
last_replication,
|
|
1573
|
-
last_replication__gt,
|
|
1574
|
-
last_replication__gte,
|
|
1575
|
-
last_replication__isnull,
|
|
1576
|
-
last_replication__lt,
|
|
1577
|
-
last_replication__lte,
|
|
1578
|
-
last_replication__range,
|
|
1579
|
-
limit,
|
|
1580
|
-
name,
|
|
1581
|
-
name__contains,
|
|
1582
|
-
name__icontains,
|
|
1583
|
-
name__iexact,
|
|
1584
|
-
name__in,
|
|
1585
|
-
name__iregex,
|
|
1586
|
-
name__istartswith,
|
|
1587
|
-
name__regex,
|
|
1588
|
-
name__startswith,
|
|
1589
|
-
offset,
|
|
1590
|
-
ordering,
|
|
1591
|
-
prn__in,
|
|
1592
|
-
pulp_href__in,
|
|
1593
|
-
pulp_id__in,
|
|
1594
|
-
q,
|
|
1595
|
-
fields,
|
|
1596
|
-
exclude_fields,
|
|
1597
|
-
_request_auth,
|
|
1598
|
-
_content_type,
|
|
1599
|
-
_headers,
|
|
1600
|
-
_host_index,
|
|
1601
|
-
) -> RequestSerialized:
|
|
1602
|
-
|
|
1603
|
-
_host = None
|
|
1604
|
-
|
|
1605
|
-
_collection_formats: Dict[str, str] = {
|
|
1606
|
-
'X-Task-Diagnostics': 'csv',
|
|
1607
|
-
'base_url__in': 'csv',
|
|
1608
|
-
'last_replication__range': 'csv',
|
|
1609
|
-
'name__in': 'csv',
|
|
1610
|
-
'ordering': 'csv',
|
|
1611
|
-
'prn__in': 'csv',
|
|
1612
|
-
'pulp_href__in': 'csv',
|
|
1613
|
-
'pulp_id__in': 'csv',
|
|
1614
|
-
'fields': 'multi',
|
|
1615
|
-
'exclude_fields': 'multi',
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
_path_params: Dict[str, str] = {}
|
|
1619
|
-
_query_params: List[Tuple[str, str]] = []
|
|
1620
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1621
|
-
_form_params: List[Tuple[str, str]] = []
|
|
1622
|
-
_files: Dict[
|
|
1623
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1624
|
-
] = {}
|
|
1625
|
-
_body_params: Optional[bytes] = None
|
|
1626
|
-
|
|
1627
|
-
# process the path parameters
|
|
1628
|
-
if pulp_domain is not None:
|
|
1629
|
-
_path_params['pulp_domain'] = pulp_domain
|
|
1630
|
-
# process the query parameters
|
|
1631
|
-
if base_url is not None:
|
|
1632
|
-
|
|
1633
|
-
_query_params.append(('base_url', base_url))
|
|
1634
|
-
|
|
1635
|
-
if base_url__contains is not None:
|
|
1636
|
-
|
|
1637
|
-
_query_params.append(('base_url__contains', base_url__contains))
|
|
1638
|
-
|
|
1639
|
-
if base_url__icontains is not None:
|
|
1640
|
-
|
|
1641
|
-
_query_params.append(('base_url__icontains', base_url__icontains))
|
|
1642
|
-
|
|
1643
|
-
if base_url__iexact is not None:
|
|
1644
|
-
|
|
1645
|
-
_query_params.append(('base_url__iexact', base_url__iexact))
|
|
1646
|
-
|
|
1647
|
-
if base_url__in is not None:
|
|
1648
|
-
|
|
1649
|
-
_query_params.append(('base_url__in', base_url__in))
|
|
1650
|
-
|
|
1651
|
-
if base_url__iregex is not None:
|
|
1652
|
-
|
|
1653
|
-
_query_params.append(('base_url__iregex', base_url__iregex))
|
|
1654
|
-
|
|
1655
|
-
if base_url__istartswith is not None:
|
|
1656
|
-
|
|
1657
|
-
_query_params.append(('base_url__istartswith', base_url__istartswith))
|
|
1658
|
-
|
|
1659
|
-
if base_url__regex is not None:
|
|
1660
|
-
|
|
1661
|
-
_query_params.append(('base_url__regex', base_url__regex))
|
|
1662
|
-
|
|
1663
|
-
if base_url__startswith is not None:
|
|
1664
|
-
|
|
1665
|
-
_query_params.append(('base_url__startswith', base_url__startswith))
|
|
1666
|
-
|
|
1667
|
-
if last_replication is not None:
|
|
1668
|
-
if isinstance(last_replication, datetime):
|
|
1669
|
-
_query_params.append(
|
|
1670
|
-
(
|
|
1671
|
-
'last_replication',
|
|
1672
|
-
last_replication.strftime(
|
|
1673
|
-
self.api_client.configuration.datetime_format
|
|
1674
|
-
)
|
|
1675
|
-
)
|
|
1676
|
-
)
|
|
1677
|
-
else:
|
|
1678
|
-
_query_params.append(('last_replication', last_replication))
|
|
1679
|
-
|
|
1680
|
-
if last_replication__gt is not None:
|
|
1681
|
-
if isinstance(last_replication__gt, datetime):
|
|
1682
|
-
_query_params.append(
|
|
1683
|
-
(
|
|
1684
|
-
'last_replication__gt',
|
|
1685
|
-
last_replication__gt.strftime(
|
|
1686
|
-
self.api_client.configuration.datetime_format
|
|
1687
|
-
)
|
|
1688
|
-
)
|
|
1689
|
-
)
|
|
1690
|
-
else:
|
|
1691
|
-
_query_params.append(('last_replication__gt', last_replication__gt))
|
|
1692
|
-
|
|
1693
|
-
if last_replication__gte is not None:
|
|
1694
|
-
if isinstance(last_replication__gte, datetime):
|
|
1695
|
-
_query_params.append(
|
|
1696
|
-
(
|
|
1697
|
-
'last_replication__gte',
|
|
1698
|
-
last_replication__gte.strftime(
|
|
1699
|
-
self.api_client.configuration.datetime_format
|
|
1700
|
-
)
|
|
1701
|
-
)
|
|
1702
|
-
)
|
|
1703
|
-
else:
|
|
1704
|
-
_query_params.append(('last_replication__gte', last_replication__gte))
|
|
1705
|
-
|
|
1706
|
-
if last_replication__isnull is not None:
|
|
1707
|
-
|
|
1708
|
-
_query_params.append(('last_replication__isnull', last_replication__isnull))
|
|
1709
|
-
|
|
1710
|
-
if last_replication__lt is not None:
|
|
1711
|
-
if isinstance(last_replication__lt, datetime):
|
|
1712
|
-
_query_params.append(
|
|
1713
|
-
(
|
|
1714
|
-
'last_replication__lt',
|
|
1715
|
-
last_replication__lt.strftime(
|
|
1716
|
-
self.api_client.configuration.datetime_format
|
|
1717
|
-
)
|
|
1718
|
-
)
|
|
1719
|
-
)
|
|
1720
|
-
else:
|
|
1721
|
-
_query_params.append(('last_replication__lt', last_replication__lt))
|
|
1722
|
-
|
|
1723
|
-
if last_replication__lte is not None:
|
|
1724
|
-
if isinstance(last_replication__lte, datetime):
|
|
1725
|
-
_query_params.append(
|
|
1726
|
-
(
|
|
1727
|
-
'last_replication__lte',
|
|
1728
|
-
last_replication__lte.strftime(
|
|
1729
|
-
self.api_client.configuration.datetime_format
|
|
1730
|
-
)
|
|
1731
|
-
)
|
|
1732
|
-
)
|
|
1733
|
-
else:
|
|
1734
|
-
_query_params.append(('last_replication__lte', last_replication__lte))
|
|
1735
|
-
|
|
1736
|
-
if last_replication__range is not None:
|
|
1737
|
-
|
|
1738
|
-
_query_params.append(('last_replication__range', last_replication__range))
|
|
1739
|
-
|
|
1740
|
-
if limit is not None:
|
|
1741
|
-
|
|
1742
|
-
_query_params.append(('limit', limit))
|
|
1743
|
-
|
|
1744
|
-
if name is not None:
|
|
1745
|
-
|
|
1746
|
-
_query_params.append(('name', name))
|
|
1747
|
-
|
|
1748
|
-
if name__contains is not None:
|
|
1749
|
-
|
|
1750
|
-
_query_params.append(('name__contains', name__contains))
|
|
1751
|
-
|
|
1752
|
-
if name__icontains is not None:
|
|
1753
|
-
|
|
1754
|
-
_query_params.append(('name__icontains', name__icontains))
|
|
1755
|
-
|
|
1756
|
-
if name__iexact is not None:
|
|
1757
|
-
|
|
1758
|
-
_query_params.append(('name__iexact', name__iexact))
|
|
1759
|
-
|
|
1760
|
-
if name__in is not None:
|
|
1761
|
-
|
|
1762
|
-
_query_params.append(('name__in', name__in))
|
|
1763
|
-
|
|
1764
|
-
if name__iregex is not None:
|
|
1765
|
-
|
|
1766
|
-
_query_params.append(('name__iregex', name__iregex))
|
|
1767
|
-
|
|
1768
|
-
if name__istartswith is not None:
|
|
1769
|
-
|
|
1770
|
-
_query_params.append(('name__istartswith', name__istartswith))
|
|
1771
|
-
|
|
1772
|
-
if name__regex is not None:
|
|
1773
|
-
|
|
1774
|
-
_query_params.append(('name__regex', name__regex))
|
|
1775
|
-
|
|
1776
|
-
if name__startswith is not None:
|
|
1777
|
-
|
|
1778
|
-
_query_params.append(('name__startswith', name__startswith))
|
|
1779
|
-
|
|
1780
|
-
if offset is not None:
|
|
1781
|
-
|
|
1782
|
-
_query_params.append(('offset', offset))
|
|
1783
|
-
|
|
1784
|
-
if ordering is not None:
|
|
1785
|
-
|
|
1786
|
-
_query_params.append(('ordering', ordering))
|
|
1787
|
-
|
|
1788
|
-
if prn__in is not None:
|
|
1789
|
-
|
|
1790
|
-
_query_params.append(('prn__in', prn__in))
|
|
1791
|
-
|
|
1792
|
-
if pulp_href__in is not None:
|
|
1793
|
-
|
|
1794
|
-
_query_params.append(('pulp_href__in', pulp_href__in))
|
|
1795
|
-
|
|
1796
|
-
if pulp_id__in is not None:
|
|
1797
|
-
|
|
1798
|
-
_query_params.append(('pulp_id__in', pulp_id__in))
|
|
1799
|
-
|
|
1800
|
-
if q is not None:
|
|
1801
|
-
|
|
1802
|
-
_query_params.append(('q', q))
|
|
1803
|
-
|
|
1804
|
-
if fields is not None:
|
|
1805
|
-
|
|
1806
|
-
_query_params.append(('fields', fields))
|
|
1807
|
-
|
|
1808
|
-
if exclude_fields is not None:
|
|
1809
|
-
|
|
1810
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
1811
|
-
|
|
1812
|
-
# process the header parameters
|
|
1813
|
-
if x_task_diagnostics is not None:
|
|
1814
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
1815
|
-
# process the form parameters
|
|
1816
|
-
# process the body parameter
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
# set the HTTP header `Accept`
|
|
1820
|
-
if 'Accept' not in _header_params:
|
|
1821
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1822
|
-
[
|
|
1823
|
-
'application/json'
|
|
1824
|
-
]
|
|
1825
|
-
)
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
# authentication setting
|
|
1829
|
-
_auth_settings: List[str] = [
|
|
1830
|
-
'json_header_remote_authentication',
|
|
1831
|
-
'basicAuth',
|
|
1832
|
-
'cookieAuth'
|
|
1833
|
-
]
|
|
1834
|
-
|
|
1835
|
-
return self.api_client.param_serialize(
|
|
1836
|
-
method='GET',
|
|
1837
|
-
resource_path='/api/pulp/{pulp_domain}/api/v3/upstream-pulps/',
|
|
1838
|
-
path_params=_path_params,
|
|
1839
|
-
query_params=_query_params,
|
|
1840
|
-
header_params=_header_params,
|
|
1841
|
-
body=_body_params,
|
|
1842
|
-
post_params=_form_params,
|
|
1843
|
-
files=_files,
|
|
1844
|
-
auth_settings=_auth_settings,
|
|
1845
|
-
collection_formats=_collection_formats,
|
|
1846
|
-
_host=_host,
|
|
1847
|
-
_request_auth=_request_auth
|
|
1848
|
-
)
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
@validate_call
|
|
1854
|
-
def list_roles(
|
|
1855
|
-
self,
|
|
1856
|
-
upstream_pulp_href: StrictStr,
|
|
1857
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1858
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1859
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1860
|
-
_request_timeout: Union[
|
|
1861
|
-
None,
|
|
1862
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1863
|
-
Tuple[
|
|
1864
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1865
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1866
|
-
]
|
|
1867
|
-
] = None,
|
|
1868
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1869
|
-
_content_type: Optional[StrictStr] = None,
|
|
1870
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1871
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1872
|
-
) -> ObjectRolesResponse:
|
|
1873
|
-
"""List roles
|
|
1874
|
-
|
|
1875
|
-
List roles assigned to this object.
|
|
1876
|
-
|
|
1877
|
-
:param upstream_pulp_href: (required)
|
|
1878
|
-
:type upstream_pulp_href: str
|
|
1879
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1880
|
-
:type x_task_diagnostics: List[str]
|
|
1881
|
-
:param fields: A list of fields to include in the response.
|
|
1882
|
-
:type fields: List[str]
|
|
1883
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1884
|
-
:type exclude_fields: List[str]
|
|
1885
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1886
|
-
number provided, it will be total request
|
|
1887
|
-
timeout. It can also be a pair (tuple) of
|
|
1888
|
-
(connection, read) timeouts.
|
|
1889
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1890
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1891
|
-
request; this effectively ignores the
|
|
1892
|
-
authentication in the spec for a single request.
|
|
1893
|
-
:type _request_auth: dict, optional
|
|
1894
|
-
:param _content_type: force content-type for the request.
|
|
1895
|
-
:type _content_type: str, Optional
|
|
1896
|
-
:param _headers: set to override the headers for a single
|
|
1897
|
-
request; this effectively ignores the headers
|
|
1898
|
-
in the spec for a single request.
|
|
1899
|
-
:type _headers: dict, optional
|
|
1900
|
-
:param _host_index: set to override the host_index for a single
|
|
1901
|
-
request; this effectively ignores the host_index
|
|
1902
|
-
in the spec for a single request.
|
|
1903
|
-
:type _host_index: int, optional
|
|
1904
|
-
:return: Returns the result object.
|
|
1905
|
-
""" # noqa: E501
|
|
1906
|
-
|
|
1907
|
-
_param = self._list_roles_serialize(
|
|
1908
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
1909
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1910
|
-
fields=fields,
|
|
1911
|
-
exclude_fields=exclude_fields,
|
|
1912
|
-
_request_auth=_request_auth,
|
|
1913
|
-
_content_type=_content_type,
|
|
1914
|
-
_headers=_headers,
|
|
1915
|
-
_host_index=_host_index
|
|
1916
|
-
)
|
|
1917
|
-
|
|
1918
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1919
|
-
'200': "ObjectRolesResponse",
|
|
1920
|
-
}
|
|
1921
|
-
response_data = self.api_client.call_api(
|
|
1922
|
-
*_param,
|
|
1923
|
-
_request_timeout=_request_timeout
|
|
1924
|
-
)
|
|
1925
|
-
response_data.read()
|
|
1926
|
-
return self.api_client.response_deserialize(
|
|
1927
|
-
response_data=response_data,
|
|
1928
|
-
response_types_map=_response_types_map,
|
|
1929
|
-
).data
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
@validate_call
|
|
1933
|
-
def list_roles_with_http_info(
|
|
1934
|
-
self,
|
|
1935
|
-
upstream_pulp_href: StrictStr,
|
|
1936
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
1937
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
1938
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
1939
|
-
_request_timeout: Union[
|
|
1940
|
-
None,
|
|
1941
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1942
|
-
Tuple[
|
|
1943
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1944
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1945
|
-
]
|
|
1946
|
-
] = None,
|
|
1947
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1948
|
-
_content_type: Optional[StrictStr] = None,
|
|
1949
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1950
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1951
|
-
) -> ApiResponse[ObjectRolesResponse]:
|
|
1952
|
-
"""List roles
|
|
1953
|
-
|
|
1954
|
-
List roles assigned to this object.
|
|
1955
|
-
|
|
1956
|
-
:param upstream_pulp_href: (required)
|
|
1957
|
-
:type upstream_pulp_href: str
|
|
1958
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
1959
|
-
:type x_task_diagnostics: List[str]
|
|
1960
|
-
:param fields: A list of fields to include in the response.
|
|
1961
|
-
:type fields: List[str]
|
|
1962
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
1963
|
-
:type exclude_fields: List[str]
|
|
1964
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1965
|
-
number provided, it will be total request
|
|
1966
|
-
timeout. It can also be a pair (tuple) of
|
|
1967
|
-
(connection, read) timeouts.
|
|
1968
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1969
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1970
|
-
request; this effectively ignores the
|
|
1971
|
-
authentication in the spec for a single request.
|
|
1972
|
-
:type _request_auth: dict, optional
|
|
1973
|
-
:param _content_type: force content-type for the request.
|
|
1974
|
-
:type _content_type: str, Optional
|
|
1975
|
-
:param _headers: set to override the headers for a single
|
|
1976
|
-
request; this effectively ignores the headers
|
|
1977
|
-
in the spec for a single request.
|
|
1978
|
-
:type _headers: dict, optional
|
|
1979
|
-
:param _host_index: set to override the host_index for a single
|
|
1980
|
-
request; this effectively ignores the host_index
|
|
1981
|
-
in the spec for a single request.
|
|
1982
|
-
:type _host_index: int, optional
|
|
1983
|
-
:return: Returns the result object.
|
|
1984
|
-
""" # noqa: E501
|
|
1985
|
-
|
|
1986
|
-
_param = self._list_roles_serialize(
|
|
1987
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
1988
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
1989
|
-
fields=fields,
|
|
1990
|
-
exclude_fields=exclude_fields,
|
|
1991
|
-
_request_auth=_request_auth,
|
|
1992
|
-
_content_type=_content_type,
|
|
1993
|
-
_headers=_headers,
|
|
1994
|
-
_host_index=_host_index
|
|
1995
|
-
)
|
|
1996
|
-
|
|
1997
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1998
|
-
'200': "ObjectRolesResponse",
|
|
1999
|
-
}
|
|
2000
|
-
response_data = self.api_client.call_api(
|
|
2001
|
-
*_param,
|
|
2002
|
-
_request_timeout=_request_timeout
|
|
2003
|
-
)
|
|
2004
|
-
response_data.read()
|
|
2005
|
-
return self.api_client.response_deserialize(
|
|
2006
|
-
response_data=response_data,
|
|
2007
|
-
response_types_map=_response_types_map,
|
|
2008
|
-
)
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
@validate_call
|
|
2012
|
-
def list_roles_without_preload_content(
|
|
2013
|
-
self,
|
|
2014
|
-
upstream_pulp_href: StrictStr,
|
|
2015
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2016
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2017
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2018
|
-
_request_timeout: Union[
|
|
2019
|
-
None,
|
|
2020
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2021
|
-
Tuple[
|
|
2022
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2023
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2024
|
-
]
|
|
2025
|
-
] = None,
|
|
2026
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2027
|
-
_content_type: Optional[StrictStr] = None,
|
|
2028
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2029
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2030
|
-
) -> RESTResponseType:
|
|
2031
|
-
"""List roles
|
|
2032
|
-
|
|
2033
|
-
List roles assigned to this object.
|
|
2034
|
-
|
|
2035
|
-
:param upstream_pulp_href: (required)
|
|
2036
|
-
:type upstream_pulp_href: str
|
|
2037
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2038
|
-
:type x_task_diagnostics: List[str]
|
|
2039
|
-
:param fields: A list of fields to include in the response.
|
|
2040
|
-
:type fields: List[str]
|
|
2041
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2042
|
-
:type exclude_fields: List[str]
|
|
2043
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2044
|
-
number provided, it will be total request
|
|
2045
|
-
timeout. It can also be a pair (tuple) of
|
|
2046
|
-
(connection, read) timeouts.
|
|
2047
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2048
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2049
|
-
request; this effectively ignores the
|
|
2050
|
-
authentication in the spec for a single request.
|
|
2051
|
-
:type _request_auth: dict, optional
|
|
2052
|
-
:param _content_type: force content-type for the request.
|
|
2053
|
-
:type _content_type: str, Optional
|
|
2054
|
-
:param _headers: set to override the headers for a single
|
|
2055
|
-
request; this effectively ignores the headers
|
|
2056
|
-
in the spec for a single request.
|
|
2057
|
-
:type _headers: dict, optional
|
|
2058
|
-
:param _host_index: set to override the host_index for a single
|
|
2059
|
-
request; this effectively ignores the host_index
|
|
2060
|
-
in the spec for a single request.
|
|
2061
|
-
:type _host_index: int, optional
|
|
2062
|
-
:return: Returns the result object.
|
|
2063
|
-
""" # noqa: E501
|
|
2064
|
-
|
|
2065
|
-
_param = self._list_roles_serialize(
|
|
2066
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2067
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2068
|
-
fields=fields,
|
|
2069
|
-
exclude_fields=exclude_fields,
|
|
2070
|
-
_request_auth=_request_auth,
|
|
2071
|
-
_content_type=_content_type,
|
|
2072
|
-
_headers=_headers,
|
|
2073
|
-
_host_index=_host_index
|
|
2074
|
-
)
|
|
2075
|
-
|
|
2076
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2077
|
-
'200': "ObjectRolesResponse",
|
|
2078
|
-
}
|
|
2079
|
-
response_data = self.api_client.call_api(
|
|
2080
|
-
*_param,
|
|
2081
|
-
_request_timeout=_request_timeout
|
|
2082
|
-
)
|
|
2083
|
-
return response_data.response
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
def _list_roles_serialize(
|
|
2087
|
-
self,
|
|
2088
|
-
upstream_pulp_href,
|
|
2089
|
-
x_task_diagnostics,
|
|
2090
|
-
fields,
|
|
2091
|
-
exclude_fields,
|
|
2092
|
-
_request_auth,
|
|
2093
|
-
_content_type,
|
|
2094
|
-
_headers,
|
|
2095
|
-
_host_index,
|
|
2096
|
-
) -> RequestSerialized:
|
|
2097
|
-
|
|
2098
|
-
_host = None
|
|
2099
|
-
|
|
2100
|
-
_collection_formats: Dict[str, str] = {
|
|
2101
|
-
'X-Task-Diagnostics': 'csv',
|
|
2102
|
-
'fields': 'multi',
|
|
2103
|
-
'exclude_fields': 'multi',
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
_path_params: Dict[str, str] = {}
|
|
2107
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2108
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2109
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2110
|
-
_files: Dict[
|
|
2111
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2112
|
-
] = {}
|
|
2113
|
-
_body_params: Optional[bytes] = None
|
|
2114
|
-
|
|
2115
|
-
# process the path parameters
|
|
2116
|
-
if upstream_pulp_href is not None:
|
|
2117
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
2118
|
-
# process the query parameters
|
|
2119
|
-
if fields is not None:
|
|
2120
|
-
|
|
2121
|
-
_query_params.append(('fields', fields))
|
|
2122
|
-
|
|
2123
|
-
if exclude_fields is not None:
|
|
2124
|
-
|
|
2125
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
2126
|
-
|
|
2127
|
-
# process the header parameters
|
|
2128
|
-
if x_task_diagnostics is not None:
|
|
2129
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2130
|
-
# process the form parameters
|
|
2131
|
-
# process the body parameter
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
# set the HTTP header `Accept`
|
|
2135
|
-
if 'Accept' not in _header_params:
|
|
2136
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2137
|
-
[
|
|
2138
|
-
'application/json'
|
|
2139
|
-
]
|
|
2140
|
-
)
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
# authentication setting
|
|
2144
|
-
_auth_settings: List[str] = [
|
|
2145
|
-
'json_header_remote_authentication',
|
|
2146
|
-
'basicAuth',
|
|
2147
|
-
'cookieAuth'
|
|
2148
|
-
]
|
|
2149
|
-
|
|
2150
|
-
return self.api_client.param_serialize(
|
|
2151
|
-
method='GET',
|
|
2152
|
-
resource_path='{upstream_pulp_href}list_roles/',
|
|
2153
|
-
path_params=_path_params,
|
|
2154
|
-
query_params=_query_params,
|
|
2155
|
-
header_params=_header_params,
|
|
2156
|
-
body=_body_params,
|
|
2157
|
-
post_params=_form_params,
|
|
2158
|
-
files=_files,
|
|
2159
|
-
auth_settings=_auth_settings,
|
|
2160
|
-
collection_formats=_collection_formats,
|
|
2161
|
-
_host=_host,
|
|
2162
|
-
_request_auth=_request_auth
|
|
2163
|
-
)
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
@validate_call
|
|
2169
|
-
def my_permissions(
|
|
2170
|
-
self,
|
|
2171
|
-
upstream_pulp_href: StrictStr,
|
|
2172
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2173
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2174
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2175
|
-
_request_timeout: Union[
|
|
2176
|
-
None,
|
|
2177
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2178
|
-
Tuple[
|
|
2179
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2180
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2181
|
-
]
|
|
2182
|
-
] = None,
|
|
2183
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2184
|
-
_content_type: Optional[StrictStr] = None,
|
|
2185
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2186
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2187
|
-
) -> MyPermissionsResponse:
|
|
2188
|
-
"""List user permissions
|
|
2189
|
-
|
|
2190
|
-
List permissions available to the current user on this object.
|
|
2191
|
-
|
|
2192
|
-
:param upstream_pulp_href: (required)
|
|
2193
|
-
:type upstream_pulp_href: str
|
|
2194
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2195
|
-
:type x_task_diagnostics: List[str]
|
|
2196
|
-
:param fields: A list of fields to include in the response.
|
|
2197
|
-
:type fields: List[str]
|
|
2198
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2199
|
-
:type exclude_fields: List[str]
|
|
2200
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2201
|
-
number provided, it will be total request
|
|
2202
|
-
timeout. It can also be a pair (tuple) of
|
|
2203
|
-
(connection, read) timeouts.
|
|
2204
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2205
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2206
|
-
request; this effectively ignores the
|
|
2207
|
-
authentication in the spec for a single request.
|
|
2208
|
-
:type _request_auth: dict, optional
|
|
2209
|
-
:param _content_type: force content-type for the request.
|
|
2210
|
-
:type _content_type: str, Optional
|
|
2211
|
-
:param _headers: set to override the headers for a single
|
|
2212
|
-
request; this effectively ignores the headers
|
|
2213
|
-
in the spec for a single request.
|
|
2214
|
-
:type _headers: dict, optional
|
|
2215
|
-
:param _host_index: set to override the host_index for a single
|
|
2216
|
-
request; this effectively ignores the host_index
|
|
2217
|
-
in the spec for a single request.
|
|
2218
|
-
:type _host_index: int, optional
|
|
2219
|
-
:return: Returns the result object.
|
|
2220
|
-
""" # noqa: E501
|
|
2221
|
-
|
|
2222
|
-
_param = self._my_permissions_serialize(
|
|
2223
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2224
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2225
|
-
fields=fields,
|
|
2226
|
-
exclude_fields=exclude_fields,
|
|
2227
|
-
_request_auth=_request_auth,
|
|
2228
|
-
_content_type=_content_type,
|
|
2229
|
-
_headers=_headers,
|
|
2230
|
-
_host_index=_host_index
|
|
2231
|
-
)
|
|
2232
|
-
|
|
2233
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2234
|
-
'200': "MyPermissionsResponse",
|
|
2235
|
-
}
|
|
2236
|
-
response_data = self.api_client.call_api(
|
|
2237
|
-
*_param,
|
|
2238
|
-
_request_timeout=_request_timeout
|
|
2239
|
-
)
|
|
2240
|
-
response_data.read()
|
|
2241
|
-
return self.api_client.response_deserialize(
|
|
2242
|
-
response_data=response_data,
|
|
2243
|
-
response_types_map=_response_types_map,
|
|
2244
|
-
).data
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
@validate_call
|
|
2248
|
-
def my_permissions_with_http_info(
|
|
2249
|
-
self,
|
|
2250
|
-
upstream_pulp_href: StrictStr,
|
|
2251
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2252
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2253
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2254
|
-
_request_timeout: Union[
|
|
2255
|
-
None,
|
|
2256
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2257
|
-
Tuple[
|
|
2258
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2259
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2260
|
-
]
|
|
2261
|
-
] = None,
|
|
2262
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2263
|
-
_content_type: Optional[StrictStr] = None,
|
|
2264
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2265
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2266
|
-
) -> ApiResponse[MyPermissionsResponse]:
|
|
2267
|
-
"""List user permissions
|
|
2268
|
-
|
|
2269
|
-
List permissions available to the current user on this object.
|
|
2270
|
-
|
|
2271
|
-
:param upstream_pulp_href: (required)
|
|
2272
|
-
:type upstream_pulp_href: str
|
|
2273
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2274
|
-
:type x_task_diagnostics: List[str]
|
|
2275
|
-
:param fields: A list of fields to include in the response.
|
|
2276
|
-
:type fields: List[str]
|
|
2277
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2278
|
-
:type exclude_fields: List[str]
|
|
2279
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2280
|
-
number provided, it will be total request
|
|
2281
|
-
timeout. It can also be a pair (tuple) of
|
|
2282
|
-
(connection, read) timeouts.
|
|
2283
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2284
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2285
|
-
request; this effectively ignores the
|
|
2286
|
-
authentication in the spec for a single request.
|
|
2287
|
-
:type _request_auth: dict, optional
|
|
2288
|
-
:param _content_type: force content-type for the request.
|
|
2289
|
-
:type _content_type: str, Optional
|
|
2290
|
-
:param _headers: set to override the headers for a single
|
|
2291
|
-
request; this effectively ignores the headers
|
|
2292
|
-
in the spec for a single request.
|
|
2293
|
-
:type _headers: dict, optional
|
|
2294
|
-
:param _host_index: set to override the host_index for a single
|
|
2295
|
-
request; this effectively ignores the host_index
|
|
2296
|
-
in the spec for a single request.
|
|
2297
|
-
:type _host_index: int, optional
|
|
2298
|
-
:return: Returns the result object.
|
|
2299
|
-
""" # noqa: E501
|
|
2300
|
-
|
|
2301
|
-
_param = self._my_permissions_serialize(
|
|
2302
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2303
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2304
|
-
fields=fields,
|
|
2305
|
-
exclude_fields=exclude_fields,
|
|
2306
|
-
_request_auth=_request_auth,
|
|
2307
|
-
_content_type=_content_type,
|
|
2308
|
-
_headers=_headers,
|
|
2309
|
-
_host_index=_host_index
|
|
2310
|
-
)
|
|
2311
|
-
|
|
2312
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2313
|
-
'200': "MyPermissionsResponse",
|
|
2314
|
-
}
|
|
2315
|
-
response_data = self.api_client.call_api(
|
|
2316
|
-
*_param,
|
|
2317
|
-
_request_timeout=_request_timeout
|
|
2318
|
-
)
|
|
2319
|
-
response_data.read()
|
|
2320
|
-
return self.api_client.response_deserialize(
|
|
2321
|
-
response_data=response_data,
|
|
2322
|
-
response_types_map=_response_types_map,
|
|
2323
|
-
)
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
@validate_call
|
|
2327
|
-
def my_permissions_without_preload_content(
|
|
2328
|
-
self,
|
|
2329
|
-
upstream_pulp_href: StrictStr,
|
|
2330
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2331
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2332
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2333
|
-
_request_timeout: Union[
|
|
2334
|
-
None,
|
|
2335
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2336
|
-
Tuple[
|
|
2337
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2338
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2339
|
-
]
|
|
2340
|
-
] = None,
|
|
2341
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2342
|
-
_content_type: Optional[StrictStr] = None,
|
|
2343
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2344
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2345
|
-
) -> RESTResponseType:
|
|
2346
|
-
"""List user permissions
|
|
2347
|
-
|
|
2348
|
-
List permissions available to the current user on this object.
|
|
2349
|
-
|
|
2350
|
-
:param upstream_pulp_href: (required)
|
|
2351
|
-
:type upstream_pulp_href: str
|
|
2352
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2353
|
-
:type x_task_diagnostics: List[str]
|
|
2354
|
-
:param fields: A list of fields to include in the response.
|
|
2355
|
-
:type fields: List[str]
|
|
2356
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2357
|
-
:type exclude_fields: List[str]
|
|
2358
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2359
|
-
number provided, it will be total request
|
|
2360
|
-
timeout. It can also be a pair (tuple) of
|
|
2361
|
-
(connection, read) timeouts.
|
|
2362
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2363
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2364
|
-
request; this effectively ignores the
|
|
2365
|
-
authentication in the spec for a single request.
|
|
2366
|
-
:type _request_auth: dict, optional
|
|
2367
|
-
:param _content_type: force content-type for the request.
|
|
2368
|
-
:type _content_type: str, Optional
|
|
2369
|
-
:param _headers: set to override the headers for a single
|
|
2370
|
-
request; this effectively ignores the headers
|
|
2371
|
-
in the spec for a single request.
|
|
2372
|
-
:type _headers: dict, optional
|
|
2373
|
-
:param _host_index: set to override the host_index for a single
|
|
2374
|
-
request; this effectively ignores the host_index
|
|
2375
|
-
in the spec for a single request.
|
|
2376
|
-
:type _host_index: int, optional
|
|
2377
|
-
:return: Returns the result object.
|
|
2378
|
-
""" # noqa: E501
|
|
2379
|
-
|
|
2380
|
-
_param = self._my_permissions_serialize(
|
|
2381
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2382
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2383
|
-
fields=fields,
|
|
2384
|
-
exclude_fields=exclude_fields,
|
|
2385
|
-
_request_auth=_request_auth,
|
|
2386
|
-
_content_type=_content_type,
|
|
2387
|
-
_headers=_headers,
|
|
2388
|
-
_host_index=_host_index
|
|
2389
|
-
)
|
|
2390
|
-
|
|
2391
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2392
|
-
'200': "MyPermissionsResponse",
|
|
2393
|
-
}
|
|
2394
|
-
response_data = self.api_client.call_api(
|
|
2395
|
-
*_param,
|
|
2396
|
-
_request_timeout=_request_timeout
|
|
2397
|
-
)
|
|
2398
|
-
return response_data.response
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
def _my_permissions_serialize(
|
|
2402
|
-
self,
|
|
2403
|
-
upstream_pulp_href,
|
|
2404
|
-
x_task_diagnostics,
|
|
2405
|
-
fields,
|
|
2406
|
-
exclude_fields,
|
|
2407
|
-
_request_auth,
|
|
2408
|
-
_content_type,
|
|
2409
|
-
_headers,
|
|
2410
|
-
_host_index,
|
|
2411
|
-
) -> RequestSerialized:
|
|
2412
|
-
|
|
2413
|
-
_host = None
|
|
2414
|
-
|
|
2415
|
-
_collection_formats: Dict[str, str] = {
|
|
2416
|
-
'X-Task-Diagnostics': 'csv',
|
|
2417
|
-
'fields': 'multi',
|
|
2418
|
-
'exclude_fields': 'multi',
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
_path_params: Dict[str, str] = {}
|
|
2422
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2423
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2424
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2425
|
-
_files: Dict[
|
|
2426
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2427
|
-
] = {}
|
|
2428
|
-
_body_params: Optional[bytes] = None
|
|
2429
|
-
|
|
2430
|
-
# process the path parameters
|
|
2431
|
-
if upstream_pulp_href is not None:
|
|
2432
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
2433
|
-
# process the query parameters
|
|
2434
|
-
if fields is not None:
|
|
2435
|
-
|
|
2436
|
-
_query_params.append(('fields', fields))
|
|
2437
|
-
|
|
2438
|
-
if exclude_fields is not None:
|
|
2439
|
-
|
|
2440
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
2441
|
-
|
|
2442
|
-
# process the header parameters
|
|
2443
|
-
if x_task_diagnostics is not None:
|
|
2444
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2445
|
-
# process the form parameters
|
|
2446
|
-
# process the body parameter
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
# set the HTTP header `Accept`
|
|
2450
|
-
if 'Accept' not in _header_params:
|
|
2451
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2452
|
-
[
|
|
2453
|
-
'application/json'
|
|
2454
|
-
]
|
|
2455
|
-
)
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
# authentication setting
|
|
2459
|
-
_auth_settings: List[str] = [
|
|
2460
|
-
'json_header_remote_authentication',
|
|
2461
|
-
'basicAuth',
|
|
2462
|
-
'cookieAuth'
|
|
2463
|
-
]
|
|
2464
|
-
|
|
2465
|
-
return self.api_client.param_serialize(
|
|
2466
|
-
method='GET',
|
|
2467
|
-
resource_path='{upstream_pulp_href}my_permissions/',
|
|
2468
|
-
path_params=_path_params,
|
|
2469
|
-
query_params=_query_params,
|
|
2470
|
-
header_params=_header_params,
|
|
2471
|
-
body=_body_params,
|
|
2472
|
-
post_params=_form_params,
|
|
2473
|
-
files=_files,
|
|
2474
|
-
auth_settings=_auth_settings,
|
|
2475
|
-
collection_formats=_collection_formats,
|
|
2476
|
-
_host=_host,
|
|
2477
|
-
_request_auth=_request_auth
|
|
2478
|
-
)
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
@validate_call
|
|
2484
|
-
def partial_update(
|
|
2485
|
-
self,
|
|
2486
|
-
upstream_pulp_href: StrictStr,
|
|
2487
|
-
patched_upstream_pulp: PatchedUpstreamPulp,
|
|
2488
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2489
|
-
_request_timeout: Union[
|
|
2490
|
-
None,
|
|
2491
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2492
|
-
Tuple[
|
|
2493
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2494
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2495
|
-
]
|
|
2496
|
-
] = None,
|
|
2497
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2498
|
-
_content_type: Optional[StrictStr] = None,
|
|
2499
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2500
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2501
|
-
) -> UpstreamPulpResponse:
|
|
2502
|
-
"""Update an upstream pulp
|
|
2503
|
-
|
|
2504
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2505
|
-
|
|
2506
|
-
:param upstream_pulp_href: (required)
|
|
2507
|
-
:type upstream_pulp_href: str
|
|
2508
|
-
:param patched_upstream_pulp: (required)
|
|
2509
|
-
:type patched_upstream_pulp: PatchedUpstreamPulp
|
|
2510
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2511
|
-
:type x_task_diagnostics: List[str]
|
|
2512
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2513
|
-
number provided, it will be total request
|
|
2514
|
-
timeout. It can also be a pair (tuple) of
|
|
2515
|
-
(connection, read) timeouts.
|
|
2516
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2517
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2518
|
-
request; this effectively ignores the
|
|
2519
|
-
authentication in the spec for a single request.
|
|
2520
|
-
:type _request_auth: dict, optional
|
|
2521
|
-
:param _content_type: force content-type for the request.
|
|
2522
|
-
:type _content_type: str, Optional
|
|
2523
|
-
:param _headers: set to override the headers for a single
|
|
2524
|
-
request; this effectively ignores the headers
|
|
2525
|
-
in the spec for a single request.
|
|
2526
|
-
:type _headers: dict, optional
|
|
2527
|
-
:param _host_index: set to override the host_index for a single
|
|
2528
|
-
request; this effectively ignores the host_index
|
|
2529
|
-
in the spec for a single request.
|
|
2530
|
-
:type _host_index: int, optional
|
|
2531
|
-
:return: Returns the result object.
|
|
2532
|
-
""" # noqa: E501
|
|
2533
|
-
|
|
2534
|
-
_param = self._partial_update_serialize(
|
|
2535
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2536
|
-
patched_upstream_pulp=patched_upstream_pulp,
|
|
2537
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2538
|
-
_request_auth=_request_auth,
|
|
2539
|
-
_content_type=_content_type,
|
|
2540
|
-
_headers=_headers,
|
|
2541
|
-
_host_index=_host_index
|
|
2542
|
-
)
|
|
2543
|
-
|
|
2544
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2545
|
-
'200': "UpstreamPulpResponse",
|
|
2546
|
-
}
|
|
2547
|
-
response_data = self.api_client.call_api(
|
|
2548
|
-
*_param,
|
|
2549
|
-
_request_timeout=_request_timeout
|
|
2550
|
-
)
|
|
2551
|
-
response_data.read()
|
|
2552
|
-
return self.api_client.response_deserialize(
|
|
2553
|
-
response_data=response_data,
|
|
2554
|
-
response_types_map=_response_types_map,
|
|
2555
|
-
).data
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
@validate_call
|
|
2559
|
-
def partial_update_with_http_info(
|
|
2560
|
-
self,
|
|
2561
|
-
upstream_pulp_href: StrictStr,
|
|
2562
|
-
patched_upstream_pulp: PatchedUpstreamPulp,
|
|
2563
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2564
|
-
_request_timeout: Union[
|
|
2565
|
-
None,
|
|
2566
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2567
|
-
Tuple[
|
|
2568
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2569
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2570
|
-
]
|
|
2571
|
-
] = None,
|
|
2572
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2573
|
-
_content_type: Optional[StrictStr] = None,
|
|
2574
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2575
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2576
|
-
) -> ApiResponse[UpstreamPulpResponse]:
|
|
2577
|
-
"""Update an upstream pulp
|
|
2578
|
-
|
|
2579
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2580
|
-
|
|
2581
|
-
:param upstream_pulp_href: (required)
|
|
2582
|
-
:type upstream_pulp_href: str
|
|
2583
|
-
:param patched_upstream_pulp: (required)
|
|
2584
|
-
:type patched_upstream_pulp: PatchedUpstreamPulp
|
|
2585
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2586
|
-
:type x_task_diagnostics: List[str]
|
|
2587
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2588
|
-
number provided, it will be total request
|
|
2589
|
-
timeout. It can also be a pair (tuple) of
|
|
2590
|
-
(connection, read) timeouts.
|
|
2591
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2592
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2593
|
-
request; this effectively ignores the
|
|
2594
|
-
authentication in the spec for a single request.
|
|
2595
|
-
:type _request_auth: dict, optional
|
|
2596
|
-
:param _content_type: force content-type for the request.
|
|
2597
|
-
:type _content_type: str, Optional
|
|
2598
|
-
:param _headers: set to override the headers for a single
|
|
2599
|
-
request; this effectively ignores the headers
|
|
2600
|
-
in the spec for a single request.
|
|
2601
|
-
:type _headers: dict, optional
|
|
2602
|
-
:param _host_index: set to override the host_index for a single
|
|
2603
|
-
request; this effectively ignores the host_index
|
|
2604
|
-
in the spec for a single request.
|
|
2605
|
-
:type _host_index: int, optional
|
|
2606
|
-
:return: Returns the result object.
|
|
2607
|
-
""" # noqa: E501
|
|
2608
|
-
|
|
2609
|
-
_param = self._partial_update_serialize(
|
|
2610
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2611
|
-
patched_upstream_pulp=patched_upstream_pulp,
|
|
2612
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2613
|
-
_request_auth=_request_auth,
|
|
2614
|
-
_content_type=_content_type,
|
|
2615
|
-
_headers=_headers,
|
|
2616
|
-
_host_index=_host_index
|
|
2617
|
-
)
|
|
2618
|
-
|
|
2619
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2620
|
-
'200': "UpstreamPulpResponse",
|
|
2621
|
-
}
|
|
2622
|
-
response_data = self.api_client.call_api(
|
|
2623
|
-
*_param,
|
|
2624
|
-
_request_timeout=_request_timeout
|
|
2625
|
-
)
|
|
2626
|
-
response_data.read()
|
|
2627
|
-
return self.api_client.response_deserialize(
|
|
2628
|
-
response_data=response_data,
|
|
2629
|
-
response_types_map=_response_types_map,
|
|
2630
|
-
)
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
@validate_call
|
|
2634
|
-
def partial_update_without_preload_content(
|
|
2635
|
-
self,
|
|
2636
|
-
upstream_pulp_href: StrictStr,
|
|
2637
|
-
patched_upstream_pulp: PatchedUpstreamPulp,
|
|
2638
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2639
|
-
_request_timeout: Union[
|
|
2640
|
-
None,
|
|
2641
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2642
|
-
Tuple[
|
|
2643
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2644
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2645
|
-
]
|
|
2646
|
-
] = None,
|
|
2647
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2648
|
-
_content_type: Optional[StrictStr] = None,
|
|
2649
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2650
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2651
|
-
) -> RESTResponseType:
|
|
2652
|
-
"""Update an upstream pulp
|
|
2653
|
-
|
|
2654
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2655
|
-
|
|
2656
|
-
:param upstream_pulp_href: (required)
|
|
2657
|
-
:type upstream_pulp_href: str
|
|
2658
|
-
:param patched_upstream_pulp: (required)
|
|
2659
|
-
:type patched_upstream_pulp: PatchedUpstreamPulp
|
|
2660
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2661
|
-
:type x_task_diagnostics: List[str]
|
|
2662
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2663
|
-
number provided, it will be total request
|
|
2664
|
-
timeout. It can also be a pair (tuple) of
|
|
2665
|
-
(connection, read) timeouts.
|
|
2666
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2667
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2668
|
-
request; this effectively ignores the
|
|
2669
|
-
authentication in the spec for a single request.
|
|
2670
|
-
:type _request_auth: dict, optional
|
|
2671
|
-
:param _content_type: force content-type for the request.
|
|
2672
|
-
:type _content_type: str, Optional
|
|
2673
|
-
:param _headers: set to override the headers for a single
|
|
2674
|
-
request; this effectively ignores the headers
|
|
2675
|
-
in the spec for a single request.
|
|
2676
|
-
:type _headers: dict, optional
|
|
2677
|
-
:param _host_index: set to override the host_index for a single
|
|
2678
|
-
request; this effectively ignores the host_index
|
|
2679
|
-
in the spec for a single request.
|
|
2680
|
-
:type _host_index: int, optional
|
|
2681
|
-
:return: Returns the result object.
|
|
2682
|
-
""" # noqa: E501
|
|
2683
|
-
|
|
2684
|
-
_param = self._partial_update_serialize(
|
|
2685
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2686
|
-
patched_upstream_pulp=patched_upstream_pulp,
|
|
2687
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2688
|
-
_request_auth=_request_auth,
|
|
2689
|
-
_content_type=_content_type,
|
|
2690
|
-
_headers=_headers,
|
|
2691
|
-
_host_index=_host_index
|
|
2692
|
-
)
|
|
2693
|
-
|
|
2694
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2695
|
-
'200': "UpstreamPulpResponse",
|
|
2696
|
-
}
|
|
2697
|
-
response_data = self.api_client.call_api(
|
|
2698
|
-
*_param,
|
|
2699
|
-
_request_timeout=_request_timeout
|
|
2700
|
-
)
|
|
2701
|
-
return response_data.response
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
def _partial_update_serialize(
|
|
2705
|
-
self,
|
|
2706
|
-
upstream_pulp_href,
|
|
2707
|
-
patched_upstream_pulp,
|
|
2708
|
-
x_task_diagnostics,
|
|
2709
|
-
_request_auth,
|
|
2710
|
-
_content_type,
|
|
2711
|
-
_headers,
|
|
2712
|
-
_host_index,
|
|
2713
|
-
) -> RequestSerialized:
|
|
2714
|
-
|
|
2715
|
-
_host = None
|
|
2716
|
-
|
|
2717
|
-
_collection_formats: Dict[str, str] = {
|
|
2718
|
-
'X-Task-Diagnostics': 'csv',
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
_path_params: Dict[str, str] = {}
|
|
2722
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2723
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2724
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2725
|
-
_files: Dict[
|
|
2726
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2727
|
-
] = {}
|
|
2728
|
-
_body_params: Optional[bytes] = None
|
|
2729
|
-
|
|
2730
|
-
# process the path parameters
|
|
2731
|
-
if upstream_pulp_href is not None:
|
|
2732
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
2733
|
-
# process the query parameters
|
|
2734
|
-
# process the header parameters
|
|
2735
|
-
if x_task_diagnostics is not None:
|
|
2736
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
2737
|
-
# process the form parameters
|
|
2738
|
-
# process the body parameter
|
|
2739
|
-
if patched_upstream_pulp is not None:
|
|
2740
|
-
_body_params = patched_upstream_pulp
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
# set the HTTP header `Accept`
|
|
2744
|
-
if 'Accept' not in _header_params:
|
|
2745
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2746
|
-
[
|
|
2747
|
-
'application/json'
|
|
2748
|
-
]
|
|
2749
|
-
)
|
|
2750
|
-
|
|
2751
|
-
# set the HTTP header `Content-Type`
|
|
2752
|
-
if _content_type:
|
|
2753
|
-
_header_params['Content-Type'] = _content_type
|
|
2754
|
-
else:
|
|
2755
|
-
_default_content_type = (
|
|
2756
|
-
self.api_client.select_header_content_type(
|
|
2757
|
-
[
|
|
2758
|
-
'application/json',
|
|
2759
|
-
'application/x-www-form-urlencoded',
|
|
2760
|
-
'multipart/form-data'
|
|
2761
|
-
]
|
|
2762
|
-
)
|
|
2763
|
-
)
|
|
2764
|
-
if _default_content_type is not None:
|
|
2765
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2766
|
-
|
|
2767
|
-
# authentication setting
|
|
2768
|
-
_auth_settings: List[str] = [
|
|
2769
|
-
'json_header_remote_authentication',
|
|
2770
|
-
'basicAuth',
|
|
2771
|
-
'cookieAuth'
|
|
2772
|
-
]
|
|
2773
|
-
|
|
2774
|
-
return self.api_client.param_serialize(
|
|
2775
|
-
method='PATCH',
|
|
2776
|
-
resource_path='{upstream_pulp_href}',
|
|
2777
|
-
path_params=_path_params,
|
|
2778
|
-
query_params=_query_params,
|
|
2779
|
-
header_params=_header_params,
|
|
2780
|
-
body=_body_params,
|
|
2781
|
-
post_params=_form_params,
|
|
2782
|
-
files=_files,
|
|
2783
|
-
auth_settings=_auth_settings,
|
|
2784
|
-
collection_formats=_collection_formats,
|
|
2785
|
-
_host=_host,
|
|
2786
|
-
_request_auth=_request_auth
|
|
2787
|
-
)
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
@validate_call
|
|
2793
|
-
def read(
|
|
2794
|
-
self,
|
|
2795
|
-
upstream_pulp_href: StrictStr,
|
|
2796
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2797
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2798
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2799
|
-
_request_timeout: Union[
|
|
2800
|
-
None,
|
|
2801
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2802
|
-
Tuple[
|
|
2803
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2804
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2805
|
-
]
|
|
2806
|
-
] = None,
|
|
2807
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2808
|
-
_content_type: Optional[StrictStr] = None,
|
|
2809
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2810
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2811
|
-
) -> UpstreamPulpResponse:
|
|
2812
|
-
"""Inspect an upstream pulp
|
|
2813
|
-
|
|
2814
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2815
|
-
|
|
2816
|
-
:param upstream_pulp_href: (required)
|
|
2817
|
-
:type upstream_pulp_href: str
|
|
2818
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2819
|
-
:type x_task_diagnostics: List[str]
|
|
2820
|
-
:param fields: A list of fields to include in the response.
|
|
2821
|
-
:type fields: List[str]
|
|
2822
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2823
|
-
:type exclude_fields: List[str]
|
|
2824
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2825
|
-
number provided, it will be total request
|
|
2826
|
-
timeout. It can also be a pair (tuple) of
|
|
2827
|
-
(connection, read) timeouts.
|
|
2828
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2829
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2830
|
-
request; this effectively ignores the
|
|
2831
|
-
authentication in the spec for a single request.
|
|
2832
|
-
:type _request_auth: dict, optional
|
|
2833
|
-
:param _content_type: force content-type for the request.
|
|
2834
|
-
:type _content_type: str, Optional
|
|
2835
|
-
:param _headers: set to override the headers for a single
|
|
2836
|
-
request; this effectively ignores the headers
|
|
2837
|
-
in the spec for a single request.
|
|
2838
|
-
:type _headers: dict, optional
|
|
2839
|
-
:param _host_index: set to override the host_index for a single
|
|
2840
|
-
request; this effectively ignores the host_index
|
|
2841
|
-
in the spec for a single request.
|
|
2842
|
-
:type _host_index: int, optional
|
|
2843
|
-
:return: Returns the result object.
|
|
2844
|
-
""" # noqa: E501
|
|
2845
|
-
|
|
2846
|
-
_param = self._read_serialize(
|
|
2847
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2848
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2849
|
-
fields=fields,
|
|
2850
|
-
exclude_fields=exclude_fields,
|
|
2851
|
-
_request_auth=_request_auth,
|
|
2852
|
-
_content_type=_content_type,
|
|
2853
|
-
_headers=_headers,
|
|
2854
|
-
_host_index=_host_index
|
|
2855
|
-
)
|
|
2856
|
-
|
|
2857
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2858
|
-
'200': "UpstreamPulpResponse",
|
|
2859
|
-
}
|
|
2860
|
-
response_data = self.api_client.call_api(
|
|
2861
|
-
*_param,
|
|
2862
|
-
_request_timeout=_request_timeout
|
|
2863
|
-
)
|
|
2864
|
-
response_data.read()
|
|
2865
|
-
return self.api_client.response_deserialize(
|
|
2866
|
-
response_data=response_data,
|
|
2867
|
-
response_types_map=_response_types_map,
|
|
2868
|
-
).data
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
@validate_call
|
|
2872
|
-
def read_with_http_info(
|
|
2873
|
-
self,
|
|
2874
|
-
upstream_pulp_href: StrictStr,
|
|
2875
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2876
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2877
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2878
|
-
_request_timeout: Union[
|
|
2879
|
-
None,
|
|
2880
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2881
|
-
Tuple[
|
|
2882
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2883
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2884
|
-
]
|
|
2885
|
-
] = None,
|
|
2886
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2887
|
-
_content_type: Optional[StrictStr] = None,
|
|
2888
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2889
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2890
|
-
) -> ApiResponse[UpstreamPulpResponse]:
|
|
2891
|
-
"""Inspect an upstream pulp
|
|
2892
|
-
|
|
2893
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2894
|
-
|
|
2895
|
-
:param upstream_pulp_href: (required)
|
|
2896
|
-
:type upstream_pulp_href: str
|
|
2897
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2898
|
-
:type x_task_diagnostics: List[str]
|
|
2899
|
-
:param fields: A list of fields to include in the response.
|
|
2900
|
-
:type fields: List[str]
|
|
2901
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2902
|
-
:type exclude_fields: List[str]
|
|
2903
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2904
|
-
number provided, it will be total request
|
|
2905
|
-
timeout. It can also be a pair (tuple) of
|
|
2906
|
-
(connection, read) timeouts.
|
|
2907
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2908
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2909
|
-
request; this effectively ignores the
|
|
2910
|
-
authentication in the spec for a single request.
|
|
2911
|
-
:type _request_auth: dict, optional
|
|
2912
|
-
:param _content_type: force content-type for the request.
|
|
2913
|
-
:type _content_type: str, Optional
|
|
2914
|
-
:param _headers: set to override the headers for a single
|
|
2915
|
-
request; this effectively ignores the headers
|
|
2916
|
-
in the spec for a single request.
|
|
2917
|
-
:type _headers: dict, optional
|
|
2918
|
-
:param _host_index: set to override the host_index for a single
|
|
2919
|
-
request; this effectively ignores the host_index
|
|
2920
|
-
in the spec for a single request.
|
|
2921
|
-
:type _host_index: int, optional
|
|
2922
|
-
:return: Returns the result object.
|
|
2923
|
-
""" # noqa: E501
|
|
2924
|
-
|
|
2925
|
-
_param = self._read_serialize(
|
|
2926
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
2927
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
2928
|
-
fields=fields,
|
|
2929
|
-
exclude_fields=exclude_fields,
|
|
2930
|
-
_request_auth=_request_auth,
|
|
2931
|
-
_content_type=_content_type,
|
|
2932
|
-
_headers=_headers,
|
|
2933
|
-
_host_index=_host_index
|
|
2934
|
-
)
|
|
2935
|
-
|
|
2936
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2937
|
-
'200': "UpstreamPulpResponse",
|
|
2938
|
-
}
|
|
2939
|
-
response_data = self.api_client.call_api(
|
|
2940
|
-
*_param,
|
|
2941
|
-
_request_timeout=_request_timeout
|
|
2942
|
-
)
|
|
2943
|
-
response_data.read()
|
|
2944
|
-
return self.api_client.response_deserialize(
|
|
2945
|
-
response_data=response_data,
|
|
2946
|
-
response_types_map=_response_types_map,
|
|
2947
|
-
)
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
@validate_call
|
|
2951
|
-
def read_without_preload_content(
|
|
2952
|
-
self,
|
|
2953
|
-
upstream_pulp_href: StrictStr,
|
|
2954
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2955
|
-
fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to include in the response.")] = None,
|
|
2956
|
-
exclude_fields: Annotated[Optional[List[StrictStr]], Field(description="A list of fields to exclude from the response.")] = None,
|
|
2957
|
-
_request_timeout: Union[
|
|
2958
|
-
None,
|
|
2959
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2960
|
-
Tuple[
|
|
2961
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2962
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2963
|
-
]
|
|
2964
|
-
] = None,
|
|
2965
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2966
|
-
_content_type: Optional[StrictStr] = None,
|
|
2967
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2968
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2969
|
-
) -> RESTResponseType:
|
|
2970
|
-
"""Inspect an upstream pulp
|
|
2971
|
-
|
|
2972
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
2973
|
-
|
|
2974
|
-
:param upstream_pulp_href: (required)
|
|
2975
|
-
:type upstream_pulp_href: str
|
|
2976
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2977
|
-
:type x_task_diagnostics: List[str]
|
|
2978
|
-
:param fields: A list of fields to include in the response.
|
|
2979
|
-
:type fields: List[str]
|
|
2980
|
-
:param exclude_fields: A list of fields to exclude from the response.
|
|
2981
|
-
:type exclude_fields: List[str]
|
|
2982
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2983
|
-
number provided, it will be total request
|
|
2984
|
-
timeout. It can also be a pair (tuple) of
|
|
2985
|
-
(connection, read) timeouts.
|
|
2986
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2987
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2988
|
-
request; this effectively ignores the
|
|
2989
|
-
authentication in the spec for a single request.
|
|
2990
|
-
:type _request_auth: dict, optional
|
|
2991
|
-
:param _content_type: force content-type for the request.
|
|
2992
|
-
:type _content_type: str, Optional
|
|
2993
|
-
:param _headers: set to override the headers for a single
|
|
2994
|
-
request; this effectively ignores the headers
|
|
2995
|
-
in the spec for a single request.
|
|
2996
|
-
:type _headers: dict, optional
|
|
2997
|
-
:param _host_index: set to override the host_index for a single
|
|
2998
|
-
request; this effectively ignores the host_index
|
|
2999
|
-
in the spec for a single request.
|
|
3000
|
-
:type _host_index: int, optional
|
|
3001
|
-
:return: Returns the result object.
|
|
3002
|
-
""" # noqa: E501
|
|
3003
|
-
|
|
3004
|
-
_param = self._read_serialize(
|
|
3005
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3006
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3007
|
-
fields=fields,
|
|
3008
|
-
exclude_fields=exclude_fields,
|
|
3009
|
-
_request_auth=_request_auth,
|
|
3010
|
-
_content_type=_content_type,
|
|
3011
|
-
_headers=_headers,
|
|
3012
|
-
_host_index=_host_index
|
|
3013
|
-
)
|
|
3014
|
-
|
|
3015
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3016
|
-
'200': "UpstreamPulpResponse",
|
|
3017
|
-
}
|
|
3018
|
-
response_data = self.api_client.call_api(
|
|
3019
|
-
*_param,
|
|
3020
|
-
_request_timeout=_request_timeout
|
|
3021
|
-
)
|
|
3022
|
-
return response_data.response
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
def _read_serialize(
|
|
3026
|
-
self,
|
|
3027
|
-
upstream_pulp_href,
|
|
3028
|
-
x_task_diagnostics,
|
|
3029
|
-
fields,
|
|
3030
|
-
exclude_fields,
|
|
3031
|
-
_request_auth,
|
|
3032
|
-
_content_type,
|
|
3033
|
-
_headers,
|
|
3034
|
-
_host_index,
|
|
3035
|
-
) -> RequestSerialized:
|
|
3036
|
-
|
|
3037
|
-
_host = None
|
|
3038
|
-
|
|
3039
|
-
_collection_formats: Dict[str, str] = {
|
|
3040
|
-
'X-Task-Diagnostics': 'csv',
|
|
3041
|
-
'fields': 'multi',
|
|
3042
|
-
'exclude_fields': 'multi',
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
_path_params: Dict[str, str] = {}
|
|
3046
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3047
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3048
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3049
|
-
_files: Dict[
|
|
3050
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3051
|
-
] = {}
|
|
3052
|
-
_body_params: Optional[bytes] = None
|
|
3053
|
-
|
|
3054
|
-
# process the path parameters
|
|
3055
|
-
if upstream_pulp_href is not None:
|
|
3056
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
3057
|
-
# process the query parameters
|
|
3058
|
-
if fields is not None:
|
|
3059
|
-
|
|
3060
|
-
_query_params.append(('fields', fields))
|
|
3061
|
-
|
|
3062
|
-
if exclude_fields is not None:
|
|
3063
|
-
|
|
3064
|
-
_query_params.append(('exclude_fields', exclude_fields))
|
|
3065
|
-
|
|
3066
|
-
# process the header parameters
|
|
3067
|
-
if x_task_diagnostics is not None:
|
|
3068
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3069
|
-
# process the form parameters
|
|
3070
|
-
# process the body parameter
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
# set the HTTP header `Accept`
|
|
3074
|
-
if 'Accept' not in _header_params:
|
|
3075
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3076
|
-
[
|
|
3077
|
-
'application/json'
|
|
3078
|
-
]
|
|
3079
|
-
)
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
# authentication setting
|
|
3083
|
-
_auth_settings: List[str] = [
|
|
3084
|
-
'json_header_remote_authentication',
|
|
3085
|
-
'basicAuth',
|
|
3086
|
-
'cookieAuth'
|
|
3087
|
-
]
|
|
3088
|
-
|
|
3089
|
-
return self.api_client.param_serialize(
|
|
3090
|
-
method='GET',
|
|
3091
|
-
resource_path='{upstream_pulp_href}',
|
|
3092
|
-
path_params=_path_params,
|
|
3093
|
-
query_params=_query_params,
|
|
3094
|
-
header_params=_header_params,
|
|
3095
|
-
body=_body_params,
|
|
3096
|
-
post_params=_form_params,
|
|
3097
|
-
files=_files,
|
|
3098
|
-
auth_settings=_auth_settings,
|
|
3099
|
-
collection_formats=_collection_formats,
|
|
3100
|
-
_host=_host,
|
|
3101
|
-
_request_auth=_request_auth
|
|
3102
|
-
)
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
@validate_call
|
|
3108
|
-
def remove_role(
|
|
3109
|
-
self,
|
|
3110
|
-
upstream_pulp_href: StrictStr,
|
|
3111
|
-
nested_role: NestedRole,
|
|
3112
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3113
|
-
_request_timeout: Union[
|
|
3114
|
-
None,
|
|
3115
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3116
|
-
Tuple[
|
|
3117
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3118
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3119
|
-
]
|
|
3120
|
-
] = None,
|
|
3121
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3122
|
-
_content_type: Optional[StrictStr] = None,
|
|
3123
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3124
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3125
|
-
) -> NestedRoleResponse:
|
|
3126
|
-
"""Remove a role
|
|
3127
|
-
|
|
3128
|
-
Remove a role for this object from users/groups.
|
|
3129
|
-
|
|
3130
|
-
:param upstream_pulp_href: (required)
|
|
3131
|
-
:type upstream_pulp_href: str
|
|
3132
|
-
:param nested_role: (required)
|
|
3133
|
-
:type nested_role: NestedRole
|
|
3134
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3135
|
-
:type x_task_diagnostics: List[str]
|
|
3136
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3137
|
-
number provided, it will be total request
|
|
3138
|
-
timeout. It can also be a pair (tuple) of
|
|
3139
|
-
(connection, read) timeouts.
|
|
3140
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3141
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3142
|
-
request; this effectively ignores the
|
|
3143
|
-
authentication in the spec for a single request.
|
|
3144
|
-
:type _request_auth: dict, optional
|
|
3145
|
-
:param _content_type: force content-type for the request.
|
|
3146
|
-
:type _content_type: str, Optional
|
|
3147
|
-
:param _headers: set to override the headers for a single
|
|
3148
|
-
request; this effectively ignores the headers
|
|
3149
|
-
in the spec for a single request.
|
|
3150
|
-
:type _headers: dict, optional
|
|
3151
|
-
:param _host_index: set to override the host_index for a single
|
|
3152
|
-
request; this effectively ignores the host_index
|
|
3153
|
-
in the spec for a single request.
|
|
3154
|
-
:type _host_index: int, optional
|
|
3155
|
-
:return: Returns the result object.
|
|
3156
|
-
""" # noqa: E501
|
|
3157
|
-
|
|
3158
|
-
_param = self._remove_role_serialize(
|
|
3159
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3160
|
-
nested_role=nested_role,
|
|
3161
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3162
|
-
_request_auth=_request_auth,
|
|
3163
|
-
_content_type=_content_type,
|
|
3164
|
-
_headers=_headers,
|
|
3165
|
-
_host_index=_host_index
|
|
3166
|
-
)
|
|
3167
|
-
|
|
3168
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3169
|
-
'201': "NestedRoleResponse",
|
|
3170
|
-
}
|
|
3171
|
-
response_data = self.api_client.call_api(
|
|
3172
|
-
*_param,
|
|
3173
|
-
_request_timeout=_request_timeout
|
|
3174
|
-
)
|
|
3175
|
-
response_data.read()
|
|
3176
|
-
return self.api_client.response_deserialize(
|
|
3177
|
-
response_data=response_data,
|
|
3178
|
-
response_types_map=_response_types_map,
|
|
3179
|
-
).data
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
@validate_call
|
|
3183
|
-
def remove_role_with_http_info(
|
|
3184
|
-
self,
|
|
3185
|
-
upstream_pulp_href: StrictStr,
|
|
3186
|
-
nested_role: NestedRole,
|
|
3187
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3188
|
-
_request_timeout: Union[
|
|
3189
|
-
None,
|
|
3190
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3191
|
-
Tuple[
|
|
3192
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3193
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3194
|
-
]
|
|
3195
|
-
] = None,
|
|
3196
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3197
|
-
_content_type: Optional[StrictStr] = None,
|
|
3198
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3199
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3200
|
-
) -> ApiResponse[NestedRoleResponse]:
|
|
3201
|
-
"""Remove a role
|
|
3202
|
-
|
|
3203
|
-
Remove a role for this object from users/groups.
|
|
3204
|
-
|
|
3205
|
-
:param upstream_pulp_href: (required)
|
|
3206
|
-
:type upstream_pulp_href: str
|
|
3207
|
-
:param nested_role: (required)
|
|
3208
|
-
:type nested_role: NestedRole
|
|
3209
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3210
|
-
:type x_task_diagnostics: List[str]
|
|
3211
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3212
|
-
number provided, it will be total request
|
|
3213
|
-
timeout. It can also be a pair (tuple) of
|
|
3214
|
-
(connection, read) timeouts.
|
|
3215
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3216
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3217
|
-
request; this effectively ignores the
|
|
3218
|
-
authentication in the spec for a single request.
|
|
3219
|
-
:type _request_auth: dict, optional
|
|
3220
|
-
:param _content_type: force content-type for the request.
|
|
3221
|
-
:type _content_type: str, Optional
|
|
3222
|
-
:param _headers: set to override the headers for a single
|
|
3223
|
-
request; this effectively ignores the headers
|
|
3224
|
-
in the spec for a single request.
|
|
3225
|
-
:type _headers: dict, optional
|
|
3226
|
-
:param _host_index: set to override the host_index for a single
|
|
3227
|
-
request; this effectively ignores the host_index
|
|
3228
|
-
in the spec for a single request.
|
|
3229
|
-
:type _host_index: int, optional
|
|
3230
|
-
:return: Returns the result object.
|
|
3231
|
-
""" # noqa: E501
|
|
3232
|
-
|
|
3233
|
-
_param = self._remove_role_serialize(
|
|
3234
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3235
|
-
nested_role=nested_role,
|
|
3236
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3237
|
-
_request_auth=_request_auth,
|
|
3238
|
-
_content_type=_content_type,
|
|
3239
|
-
_headers=_headers,
|
|
3240
|
-
_host_index=_host_index
|
|
3241
|
-
)
|
|
3242
|
-
|
|
3243
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3244
|
-
'201': "NestedRoleResponse",
|
|
3245
|
-
}
|
|
3246
|
-
response_data = self.api_client.call_api(
|
|
3247
|
-
*_param,
|
|
3248
|
-
_request_timeout=_request_timeout
|
|
3249
|
-
)
|
|
3250
|
-
response_data.read()
|
|
3251
|
-
return self.api_client.response_deserialize(
|
|
3252
|
-
response_data=response_data,
|
|
3253
|
-
response_types_map=_response_types_map,
|
|
3254
|
-
)
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
@validate_call
|
|
3258
|
-
def remove_role_without_preload_content(
|
|
3259
|
-
self,
|
|
3260
|
-
upstream_pulp_href: StrictStr,
|
|
3261
|
-
nested_role: NestedRole,
|
|
3262
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3263
|
-
_request_timeout: Union[
|
|
3264
|
-
None,
|
|
3265
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3266
|
-
Tuple[
|
|
3267
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3268
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3269
|
-
]
|
|
3270
|
-
] = None,
|
|
3271
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3272
|
-
_content_type: Optional[StrictStr] = None,
|
|
3273
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3274
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3275
|
-
) -> RESTResponseType:
|
|
3276
|
-
"""Remove a role
|
|
3277
|
-
|
|
3278
|
-
Remove a role for this object from users/groups.
|
|
3279
|
-
|
|
3280
|
-
:param upstream_pulp_href: (required)
|
|
3281
|
-
:type upstream_pulp_href: str
|
|
3282
|
-
:param nested_role: (required)
|
|
3283
|
-
:type nested_role: NestedRole
|
|
3284
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3285
|
-
:type x_task_diagnostics: List[str]
|
|
3286
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3287
|
-
number provided, it will be total request
|
|
3288
|
-
timeout. It can also be a pair (tuple) of
|
|
3289
|
-
(connection, read) timeouts.
|
|
3290
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3291
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3292
|
-
request; this effectively ignores the
|
|
3293
|
-
authentication in the spec for a single request.
|
|
3294
|
-
:type _request_auth: dict, optional
|
|
3295
|
-
:param _content_type: force content-type for the request.
|
|
3296
|
-
:type _content_type: str, Optional
|
|
3297
|
-
:param _headers: set to override the headers for a single
|
|
3298
|
-
request; this effectively ignores the headers
|
|
3299
|
-
in the spec for a single request.
|
|
3300
|
-
:type _headers: dict, optional
|
|
3301
|
-
:param _host_index: set to override the host_index for a single
|
|
3302
|
-
request; this effectively ignores the host_index
|
|
3303
|
-
in the spec for a single request.
|
|
3304
|
-
:type _host_index: int, optional
|
|
3305
|
-
:return: Returns the result object.
|
|
3306
|
-
""" # noqa: E501
|
|
3307
|
-
|
|
3308
|
-
_param = self._remove_role_serialize(
|
|
3309
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3310
|
-
nested_role=nested_role,
|
|
3311
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3312
|
-
_request_auth=_request_auth,
|
|
3313
|
-
_content_type=_content_type,
|
|
3314
|
-
_headers=_headers,
|
|
3315
|
-
_host_index=_host_index
|
|
3316
|
-
)
|
|
3317
|
-
|
|
3318
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3319
|
-
'201': "NestedRoleResponse",
|
|
3320
|
-
}
|
|
3321
|
-
response_data = self.api_client.call_api(
|
|
3322
|
-
*_param,
|
|
3323
|
-
_request_timeout=_request_timeout
|
|
3324
|
-
)
|
|
3325
|
-
return response_data.response
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
def _remove_role_serialize(
|
|
3329
|
-
self,
|
|
3330
|
-
upstream_pulp_href,
|
|
3331
|
-
nested_role,
|
|
3332
|
-
x_task_diagnostics,
|
|
3333
|
-
_request_auth,
|
|
3334
|
-
_content_type,
|
|
3335
|
-
_headers,
|
|
3336
|
-
_host_index,
|
|
3337
|
-
) -> RequestSerialized:
|
|
3338
|
-
|
|
3339
|
-
_host = None
|
|
3340
|
-
|
|
3341
|
-
_collection_formats: Dict[str, str] = {
|
|
3342
|
-
'X-Task-Diagnostics': 'csv',
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
_path_params: Dict[str, str] = {}
|
|
3346
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3347
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3348
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3349
|
-
_files: Dict[
|
|
3350
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3351
|
-
] = {}
|
|
3352
|
-
_body_params: Optional[bytes] = None
|
|
3353
|
-
|
|
3354
|
-
# process the path parameters
|
|
3355
|
-
if upstream_pulp_href is not None:
|
|
3356
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
3357
|
-
# process the query parameters
|
|
3358
|
-
# process the header parameters
|
|
3359
|
-
if x_task_diagnostics is not None:
|
|
3360
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3361
|
-
# process the form parameters
|
|
3362
|
-
# process the body parameter
|
|
3363
|
-
if nested_role is not None:
|
|
3364
|
-
_body_params = nested_role
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
# set the HTTP header `Accept`
|
|
3368
|
-
if 'Accept' not in _header_params:
|
|
3369
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3370
|
-
[
|
|
3371
|
-
'application/json'
|
|
3372
|
-
]
|
|
3373
|
-
)
|
|
3374
|
-
|
|
3375
|
-
# set the HTTP header `Content-Type`
|
|
3376
|
-
if _content_type:
|
|
3377
|
-
_header_params['Content-Type'] = _content_type
|
|
3378
|
-
else:
|
|
3379
|
-
_default_content_type = (
|
|
3380
|
-
self.api_client.select_header_content_type(
|
|
3381
|
-
[
|
|
3382
|
-
'application/json',
|
|
3383
|
-
'application/x-www-form-urlencoded',
|
|
3384
|
-
'multipart/form-data'
|
|
3385
|
-
]
|
|
3386
|
-
)
|
|
3387
|
-
)
|
|
3388
|
-
if _default_content_type is not None:
|
|
3389
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3390
|
-
|
|
3391
|
-
# authentication setting
|
|
3392
|
-
_auth_settings: List[str] = [
|
|
3393
|
-
'json_header_remote_authentication',
|
|
3394
|
-
'basicAuth',
|
|
3395
|
-
'cookieAuth'
|
|
3396
|
-
]
|
|
3397
|
-
|
|
3398
|
-
return self.api_client.param_serialize(
|
|
3399
|
-
method='POST',
|
|
3400
|
-
resource_path='{upstream_pulp_href}remove_role/',
|
|
3401
|
-
path_params=_path_params,
|
|
3402
|
-
query_params=_query_params,
|
|
3403
|
-
header_params=_header_params,
|
|
3404
|
-
body=_body_params,
|
|
3405
|
-
post_params=_form_params,
|
|
3406
|
-
files=_files,
|
|
3407
|
-
auth_settings=_auth_settings,
|
|
3408
|
-
collection_formats=_collection_formats,
|
|
3409
|
-
_host=_host,
|
|
3410
|
-
_request_auth=_request_auth
|
|
3411
|
-
)
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
@validate_call
|
|
3417
|
-
def replicate(
|
|
3418
|
-
self,
|
|
3419
|
-
upstream_pulp_href: StrictStr,
|
|
3420
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3421
|
-
_request_timeout: Union[
|
|
3422
|
-
None,
|
|
3423
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3424
|
-
Tuple[
|
|
3425
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3426
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3427
|
-
]
|
|
3428
|
-
] = None,
|
|
3429
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3430
|
-
_content_type: Optional[StrictStr] = None,
|
|
3431
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3432
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3433
|
-
) -> TaskGroupOperationResponse:
|
|
3434
|
-
"""Replicate
|
|
3435
|
-
|
|
3436
|
-
Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
|
3437
|
-
|
|
3438
|
-
:param upstream_pulp_href: (required)
|
|
3439
|
-
:type upstream_pulp_href: str
|
|
3440
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3441
|
-
:type x_task_diagnostics: List[str]
|
|
3442
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3443
|
-
number provided, it will be total request
|
|
3444
|
-
timeout. It can also be a pair (tuple) of
|
|
3445
|
-
(connection, read) timeouts.
|
|
3446
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3447
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3448
|
-
request; this effectively ignores the
|
|
3449
|
-
authentication in the spec for a single request.
|
|
3450
|
-
:type _request_auth: dict, optional
|
|
3451
|
-
:param _content_type: force content-type for the request.
|
|
3452
|
-
:type _content_type: str, Optional
|
|
3453
|
-
:param _headers: set to override the headers for a single
|
|
3454
|
-
request; this effectively ignores the headers
|
|
3455
|
-
in the spec for a single request.
|
|
3456
|
-
:type _headers: dict, optional
|
|
3457
|
-
:param _host_index: set to override the host_index for a single
|
|
3458
|
-
request; this effectively ignores the host_index
|
|
3459
|
-
in the spec for a single request.
|
|
3460
|
-
:type _host_index: int, optional
|
|
3461
|
-
:return: Returns the result object.
|
|
3462
|
-
""" # noqa: E501
|
|
3463
|
-
|
|
3464
|
-
_param = self._replicate_serialize(
|
|
3465
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3466
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3467
|
-
_request_auth=_request_auth,
|
|
3468
|
-
_content_type=_content_type,
|
|
3469
|
-
_headers=_headers,
|
|
3470
|
-
_host_index=_host_index
|
|
3471
|
-
)
|
|
3472
|
-
|
|
3473
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3474
|
-
'202': "TaskGroupOperationResponse",
|
|
3475
|
-
}
|
|
3476
|
-
response_data = self.api_client.call_api(
|
|
3477
|
-
*_param,
|
|
3478
|
-
_request_timeout=_request_timeout
|
|
3479
|
-
)
|
|
3480
|
-
response_data.read()
|
|
3481
|
-
return self.api_client.response_deserialize(
|
|
3482
|
-
response_data=response_data,
|
|
3483
|
-
response_types_map=_response_types_map,
|
|
3484
|
-
).data
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
@validate_call
|
|
3488
|
-
def replicate_with_http_info(
|
|
3489
|
-
self,
|
|
3490
|
-
upstream_pulp_href: StrictStr,
|
|
3491
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3492
|
-
_request_timeout: Union[
|
|
3493
|
-
None,
|
|
3494
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3495
|
-
Tuple[
|
|
3496
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3497
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3498
|
-
]
|
|
3499
|
-
] = None,
|
|
3500
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3501
|
-
_content_type: Optional[StrictStr] = None,
|
|
3502
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3503
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3504
|
-
) -> ApiResponse[TaskGroupOperationResponse]:
|
|
3505
|
-
"""Replicate
|
|
3506
|
-
|
|
3507
|
-
Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
|
3508
|
-
|
|
3509
|
-
:param upstream_pulp_href: (required)
|
|
3510
|
-
:type upstream_pulp_href: str
|
|
3511
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3512
|
-
:type x_task_diagnostics: List[str]
|
|
3513
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3514
|
-
number provided, it will be total request
|
|
3515
|
-
timeout. It can also be a pair (tuple) of
|
|
3516
|
-
(connection, read) timeouts.
|
|
3517
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3518
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3519
|
-
request; this effectively ignores the
|
|
3520
|
-
authentication in the spec for a single request.
|
|
3521
|
-
:type _request_auth: dict, optional
|
|
3522
|
-
:param _content_type: force content-type for the request.
|
|
3523
|
-
:type _content_type: str, Optional
|
|
3524
|
-
:param _headers: set to override the headers for a single
|
|
3525
|
-
request; this effectively ignores the headers
|
|
3526
|
-
in the spec for a single request.
|
|
3527
|
-
:type _headers: dict, optional
|
|
3528
|
-
:param _host_index: set to override the host_index for a single
|
|
3529
|
-
request; this effectively ignores the host_index
|
|
3530
|
-
in the spec for a single request.
|
|
3531
|
-
:type _host_index: int, optional
|
|
3532
|
-
:return: Returns the result object.
|
|
3533
|
-
""" # noqa: E501
|
|
3534
|
-
|
|
3535
|
-
_param = self._replicate_serialize(
|
|
3536
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3537
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3538
|
-
_request_auth=_request_auth,
|
|
3539
|
-
_content_type=_content_type,
|
|
3540
|
-
_headers=_headers,
|
|
3541
|
-
_host_index=_host_index
|
|
3542
|
-
)
|
|
3543
|
-
|
|
3544
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3545
|
-
'202': "TaskGroupOperationResponse",
|
|
3546
|
-
}
|
|
3547
|
-
response_data = self.api_client.call_api(
|
|
3548
|
-
*_param,
|
|
3549
|
-
_request_timeout=_request_timeout
|
|
3550
|
-
)
|
|
3551
|
-
response_data.read()
|
|
3552
|
-
return self.api_client.response_deserialize(
|
|
3553
|
-
response_data=response_data,
|
|
3554
|
-
response_types_map=_response_types_map,
|
|
3555
|
-
)
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
@validate_call
|
|
3559
|
-
def replicate_without_preload_content(
|
|
3560
|
-
self,
|
|
3561
|
-
upstream_pulp_href: StrictStr,
|
|
3562
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3563
|
-
_request_timeout: Union[
|
|
3564
|
-
None,
|
|
3565
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3566
|
-
Tuple[
|
|
3567
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3568
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3569
|
-
]
|
|
3570
|
-
] = None,
|
|
3571
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3572
|
-
_content_type: Optional[StrictStr] = None,
|
|
3573
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3574
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3575
|
-
) -> RESTResponseType:
|
|
3576
|
-
"""Replicate
|
|
3577
|
-
|
|
3578
|
-
Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
|
3579
|
-
|
|
3580
|
-
:param upstream_pulp_href: (required)
|
|
3581
|
-
:type upstream_pulp_href: str
|
|
3582
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3583
|
-
:type x_task_diagnostics: List[str]
|
|
3584
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3585
|
-
number provided, it will be total request
|
|
3586
|
-
timeout. It can also be a pair (tuple) of
|
|
3587
|
-
(connection, read) timeouts.
|
|
3588
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3589
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3590
|
-
request; this effectively ignores the
|
|
3591
|
-
authentication in the spec for a single request.
|
|
3592
|
-
:type _request_auth: dict, optional
|
|
3593
|
-
:param _content_type: force content-type for the request.
|
|
3594
|
-
:type _content_type: str, Optional
|
|
3595
|
-
:param _headers: set to override the headers for a single
|
|
3596
|
-
request; this effectively ignores the headers
|
|
3597
|
-
in the spec for a single request.
|
|
3598
|
-
:type _headers: dict, optional
|
|
3599
|
-
:param _host_index: set to override the host_index for a single
|
|
3600
|
-
request; this effectively ignores the host_index
|
|
3601
|
-
in the spec for a single request.
|
|
3602
|
-
:type _host_index: int, optional
|
|
3603
|
-
:return: Returns the result object.
|
|
3604
|
-
""" # noqa: E501
|
|
3605
|
-
|
|
3606
|
-
_param = self._replicate_serialize(
|
|
3607
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3608
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3609
|
-
_request_auth=_request_auth,
|
|
3610
|
-
_content_type=_content_type,
|
|
3611
|
-
_headers=_headers,
|
|
3612
|
-
_host_index=_host_index
|
|
3613
|
-
)
|
|
3614
|
-
|
|
3615
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3616
|
-
'202': "TaskGroupOperationResponse",
|
|
3617
|
-
}
|
|
3618
|
-
response_data = self.api_client.call_api(
|
|
3619
|
-
*_param,
|
|
3620
|
-
_request_timeout=_request_timeout
|
|
3621
|
-
)
|
|
3622
|
-
return response_data.response
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
def _replicate_serialize(
|
|
3626
|
-
self,
|
|
3627
|
-
upstream_pulp_href,
|
|
3628
|
-
x_task_diagnostics,
|
|
3629
|
-
_request_auth,
|
|
3630
|
-
_content_type,
|
|
3631
|
-
_headers,
|
|
3632
|
-
_host_index,
|
|
3633
|
-
) -> RequestSerialized:
|
|
3634
|
-
|
|
3635
|
-
_host = None
|
|
3636
|
-
|
|
3637
|
-
_collection_formats: Dict[str, str] = {
|
|
3638
|
-
'X-Task-Diagnostics': 'csv',
|
|
3639
|
-
}
|
|
3640
|
-
|
|
3641
|
-
_path_params: Dict[str, str] = {}
|
|
3642
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3643
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3644
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3645
|
-
_files: Dict[
|
|
3646
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3647
|
-
] = {}
|
|
3648
|
-
_body_params: Optional[bytes] = None
|
|
3649
|
-
|
|
3650
|
-
# process the path parameters
|
|
3651
|
-
if upstream_pulp_href is not None:
|
|
3652
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
3653
|
-
# process the query parameters
|
|
3654
|
-
# process the header parameters
|
|
3655
|
-
if x_task_diagnostics is not None:
|
|
3656
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3657
|
-
# process the form parameters
|
|
3658
|
-
# process the body parameter
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
# set the HTTP header `Accept`
|
|
3662
|
-
if 'Accept' not in _header_params:
|
|
3663
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3664
|
-
[
|
|
3665
|
-
'application/json'
|
|
3666
|
-
]
|
|
3667
|
-
)
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
# authentication setting
|
|
3671
|
-
_auth_settings: List[str] = [
|
|
3672
|
-
'json_header_remote_authentication',
|
|
3673
|
-
'basicAuth',
|
|
3674
|
-
'cookieAuth'
|
|
3675
|
-
]
|
|
3676
|
-
|
|
3677
|
-
return self.api_client.param_serialize(
|
|
3678
|
-
method='POST',
|
|
3679
|
-
resource_path='{upstream_pulp_href}replicate/',
|
|
3680
|
-
path_params=_path_params,
|
|
3681
|
-
query_params=_query_params,
|
|
3682
|
-
header_params=_header_params,
|
|
3683
|
-
body=_body_params,
|
|
3684
|
-
post_params=_form_params,
|
|
3685
|
-
files=_files,
|
|
3686
|
-
auth_settings=_auth_settings,
|
|
3687
|
-
collection_formats=_collection_formats,
|
|
3688
|
-
_host=_host,
|
|
3689
|
-
_request_auth=_request_auth
|
|
3690
|
-
)
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
@validate_call
|
|
3696
|
-
def update(
|
|
3697
|
-
self,
|
|
3698
|
-
upstream_pulp_href: StrictStr,
|
|
3699
|
-
upstream_pulp: UpstreamPulp,
|
|
3700
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3701
|
-
_request_timeout: Union[
|
|
3702
|
-
None,
|
|
3703
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3704
|
-
Tuple[
|
|
3705
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3706
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3707
|
-
]
|
|
3708
|
-
] = None,
|
|
3709
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3710
|
-
_content_type: Optional[StrictStr] = None,
|
|
3711
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3712
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3713
|
-
) -> UpstreamPulpResponse:
|
|
3714
|
-
"""Update an upstream pulp
|
|
3715
|
-
|
|
3716
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
3717
|
-
|
|
3718
|
-
:param upstream_pulp_href: (required)
|
|
3719
|
-
:type upstream_pulp_href: str
|
|
3720
|
-
:param upstream_pulp: (required)
|
|
3721
|
-
:type upstream_pulp: UpstreamPulp
|
|
3722
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3723
|
-
:type x_task_diagnostics: List[str]
|
|
3724
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3725
|
-
number provided, it will be total request
|
|
3726
|
-
timeout. It can also be a pair (tuple) of
|
|
3727
|
-
(connection, read) timeouts.
|
|
3728
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3729
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3730
|
-
request; this effectively ignores the
|
|
3731
|
-
authentication in the spec for a single request.
|
|
3732
|
-
:type _request_auth: dict, optional
|
|
3733
|
-
:param _content_type: force content-type for the request.
|
|
3734
|
-
:type _content_type: str, Optional
|
|
3735
|
-
:param _headers: set to override the headers for a single
|
|
3736
|
-
request; this effectively ignores the headers
|
|
3737
|
-
in the spec for a single request.
|
|
3738
|
-
:type _headers: dict, optional
|
|
3739
|
-
:param _host_index: set to override the host_index for a single
|
|
3740
|
-
request; this effectively ignores the host_index
|
|
3741
|
-
in the spec for a single request.
|
|
3742
|
-
:type _host_index: int, optional
|
|
3743
|
-
:return: Returns the result object.
|
|
3744
|
-
""" # noqa: E501
|
|
3745
|
-
|
|
3746
|
-
_param = self._update_serialize(
|
|
3747
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3748
|
-
upstream_pulp=upstream_pulp,
|
|
3749
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3750
|
-
_request_auth=_request_auth,
|
|
3751
|
-
_content_type=_content_type,
|
|
3752
|
-
_headers=_headers,
|
|
3753
|
-
_host_index=_host_index
|
|
3754
|
-
)
|
|
3755
|
-
|
|
3756
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3757
|
-
'200': "UpstreamPulpResponse",
|
|
3758
|
-
}
|
|
3759
|
-
response_data = self.api_client.call_api(
|
|
3760
|
-
*_param,
|
|
3761
|
-
_request_timeout=_request_timeout
|
|
3762
|
-
)
|
|
3763
|
-
response_data.read()
|
|
3764
|
-
return self.api_client.response_deserialize(
|
|
3765
|
-
response_data=response_data,
|
|
3766
|
-
response_types_map=_response_types_map,
|
|
3767
|
-
).data
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
@validate_call
|
|
3771
|
-
def update_with_http_info(
|
|
3772
|
-
self,
|
|
3773
|
-
upstream_pulp_href: StrictStr,
|
|
3774
|
-
upstream_pulp: UpstreamPulp,
|
|
3775
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3776
|
-
_request_timeout: Union[
|
|
3777
|
-
None,
|
|
3778
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3779
|
-
Tuple[
|
|
3780
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3781
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3782
|
-
]
|
|
3783
|
-
] = None,
|
|
3784
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3785
|
-
_content_type: Optional[StrictStr] = None,
|
|
3786
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3787
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3788
|
-
) -> ApiResponse[UpstreamPulpResponse]:
|
|
3789
|
-
"""Update an upstream pulp
|
|
3790
|
-
|
|
3791
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
3792
|
-
|
|
3793
|
-
:param upstream_pulp_href: (required)
|
|
3794
|
-
:type upstream_pulp_href: str
|
|
3795
|
-
:param upstream_pulp: (required)
|
|
3796
|
-
:type upstream_pulp: UpstreamPulp
|
|
3797
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3798
|
-
:type x_task_diagnostics: List[str]
|
|
3799
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3800
|
-
number provided, it will be total request
|
|
3801
|
-
timeout. It can also be a pair (tuple) of
|
|
3802
|
-
(connection, read) timeouts.
|
|
3803
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3804
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3805
|
-
request; this effectively ignores the
|
|
3806
|
-
authentication in the spec for a single request.
|
|
3807
|
-
:type _request_auth: dict, optional
|
|
3808
|
-
:param _content_type: force content-type for the request.
|
|
3809
|
-
:type _content_type: str, Optional
|
|
3810
|
-
:param _headers: set to override the headers for a single
|
|
3811
|
-
request; this effectively ignores the headers
|
|
3812
|
-
in the spec for a single request.
|
|
3813
|
-
:type _headers: dict, optional
|
|
3814
|
-
:param _host_index: set to override the host_index for a single
|
|
3815
|
-
request; this effectively ignores the host_index
|
|
3816
|
-
in the spec for a single request.
|
|
3817
|
-
:type _host_index: int, optional
|
|
3818
|
-
:return: Returns the result object.
|
|
3819
|
-
""" # noqa: E501
|
|
3820
|
-
|
|
3821
|
-
_param = self._update_serialize(
|
|
3822
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3823
|
-
upstream_pulp=upstream_pulp,
|
|
3824
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3825
|
-
_request_auth=_request_auth,
|
|
3826
|
-
_content_type=_content_type,
|
|
3827
|
-
_headers=_headers,
|
|
3828
|
-
_host_index=_host_index
|
|
3829
|
-
)
|
|
3830
|
-
|
|
3831
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3832
|
-
'200': "UpstreamPulpResponse",
|
|
3833
|
-
}
|
|
3834
|
-
response_data = self.api_client.call_api(
|
|
3835
|
-
*_param,
|
|
3836
|
-
_request_timeout=_request_timeout
|
|
3837
|
-
)
|
|
3838
|
-
response_data.read()
|
|
3839
|
-
return self.api_client.response_deserialize(
|
|
3840
|
-
response_data=response_data,
|
|
3841
|
-
response_types_map=_response_types_map,
|
|
3842
|
-
)
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
@validate_call
|
|
3846
|
-
def update_without_preload_content(
|
|
3847
|
-
self,
|
|
3848
|
-
upstream_pulp_href: StrictStr,
|
|
3849
|
-
upstream_pulp: UpstreamPulp,
|
|
3850
|
-
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3851
|
-
_request_timeout: Union[
|
|
3852
|
-
None,
|
|
3853
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3854
|
-
Tuple[
|
|
3855
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
3856
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
3857
|
-
]
|
|
3858
|
-
] = None,
|
|
3859
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3860
|
-
_content_type: Optional[StrictStr] = None,
|
|
3861
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3862
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3863
|
-
) -> RESTResponseType:
|
|
3864
|
-
"""Update an upstream pulp
|
|
3865
|
-
|
|
3866
|
-
API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
|
3867
|
-
|
|
3868
|
-
:param upstream_pulp_href: (required)
|
|
3869
|
-
:type upstream_pulp_href: str
|
|
3870
|
-
:param upstream_pulp: (required)
|
|
3871
|
-
:type upstream_pulp: UpstreamPulp
|
|
3872
|
-
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3873
|
-
:type x_task_diagnostics: List[str]
|
|
3874
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
3875
|
-
number provided, it will be total request
|
|
3876
|
-
timeout. It can also be a pair (tuple) of
|
|
3877
|
-
(connection, read) timeouts.
|
|
3878
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
3879
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
3880
|
-
request; this effectively ignores the
|
|
3881
|
-
authentication in the spec for a single request.
|
|
3882
|
-
:type _request_auth: dict, optional
|
|
3883
|
-
:param _content_type: force content-type for the request.
|
|
3884
|
-
:type _content_type: str, Optional
|
|
3885
|
-
:param _headers: set to override the headers for a single
|
|
3886
|
-
request; this effectively ignores the headers
|
|
3887
|
-
in the spec for a single request.
|
|
3888
|
-
:type _headers: dict, optional
|
|
3889
|
-
:param _host_index: set to override the host_index for a single
|
|
3890
|
-
request; this effectively ignores the host_index
|
|
3891
|
-
in the spec for a single request.
|
|
3892
|
-
:type _host_index: int, optional
|
|
3893
|
-
:return: Returns the result object.
|
|
3894
|
-
""" # noqa: E501
|
|
3895
|
-
|
|
3896
|
-
_param = self._update_serialize(
|
|
3897
|
-
upstream_pulp_href=upstream_pulp_href,
|
|
3898
|
-
upstream_pulp=upstream_pulp,
|
|
3899
|
-
x_task_diagnostics=x_task_diagnostics,
|
|
3900
|
-
_request_auth=_request_auth,
|
|
3901
|
-
_content_type=_content_type,
|
|
3902
|
-
_headers=_headers,
|
|
3903
|
-
_host_index=_host_index
|
|
3904
|
-
)
|
|
3905
|
-
|
|
3906
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
3907
|
-
'200': "UpstreamPulpResponse",
|
|
3908
|
-
}
|
|
3909
|
-
response_data = self.api_client.call_api(
|
|
3910
|
-
*_param,
|
|
3911
|
-
_request_timeout=_request_timeout
|
|
3912
|
-
)
|
|
3913
|
-
return response_data.response
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
def _update_serialize(
|
|
3917
|
-
self,
|
|
3918
|
-
upstream_pulp_href,
|
|
3919
|
-
upstream_pulp,
|
|
3920
|
-
x_task_diagnostics,
|
|
3921
|
-
_request_auth,
|
|
3922
|
-
_content_type,
|
|
3923
|
-
_headers,
|
|
3924
|
-
_host_index,
|
|
3925
|
-
) -> RequestSerialized:
|
|
3926
|
-
|
|
3927
|
-
_host = None
|
|
3928
|
-
|
|
3929
|
-
_collection_formats: Dict[str, str] = {
|
|
3930
|
-
'X-Task-Diagnostics': 'csv',
|
|
3931
|
-
}
|
|
3932
|
-
|
|
3933
|
-
_path_params: Dict[str, str] = {}
|
|
3934
|
-
_query_params: List[Tuple[str, str]] = []
|
|
3935
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3936
|
-
_form_params: List[Tuple[str, str]] = []
|
|
3937
|
-
_files: Dict[
|
|
3938
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3939
|
-
] = {}
|
|
3940
|
-
_body_params: Optional[bytes] = None
|
|
3941
|
-
|
|
3942
|
-
# process the path parameters
|
|
3943
|
-
if upstream_pulp_href is not None:
|
|
3944
|
-
_path_params['upstream_pulp_href'] = upstream_pulp_href
|
|
3945
|
-
# process the query parameters
|
|
3946
|
-
# process the header parameters
|
|
3947
|
-
if x_task_diagnostics is not None:
|
|
3948
|
-
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3949
|
-
# process the form parameters
|
|
3950
|
-
# process the body parameter
|
|
3951
|
-
if upstream_pulp is not None:
|
|
3952
|
-
_body_params = upstream_pulp
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
# set the HTTP header `Accept`
|
|
3956
|
-
if 'Accept' not in _header_params:
|
|
3957
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3958
|
-
[
|
|
3959
|
-
'application/json'
|
|
3960
|
-
]
|
|
3961
|
-
)
|
|
3962
|
-
|
|
3963
|
-
# set the HTTP header `Content-Type`
|
|
3964
|
-
if _content_type:
|
|
3965
|
-
_header_params['Content-Type'] = _content_type
|
|
3966
|
-
else:
|
|
3967
|
-
_default_content_type = (
|
|
3968
|
-
self.api_client.select_header_content_type(
|
|
3969
|
-
[
|
|
3970
|
-
'application/json',
|
|
3971
|
-
'application/x-www-form-urlencoded',
|
|
3972
|
-
'multipart/form-data'
|
|
3973
|
-
]
|
|
3974
|
-
)
|
|
3975
|
-
)
|
|
3976
|
-
if _default_content_type is not None:
|
|
3977
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3978
|
-
|
|
3979
|
-
# authentication setting
|
|
3980
|
-
_auth_settings: List[str] = [
|
|
3981
|
-
'json_header_remote_authentication',
|
|
3982
|
-
'basicAuth',
|
|
3983
|
-
'cookieAuth'
|
|
3984
|
-
]
|
|
3985
|
-
|
|
3986
|
-
return self.api_client.param_serialize(
|
|
3987
|
-
method='PUT',
|
|
3988
|
-
resource_path='{upstream_pulp_href}',
|
|
3989
|
-
path_params=_path_params,
|
|
3990
|
-
query_params=_query_params,
|
|
3991
|
-
header_params=_header_params,
|
|
3992
|
-
body=_body_params,
|
|
3993
|
-
post_params=_form_params,
|
|
3994
|
-
files=_files,
|
|
3995
|
-
auth_settings=_auth_settings,
|
|
3996
|
-
collection_formats=_collection_formats,
|
|
3997
|
-
_host=_host,
|
|
3998
|
-
_request_auth=_request_auth
|
|
3999
|
-
)
|
|
4000
|
-
|
|
4001
|
-
|