daytona_api_client 0.27.0rc1__py3-none-any.whl → 0.27.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 daytona_api_client might be problematic. Click here for more details.
- daytona_api_client/__init__.py +5 -2
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/api_keys_api.py +282 -0
- daytona_api_client/api/health_api.py +282 -0
- daytona_api_client/api/organizations_api.py +27 -330
- daytona_api_client/api/toolbox_api.py +17 -0
- daytona_api_client/models/__init__.py +4 -2
- daytona_api_client/models/api_key_list.py +4 -2
- daytona_api_client/models/create_audit_log.py +2 -2
- daytona_api_client/models/health_controller_check200_response.py +154 -0
- daytona_api_client/models/health_controller_check200_response_info_value.py +101 -0
- daytona_api_client/models/health_controller_check503_response.py +154 -0
- daytona_api_client/models/update_organization_member_access.py +110 -0
- daytona_api_client/models/user_home_dir_response.py +101 -0
- daytona_api_client/models/work_dir_response.py +101 -0
- daytona_api_client/models/workdir_response.py +101 -0
- {daytona_api_client-0.27.0rc1.dist-info → daytona_api_client-0.27.1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.27.0rc1.dist-info → daytona_api_client-0.27.1.dist-info}/RECORD +21 -13
- {daytona_api_client-0.27.0rc1.dist-info → daytona_api_client-0.27.1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.27.0rc1.dist-info → daytona_api_client-0.27.1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.27.0rc1.dist-info → daytona_api_client-0.27.1.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
__version__ = "0.0.0-dev"
|
|
19
19
|
|
|
20
20
|
# import apis into sdk package
|
|
21
|
+
from daytona_api_client.api.health_api import HealthApi
|
|
21
22
|
from daytona_api_client.api.api_keys_api import ApiKeysApi
|
|
22
23
|
from daytona_api_client.api.audit_api import AuditApi
|
|
23
24
|
from daytona_api_client.api.docker_registry_api import DockerRegistryApi
|
|
@@ -90,6 +91,9 @@ from daytona_api_client.models.git_commit_response import GitCommitResponse
|
|
|
90
91
|
from daytona_api_client.models.git_delete_branch_request import GitDeleteBranchRequest
|
|
91
92
|
from daytona_api_client.models.git_repo_request import GitRepoRequest
|
|
92
93
|
from daytona_api_client.models.git_status import GitStatus
|
|
94
|
+
from daytona_api_client.models.health_controller_check200_response import HealthControllerCheck200Response
|
|
95
|
+
from daytona_api_client.models.health_controller_check200_response_info_value import HealthControllerCheck200ResponseInfoValue
|
|
96
|
+
from daytona_api_client.models.health_controller_check503_response import HealthControllerCheck503Response
|
|
93
97
|
from daytona_api_client.models.keyboard_hotkey_request import KeyboardHotkeyRequest
|
|
94
98
|
from daytona_api_client.models.keyboard_press_request import KeyboardPressRequest
|
|
95
99
|
from daytona_api_client.models.keyboard_type_request import KeyboardTypeRequest
|
|
@@ -151,10 +155,9 @@ from daytona_api_client.models.snapshot_state import SnapshotState
|
|
|
151
155
|
from daytona_api_client.models.ssh_access_dto import SshAccessDto
|
|
152
156
|
from daytona_api_client.models.ssh_access_validation_dto import SshAccessValidationDto
|
|
153
157
|
from daytona_api_client.models.storage_access_dto import StorageAccessDto
|
|
154
|
-
from daytona_api_client.models.update_assigned_organization_roles import UpdateAssignedOrganizationRoles
|
|
155
158
|
from daytona_api_client.models.update_docker_registry import UpdateDockerRegistry
|
|
156
159
|
from daytona_api_client.models.update_organization_invitation import UpdateOrganizationInvitation
|
|
157
|
-
from daytona_api_client.models.
|
|
160
|
+
from daytona_api_client.models.update_organization_member_access import UpdateOrganizationMemberAccess
|
|
158
161
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
159
162
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
160
163
|
from daytona_api_client.models.user import User
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
|
+
from daytona_api_client.api.health_api import HealthApi
|
|
4
5
|
from daytona_api_client.api.api_keys_api import ApiKeysApi
|
|
5
6
|
from daytona_api_client.api.audit_api import AuditApi
|
|
6
7
|
from daytona_api_client.api.docker_registry_api import DockerRegistryApi
|
|
@@ -596,6 +596,288 @@ class ApiKeysApi:
|
|
|
596
596
|
|
|
597
597
|
|
|
598
598
|
|
|
599
|
+
@validate_call
|
|
600
|
+
def delete_api_key_for_user(
|
|
601
|
+
self,
|
|
602
|
+
user_id: StrictStr,
|
|
603
|
+
name: StrictStr,
|
|
604
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
605
|
+
_request_timeout: Union[
|
|
606
|
+
None,
|
|
607
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
608
|
+
Tuple[
|
|
609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
610
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
611
|
+
]
|
|
612
|
+
] = None,
|
|
613
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
614
|
+
_content_type: Optional[StrictStr] = None,
|
|
615
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
616
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
617
|
+
) -> None:
|
|
618
|
+
"""Delete API key for user
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
:param user_id: (required)
|
|
622
|
+
:type user_id: str
|
|
623
|
+
:param name: (required)
|
|
624
|
+
:type name: str
|
|
625
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
626
|
+
:type x_daytona_organization_id: str
|
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
628
|
+
number provided, it will be total request
|
|
629
|
+
timeout. It can also be a pair (tuple) of
|
|
630
|
+
(connection, read) timeouts.
|
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
633
|
+
request; this effectively ignores the
|
|
634
|
+
authentication in the spec for a single request.
|
|
635
|
+
:type _request_auth: dict, optional
|
|
636
|
+
:param _content_type: force content-type for the request.
|
|
637
|
+
:type _content_type: str, Optional
|
|
638
|
+
:param _headers: set to override the headers for a single
|
|
639
|
+
request; this effectively ignores the headers
|
|
640
|
+
in the spec for a single request.
|
|
641
|
+
:type _headers: dict, optional
|
|
642
|
+
:param _host_index: set to override the host_index for a single
|
|
643
|
+
request; this effectively ignores the host_index
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _host_index: int, optional
|
|
646
|
+
:return: Returns the result object.
|
|
647
|
+
""" # noqa: E501
|
|
648
|
+
|
|
649
|
+
_param = self._delete_api_key_for_user_serialize(
|
|
650
|
+
user_id=user_id,
|
|
651
|
+
name=name,
|
|
652
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
653
|
+
_request_auth=_request_auth,
|
|
654
|
+
_content_type=_content_type,
|
|
655
|
+
_headers=_headers,
|
|
656
|
+
_host_index=_host_index
|
|
657
|
+
)
|
|
658
|
+
|
|
659
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
660
|
+
'204': None,
|
|
661
|
+
}
|
|
662
|
+
response_data = self.api_client.call_api(
|
|
663
|
+
*_param,
|
|
664
|
+
_request_timeout=_request_timeout
|
|
665
|
+
)
|
|
666
|
+
response_data.read()
|
|
667
|
+
return self.api_client.response_deserialize(
|
|
668
|
+
response_data=response_data,
|
|
669
|
+
response_types_map=_response_types_map,
|
|
670
|
+
).data
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
@validate_call
|
|
674
|
+
def delete_api_key_for_user_with_http_info(
|
|
675
|
+
self,
|
|
676
|
+
user_id: StrictStr,
|
|
677
|
+
name: StrictStr,
|
|
678
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
679
|
+
_request_timeout: Union[
|
|
680
|
+
None,
|
|
681
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
682
|
+
Tuple[
|
|
683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
684
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
685
|
+
]
|
|
686
|
+
] = None,
|
|
687
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
688
|
+
_content_type: Optional[StrictStr] = None,
|
|
689
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
690
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
691
|
+
) -> ApiResponse[None]:
|
|
692
|
+
"""Delete API key for user
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
:param user_id: (required)
|
|
696
|
+
:type user_id: str
|
|
697
|
+
:param name: (required)
|
|
698
|
+
:type name: str
|
|
699
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
700
|
+
:type x_daytona_organization_id: str
|
|
701
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
702
|
+
number provided, it will be total request
|
|
703
|
+
timeout. It can also be a pair (tuple) of
|
|
704
|
+
(connection, read) timeouts.
|
|
705
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
706
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
707
|
+
request; this effectively ignores the
|
|
708
|
+
authentication in the spec for a single request.
|
|
709
|
+
:type _request_auth: dict, optional
|
|
710
|
+
:param _content_type: force content-type for the request.
|
|
711
|
+
:type _content_type: str, Optional
|
|
712
|
+
:param _headers: set to override the headers for a single
|
|
713
|
+
request; this effectively ignores the headers
|
|
714
|
+
in the spec for a single request.
|
|
715
|
+
:type _headers: dict, optional
|
|
716
|
+
:param _host_index: set to override the host_index for a single
|
|
717
|
+
request; this effectively ignores the host_index
|
|
718
|
+
in the spec for a single request.
|
|
719
|
+
:type _host_index: int, optional
|
|
720
|
+
:return: Returns the result object.
|
|
721
|
+
""" # noqa: E501
|
|
722
|
+
|
|
723
|
+
_param = self._delete_api_key_for_user_serialize(
|
|
724
|
+
user_id=user_id,
|
|
725
|
+
name=name,
|
|
726
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
727
|
+
_request_auth=_request_auth,
|
|
728
|
+
_content_type=_content_type,
|
|
729
|
+
_headers=_headers,
|
|
730
|
+
_host_index=_host_index
|
|
731
|
+
)
|
|
732
|
+
|
|
733
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
734
|
+
'204': None,
|
|
735
|
+
}
|
|
736
|
+
response_data = self.api_client.call_api(
|
|
737
|
+
*_param,
|
|
738
|
+
_request_timeout=_request_timeout
|
|
739
|
+
)
|
|
740
|
+
response_data.read()
|
|
741
|
+
return self.api_client.response_deserialize(
|
|
742
|
+
response_data=response_data,
|
|
743
|
+
response_types_map=_response_types_map,
|
|
744
|
+
)
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
@validate_call
|
|
748
|
+
def delete_api_key_for_user_without_preload_content(
|
|
749
|
+
self,
|
|
750
|
+
user_id: StrictStr,
|
|
751
|
+
name: StrictStr,
|
|
752
|
+
x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
|
|
753
|
+
_request_timeout: Union[
|
|
754
|
+
None,
|
|
755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
756
|
+
Tuple[
|
|
757
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
758
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
759
|
+
]
|
|
760
|
+
] = None,
|
|
761
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
762
|
+
_content_type: Optional[StrictStr] = None,
|
|
763
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
764
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
765
|
+
) -> RESTResponseType:
|
|
766
|
+
"""Delete API key for user
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
:param user_id: (required)
|
|
770
|
+
:type user_id: str
|
|
771
|
+
:param name: (required)
|
|
772
|
+
:type name: str
|
|
773
|
+
:param x_daytona_organization_id: Use with JWT to specify the organization ID
|
|
774
|
+
:type x_daytona_organization_id: str
|
|
775
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
776
|
+
number provided, it will be total request
|
|
777
|
+
timeout. It can also be a pair (tuple) of
|
|
778
|
+
(connection, read) timeouts.
|
|
779
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
780
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
781
|
+
request; this effectively ignores the
|
|
782
|
+
authentication in the spec for a single request.
|
|
783
|
+
:type _request_auth: dict, optional
|
|
784
|
+
:param _content_type: force content-type for the request.
|
|
785
|
+
:type _content_type: str, Optional
|
|
786
|
+
:param _headers: set to override the headers for a single
|
|
787
|
+
request; this effectively ignores the headers
|
|
788
|
+
in the spec for a single request.
|
|
789
|
+
:type _headers: dict, optional
|
|
790
|
+
:param _host_index: set to override the host_index for a single
|
|
791
|
+
request; this effectively ignores the host_index
|
|
792
|
+
in the spec for a single request.
|
|
793
|
+
:type _host_index: int, optional
|
|
794
|
+
:return: Returns the result object.
|
|
795
|
+
""" # noqa: E501
|
|
796
|
+
|
|
797
|
+
_param = self._delete_api_key_for_user_serialize(
|
|
798
|
+
user_id=user_id,
|
|
799
|
+
name=name,
|
|
800
|
+
x_daytona_organization_id=x_daytona_organization_id,
|
|
801
|
+
_request_auth=_request_auth,
|
|
802
|
+
_content_type=_content_type,
|
|
803
|
+
_headers=_headers,
|
|
804
|
+
_host_index=_host_index
|
|
805
|
+
)
|
|
806
|
+
|
|
807
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
808
|
+
'204': None,
|
|
809
|
+
}
|
|
810
|
+
response_data = self.api_client.call_api(
|
|
811
|
+
*_param,
|
|
812
|
+
_request_timeout=_request_timeout
|
|
813
|
+
)
|
|
814
|
+
return response_data.response
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
def _delete_api_key_for_user_serialize(
|
|
818
|
+
self,
|
|
819
|
+
user_id,
|
|
820
|
+
name,
|
|
821
|
+
x_daytona_organization_id,
|
|
822
|
+
_request_auth,
|
|
823
|
+
_content_type,
|
|
824
|
+
_headers,
|
|
825
|
+
_host_index,
|
|
826
|
+
) -> RequestSerialized:
|
|
827
|
+
|
|
828
|
+
_host = None
|
|
829
|
+
|
|
830
|
+
_collection_formats: Dict[str, str] = {
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
_path_params: Dict[str, str] = {}
|
|
834
|
+
_query_params: List[Tuple[str, str]] = []
|
|
835
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
836
|
+
_form_params: List[Tuple[str, str]] = []
|
|
837
|
+
_files: Dict[
|
|
838
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
839
|
+
] = {}
|
|
840
|
+
_body_params: Optional[bytes] = None
|
|
841
|
+
|
|
842
|
+
# process the path parameters
|
|
843
|
+
if user_id is not None:
|
|
844
|
+
_path_params['userId'] = user_id
|
|
845
|
+
if name is not None:
|
|
846
|
+
_path_params['name'] = name
|
|
847
|
+
# process the query parameters
|
|
848
|
+
# process the header parameters
|
|
849
|
+
if x_daytona_organization_id is not None:
|
|
850
|
+
_header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
|
|
851
|
+
# process the form parameters
|
|
852
|
+
# process the body parameter
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
# authentication setting
|
|
858
|
+
_auth_settings: List[str] = [
|
|
859
|
+
'bearer',
|
|
860
|
+
'oauth2'
|
|
861
|
+
]
|
|
862
|
+
|
|
863
|
+
return self.api_client.param_serialize(
|
|
864
|
+
method='DELETE',
|
|
865
|
+
resource_path='/api-keys/{userId}/{name}',
|
|
866
|
+
path_params=_path_params,
|
|
867
|
+
query_params=_query_params,
|
|
868
|
+
header_params=_header_params,
|
|
869
|
+
body=_body_params,
|
|
870
|
+
post_params=_form_params,
|
|
871
|
+
files=_files,
|
|
872
|
+
auth_settings=_auth_settings,
|
|
873
|
+
collection_formats=_collection_formats,
|
|
874
|
+
_host=_host,
|
|
875
|
+
_request_auth=_request_auth
|
|
876
|
+
)
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
599
881
|
@validate_call
|
|
600
882
|
def get_api_key(
|
|
601
883
|
self,
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.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 daytona_api_client.models.health_controller_check200_response import HealthControllerCheck200Response
|
|
21
|
+
|
|
22
|
+
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from daytona_api_client.api_response import ApiResponse
|
|
24
|
+
from daytona_api_client.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class HealthApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@validate_call
|
|
41
|
+
def health_controller_check(
|
|
42
|
+
self,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
49
|
+
]
|
|
50
|
+
] = None,
|
|
51
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_content_type: Optional[StrictStr] = None,
|
|
53
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
|
+
) -> HealthControllerCheck200Response:
|
|
56
|
+
"""health_controller_check
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
+
number provided, it will be total request
|
|
61
|
+
timeout. It can also be a pair (tuple) of
|
|
62
|
+
(connection, read) timeouts.
|
|
63
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
+
request; this effectively ignores the
|
|
66
|
+
authentication in the spec for a single request.
|
|
67
|
+
:type _request_auth: dict, optional
|
|
68
|
+
:param _content_type: force content-type for the request.
|
|
69
|
+
:type _content_type: str, Optional
|
|
70
|
+
:param _headers: set to override the headers for a single
|
|
71
|
+
request; this effectively ignores the headers
|
|
72
|
+
in the spec for a single request.
|
|
73
|
+
:type _headers: dict, optional
|
|
74
|
+
:param _host_index: set to override the host_index for a single
|
|
75
|
+
request; this effectively ignores the host_index
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _host_index: int, optional
|
|
78
|
+
:return: Returns the result object.
|
|
79
|
+
""" # noqa: E501
|
|
80
|
+
|
|
81
|
+
_param = self._health_controller_check_serialize(
|
|
82
|
+
_request_auth=_request_auth,
|
|
83
|
+
_content_type=_content_type,
|
|
84
|
+
_headers=_headers,
|
|
85
|
+
_host_index=_host_index
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
+
'200': "HealthControllerCheck200Response",
|
|
90
|
+
'503': "HealthControllerCheck503Response",
|
|
91
|
+
}
|
|
92
|
+
response_data = self.api_client.call_api(
|
|
93
|
+
*_param,
|
|
94
|
+
_request_timeout=_request_timeout
|
|
95
|
+
)
|
|
96
|
+
response_data.read()
|
|
97
|
+
return self.api_client.response_deserialize(
|
|
98
|
+
response_data=response_data,
|
|
99
|
+
response_types_map=_response_types_map,
|
|
100
|
+
).data
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
def health_controller_check_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
_request_timeout: Union[
|
|
107
|
+
None,
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Tuple[
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
112
|
+
]
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[HealthControllerCheck200Response]:
|
|
119
|
+
"""health_controller_check
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
123
|
+
number provided, it will be total request
|
|
124
|
+
timeout. It can also be a pair (tuple) of
|
|
125
|
+
(connection, read) timeouts.
|
|
126
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
127
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
128
|
+
request; this effectively ignores the
|
|
129
|
+
authentication in the spec for a single request.
|
|
130
|
+
:type _request_auth: dict, optional
|
|
131
|
+
:param _content_type: force content-type for the request.
|
|
132
|
+
:type _content_type: str, Optional
|
|
133
|
+
:param _headers: set to override the headers for a single
|
|
134
|
+
request; this effectively ignores the headers
|
|
135
|
+
in the spec for a single request.
|
|
136
|
+
:type _headers: dict, optional
|
|
137
|
+
:param _host_index: set to override the host_index for a single
|
|
138
|
+
request; this effectively ignores the host_index
|
|
139
|
+
in the spec for a single request.
|
|
140
|
+
:type _host_index: int, optional
|
|
141
|
+
:return: Returns the result object.
|
|
142
|
+
""" # noqa: E501
|
|
143
|
+
|
|
144
|
+
_param = self._health_controller_check_serialize(
|
|
145
|
+
_request_auth=_request_auth,
|
|
146
|
+
_content_type=_content_type,
|
|
147
|
+
_headers=_headers,
|
|
148
|
+
_host_index=_host_index
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
+
'200': "HealthControllerCheck200Response",
|
|
153
|
+
'503': "HealthControllerCheck503Response",
|
|
154
|
+
}
|
|
155
|
+
response_data = self.api_client.call_api(
|
|
156
|
+
*_param,
|
|
157
|
+
_request_timeout=_request_timeout
|
|
158
|
+
)
|
|
159
|
+
response_data.read()
|
|
160
|
+
return self.api_client.response_deserialize(
|
|
161
|
+
response_data=response_data,
|
|
162
|
+
response_types_map=_response_types_map,
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
@validate_call
|
|
167
|
+
def health_controller_check_without_preload_content(
|
|
168
|
+
self,
|
|
169
|
+
_request_timeout: Union[
|
|
170
|
+
None,
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
172
|
+
Tuple[
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
175
|
+
]
|
|
176
|
+
] = None,
|
|
177
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_content_type: Optional[StrictStr] = None,
|
|
179
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
180
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
181
|
+
) -> RESTResponseType:
|
|
182
|
+
"""health_controller_check
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
186
|
+
number provided, it will be total request
|
|
187
|
+
timeout. It can also be a pair (tuple) of
|
|
188
|
+
(connection, read) timeouts.
|
|
189
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
190
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
191
|
+
request; this effectively ignores the
|
|
192
|
+
authentication in the spec for a single request.
|
|
193
|
+
:type _request_auth: dict, optional
|
|
194
|
+
:param _content_type: force content-type for the request.
|
|
195
|
+
:type _content_type: str, Optional
|
|
196
|
+
:param _headers: set to override the headers for a single
|
|
197
|
+
request; this effectively ignores the headers
|
|
198
|
+
in the spec for a single request.
|
|
199
|
+
:type _headers: dict, optional
|
|
200
|
+
:param _host_index: set to override the host_index for a single
|
|
201
|
+
request; this effectively ignores the host_index
|
|
202
|
+
in the spec for a single request.
|
|
203
|
+
:type _host_index: int, optional
|
|
204
|
+
:return: Returns the result object.
|
|
205
|
+
""" # noqa: E501
|
|
206
|
+
|
|
207
|
+
_param = self._health_controller_check_serialize(
|
|
208
|
+
_request_auth=_request_auth,
|
|
209
|
+
_content_type=_content_type,
|
|
210
|
+
_headers=_headers,
|
|
211
|
+
_host_index=_host_index
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
215
|
+
'200': "HealthControllerCheck200Response",
|
|
216
|
+
'503': "HealthControllerCheck503Response",
|
|
217
|
+
}
|
|
218
|
+
response_data = self.api_client.call_api(
|
|
219
|
+
*_param,
|
|
220
|
+
_request_timeout=_request_timeout
|
|
221
|
+
)
|
|
222
|
+
return response_data.response
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
def _health_controller_check_serialize(
|
|
226
|
+
self,
|
|
227
|
+
_request_auth,
|
|
228
|
+
_content_type,
|
|
229
|
+
_headers,
|
|
230
|
+
_host_index,
|
|
231
|
+
) -> RequestSerialized:
|
|
232
|
+
|
|
233
|
+
_host = None
|
|
234
|
+
|
|
235
|
+
_collection_formats: Dict[str, str] = {
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
_path_params: Dict[str, str] = {}
|
|
239
|
+
_query_params: List[Tuple[str, str]] = []
|
|
240
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
241
|
+
_form_params: List[Tuple[str, str]] = []
|
|
242
|
+
_files: Dict[
|
|
243
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
244
|
+
] = {}
|
|
245
|
+
_body_params: Optional[bytes] = None
|
|
246
|
+
|
|
247
|
+
# process the path parameters
|
|
248
|
+
# process the query parameters
|
|
249
|
+
# process the header parameters
|
|
250
|
+
# process the form parameters
|
|
251
|
+
# process the body parameter
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
# set the HTTP header `Accept`
|
|
255
|
+
if 'Accept' not in _header_params:
|
|
256
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
257
|
+
[
|
|
258
|
+
'application/json'
|
|
259
|
+
]
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
# authentication setting
|
|
264
|
+
_auth_settings: List[str] = [
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
return self.api_client.param_serialize(
|
|
268
|
+
method='GET',
|
|
269
|
+
resource_path='/health',
|
|
270
|
+
path_params=_path_params,
|
|
271
|
+
query_params=_query_params,
|
|
272
|
+
header_params=_header_params,
|
|
273
|
+
body=_body_params,
|
|
274
|
+
post_params=_form_params,
|
|
275
|
+
files=_files,
|
|
276
|
+
auth_settings=_auth_settings,
|
|
277
|
+
collection_formats=_collection_formats,
|
|
278
|
+
_host=_host,
|
|
279
|
+
_request_auth=_request_auth
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
|