crc-pulp-service-client 20260107.2__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-pulp-service-client might be problematic. Click here for more details.
- crc_pulp_service_client-20260107.2.dist-info/METADATA +2727 -0
- crc_pulp_service_client-20260107.2.dist-info/RECORD +41 -0
- crc_pulp_service_client-20260107.2.dist-info/WHEEL +5 -0
- crc_pulp_service_client-20260107.2.dist-info/top_level.txt +1 -0
- pulpcore/__init__.py +2 -0
- pulpcore/client/__init__.py +2 -0
- pulpcore/client/pulp_service/__init__.py +59 -0
- pulpcore/client/pulp_service/api/__init__.py +13 -0
- pulpcore/client/pulp_service/api/api_create_domain_api.py +335 -0
- pulpcore/client/pulp_service/api/api_debug_auth_header_api.py +329 -0
- pulpcore/client/pulp_service/api/api_debug_database_triggers_api.py +329 -0
- pulpcore/client/pulp_service/api/api_rds_connection_tests_api.py +591 -0
- pulpcore/client/pulp_service/api/api_test_random_lock_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/api_test_tasks_api.py +326 -0
- pulpcore/client/pulp_service/api/contentguards_feature_api.py +3401 -0
- pulpcore/client/pulp_service/api/tasks_api.py +1469 -0
- pulpcore/client/pulp_service/api/vuln_report_service_api.py +1301 -0
- pulpcore/client/pulp_service/api_client.py +798 -0
- pulpcore/client/pulp_service/api_response.py +21 -0
- pulpcore/client/pulp_service/configuration.py +628 -0
- pulpcore/client/pulp_service/exceptions.py +200 -0
- pulpcore/client/pulp_service/models/__init__.py +34 -0
- pulpcore/client/pulp_service/models/async_operation_response.py +88 -0
- pulpcore/client/pulp_service/models/domain.py +114 -0
- pulpcore/client/pulp_service/models/domain_response.py +131 -0
- pulpcore/client/pulp_service/models/my_permissions_response.py +88 -0
- pulpcore/client/pulp_service/models/nested_role.py +93 -0
- pulpcore/client/pulp_service/models/nested_role_response.py +92 -0
- pulpcore/client/pulp_service/models/object_roles_response.py +96 -0
- pulpcore/client/pulp_service/models/paginated_task_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_feature_content_guard_response_list.py +112 -0
- pulpcore/client/pulp_service/models/paginatedservice_vulnerability_report_response_list.py +112 -0
- pulpcore/client/pulp_service/models/patchedservice_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/progress_report_response.py +115 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard.py +107 -0
- pulpcore/client/pulp_service/models/service_feature_content_guard_response.py +123 -0
- pulpcore/client/pulp_service/models/service_vulnerability_report_response.py +110 -0
- pulpcore/client/pulp_service/models/storage_class_enum.py +40 -0
- pulpcore/client/pulp_service/models/task_response.py +186 -0
- pulpcore/client/pulp_service/py.typed +0 -0
- pulpcore/client/pulp_service/rest.py +258 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
2
|
+
pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
3
|
+
pulpcore/client/pulp_service/__init__.py,sha256=TbkeoJKDtcNt530frpRUDU2fU8vvvUBAJeG49TVLLB8,3544
|
|
4
|
+
pulpcore/client/pulp_service/api_client.py,sha256=bUn0ja4iSmsk-aqlEycpPJ_A2kS3Z8Od7rN0w8WXpS0,27521
|
|
5
|
+
pulpcore/client/pulp_service/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
6
|
+
pulpcore/client/pulp_service/configuration.py,sha256=8M4m5F80f5idJc8rPuiPDzLJAKw7DXtwn12PuA4dYm8,19686
|
|
7
|
+
pulpcore/client/pulp_service/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
|
|
8
|
+
pulpcore/client/pulp_service/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
pulpcore/client/pulp_service/rest.py,sha256=XBy6U2uDmD3JVaVMJshqRczy8zYdLoUpM0tT5uu10ao,9411
|
|
10
|
+
pulpcore/client/pulp_service/api/__init__.py,sha256=-RMfVl3f92qhpaPyCn512DFxsWzUaI9d2ET-ATGz64U,862
|
|
11
|
+
pulpcore/client/pulp_service/api/api_create_domain_api.py,sha256=TIJc_bQ7KjDnjlfoaOlvE353AwdLbFVGMTGOVZvzORs,12758
|
|
12
|
+
pulpcore/client/pulp_service/api/api_debug_auth_header_api.py,sha256=72p90hUugvu-YK3I93bcDqCbilQfzQU6WQhQzsxTdoo,13134
|
|
13
|
+
pulpcore/client/pulp_service/api/api_debug_database_triggers_api.py,sha256=IuwCFR28bUtWcs6vBV7RcJMc9qVzcUO3kyyBIECj4wY,13191
|
|
14
|
+
pulpcore/client/pulp_service/api/api_rds_connection_tests_api.py,sha256=CuetHQ9QqDa98Q4q8pg2BuzKJjU98230DUenivcUImg,23773
|
|
15
|
+
pulpcore/client/pulp_service/api/api_test_random_lock_tasks_api.py,sha256=y3bW5lr5xGYfOCkltuTiBrPP_ldpk78-SrNlnTmKgrg,12966
|
|
16
|
+
pulpcore/client/pulp_service/api/api_test_tasks_api.py,sha256=SXhf3JT4Mfi7-DifFxTzA04eexVVLU09Dt7f_qpUsi4,12944
|
|
17
|
+
pulpcore/client/pulp_service/api/contentguards_feature_api.py,sha256=DhcraIj8gYvBsQUrDek2cnEay1vNGMmmlHCEOonxbxY,149362
|
|
18
|
+
pulpcore/client/pulp_service/api/tasks_api.py,sha256=VAAI0dYKJLiHZOGG-jpFBiU8TPHbXQ-L2KqevQAUQD4,90085
|
|
19
|
+
pulpcore/client/pulp_service/api/vuln_report_service_api.py,sha256=VzFnDKGMxqIjZiNewwm7bQNGSEdIXcrRcf25uJkjt44,65026
|
|
20
|
+
pulpcore/client/pulp_service/models/__init__.py,sha256=aGDJ9ydX_bSso78M8DsQ0BGIP6dn1MpUICJbSoDoJm8,2055
|
|
21
|
+
pulpcore/client/pulp_service/models/async_operation_response.py,sha256=IbcgvoCxfMCL9HXaPJDPLgDo8IKE12QKstLIxzhegt8,2558
|
|
22
|
+
pulpcore/client/pulp_service/models/domain.py,sha256=emWxFoRCEh_73sGfeW0-PxoPBzn40Y5LPdj8yCefnNE,4851
|
|
23
|
+
pulpcore/client/pulp_service/models/domain_response.py,sha256=aLaqUytBRGZran1xkKs8R_X-u-Q5w4zk8cuRg8XRWSs,5924
|
|
24
|
+
pulpcore/client/pulp_service/models/my_permissions_response.py,sha256=q5KI8WcrUykr38UGVLlque5b7NVMZFd7-Gy0exa-YK8,2519
|
|
25
|
+
pulpcore/client/pulp_service/models/nested_role.py,sha256=_QDbpC49ZywdkvKtd2vWnh9cxhct1kcHizHxQ1pIvH0,3003
|
|
26
|
+
pulpcore/client/pulp_service/models/nested_role_response.py,sha256=j3oDMZ6T7FdGcuOdhKM5VkAYn0aUbcF73675vaNDOxk,2874
|
|
27
|
+
pulpcore/client/pulp_service/models/object_roles_response.py,sha256=WcYUj7AlMwR8WAO7XKOqK_v1YJz9or0jHVvUVFsMAZI,2977
|
|
28
|
+
pulpcore/client/pulp_service/models/paginated_task_response_list.py,sha256=R6fJuG2JS1belG-_XclgjS7iYbm_x1586aVjHidwblM,3695
|
|
29
|
+
pulpcore/client/pulp_service/models/paginatedservice_feature_content_guard_response_list.py,sha256=eJfhf-0Gnm6dKbYqiYW-Mr2aQSPjsryVvPhthHvXB00,3874
|
|
30
|
+
pulpcore/client/pulp_service/models/paginatedservice_vulnerability_report_response_list.py,sha256=ELMY8mKwpEPBi7jz1in97HupnEAetJsVQMiK9j5NpwA,3873
|
|
31
|
+
pulpcore/client/pulp_service/models/patchedservice_feature_content_guard.py,sha256=N-j_foG7gvzpzvJPzqr-RndEJN64BZr-53NYd5a0BZg,3852
|
|
32
|
+
pulpcore/client/pulp_service/models/progress_report_response.py,sha256=0NtqBu9tx7dTliiB_gbmJG_HVYTQbXObBRDe7ZhstVA,4481
|
|
33
|
+
pulpcore/client/pulp_service/models/service_feature_content_guard.py,sha256=AFrYuWWSuEwbrnaB4Qv1HJbdpUE4pCWiII8j-TbOJ6M,3766
|
|
34
|
+
pulpcore/client/pulp_service/models/service_feature_content_guard_response.py,sha256=Jsuil4ljXafL3cGgk1b0u-uNyEguCqLSA3tGEi6vHE0,4668
|
|
35
|
+
pulpcore/client/pulp_service/models/service_vulnerability_report_response.py,sha256=q2xsiNvYK5WCIgvZFmf0DWXkLO1skj9hvApYtegsvgI,3880
|
|
36
|
+
pulpcore/client/pulp_service/models/storage_class_enum.py,sha256=BwLtMdj6LexVjhHIHELE1Hlw6c9dU6SCytz6f0D5c0E,1383
|
|
37
|
+
pulpcore/client/pulp_service/models/task_response.py,sha256=eObQXKMC0MEW0KHU_NpsxmztTUX65_sQzCZa7oM70EI,9008
|
|
38
|
+
crc_pulp_service_client-20260107.2.dist-info/METADATA,sha256=dXmewhoiZ_Klio5XEPQOSrRzaebek9IjzQ1MEzfcp1A,134509
|
|
39
|
+
crc_pulp_service_client-20260107.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
crc_pulp_service_client-20260107.2.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
|
|
41
|
+
crc_pulp_service_client-20260107.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pulpcore
|
pulpcore/__init__.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Pulp 3 API
|
|
7
|
+
|
|
8
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: v3
|
|
11
|
+
Contact: pulp-list@redhat.com
|
|
12
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
13
|
+
|
|
14
|
+
Do not edit the class manually.
|
|
15
|
+
""" # noqa: E501
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
__version__ = "20260107.2"
|
|
19
|
+
|
|
20
|
+
# import apis into sdk package
|
|
21
|
+
from pulpcore.client.pulp_service.api.api_create_domain_api import ApiCreateDomainApi
|
|
22
|
+
from pulpcore.client.pulp_service.api.api_debug_auth_header_api import ApiDebugAuthHeaderApi
|
|
23
|
+
from pulpcore.client.pulp_service.api.api_debug_database_triggers_api import ApiDebugDatabaseTriggersApi
|
|
24
|
+
from pulpcore.client.pulp_service.api.api_rds_connection_tests_api import ApiRdsConnectionTestsApi
|
|
25
|
+
from pulpcore.client.pulp_service.api.api_test_random_lock_tasks_api import ApiTestRandomLockTasksApi
|
|
26
|
+
from pulpcore.client.pulp_service.api.api_test_tasks_api import ApiTestTasksApi
|
|
27
|
+
from pulpcore.client.pulp_service.api.contentguards_feature_api import ContentguardsFeatureApi
|
|
28
|
+
from pulpcore.client.pulp_service.api.tasks_api import TasksApi
|
|
29
|
+
from pulpcore.client.pulp_service.api.vuln_report_service_api import VulnReportServiceApi
|
|
30
|
+
|
|
31
|
+
# import ApiClient
|
|
32
|
+
from pulpcore.client.pulp_service.api_response import ApiResponse
|
|
33
|
+
from pulpcore.client.pulp_service.api_client import ApiClient
|
|
34
|
+
from pulpcore.client.pulp_service.configuration import Configuration
|
|
35
|
+
from pulpcore.client.pulp_service.exceptions import OpenApiException
|
|
36
|
+
from pulpcore.client.pulp_service.exceptions import ApiTypeError
|
|
37
|
+
from pulpcore.client.pulp_service.exceptions import ApiValueError
|
|
38
|
+
from pulpcore.client.pulp_service.exceptions import ApiKeyError
|
|
39
|
+
from pulpcore.client.pulp_service.exceptions import ApiAttributeError
|
|
40
|
+
from pulpcore.client.pulp_service.exceptions import ApiException
|
|
41
|
+
|
|
42
|
+
# import models into sdk package
|
|
43
|
+
from pulpcore.client.pulp_service.models.async_operation_response import AsyncOperationResponse
|
|
44
|
+
from pulpcore.client.pulp_service.models.domain import Domain
|
|
45
|
+
from pulpcore.client.pulp_service.models.domain_response import DomainResponse
|
|
46
|
+
from pulpcore.client.pulp_service.models.my_permissions_response import MyPermissionsResponse
|
|
47
|
+
from pulpcore.client.pulp_service.models.nested_role import NestedRole
|
|
48
|
+
from pulpcore.client.pulp_service.models.nested_role_response import NestedRoleResponse
|
|
49
|
+
from pulpcore.client.pulp_service.models.object_roles_response import ObjectRolesResponse
|
|
50
|
+
from pulpcore.client.pulp_service.models.paginated_task_response_list import PaginatedTaskResponseList
|
|
51
|
+
from pulpcore.client.pulp_service.models.paginatedservice_feature_content_guard_response_list import PaginatedserviceFeatureContentGuardResponseList
|
|
52
|
+
from pulpcore.client.pulp_service.models.paginatedservice_vulnerability_report_response_list import PaginatedserviceVulnerabilityReportResponseList
|
|
53
|
+
from pulpcore.client.pulp_service.models.patchedservice_feature_content_guard import PatchedserviceFeatureContentGuard
|
|
54
|
+
from pulpcore.client.pulp_service.models.progress_report_response import ProgressReportResponse
|
|
55
|
+
from pulpcore.client.pulp_service.models.service_feature_content_guard import ServiceFeatureContentGuard
|
|
56
|
+
from pulpcore.client.pulp_service.models.service_feature_content_guard_response import ServiceFeatureContentGuardResponse
|
|
57
|
+
from pulpcore.client.pulp_service.models.service_vulnerability_report_response import ServiceVulnerabilityReportResponse
|
|
58
|
+
from pulpcore.client.pulp_service.models.storage_class_enum import StorageClassEnum
|
|
59
|
+
from pulpcore.client.pulp_service.models.task_response import TaskResponse
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from pulpcore.client.pulp_service.api.api_create_domain_api import ApiCreateDomainApi
|
|
5
|
+
from pulpcore.client.pulp_service.api.api_debug_auth_header_api import ApiDebugAuthHeaderApi
|
|
6
|
+
from pulpcore.client.pulp_service.api.api_debug_database_triggers_api import ApiDebugDatabaseTriggersApi
|
|
7
|
+
from pulpcore.client.pulp_service.api.api_rds_connection_tests_api import ApiRdsConnectionTestsApi
|
|
8
|
+
from pulpcore.client.pulp_service.api.api_test_random_lock_tasks_api import ApiTestRandomLockTasksApi
|
|
9
|
+
from pulpcore.client.pulp_service.api.api_test_tasks_api import ApiTestTasksApi
|
|
10
|
+
from pulpcore.client.pulp_service.api.contentguards_feature_api import ContentguardsFeatureApi
|
|
11
|
+
from pulpcore.client.pulp_service.api.tasks_api import TasksApi
|
|
12
|
+
from pulpcore.client.pulp_service.api.vuln_report_service_api import VulnReportServiceApi
|
|
13
|
+
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Pulp 3 API
|
|
5
|
+
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v3
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from pydantic import Field, StrictStr
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pulpcore.client.pulp_service.models.domain import Domain
|
|
24
|
+
from pulpcore.client.pulp_service.models.domain_response import DomainResponse
|
|
25
|
+
|
|
26
|
+
from pulpcore.client.pulp_service.api_client import ApiClient, RequestSerialized
|
|
27
|
+
from pulpcore.client.pulp_service.api_response import ApiResponse
|
|
28
|
+
from pulpcore.client.pulp_service.rest import RESTResponseType
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ApiCreateDomainApi:
|
|
32
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
33
|
+
Ref: https://openapi-generator.tech
|
|
34
|
+
|
|
35
|
+
Do not edit the class manually.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
def __init__(self, api_client=None) -> None:
|
|
39
|
+
if api_client is None:
|
|
40
|
+
api_client = ApiClient.get_default()
|
|
41
|
+
self.api_client = api_client
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@validate_call
|
|
45
|
+
def post(
|
|
46
|
+
self,
|
|
47
|
+
domain: Domain,
|
|
48
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> DomainResponse:
|
|
62
|
+
"""Create domain
|
|
63
|
+
|
|
64
|
+
Create a new domain for from S3 template domain, self-service path
|
|
65
|
+
|
|
66
|
+
:param domain: (required)
|
|
67
|
+
:type domain: Domain
|
|
68
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
69
|
+
:type x_task_diagnostics: List[str]
|
|
70
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
71
|
+
number provided, it will be total request
|
|
72
|
+
timeout. It can also be a pair (tuple) of
|
|
73
|
+
(connection, read) timeouts.
|
|
74
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
75
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
76
|
+
request; this effectively ignores the
|
|
77
|
+
authentication in the spec for a single request.
|
|
78
|
+
:type _request_auth: dict, optional
|
|
79
|
+
:param _content_type: force content-type for the request.
|
|
80
|
+
:type _content_type: str, Optional
|
|
81
|
+
:param _headers: set to override the headers for a single
|
|
82
|
+
request; this effectively ignores the headers
|
|
83
|
+
in the spec for a single request.
|
|
84
|
+
:type _headers: dict, optional
|
|
85
|
+
:param _host_index: set to override the host_index for a single
|
|
86
|
+
request; this effectively ignores the host_index
|
|
87
|
+
in the spec for a single request.
|
|
88
|
+
:type _host_index: int, optional
|
|
89
|
+
:return: Returns the result object.
|
|
90
|
+
""" # noqa: E501
|
|
91
|
+
|
|
92
|
+
_param = self._post_serialize(
|
|
93
|
+
domain=domain,
|
|
94
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
95
|
+
_request_auth=_request_auth,
|
|
96
|
+
_content_type=_content_type,
|
|
97
|
+
_headers=_headers,
|
|
98
|
+
_host_index=_host_index
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
102
|
+
'201': "DomainResponse",
|
|
103
|
+
}
|
|
104
|
+
response_data = self.api_client.call_api(
|
|
105
|
+
*_param,
|
|
106
|
+
_request_timeout=_request_timeout
|
|
107
|
+
)
|
|
108
|
+
response_data.read()
|
|
109
|
+
return self.api_client.response_deserialize(
|
|
110
|
+
response_data=response_data,
|
|
111
|
+
response_types_map=_response_types_map,
|
|
112
|
+
).data
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@validate_call
|
|
116
|
+
def post_with_http_info(
|
|
117
|
+
self,
|
|
118
|
+
domain: Domain,
|
|
119
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
120
|
+
_request_timeout: Union[
|
|
121
|
+
None,
|
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
123
|
+
Tuple[
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
126
|
+
]
|
|
127
|
+
] = None,
|
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
+
) -> ApiResponse[DomainResponse]:
|
|
133
|
+
"""Create domain
|
|
134
|
+
|
|
135
|
+
Create a new domain for from S3 template domain, self-service path
|
|
136
|
+
|
|
137
|
+
:param domain: (required)
|
|
138
|
+
:type domain: Domain
|
|
139
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
140
|
+
:type x_task_diagnostics: List[str]
|
|
141
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
142
|
+
number provided, it will be total request
|
|
143
|
+
timeout. It can also be a pair (tuple) of
|
|
144
|
+
(connection, read) timeouts.
|
|
145
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
146
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
147
|
+
request; this effectively ignores the
|
|
148
|
+
authentication in the spec for a single request.
|
|
149
|
+
:type _request_auth: dict, optional
|
|
150
|
+
:param _content_type: force content-type for the request.
|
|
151
|
+
:type _content_type: str, Optional
|
|
152
|
+
:param _headers: set to override the headers for a single
|
|
153
|
+
request; this effectively ignores the headers
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _headers: dict, optional
|
|
156
|
+
:param _host_index: set to override the host_index for a single
|
|
157
|
+
request; this effectively ignores the host_index
|
|
158
|
+
in the spec for a single request.
|
|
159
|
+
:type _host_index: int, optional
|
|
160
|
+
:return: Returns the result object.
|
|
161
|
+
""" # noqa: E501
|
|
162
|
+
|
|
163
|
+
_param = self._post_serialize(
|
|
164
|
+
domain=domain,
|
|
165
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
166
|
+
_request_auth=_request_auth,
|
|
167
|
+
_content_type=_content_type,
|
|
168
|
+
_headers=_headers,
|
|
169
|
+
_host_index=_host_index
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
173
|
+
'201': "DomainResponse",
|
|
174
|
+
}
|
|
175
|
+
response_data = self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
def post_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
domain: Domain,
|
|
190
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
191
|
+
_request_timeout: Union[
|
|
192
|
+
None,
|
|
193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
194
|
+
Tuple[
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
196
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
197
|
+
]
|
|
198
|
+
] = None,
|
|
199
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
200
|
+
_content_type: Optional[StrictStr] = None,
|
|
201
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
202
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
203
|
+
) -> RESTResponseType:
|
|
204
|
+
"""Create domain
|
|
205
|
+
|
|
206
|
+
Create a new domain for from S3 template domain, self-service path
|
|
207
|
+
|
|
208
|
+
:param domain: (required)
|
|
209
|
+
:type domain: Domain
|
|
210
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
211
|
+
:type x_task_diagnostics: List[str]
|
|
212
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
213
|
+
number provided, it will be total request
|
|
214
|
+
timeout. It can also be a pair (tuple) of
|
|
215
|
+
(connection, read) timeouts.
|
|
216
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
217
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
218
|
+
request; this effectively ignores the
|
|
219
|
+
authentication in the spec for a single request.
|
|
220
|
+
:type _request_auth: dict, optional
|
|
221
|
+
:param _content_type: force content-type for the request.
|
|
222
|
+
:type _content_type: str, Optional
|
|
223
|
+
:param _headers: set to override the headers for a single
|
|
224
|
+
request; this effectively ignores the headers
|
|
225
|
+
in the spec for a single request.
|
|
226
|
+
:type _headers: dict, optional
|
|
227
|
+
:param _host_index: set to override the host_index for a single
|
|
228
|
+
request; this effectively ignores the host_index
|
|
229
|
+
in the spec for a single request.
|
|
230
|
+
:type _host_index: int, optional
|
|
231
|
+
:return: Returns the result object.
|
|
232
|
+
""" # noqa: E501
|
|
233
|
+
|
|
234
|
+
_param = self._post_serialize(
|
|
235
|
+
domain=domain,
|
|
236
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
237
|
+
_request_auth=_request_auth,
|
|
238
|
+
_content_type=_content_type,
|
|
239
|
+
_headers=_headers,
|
|
240
|
+
_host_index=_host_index
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
244
|
+
'201': "DomainResponse",
|
|
245
|
+
}
|
|
246
|
+
response_data = self.api_client.call_api(
|
|
247
|
+
*_param,
|
|
248
|
+
_request_timeout=_request_timeout
|
|
249
|
+
)
|
|
250
|
+
return response_data.response
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _post_serialize(
|
|
254
|
+
self,
|
|
255
|
+
domain,
|
|
256
|
+
x_task_diagnostics,
|
|
257
|
+
_request_auth,
|
|
258
|
+
_content_type,
|
|
259
|
+
_headers,
|
|
260
|
+
_host_index,
|
|
261
|
+
) -> RequestSerialized:
|
|
262
|
+
|
|
263
|
+
_host = None
|
|
264
|
+
|
|
265
|
+
_collection_formats: Dict[str, str] = {
|
|
266
|
+
'X-Task-Diagnostics': 'csv',
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
_path_params: Dict[str, str] = {}
|
|
270
|
+
_query_params: List[Tuple[str, str]] = []
|
|
271
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
272
|
+
_form_params: List[Tuple[str, str]] = []
|
|
273
|
+
_files: Dict[
|
|
274
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
275
|
+
] = {}
|
|
276
|
+
_body_params: Optional[bytes] = None
|
|
277
|
+
|
|
278
|
+
# process the path parameters
|
|
279
|
+
# process the query parameters
|
|
280
|
+
# process the header parameters
|
|
281
|
+
if x_task_diagnostics is not None:
|
|
282
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
283
|
+
# process the form parameters
|
|
284
|
+
# process the body parameter
|
|
285
|
+
if domain is not None:
|
|
286
|
+
_body_params = domain
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
# set the HTTP header `Accept`
|
|
290
|
+
if 'Accept' not in _header_params:
|
|
291
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
292
|
+
[
|
|
293
|
+
'application/json'
|
|
294
|
+
]
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
# set the HTTP header `Content-Type`
|
|
298
|
+
if _content_type:
|
|
299
|
+
_header_params['Content-Type'] = _content_type
|
|
300
|
+
else:
|
|
301
|
+
_default_content_type = (
|
|
302
|
+
self.api_client.select_header_content_type(
|
|
303
|
+
[
|
|
304
|
+
'application/json',
|
|
305
|
+
'application/x-www-form-urlencoded',
|
|
306
|
+
'multipart/form-data'
|
|
307
|
+
]
|
|
308
|
+
)
|
|
309
|
+
)
|
|
310
|
+
if _default_content_type is not None:
|
|
311
|
+
_header_params['Content-Type'] = _default_content_type
|
|
312
|
+
|
|
313
|
+
# authentication setting
|
|
314
|
+
_auth_settings: List[str] = [
|
|
315
|
+
'json_header_remote_authentication',
|
|
316
|
+
'basicAuth',
|
|
317
|
+
'cookieAuth'
|
|
318
|
+
]
|
|
319
|
+
|
|
320
|
+
return self.api_client.param_serialize(
|
|
321
|
+
method='POST',
|
|
322
|
+
resource_path='/api/pulp/create-domain/',
|
|
323
|
+
path_params=_path_params,
|
|
324
|
+
query_params=_query_params,
|
|
325
|
+
header_params=_header_params,
|
|
326
|
+
body=_body_params,
|
|
327
|
+
post_params=_form_params,
|
|
328
|
+
files=_files,
|
|
329
|
+
auth_settings=_auth_settings,
|
|
330
|
+
collection_formats=_collection_formats,
|
|
331
|
+
_host=_host,
|
|
332
|
+
_request_auth=_request_auth
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
|