latitudesh-python-sdk 2.3.0__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.
- latitudesh_python_sdk/__init__.py +18 -0
- latitudesh_python_sdk/_hooks/__init__.py +5 -0
- latitudesh_python_sdk/_hooks/registration.py +13 -0
- latitudesh_python_sdk/_hooks/sdkhooks.py +76 -0
- latitudesh_python_sdk/_hooks/types.py +113 -0
- latitudesh_python_sdk/_version.py +17 -0
- latitudesh_python_sdk/apikeys.py +703 -0
- latitudesh_python_sdk/basesdk.py +374 -0
- latitudesh_python_sdk/billing.py +197 -0
- latitudesh_python_sdk/events_sdk.py +298 -0
- latitudesh_python_sdk/firewalls_sdk.py +1786 -0
- latitudesh_python_sdk/httpclient.py +125 -0
- latitudesh_python_sdk/ipaddresses_sdk.py +470 -0
- latitudesh_python_sdk/models/__init__.py +3581 -0
- latitudesh_python_sdk/models/api_key.py +81 -0
- latitudesh_python_sdk/models/apierror.py +40 -0
- latitudesh_python_sdk/models/assign_server_virtual_networkop.py +43 -0
- latitudesh_python_sdk/models/bandwidth_packages.py +67 -0
- latitudesh_python_sdk/models/bandwidth_plan_data.py +72 -0
- latitudesh_python_sdk/models/bandwidth_plans.py +26 -0
- latitudesh_python_sdk/models/billing_usage.py +249 -0
- latitudesh_python_sdk/models/container_plan_data.py +163 -0
- latitudesh_python_sdk/models/create_api_key.py +40 -0
- latitudesh_python_sdk/models/create_firewall_assignmentop.py +61 -0
- latitudesh_python_sdk/models/create_firewallop.py +73 -0
- latitudesh_python_sdk/models/create_ipmi_sessionop.py +16 -0
- latitudesh_python_sdk/models/create_projectop.py +79 -0
- latitudesh_python_sdk/models/create_server_actionop.py +69 -0
- latitudesh_python_sdk/models/create_server_out_of_bandop.py +61 -0
- latitudesh_python_sdk/models/create_server_reinstallop.py +140 -0
- latitudesh_python_sdk/models/create_serverop.py +173 -0
- latitudesh_python_sdk/models/create_tagop.py +50 -0
- latitudesh_python_sdk/models/create_virtual_machine_actionop.py +63 -0
- latitudesh_python_sdk/models/create_virtual_networkop.py +72 -0
- latitudesh_python_sdk/models/custom_tag.py +26 -0
- latitudesh_python_sdk/models/custom_tag_data.py +54 -0
- latitudesh_python_sdk/models/custom_tags.py +26 -0
- latitudesh_python_sdk/models/delete_api_keyop.py +16 -0
- latitudesh_python_sdk/models/delete_firewall_assignmentop.py +25 -0
- latitudesh_python_sdk/models/delete_firewallop.py +18 -0
- latitudesh_python_sdk/models/delete_project_ssh_keyop.py +23 -0
- latitudesh_python_sdk/models/delete_project_user_dataop.py +23 -0
- latitudesh_python_sdk/models/delete_projectop.py +18 -0
- latitudesh_python_sdk/models/delete_ssh_keyop.py +16 -0
- latitudesh_python_sdk/models/delete_storage_filesystemsop.py +16 -0
- latitudesh_python_sdk/models/delete_storage_volumesop.py +16 -0
- latitudesh_python_sdk/models/delete_user_dataop.py +16 -0
- latitudesh_python_sdk/models/delete_virtual_networks_assignmentsop.py +16 -0
- latitudesh_python_sdk/models/delete_vpn_sessionop.py +16 -0
- latitudesh_python_sdk/models/deploy_config.py +62 -0
- latitudesh_python_sdk/models/destroy_serverop.py +31 -0
- latitudesh_python_sdk/models/destroy_tagop.py +16 -0
- latitudesh_python_sdk/models/destroy_team_memberop.py +18 -0
- latitudesh_python_sdk/models/destroy_virtual_machineop.py +16 -0
- latitudesh_python_sdk/models/destroy_virtual_networkop.py +18 -0
- latitudesh_python_sdk/models/event_data.py +98 -0
- latitudesh_python_sdk/models/events.py +26 -0
- latitudesh_python_sdk/models/filesystem_data.py +57 -0
- latitudesh_python_sdk/models/firewall.py +26 -0
- latitudesh_python_sdk/models/firewall_assignment_data.py +50 -0
- latitudesh_python_sdk/models/firewall_assignments.py +29 -0
- latitudesh_python_sdk/models/firewall_data.py +75 -0
- latitudesh_python_sdk/models/firewall_server.py +36 -0
- latitudesh_python_sdk/models/firewalls.py +26 -0
- latitudesh_python_sdk/models/get_all_firewall_assignmentsop.py +51 -0
- latitudesh_python_sdk/models/get_bandwidth_plansop.py +62 -0
- latitudesh_python_sdk/models/get_billing_usageop.py +46 -0
- latitudesh_python_sdk/models/get_containers_planop.py +18 -0
- latitudesh_python_sdk/models/get_eventsop.py +126 -0
- latitudesh_python_sdk/models/get_firewall_assignmentsop.py +53 -0
- latitudesh_python_sdk/models/get_firewallop.py +18 -0
- latitudesh_python_sdk/models/get_ipop.py +33 -0
- latitudesh_python_sdk/models/get_ipsop.py +120 -0
- latitudesh_python_sdk/models/get_planop.py +16 -0
- latitudesh_python_sdk/models/get_plans_operating_systemop.py +54 -0
- latitudesh_python_sdk/models/get_plansop.py +125 -0
- latitudesh_python_sdk/models/get_project_ssh_keyop.py +37 -0
- latitudesh_python_sdk/models/get_project_ssh_keysop.py +33 -0
- latitudesh_python_sdk/models/get_project_user_dataop.py +38 -0
- latitudesh_python_sdk/models/get_project_users_dataop.py +46 -0
- latitudesh_python_sdk/models/get_projectsop.py +105 -0
- latitudesh_python_sdk/models/get_regionop.py +18 -0
- latitudesh_python_sdk/models/get_regionsop.py +42 -0
- latitudesh_python_sdk/models/get_role_idop.py +16 -0
- latitudesh_python_sdk/models/get_rolesop.py +54 -0
- latitudesh_python_sdk/models/get_server_deploy_configop.py +18 -0
- latitudesh_python_sdk/models/get_server_out_of_bandop.py +18 -0
- latitudesh_python_sdk/models/get_serverop.py +33 -0
- latitudesh_python_sdk/models/get_serversop.py +185 -0
- latitudesh_python_sdk/models/get_ssh_keyop.py +30 -0
- latitudesh_python_sdk/models/get_ssh_keysop.py +31 -0
- latitudesh_python_sdk/models/get_storage_filesystemsop.py +22 -0
- latitudesh_python_sdk/models/get_storage_volumeop.py +32 -0
- latitudesh_python_sdk/models/get_storage_volumesop.py +35 -0
- latitudesh_python_sdk/models/get_team_membersop.py +42 -0
- latitudesh_python_sdk/models/get_traffic_consumptionop.py +49 -0
- latitudesh_python_sdk/models/get_traffic_quotaop.py +20 -0
- latitudesh_python_sdk/models/get_user_dataop.py +31 -0
- latitudesh_python_sdk/models/get_user_profileop.py +19 -0
- latitudesh_python_sdk/models/get_users_dataop.py +44 -0
- latitudesh_python_sdk/models/get_virtual_networkop.py +32 -0
- latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +72 -0
- latitudesh_python_sdk/models/get_virtual_networksop.py +69 -0
- latitudesh_python_sdk/models/get_vpn_sessionsop.py +70 -0
- latitudesh_python_sdk/models/index_virtual_machineop.py +31 -0
- latitudesh_python_sdk/models/ip_address.py +122 -0
- latitudesh_python_sdk/models/ip_addresses.py +15 -0
- latitudesh_python_sdk/models/ipmi_session.py +53 -0
- latitudesh_python_sdk/models/latitudesherror.py +30 -0
- latitudesh_python_sdk/models/list_firewallsop.py +49 -0
- latitudesh_python_sdk/models/membership.py +63 -0
- latitudesh_python_sdk/models/no_response_error.py +17 -0
- latitudesh_python_sdk/models/operating_system_data.py +65 -0
- latitudesh_python_sdk/models/operating_systems.py +26 -0
- latitudesh_python_sdk/models/out_of_band_connection.py +88 -0
- latitudesh_python_sdk/models/patch_current_teamop.py +91 -0
- latitudesh_python_sdk/models/patch_storage_filesystemsop.py +79 -0
- latitudesh_python_sdk/models/patch_user_dataop.py +69 -0
- latitudesh_python_sdk/models/patch_user_profileop.py +88 -0
- latitudesh_python_sdk/models/plan.py +15 -0
- latitudesh_python_sdk/models/plan_data.py +210 -0
- latitudesh_python_sdk/models/post_api_keyop.py +19 -0
- latitudesh_python_sdk/models/post_project_ssh_keyop.py +81 -0
- latitudesh_python_sdk/models/post_project_user_dataop.py +68 -0
- latitudesh_python_sdk/models/post_ssh_keyop.py +63 -0
- latitudesh_python_sdk/models/post_storage_filesystemsop.py +63 -0
- latitudesh_python_sdk/models/post_storage_volumes_mountop.py +62 -0
- latitudesh_python_sdk/models/post_storage_volumesop.py +63 -0
- latitudesh_python_sdk/models/post_team_membersop.py +54 -0
- latitudesh_python_sdk/models/post_teamop.py +67 -0
- latitudesh_python_sdk/models/post_user_dataop.py +50 -0
- latitudesh_python_sdk/models/post_vpn_sessionop.py +63 -0
- latitudesh_python_sdk/models/project.py +131 -0
- latitudesh_python_sdk/models/project_include.py +75 -0
- latitudesh_python_sdk/models/projects.py +15 -0
- latitudesh_python_sdk/models/put_project_ssh_keyop.py +87 -0
- latitudesh_python_sdk/models/put_project_user_dataop.py +76 -0
- latitudesh_python_sdk/models/put_ssh_keyop.py +80 -0
- latitudesh_python_sdk/models/put_vpn_sessionop.py +16 -0
- latitudesh_python_sdk/models/region.py +50 -0
- latitudesh_python_sdk/models/region_resource_data.py +37 -0
- latitudesh_python_sdk/models/regions.py +50 -0
- latitudesh_python_sdk/models/responsevalidationerror.py +27 -0
- latitudesh_python_sdk/models/role.py +26 -0
- latitudesh_python_sdk/models/role_data.py +35 -0
- latitudesh_python_sdk/models/security.py +25 -0
- latitudesh_python_sdk/models/server.py +26 -0
- latitudesh_python_sdk/models/server_action.py +52 -0
- latitudesh_python_sdk/models/server_data.py +280 -0
- latitudesh_python_sdk/models/server_exit_rescue_modeop.py +16 -0
- latitudesh_python_sdk/models/server_lockop.py +16 -0
- latitudesh_python_sdk/models/server_region_resource_data.py +40 -0
- latitudesh_python_sdk/models/server_rescue.py +22 -0
- latitudesh_python_sdk/models/server_schedule_deletion.py +44 -0
- latitudesh_python_sdk/models/server_schedule_deletionop.py +16 -0
- latitudesh_python_sdk/models/server_start_rescue_modeop.py +16 -0
- latitudesh_python_sdk/models/server_unlockop.py +16 -0
- latitudesh_python_sdk/models/server_unschedule_deletionop.py +16 -0
- latitudesh_python_sdk/models/servers.py +26 -0
- latitudesh_python_sdk/models/show_virtual_machineop.py +16 -0
- latitudesh_python_sdk/models/ssh_key_data.py +55 -0
- latitudesh_python_sdk/models/ssh_keys.py +26 -0
- latitudesh_python_sdk/models/storage_plan_data.py +47 -0
- latitudesh_python_sdk/models/storage_plans.py +26 -0
- latitudesh_python_sdk/models/team.py +74 -0
- latitudesh_python_sdk/models/team_include.py +43 -0
- latitudesh_python_sdk/models/team_members.py +51 -0
- latitudesh_python_sdk/models/teams.py +26 -0
- latitudesh_python_sdk/models/traffic.py +133 -0
- latitudesh_python_sdk/models/traffic_quota.py +106 -0
- latitudesh_python_sdk/models/update_api_key.py +48 -0
- latitudesh_python_sdk/models/update_api_keyop.py +41 -0
- latitudesh_python_sdk/models/update_firewallop.py +89 -0
- latitudesh_python_sdk/models/update_plans_bandwidthop.py +50 -0
- latitudesh_python_sdk/models/update_projectop.py +95 -0
- latitudesh_python_sdk/models/update_server_deploy_configop.py +122 -0
- latitudesh_python_sdk/models/update_serverop.py +85 -0
- latitudesh_python_sdk/models/update_tagop.py +74 -0
- latitudesh_python_sdk/models/update_virtual_networkop.py +67 -0
- latitudesh_python_sdk/models/user.py +59 -0
- latitudesh_python_sdk/models/user_data.py +26 -0
- latitudesh_python_sdk/models/user_data_properties.py +46 -0
- latitudesh_python_sdk/models/user_include.py +52 -0
- latitudesh_python_sdk/models/user_team.py +61 -0
- latitudesh_python_sdk/models/user_teams.py +26 -0
- latitudesh_python_sdk/models/user_update.py +37 -0
- latitudesh_python_sdk/models/virtual_machine.py +29 -0
- latitudesh_python_sdk/models/virtual_machine_attributes.py +115 -0
- latitudesh_python_sdk/models/virtual_machine_payload.py +47 -0
- latitudesh_python_sdk/models/virtual_machine_plans.py +181 -0
- latitudesh_python_sdk/models/virtual_network.py +26 -0
- latitudesh_python_sdk/models/virtual_network_assignment.py +29 -0
- latitudesh_python_sdk/models/virtual_network_assignment_data.py +65 -0
- latitudesh_python_sdk/models/virtual_network_assignments.py +29 -0
- latitudesh_python_sdk/models/virtual_network_data.py +114 -0
- latitudesh_python_sdk/models/virtual_networks.py +26 -0
- latitudesh_python_sdk/models/volume_data.py +111 -0
- latitudesh_python_sdk/models/vpn_session_data_with_password.py +77 -0
- latitudesh_python_sdk/models/vpn_session_with_password.py +18 -0
- latitudesh_python_sdk/operatingsystems_sdk.py +238 -0
- latitudesh_python_sdk/plans.py +1304 -0
- latitudesh_python_sdk/privatenetworks.py +1612 -0
- latitudesh_python_sdk/projects_sdk.py +830 -0
- latitudesh_python_sdk/py.typed +1 -0
- latitudesh_python_sdk/regions_sdk.py +398 -0
- latitudesh_python_sdk/roles.py +398 -0
- latitudesh_python_sdk/sdk.py +264 -0
- latitudesh_python_sdk/sdkconfiguration.py +50 -0
- latitudesh_python_sdk/servers_sdk.py +3414 -0
- latitudesh_python_sdk/sshkeys_sdk.py +1882 -0
- latitudesh_python_sdk/storage.py +1651 -0
- latitudesh_python_sdk/tags.py +715 -0
- latitudesh_python_sdk/teams_sdk.py +527 -0
- latitudesh_python_sdk/teamsmembers.py +576 -0
- latitudesh_python_sdk/traffic_sdk.py +357 -0
- latitudesh_python_sdk/types/__init__.py +21 -0
- latitudesh_python_sdk/types/basemodel.py +39 -0
- latitudesh_python_sdk/userdata_sdk.py +1888 -0
- latitudesh_python_sdk/userprofile.py +531 -0
- latitudesh_python_sdk/utils/__init__.py +200 -0
- latitudesh_python_sdk/utils/annotations.py +79 -0
- latitudesh_python_sdk/utils/datetimes.py +23 -0
- latitudesh_python_sdk/utils/enums.py +74 -0
- latitudesh_python_sdk/utils/eventstreaming.py +248 -0
- latitudesh_python_sdk/utils/forms.py +234 -0
- latitudesh_python_sdk/utils/headers.py +136 -0
- latitudesh_python_sdk/utils/logger.py +27 -0
- latitudesh_python_sdk/utils/metadata.py +118 -0
- latitudesh_python_sdk/utils/queryparams.py +217 -0
- latitudesh_python_sdk/utils/requestbodies.py +66 -0
- latitudesh_python_sdk/utils/retries.py +281 -0
- latitudesh_python_sdk/utils/security.py +192 -0
- latitudesh_python_sdk/utils/serializers.py +249 -0
- latitudesh_python_sdk/utils/unmarshal_json_response.py +38 -0
- latitudesh_python_sdk/utils/url.py +155 -0
- latitudesh_python_sdk/utils/values.py +137 -0
- latitudesh_python_sdk/virtualmachines.py +941 -0
- latitudesh_python_sdk/vpnsessions.py +715 -0
- latitudesh_python_sdk-2.3.0.dist-info/METADATA +787 -0
- latitudesh_python_sdk-2.3.0.dist-info/RECORD +242 -0
- latitudesh_python_sdk-2.3.0.dist-info/WHEEL +4 -0
- latitudesh_python_sdk-2.3.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RoleDataType(str, Enum):
|
|
11
|
+
ROLES = "roles"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class RoleDataAttributesTypedDict(TypedDict):
|
|
15
|
+
name: NotRequired[str]
|
|
16
|
+
r"""Name of the Role"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RoleDataAttributes(BaseModel):
|
|
20
|
+
name: Optional[str] = None
|
|
21
|
+
r"""Name of the Role"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class RoleDataTypedDict(TypedDict):
|
|
25
|
+
id: NotRequired[str]
|
|
26
|
+
type: NotRequired[RoleDataType]
|
|
27
|
+
attributes: NotRequired[RoleDataAttributesTypedDict]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class RoleData(BaseModel):
|
|
31
|
+
id: Optional[str] = None
|
|
32
|
+
|
|
33
|
+
type: Optional[RoleDataType] = None
|
|
34
|
+
|
|
35
|
+
attributes: Optional[RoleDataAttributes] = None
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, SecurityMetadata
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SecurityTypedDict(TypedDict):
|
|
11
|
+
bearer: NotRequired[str]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Security(BaseModel):
|
|
15
|
+
bearer: Annotated[
|
|
16
|
+
Optional[str],
|
|
17
|
+
FieldMetadata(
|
|
18
|
+
security=SecurityMetadata(
|
|
19
|
+
scheme=True,
|
|
20
|
+
scheme_type="apiKey",
|
|
21
|
+
sub_type="header",
|
|
22
|
+
field_name="Authorization",
|
|
23
|
+
)
|
|
24
|
+
),
|
|
25
|
+
] = None
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .server_data import ServerData, ServerDataTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ServerMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ServerMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ServerTypedDict(TypedDict):
|
|
19
|
+
data: NotRequired[ServerDataTypedDict]
|
|
20
|
+
meta: NotRequired[ServerMetaTypedDict]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Server(BaseModel):
|
|
24
|
+
data: Optional[ServerData] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[ServerMeta] = None
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ServerActionType(str, Enum):
|
|
11
|
+
ACTIONS = "actions"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ServerActionAttributesTypedDict(TypedDict):
|
|
15
|
+
status: NotRequired[str]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ServerActionAttributes(BaseModel):
|
|
19
|
+
status: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ServerActionDataTypedDict(TypedDict):
|
|
23
|
+
id: NotRequired[str]
|
|
24
|
+
type: NotRequired[ServerActionType]
|
|
25
|
+
attributes: NotRequired[ServerActionAttributesTypedDict]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ServerActionData(BaseModel):
|
|
29
|
+
id: Optional[str] = None
|
|
30
|
+
|
|
31
|
+
type: Optional[ServerActionType] = None
|
|
32
|
+
|
|
33
|
+
attributes: Optional[ServerActionAttributes] = None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class ServerActionMetaTypedDict(TypedDict):
|
|
37
|
+
pass
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class ServerActionMeta(BaseModel):
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ServerActionTypedDict(TypedDict):
|
|
45
|
+
data: NotRequired[ServerActionDataTypedDict]
|
|
46
|
+
meta: NotRequired[ServerActionMetaTypedDict]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ServerAction(BaseModel):
|
|
50
|
+
data: Optional[ServerActionData] = None
|
|
51
|
+
|
|
52
|
+
meta: Optional[ServerActionMeta] = None
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .project_include import ProjectInclude, ProjectIncludeTypedDict
|
|
5
|
+
from .server_region_resource_data import (
|
|
6
|
+
ServerRegionResourceData,
|
|
7
|
+
ServerRegionResourceDataTypedDict,
|
|
8
|
+
)
|
|
9
|
+
from .team_include import TeamInclude, TeamIncludeTypedDict
|
|
10
|
+
from enum import Enum
|
|
11
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Status(str, Enum):
|
|
17
|
+
r"""`on` - The server is powered ON
|
|
18
|
+
`off` - The server is powered OFF
|
|
19
|
+
`unknown` - The server power status is unknown
|
|
20
|
+
`ready` - The server is in reinstalling state `ready` and should start `disk_erasing` shortly
|
|
21
|
+
`disk_erasing` - The server is in reinstalling state `disk_erasing`
|
|
22
|
+
`failed_disk_erasing` - The server has failed disk erasing in reinstall
|
|
23
|
+
`deploying` - The server is in the last reinstalling stage and is `deploying`
|
|
24
|
+
`failed_deployment` - The server has failed deployment in reinstall
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
ON = "on"
|
|
29
|
+
OFF = "off"
|
|
30
|
+
UNKNOWN = "unknown"
|
|
31
|
+
READY = "ready"
|
|
32
|
+
DISK_ERASING = "disk_erasing"
|
|
33
|
+
FAILED_DISK_ERASING = "failed_disk_erasing"
|
|
34
|
+
DEPLOYING = "deploying"
|
|
35
|
+
FAILED_DEPLOYMENT = "failed_deployment"
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class IpmiStatus(str, Enum):
|
|
39
|
+
UNAVAILABLE = "Unavailable"
|
|
40
|
+
INTERMITTENT = "Intermittent"
|
|
41
|
+
NORMAL = "Normal"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ServerDataPlanTypedDict(TypedDict):
|
|
45
|
+
id: NotRequired[str]
|
|
46
|
+
r"""The plan ID"""
|
|
47
|
+
name: NotRequired[str]
|
|
48
|
+
r"""The plan name"""
|
|
49
|
+
slug: NotRequired[str]
|
|
50
|
+
r"""The plan slug"""
|
|
51
|
+
billing: NotRequired[str]
|
|
52
|
+
r"""hourly/monthly pricing. Defaults to `hourly`. Appliable for `on_demand` projects only."""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class ServerDataPlan(BaseModel):
|
|
56
|
+
id: Optional[str] = None
|
|
57
|
+
r"""The plan ID"""
|
|
58
|
+
|
|
59
|
+
name: Optional[str] = None
|
|
60
|
+
r"""The plan name"""
|
|
61
|
+
|
|
62
|
+
slug: Optional[str] = None
|
|
63
|
+
r"""The plan slug"""
|
|
64
|
+
|
|
65
|
+
billing: Optional[str] = None
|
|
66
|
+
r"""hourly/monthly pricing. Defaults to `hourly`. Appliable for `on_demand` projects only."""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ServerDataFeaturesTypedDict(TypedDict):
|
|
70
|
+
raid: NotRequired[bool]
|
|
71
|
+
ssh_keys: NotRequired[bool]
|
|
72
|
+
user_data: NotRequired[bool]
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class ServerDataFeatures(BaseModel):
|
|
76
|
+
raid: Optional[bool] = None
|
|
77
|
+
|
|
78
|
+
ssh_keys: Optional[bool] = None
|
|
79
|
+
|
|
80
|
+
user_data: Optional[bool] = None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class DistroTypedDict(TypedDict):
|
|
84
|
+
name: NotRequired[str]
|
|
85
|
+
r"""The OS Distro name"""
|
|
86
|
+
slug: NotRequired[str]
|
|
87
|
+
r"""The OS Distro slug"""
|
|
88
|
+
series: NotRequired[str]
|
|
89
|
+
r"""The OS Distro Series"""
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class Distro(BaseModel):
|
|
93
|
+
name: Optional[str] = None
|
|
94
|
+
r"""The OS Distro name"""
|
|
95
|
+
|
|
96
|
+
slug: Optional[str] = None
|
|
97
|
+
r"""The OS Distro slug"""
|
|
98
|
+
|
|
99
|
+
series: Optional[str] = None
|
|
100
|
+
r"""The OS Distro Series"""
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class OperatingSystemTypedDict(TypedDict):
|
|
104
|
+
name: NotRequired[str]
|
|
105
|
+
r"""The OS name"""
|
|
106
|
+
slug: NotRequired[str]
|
|
107
|
+
r"""The OS slug"""
|
|
108
|
+
version: NotRequired[str]
|
|
109
|
+
r"""The OS description"""
|
|
110
|
+
features: NotRequired[ServerDataFeaturesTypedDict]
|
|
111
|
+
distro: NotRequired[DistroTypedDict]
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class OperatingSystem(BaseModel):
|
|
115
|
+
name: Optional[str] = None
|
|
116
|
+
r"""The OS name"""
|
|
117
|
+
|
|
118
|
+
slug: Optional[str] = None
|
|
119
|
+
r"""The OS slug"""
|
|
120
|
+
|
|
121
|
+
version: Optional[str] = None
|
|
122
|
+
r"""The OS description"""
|
|
123
|
+
|
|
124
|
+
features: Optional[ServerDataFeatures] = None
|
|
125
|
+
|
|
126
|
+
distro: Optional[Distro] = None
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class ServerDataSpecsTypedDict(TypedDict):
|
|
130
|
+
cpu: NotRequired[str]
|
|
131
|
+
r"""CPU model"""
|
|
132
|
+
disk: NotRequired[str]
|
|
133
|
+
r"""Disk quantity and size in GB (e.g. 2 x 500GB)"""
|
|
134
|
+
ram: NotRequired[str]
|
|
135
|
+
r"""RAM size in GB"""
|
|
136
|
+
nic: NotRequired[str]
|
|
137
|
+
r"""NIC quantity and speed"""
|
|
138
|
+
gpu: NotRequired[str]
|
|
139
|
+
r"""GPU model and quantity, if present"""
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class ServerDataSpecs(BaseModel):
|
|
143
|
+
cpu: Optional[str] = None
|
|
144
|
+
r"""CPU model"""
|
|
145
|
+
|
|
146
|
+
disk: Optional[str] = None
|
|
147
|
+
r"""Disk quantity and size in GB (e.g. 2 x 500GB)"""
|
|
148
|
+
|
|
149
|
+
ram: Optional[str] = None
|
|
150
|
+
r"""RAM size in GB"""
|
|
151
|
+
|
|
152
|
+
nic: Optional[str] = None
|
|
153
|
+
r"""NIC quantity and speed"""
|
|
154
|
+
|
|
155
|
+
gpu: Optional[str] = None
|
|
156
|
+
r"""GPU model and quantity, if present"""
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class ServerDataRole(str, Enum):
|
|
160
|
+
EXTERNAL = "external"
|
|
161
|
+
INTERNAL = "internal"
|
|
162
|
+
IPMI = "ipmi"
|
|
163
|
+
UNKNOWN = "unknown"
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
class InterfacesTypedDict(TypedDict):
|
|
167
|
+
role: NotRequired[ServerDataRole]
|
|
168
|
+
name: NotRequired[str]
|
|
169
|
+
mac_address: NotRequired[str]
|
|
170
|
+
description: NotRequired[str]
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class Interfaces(BaseModel):
|
|
174
|
+
role: Optional[ServerDataRole] = None
|
|
175
|
+
|
|
176
|
+
name: Optional[str] = None
|
|
177
|
+
|
|
178
|
+
mac_address: Optional[str] = None
|
|
179
|
+
|
|
180
|
+
description: Optional[str] = None
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class ServerDataAttributesTypedDict(TypedDict):
|
|
184
|
+
hostname: NotRequired[str]
|
|
185
|
+
label: NotRequired[str]
|
|
186
|
+
r"""The server label"""
|
|
187
|
+
status: NotRequired[Status]
|
|
188
|
+
r"""`on` - The server is powered ON
|
|
189
|
+
`off` - The server is powered OFF
|
|
190
|
+
`unknown` - The server power status is unknown
|
|
191
|
+
`ready` - The server is in reinstalling state `ready` and should start `disk_erasing` shortly
|
|
192
|
+
`disk_erasing` - The server is in reinstalling state `disk_erasing`
|
|
193
|
+
`failed_disk_erasing` - The server has failed disk erasing in reinstall
|
|
194
|
+
`deploying` - The server is in the last reinstalling stage and is `deploying`
|
|
195
|
+
`failed_deployment` - The server has failed deployment in reinstall
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
ipmi_status: NotRequired[IpmiStatus]
|
|
199
|
+
role: NotRequired[str]
|
|
200
|
+
r"""The server role (e.g. Bare Metal)"""
|
|
201
|
+
site: NotRequired[str]
|
|
202
|
+
locked: NotRequired[bool]
|
|
203
|
+
rescue: NotRequired[bool]
|
|
204
|
+
primary_ipv4: NotRequired[str]
|
|
205
|
+
primary_ipv6: NotRequired[str]
|
|
206
|
+
created_at: NotRequired[str]
|
|
207
|
+
scheduled_deletion_at: NotRequired[str]
|
|
208
|
+
plan: NotRequired[ServerDataPlanTypedDict]
|
|
209
|
+
operating_system: NotRequired[OperatingSystemTypedDict]
|
|
210
|
+
region: NotRequired[ServerRegionResourceDataTypedDict]
|
|
211
|
+
specs: NotRequired[ServerDataSpecsTypedDict]
|
|
212
|
+
interfaces: NotRequired[List[InterfacesTypedDict]]
|
|
213
|
+
project: NotRequired[ProjectIncludeTypedDict]
|
|
214
|
+
team: NotRequired[TeamIncludeTypedDict]
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
class ServerDataAttributes(BaseModel):
|
|
218
|
+
hostname: Optional[str] = None
|
|
219
|
+
|
|
220
|
+
label: Optional[str] = None
|
|
221
|
+
r"""The server label"""
|
|
222
|
+
|
|
223
|
+
status: Optional[Status] = None
|
|
224
|
+
r"""`on` - The server is powered ON
|
|
225
|
+
`off` - The server is powered OFF
|
|
226
|
+
`unknown` - The server power status is unknown
|
|
227
|
+
`ready` - The server is in reinstalling state `ready` and should start `disk_erasing` shortly
|
|
228
|
+
`disk_erasing` - The server is in reinstalling state `disk_erasing`
|
|
229
|
+
`failed_disk_erasing` - The server has failed disk erasing in reinstall
|
|
230
|
+
`deploying` - The server is in the last reinstalling stage and is `deploying`
|
|
231
|
+
`failed_deployment` - The server has failed deployment in reinstall
|
|
232
|
+
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
ipmi_status: Optional[IpmiStatus] = None
|
|
236
|
+
|
|
237
|
+
role: Optional[str] = None
|
|
238
|
+
r"""The server role (e.g. Bare Metal)"""
|
|
239
|
+
|
|
240
|
+
site: Optional[str] = None
|
|
241
|
+
|
|
242
|
+
locked: Optional[bool] = None
|
|
243
|
+
|
|
244
|
+
rescue: Optional[bool] = None
|
|
245
|
+
|
|
246
|
+
primary_ipv4: Optional[str] = None
|
|
247
|
+
|
|
248
|
+
primary_ipv6: Optional[str] = None
|
|
249
|
+
|
|
250
|
+
created_at: Optional[str] = None
|
|
251
|
+
|
|
252
|
+
scheduled_deletion_at: Optional[str] = None
|
|
253
|
+
|
|
254
|
+
plan: Optional[ServerDataPlan] = None
|
|
255
|
+
|
|
256
|
+
operating_system: Optional[OperatingSystem] = None
|
|
257
|
+
|
|
258
|
+
region: Optional[ServerRegionResourceData] = None
|
|
259
|
+
|
|
260
|
+
specs: Optional[ServerDataSpecs] = None
|
|
261
|
+
|
|
262
|
+
interfaces: Optional[List[Interfaces]] = None
|
|
263
|
+
|
|
264
|
+
project: Optional[ProjectInclude] = None
|
|
265
|
+
|
|
266
|
+
team: Optional[TeamInclude] = None
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class ServerDataTypedDict(TypedDict):
|
|
270
|
+
id: NotRequired[str]
|
|
271
|
+
type: NotRequired[str]
|
|
272
|
+
attributes: NotRequired[ServerDataAttributesTypedDict]
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class ServerData(BaseModel):
|
|
276
|
+
id: Optional[str] = None
|
|
277
|
+
|
|
278
|
+
type: Optional[str] = None
|
|
279
|
+
|
|
280
|
+
attributes: Optional[ServerDataAttributes] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerExitRescueModeRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerExitRescueModeRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerLockRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerLockRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SiteTypedDict(TypedDict):
|
|
10
|
+
id: NotRequired[str]
|
|
11
|
+
name: NotRequired[str]
|
|
12
|
+
slug: NotRequired[str]
|
|
13
|
+
facility: NotRequired[str]
|
|
14
|
+
rack_id: NotRequired[str]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Site(BaseModel):
|
|
18
|
+
id: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
name: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
slug: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
facility: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
rack_id: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ServerRegionResourceDataTypedDict(TypedDict):
|
|
30
|
+
city: NotRequired[str]
|
|
31
|
+
country: NotRequired[str]
|
|
32
|
+
site: NotRequired[SiteTypedDict]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class ServerRegionResourceData(BaseModel):
|
|
36
|
+
city: Optional[str] = None
|
|
37
|
+
|
|
38
|
+
country: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
site: Optional[Site] = None
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerRescueMetaTypedDict(TypedDict):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerRescueMeta(BaseModel):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ServerRescueTypedDict(TypedDict):
|
|
18
|
+
meta: NotRequired[ServerRescueMetaTypedDict]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ServerRescue(BaseModel):
|
|
22
|
+
meta: Optional[ServerRescueMeta] = None
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ServerScheduleDeletionType(str, Enum):
|
|
11
|
+
SCHEDULE_DELETION = "schedule_deletion"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ServerScheduleDeletionAttributesTypedDict(TypedDict):
|
|
15
|
+
server_id: NotRequired[str]
|
|
16
|
+
scheduled_deletion_at: NotRequired[str]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ServerScheduleDeletionAttributes(BaseModel):
|
|
20
|
+
server_id: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
scheduled_deletion_at: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ServerScheduleDeletionDataTypedDict(TypedDict):
|
|
26
|
+
id: NotRequired[str]
|
|
27
|
+
type: NotRequired[ServerScheduleDeletionType]
|
|
28
|
+
attributes: NotRequired[ServerScheduleDeletionAttributesTypedDict]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ServerScheduleDeletionData(BaseModel):
|
|
32
|
+
id: Optional[str] = None
|
|
33
|
+
|
|
34
|
+
type: Optional[ServerScheduleDeletionType] = None
|
|
35
|
+
|
|
36
|
+
attributes: Optional[ServerScheduleDeletionAttributes] = None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ServerScheduleDeletionTypedDict(TypedDict):
|
|
40
|
+
data: NotRequired[ServerScheduleDeletionDataTypedDict]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class ServerScheduleDeletion(BaseModel):
|
|
44
|
+
data: Optional[ServerScheduleDeletionData] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerScheduleDeletionRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerScheduleDeletionRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerStartRescueModeRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerStartRescueModeRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerUnlockRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerUnlockRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ServerUnscheduleDeletionRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServerUnscheduleDeletionRequest(BaseModel):
|
|
14
|
+
server_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .server_data import ServerData, ServerDataTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ServersMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ServersMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ServersTypedDict(TypedDict):
|
|
19
|
+
data: NotRequired[List[ServerDataTypedDict]]
|
|
20
|
+
meta: NotRequired[ServersMetaTypedDict]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Servers(BaseModel):
|
|
24
|
+
data: Optional[List[ServerData]] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[ServersMeta] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
5
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ShowVirtualMachineRequestTypedDict(TypedDict):
|
|
10
|
+
virtual_machine_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ShowVirtualMachineRequest(BaseModel):
|
|
14
|
+
virtual_machine_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|