latitudesh-python-sdk 0.0.6__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 latitudesh-python-sdk might be problematic. Click here for more details.
- 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 +106 -0
- latitudesh_python_sdk/_version.py +15 -0
- latitudesh_python_sdk/apikeys.py +802 -0
- latitudesh_python_sdk/basesdk.py +366 -0
- latitudesh_python_sdk/billing.py +210 -0
- latitudesh_python_sdk/events_sdk.py +240 -0
- latitudesh_python_sdk/firewalls_sdk.py +1640 -0
- latitudesh_python_sdk/httpclient.py +136 -0
- latitudesh_python_sdk/ipaddresses_sdk.py +448 -0
- latitudesh_python_sdk/models/__init__.py +1927 -0
- latitudesh_python_sdk/models/api_key.py +81 -0
- latitudesh_python_sdk/models/apierror.py +22 -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.py +72 -0
- latitudesh_python_sdk/models/bandwidth_plans.py +15 -0
- latitudesh_python_sdk/models/billing_usage.py +158 -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 +69 -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_networkop.py +72 -0
- latitudesh_python_sdk/models/custom_tag.py +54 -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_storage_filesystemsop.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 +74 -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/error_object.py +49 -0
- latitudesh_python_sdk/models/events.py +90 -0
- latitudesh_python_sdk/models/filesystem_data.py +53 -0
- latitudesh_python_sdk/models/firewall.py +71 -0
- latitudesh_python_sdk/models/firewall_server.py +50 -0
- latitudesh_python_sdk/models/firewalls.py +26 -0
- latitudesh_python_sdk/models/get_bandwidth_plansop.py +33 -0
- latitudesh_python_sdk/models/get_billing_usageop.py +46 -0
- latitudesh_python_sdk/models/get_eventsop.py +98 -0
- latitudesh_python_sdk/models/get_firewall_assignmentsop.py +18 -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 +91 -0
- latitudesh_python_sdk/models/get_planop.py +16 -0
- latitudesh_python_sdk/models/get_plans_operating_systemop.py +19 -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 +76 -0
- latitudesh_python_sdk/models/get_regionop.py +18 -0
- latitudesh_python_sdk/models/get_role_idop.py +16 -0
- latitudesh_python_sdk/models/get_rolesop.py +19 -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 +156 -0
- latitudesh_python_sdk/models/get_storage_filesystemsop.py +22 -0
- latitudesh_python_sdk/models/get_traffic_consumptionop.py +45 -0
- latitudesh_python_sdk/models/get_traffic_quotaop.py +20 -0
- latitudesh_python_sdk/models/get_user_profileop.py +19 -0
- latitudesh_python_sdk/models/get_virtual_networkop.py +32 -0
- latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +40 -0
- latitudesh_python_sdk/models/get_virtual_networksop.py +40 -0
- latitudesh_python_sdk/models/get_vpn_sessionsop.py +70 -0
- latitudesh_python_sdk/models/index_virtual_machineop.py +22 -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/list_firewallsop.py +20 -0
- latitudesh_python_sdk/models/membership.py +63 -0
- latitudesh_python_sdk/models/operating_systems.py +57 -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_profileop.py +88 -0
- latitudesh_python_sdk/models/plan.py +15 -0
- latitudesh_python_sdk/models/plan_data.py +206 -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_storage_filesystemsop.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_vpn_sessionop.py +63 -0
- latitudesh_python_sdk/models/project.py +130 -0
- latitudesh_python_sdk/models/project_include.py +72 -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_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/role.py +15 -0
- latitudesh_python_sdk/models/role_data.py +35 -0
- latitudesh_python_sdk/models/security.py +25 -0
- latitudesh_python_sdk/models/server.py +54 -0
- latitudesh_python_sdk/models/server_action.py +52 -0
- latitudesh_python_sdk/models/server_data.py +219 -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_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.py +15 -0
- latitudesh_python_sdk/models/ssh_key_data.py +55 -0
- latitudesh_python_sdk/models/storage_plan.py +36 -0
- latitudesh_python_sdk/models/storage_plans.py +15 -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 +69 -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 +15 -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 +25 -0
- latitudesh_python_sdk/models/virtual_machine_payload.py +41 -0
- latitudesh_python_sdk/models/virtual_machine_plans.py +180 -0
- latitudesh_python_sdk/models/virtual_network.py +103 -0
- latitudesh_python_sdk/models/virtual_network1.py +84 -0
- latitudesh_python_sdk/models/virtual_network_assignment.py +37 -0
- latitudesh_python_sdk/models/virtual_network_assignments.py +29 -0
- latitudesh_python_sdk/models/virtual_networks.py +26 -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 +188 -0
- latitudesh_python_sdk/plans.py +1178 -0
- latitudesh_python_sdk/privatenetworks.py +1672 -0
- latitudesh_python_sdk/projects_sdk.py +864 -0
- latitudesh_python_sdk/py.typed +1 -0
- latitudesh_python_sdk/regions_sdk.py +376 -0
- latitudesh_python_sdk/roles.py +374 -0
- latitudesh_python_sdk/sdk.py +214 -0
- latitudesh_python_sdk/sdkconfiguration.py +57 -0
- latitudesh_python_sdk/servers_sdk.py +3810 -0
- latitudesh_python_sdk/sshkeys.py +1050 -0
- latitudesh_python_sdk/storage.py +820 -0
- latitudesh_python_sdk/tags.py +786 -0
- latitudesh_python_sdk/teams_sdk.py +596 -0
- latitudesh_python_sdk/teamsmembers.py +578 -0
- latitudesh_python_sdk/traffic_sdk.py +400 -0
- latitudesh_python_sdk/types/__init__.py +21 -0
- latitudesh_python_sdk/types/basemodel.py +39 -0
- latitudesh_python_sdk/userdata_sdk.py +1052 -0
- latitudesh_python_sdk/userprofile.py +596 -0
- latitudesh_python_sdk/utils/__init__.py +101 -0
- latitudesh_python_sdk/utils/annotations.py +55 -0
- latitudesh_python_sdk/utils/enums.py +34 -0
- latitudesh_python_sdk/utils/eventstreaming.py +238 -0
- latitudesh_python_sdk/utils/forms.py +202 -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 +205 -0
- latitudesh_python_sdk/utils/requestbodies.py +66 -0
- latitudesh_python_sdk/utils/retries.py +217 -0
- latitudesh_python_sdk/utils/security.py +192 -0
- latitudesh_python_sdk/utils/serializers.py +219 -0
- latitudesh_python_sdk/utils/url.py +155 -0
- latitudesh_python_sdk/utils/values.py +137 -0
- latitudesh_python_sdk/virtualmachines.py +772 -0
- latitudesh_python_sdk/vpnsessions.py +818 -0
- latitudesh_python_sdk-0.0.6.dist-info/LICENSE +21 -0
- latitudesh_python_sdk-0.0.6.dist-info/METADATA +730 -0
- latitudesh_python_sdk-0.0.6.dist-info/RECORD +206 -0
- latitudesh_python_sdk-0.0.6.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .user_include import UserInclude, UserIncludeTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserTeamBillingTypedDict(TypedDict):
|
|
11
|
+
id: NotRequired[str]
|
|
12
|
+
customer_billing_id: NotRequired[str]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class UserTeamBilling(BaseModel):
|
|
16
|
+
id: Optional[str] = None
|
|
17
|
+
|
|
18
|
+
customer_billing_id: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class UserTeamAttributesTypedDict(TypedDict):
|
|
22
|
+
name: NotRequired[str]
|
|
23
|
+
slug: NotRequired[str]
|
|
24
|
+
description: NotRequired[str]
|
|
25
|
+
address: NotRequired[str]
|
|
26
|
+
currency: NotRequired[str]
|
|
27
|
+
created_at: NotRequired[str]
|
|
28
|
+
updated_at: NotRequired[str]
|
|
29
|
+
owner: NotRequired[UserIncludeTypedDict]
|
|
30
|
+
billing: NotRequired[UserTeamBillingTypedDict]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class UserTeamAttributes(BaseModel):
|
|
34
|
+
name: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
slug: Optional[str] = None
|
|
37
|
+
|
|
38
|
+
description: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
address: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
currency: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
created_at: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
updated_at: Optional[str] = None
|
|
47
|
+
|
|
48
|
+
owner: Optional[UserInclude] = None
|
|
49
|
+
|
|
50
|
+
billing: Optional[UserTeamBilling] = None
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class UserTeamTypedDict(TypedDict):
|
|
54
|
+
id: NotRequired[str]
|
|
55
|
+
attributes: NotRequired[UserTeamAttributesTypedDict]
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class UserTeam(BaseModel):
|
|
59
|
+
id: Optional[str] = None
|
|
60
|
+
|
|
61
|
+
attributes: Optional[UserTeamAttributes] = None
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .user_team import UserTeam, UserTeamTypedDict
|
|
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 UserTeamsMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class UserTeamsMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class UserTeamsTypedDict(TypedDict):
|
|
19
|
+
data: NotRequired[List[UserTeamTypedDict]]
|
|
20
|
+
meta: NotRequired[UserTeamsMetaTypedDict]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class UserTeams(BaseModel):
|
|
24
|
+
data: Optional[List[UserTeam]] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[UserTeamsMeta] = None
|
|
@@ -0,0 +1,37 @@
|
|
|
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 UserUpdateAttributesTypedDict(TypedDict):
|
|
10
|
+
first_name: NotRequired[str]
|
|
11
|
+
last_name: NotRequired[str]
|
|
12
|
+
email: NotRequired[str]
|
|
13
|
+
authentication_factor_id: NotRequired[str]
|
|
14
|
+
role: NotRequired[str]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class UserUpdateAttributes(BaseModel):
|
|
18
|
+
first_name: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
last_name: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
email: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
authentication_factor_id: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
role: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class UserUpdateTypedDict(TypedDict):
|
|
30
|
+
id: NotRequired[str]
|
|
31
|
+
attributes: NotRequired[UserUpdateAttributesTypedDict]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class UserUpdate(BaseModel):
|
|
35
|
+
id: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
attributes: Optional[UserUpdateAttributes] = 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 typing import Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class VirtualMachineMetaTypedDict(TypedDict):
|
|
10
|
+
pass
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class VirtualMachineMeta(BaseModel):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class VirtualMachineTypedDict(TypedDict):
|
|
18
|
+
data: NotRequired[VirtualMachineTypedDict]
|
|
19
|
+
meta: NotRequired[VirtualMachineMetaTypedDict]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class VirtualMachine(BaseModel):
|
|
23
|
+
data: Optional[VirtualMachine] = None
|
|
24
|
+
|
|
25
|
+
meta: Optional[VirtualMachineMeta] = None
|
|
@@ -0,0 +1,41 @@
|
|
|
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 VirtualMachinePayloadType(str, Enum):
|
|
11
|
+
VIRTUAL_MACHINES = "virtual_machines"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VirtualMachinePayloadAttributesTypedDict(TypedDict):
|
|
15
|
+
name: NotRequired[str]
|
|
16
|
+
project: NotRequired[str]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class VirtualMachinePayloadAttributes(BaseModel):
|
|
20
|
+
name: Optional[str] = "my-vm"
|
|
21
|
+
|
|
22
|
+
project: Optional[str] = "my-project"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class VirtualMachinePayloadDataTypedDict(TypedDict):
|
|
26
|
+
type: NotRequired[VirtualMachinePayloadType]
|
|
27
|
+
attributes: NotRequired[VirtualMachinePayloadAttributesTypedDict]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class VirtualMachinePayloadData(BaseModel):
|
|
31
|
+
type: Optional[VirtualMachinePayloadType] = None
|
|
32
|
+
|
|
33
|
+
attributes: Optional[VirtualMachinePayloadAttributes] = None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class VirtualMachinePayloadTypedDict(TypedDict):
|
|
37
|
+
data: NotRequired[VirtualMachinePayloadDataTypedDict]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class VirtualMachinePayload(BaseModel):
|
|
41
|
+
data: Optional[VirtualMachinePayloadData] = None
|
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
import pydantic
|
|
7
|
+
from typing import List, Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VirtualMachinePlansType(str, Enum):
|
|
12
|
+
r"""The type of the resource"""
|
|
13
|
+
|
|
14
|
+
VIRTUAL_MACHINE_PLANS = "virtual_machine_plans"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class VirtualMachinePlansDataType(str, Enum):
|
|
18
|
+
r"""The type of the disk"""
|
|
19
|
+
|
|
20
|
+
LOCAL = "local"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class VirtualMachinePlansUnit(str, Enum):
|
|
24
|
+
r"""The unit of the disk size"""
|
|
25
|
+
|
|
26
|
+
GIB = "gib"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class SizeTypedDict(TypedDict):
|
|
30
|
+
amount: NotRequired[int]
|
|
31
|
+
r"""The total size of the disk"""
|
|
32
|
+
unit: NotRequired[VirtualMachinePlansUnit]
|
|
33
|
+
r"""The unit of the disk size"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Size(BaseModel):
|
|
37
|
+
amount: Optional[int] = None
|
|
38
|
+
r"""The total size of the disk"""
|
|
39
|
+
|
|
40
|
+
unit: Optional[VirtualMachinePlansUnit] = None
|
|
41
|
+
r"""The unit of the disk size"""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class DiskTypedDict(TypedDict):
|
|
45
|
+
type: NotRequired[VirtualMachinePlansDataType]
|
|
46
|
+
r"""The type of the disk"""
|
|
47
|
+
size: NotRequired[SizeTypedDict]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class Disk(BaseModel):
|
|
51
|
+
type: Optional[VirtualMachinePlansDataType] = None
|
|
52
|
+
r"""The type of the disk"""
|
|
53
|
+
|
|
54
|
+
size: Optional[Size] = None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class VirtualMachinePlansSpecsTypedDict(TypedDict):
|
|
58
|
+
memory: NotRequired[int]
|
|
59
|
+
r"""The total memory"""
|
|
60
|
+
vcpus: NotRequired[int]
|
|
61
|
+
r"""The number of virtual CPUs"""
|
|
62
|
+
disk: NotRequired[DiskTypedDict]
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class VirtualMachinePlansSpecs(BaseModel):
|
|
66
|
+
memory: Optional[int] = None
|
|
67
|
+
r"""The total memory"""
|
|
68
|
+
|
|
69
|
+
vcpus: Optional[int] = None
|
|
70
|
+
r"""The number of virtual CPUs"""
|
|
71
|
+
|
|
72
|
+
disk: Optional[Disk] = None
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class VirtualMachinePlansUSDTypedDict(TypedDict):
|
|
76
|
+
hour: NotRequired[float]
|
|
77
|
+
month: NotRequired[float]
|
|
78
|
+
year: NotRequired[float]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class VirtualMachinePlansUSD(BaseModel):
|
|
82
|
+
hour: Optional[float] = None
|
|
83
|
+
|
|
84
|
+
month: Optional[float] = None
|
|
85
|
+
|
|
86
|
+
year: Optional[float] = None
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class VirtualMachinePlansBRLTypedDict(TypedDict):
|
|
90
|
+
hour: NotRequired[float]
|
|
91
|
+
month: NotRequired[float]
|
|
92
|
+
year: NotRequired[float]
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class VirtualMachinePlansBRL(BaseModel):
|
|
96
|
+
hour: Optional[float] = None
|
|
97
|
+
|
|
98
|
+
month: Optional[float] = None
|
|
99
|
+
|
|
100
|
+
year: Optional[float] = None
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class VirtualMachinePlansPricingTypedDict(TypedDict):
|
|
104
|
+
usd: NotRequired[VirtualMachinePlansUSDTypedDict]
|
|
105
|
+
brl: NotRequired[VirtualMachinePlansBRLTypedDict]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class VirtualMachinePlansPricing(BaseModel):
|
|
109
|
+
usd: Annotated[Optional[VirtualMachinePlansUSD], pydantic.Field(alias="USD")] = None
|
|
110
|
+
|
|
111
|
+
brl: Annotated[Optional[VirtualMachinePlansBRL], pydantic.Field(alias="BRL")] = None
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class VirtualMachinePlansRegionsTypedDict(TypedDict):
|
|
115
|
+
name: NotRequired[str]
|
|
116
|
+
available: NotRequired[List[str]]
|
|
117
|
+
pricing: NotRequired[VirtualMachinePlansPricingTypedDict]
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class VirtualMachinePlansRegions(BaseModel):
|
|
121
|
+
name: Optional[str] = None
|
|
122
|
+
|
|
123
|
+
available: Optional[List[str]] = None
|
|
124
|
+
|
|
125
|
+
pricing: Optional[VirtualMachinePlansPricing] = None
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class VirtualMachinePlansStockLevel(str, Enum):
|
|
129
|
+
r"""The stock level of the plan"""
|
|
130
|
+
|
|
131
|
+
LOW = "low"
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class VirtualMachinePlansAttributesTypedDict(TypedDict):
|
|
135
|
+
name: NotRequired[str]
|
|
136
|
+
r"""The name of the plan"""
|
|
137
|
+
specs: NotRequired[VirtualMachinePlansSpecsTypedDict]
|
|
138
|
+
regions: NotRequired[List[VirtualMachinePlansRegionsTypedDict]]
|
|
139
|
+
r"""The regions where the plan is available"""
|
|
140
|
+
stock_level: NotRequired[VirtualMachinePlansStockLevel]
|
|
141
|
+
r"""The stock level of the plan"""
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class VirtualMachinePlansAttributes(BaseModel):
|
|
145
|
+
name: Optional[str] = None
|
|
146
|
+
r"""The name of the plan"""
|
|
147
|
+
|
|
148
|
+
specs: Optional[VirtualMachinePlansSpecs] = None
|
|
149
|
+
|
|
150
|
+
regions: Optional[List[VirtualMachinePlansRegions]] = None
|
|
151
|
+
r"""The regions where the plan is available"""
|
|
152
|
+
|
|
153
|
+
stock_level: Optional[VirtualMachinePlansStockLevel] = None
|
|
154
|
+
r"""The stock level of the plan"""
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class VirtualMachinePlansDataTypedDict(TypedDict):
|
|
158
|
+
id: NotRequired[str]
|
|
159
|
+
r"""The ID of the plan"""
|
|
160
|
+
type: NotRequired[VirtualMachinePlansType]
|
|
161
|
+
r"""The type of the resource"""
|
|
162
|
+
attributes: NotRequired[VirtualMachinePlansAttributesTypedDict]
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class VirtualMachinePlansData(BaseModel):
|
|
166
|
+
id: Optional[str] = None
|
|
167
|
+
r"""The ID of the plan"""
|
|
168
|
+
|
|
169
|
+
type: Optional[VirtualMachinePlansType] = None
|
|
170
|
+
r"""The type of the resource"""
|
|
171
|
+
|
|
172
|
+
attributes: Optional[VirtualMachinePlansAttributes] = None
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class VirtualMachinePlansTypedDict(TypedDict):
|
|
176
|
+
data: NotRequired[List[VirtualMachinePlansDataTypedDict]]
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class VirtualMachinePlans(BaseModel):
|
|
180
|
+
data: Optional[List[VirtualMachinePlansData]] = None
|
|
@@ -0,0 +1,103 @@
|
|
|
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 import utils
|
|
6
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VirtualNetworkType1(str, Enum):
|
|
12
|
+
VIRTUAL_NETWORKS = "virtual_networks"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class VirtualNetworkAttributesSiteTypedDict(TypedDict):
|
|
16
|
+
id: NotRequired[str]
|
|
17
|
+
facility: NotRequired[str]
|
|
18
|
+
name: NotRequired[str]
|
|
19
|
+
slug: NotRequired[str]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class VirtualNetworkAttributesSite(BaseModel):
|
|
23
|
+
id: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
facility: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
name: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
slug: Optional[str] = None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class VirtualNetworkAttributesRegionTypedDict(TypedDict):
|
|
33
|
+
city: NotRequired[str]
|
|
34
|
+
country: NotRequired[str]
|
|
35
|
+
site: NotRequired[VirtualNetworkAttributesSiteTypedDict]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class VirtualNetworkAttributesRegion(BaseModel):
|
|
39
|
+
city: Optional[str] = None
|
|
40
|
+
|
|
41
|
+
country: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
site: Optional[VirtualNetworkAttributesSite] = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class VirtualNetworkAttributes1TypedDict(TypedDict):
|
|
47
|
+
vid: NotRequired[int]
|
|
48
|
+
r"""vlan ID of the virtual network"""
|
|
49
|
+
name: NotRequired[str]
|
|
50
|
+
r"""Name of the virtual network"""
|
|
51
|
+
description: NotRequired[str]
|
|
52
|
+
r"""Description of the virtual network"""
|
|
53
|
+
region: NotRequired[VirtualNetworkAttributesRegionTypedDict]
|
|
54
|
+
assignments_count: NotRequired[int]
|
|
55
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class VirtualNetworkAttributes1(BaseModel):
|
|
59
|
+
vid: Optional[int] = None
|
|
60
|
+
r"""vlan ID of the virtual network"""
|
|
61
|
+
|
|
62
|
+
name: Optional[str] = None
|
|
63
|
+
r"""Name of the virtual network"""
|
|
64
|
+
|
|
65
|
+
description: Optional[str] = None
|
|
66
|
+
r"""Description of the virtual network"""
|
|
67
|
+
|
|
68
|
+
region: Optional[VirtualNetworkAttributesRegion] = None
|
|
69
|
+
|
|
70
|
+
assignments_count: Optional[int] = None
|
|
71
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class VirtualNetworkTypedDict(TypedDict):
|
|
75
|
+
id: NotRequired[str]
|
|
76
|
+
type: NotRequired[VirtualNetworkType1]
|
|
77
|
+
attributes: NotRequired[VirtualNetworkAttributes1TypedDict]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class VirtualNetwork(BaseModel):
|
|
81
|
+
id: Optional[str] = None
|
|
82
|
+
|
|
83
|
+
type: Optional[VirtualNetworkType1] = None
|
|
84
|
+
|
|
85
|
+
attributes: Optional[VirtualNetworkAttributes1] = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class VirtualNetworkErrorData(BaseModel):
|
|
89
|
+
id: Optional[str] = None
|
|
90
|
+
|
|
91
|
+
type: Optional[VirtualNetworkType1] = None
|
|
92
|
+
|
|
93
|
+
attributes: Optional[VirtualNetworkAttributes1] = None
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class VirtualNetworkError(Exception):
|
|
97
|
+
data: VirtualNetworkErrorData
|
|
98
|
+
|
|
99
|
+
def __init__(self, data: VirtualNetworkErrorData):
|
|
100
|
+
self.data = data
|
|
101
|
+
|
|
102
|
+
def __str__(self) -> str:
|
|
103
|
+
return utils.marshal_json(self.data, VirtualNetworkErrorData)
|
|
@@ -0,0 +1,84 @@
|
|
|
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 VirtualNetworkType(str, Enum):
|
|
11
|
+
VIRTUAL_NETWORKS = "virtual_networks"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VirtualNetworkSiteTypedDict(TypedDict):
|
|
15
|
+
id: NotRequired[str]
|
|
16
|
+
facility: NotRequired[str]
|
|
17
|
+
name: NotRequired[str]
|
|
18
|
+
slug: NotRequired[str]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VirtualNetworkSite(BaseModel):
|
|
22
|
+
id: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
facility: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
name: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
slug: Optional[str] = None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class VirtualNetworkRegionTypedDict(TypedDict):
|
|
32
|
+
city: NotRequired[str]
|
|
33
|
+
country: NotRequired[str]
|
|
34
|
+
site: NotRequired[VirtualNetworkSiteTypedDict]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class VirtualNetworkRegion(BaseModel):
|
|
38
|
+
city: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
country: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
site: Optional[VirtualNetworkSite] = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class VirtualNetworkAttributesTypedDict(TypedDict):
|
|
46
|
+
vid: NotRequired[int]
|
|
47
|
+
r"""vlan ID of the virtual network"""
|
|
48
|
+
name: NotRequired[str]
|
|
49
|
+
r"""Name of the virtual network"""
|
|
50
|
+
description: NotRequired[str]
|
|
51
|
+
r"""Description of the virtual network"""
|
|
52
|
+
region: NotRequired[VirtualNetworkRegionTypedDict]
|
|
53
|
+
assignments_count: NotRequired[int]
|
|
54
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class VirtualNetworkAttributes(BaseModel):
|
|
58
|
+
vid: Optional[int] = None
|
|
59
|
+
r"""vlan ID of the virtual network"""
|
|
60
|
+
|
|
61
|
+
name: Optional[str] = None
|
|
62
|
+
r"""Name of the virtual network"""
|
|
63
|
+
|
|
64
|
+
description: Optional[str] = None
|
|
65
|
+
r"""Description of the virtual network"""
|
|
66
|
+
|
|
67
|
+
region: Optional[VirtualNetworkRegion] = None
|
|
68
|
+
|
|
69
|
+
assignments_count: Optional[int] = None
|
|
70
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class VirtualNetwork1TypedDict(TypedDict):
|
|
74
|
+
id: NotRequired[str]
|
|
75
|
+
type: NotRequired[VirtualNetworkType]
|
|
76
|
+
attributes: NotRequired[VirtualNetworkAttributesTypedDict]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class VirtualNetwork1(BaseModel):
|
|
80
|
+
id: Optional[str] = None
|
|
81
|
+
|
|
82
|
+
type: Optional[VirtualNetworkType] = None
|
|
83
|
+
|
|
84
|
+
attributes: Optional[VirtualNetworkAttributes] = None
|
|
@@ -0,0 +1,37 @@
|
|
|
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 VirtualNetworkAssignmentAttributesTypedDict(TypedDict):
|
|
10
|
+
virtual_network_id: NotRequired[str]
|
|
11
|
+
vid: NotRequired[int]
|
|
12
|
+
server_id: NotRequired[str]
|
|
13
|
+
description: NotRequired[str]
|
|
14
|
+
status: NotRequired[str]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class VirtualNetworkAssignmentAttributes(BaseModel):
|
|
18
|
+
virtual_network_id: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
vid: Optional[int] = None
|
|
21
|
+
|
|
22
|
+
server_id: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
description: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
status: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class VirtualNetworkAssignmentTypedDict(TypedDict):
|
|
30
|
+
id: NotRequired[str]
|
|
31
|
+
attributes: NotRequired[VirtualNetworkAssignmentAttributesTypedDict]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class VirtualNetworkAssignment(BaseModel):
|
|
35
|
+
id: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
attributes: Optional[VirtualNetworkAssignmentAttributes] = None
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .virtual_network_assignment import (
|
|
5
|
+
VirtualNetworkAssignment,
|
|
6
|
+
VirtualNetworkAssignmentTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
9
|
+
from typing import List, Optional
|
|
10
|
+
from typing_extensions import NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class VirtualNetworkAssignmentsMetaTypedDict(TypedDict):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class VirtualNetworkAssignmentsMeta(BaseModel):
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VirtualNetworkAssignmentsTypedDict(TypedDict):
|
|
22
|
+
data: NotRequired[List[VirtualNetworkAssignmentTypedDict]]
|
|
23
|
+
meta: NotRequired[VirtualNetworkAssignmentsMetaTypedDict]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class VirtualNetworkAssignments(BaseModel):
|
|
27
|
+
data: Optional[List[VirtualNetworkAssignment]] = None
|
|
28
|
+
|
|
29
|
+
meta: Optional[VirtualNetworkAssignmentsMeta] = None
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .virtual_network import VirtualNetwork, VirtualNetworkTypedDict
|
|
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 VirtualNetworksMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VirtualNetworksMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class VirtualNetworksTypedDict(TypedDict):
|
|
19
|
+
data: NotRequired[List[VirtualNetworkTypedDict]]
|
|
20
|
+
meta: NotRequired[VirtualNetworksMetaTypedDict]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class VirtualNetworks(BaseModel):
|
|
24
|
+
data: Optional[List[VirtualNetwork]] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[VirtualNetworksMeta] = None
|