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,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 latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetVirtualNetworksRequestTypedDict(TypedDict):
|
|
12
|
+
filter_location: NotRequired[str]
|
|
13
|
+
r"""The location slug to filter by"""
|
|
14
|
+
filter_project: NotRequired[str]
|
|
15
|
+
r"""The project id or slug to filter by"""
|
|
16
|
+
filter_tags: NotRequired[str]
|
|
17
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return ssh keys with `tag_1` AND `tag_2`"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetVirtualNetworksRequest(BaseModel):
|
|
21
|
+
filter_location: Annotated[
|
|
22
|
+
Optional[str],
|
|
23
|
+
pydantic.Field(alias="filter[location]"),
|
|
24
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
25
|
+
] = None
|
|
26
|
+
r"""The location slug to filter by"""
|
|
27
|
+
|
|
28
|
+
filter_project: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
pydantic.Field(alias="filter[project]"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
] = None
|
|
33
|
+
r"""The project id or slug to filter by"""
|
|
34
|
+
|
|
35
|
+
filter_tags: Annotated[
|
|
36
|
+
Optional[str],
|
|
37
|
+
pydantic.Field(alias="filter[tags]"),
|
|
38
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
39
|
+
] = None
|
|
40
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return ssh keys with `tag_1` AND `tag_2`"""
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .vpn_session_data_with_password import (
|
|
5
|
+
VpnSessionDataWithPassword,
|
|
6
|
+
VpnSessionDataWithPasswordTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from enum import Enum
|
|
9
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
10
|
+
from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
11
|
+
import pydantic
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class FilterLocation(str, Enum):
|
|
17
|
+
ASH = "ASH"
|
|
18
|
+
BGT = "BGT"
|
|
19
|
+
BUE = "BUE"
|
|
20
|
+
CHI = "CHI"
|
|
21
|
+
DAL = "DAL"
|
|
22
|
+
FRA = "FRA"
|
|
23
|
+
LAX = "LAX"
|
|
24
|
+
LON = "LON"
|
|
25
|
+
MEX = "MEX"
|
|
26
|
+
MEX2 = "MEX2"
|
|
27
|
+
MIA = "MIA"
|
|
28
|
+
MIA2 = "MIA2"
|
|
29
|
+
NYC = "NYC"
|
|
30
|
+
SAN = "SAN"
|
|
31
|
+
SAO = "SAO"
|
|
32
|
+
SAO2 = "SAO2"
|
|
33
|
+
SYD = "SYD"
|
|
34
|
+
TYO = "TYO"
|
|
35
|
+
TYO2 = "TYO2"
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class GetVpnSessionsRequestTypedDict(TypedDict):
|
|
39
|
+
filter_location: NotRequired[FilterLocation]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class GetVpnSessionsRequest(BaseModel):
|
|
43
|
+
filter_location: Annotated[
|
|
44
|
+
Optional[FilterLocation],
|
|
45
|
+
pydantic.Field(alias="filter[location]"),
|
|
46
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
47
|
+
] = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class GetVpnSessionsMetaTypedDict(TypedDict):
|
|
51
|
+
pass
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class GetVpnSessionsMeta(BaseModel):
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class GetVpnSessionsResponseBodyTypedDict(TypedDict):
|
|
59
|
+
r"""Success"""
|
|
60
|
+
|
|
61
|
+
data: NotRequired[List[VpnSessionDataWithPasswordTypedDict]]
|
|
62
|
+
meta: NotRequired[GetVpnSessionsMetaTypedDict]
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class GetVpnSessionsResponseBody(BaseModel):
|
|
66
|
+
r"""Success"""
|
|
67
|
+
|
|
68
|
+
data: Optional[List[VpnSessionDataWithPassword]] = None
|
|
69
|
+
|
|
70
|
+
meta: Optional[GetVpnSessionsMeta] = 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 latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class IndexVirtualMachineRequestTypedDict(TypedDict):
|
|
12
|
+
filter_project: NotRequired[str]
|
|
13
|
+
r"""The project ID or Slug to filter by"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class IndexVirtualMachineRequest(BaseModel):
|
|
17
|
+
filter_project: Annotated[
|
|
18
|
+
Optional[str],
|
|
19
|
+
pydantic.Field(alias="filter[project]"),
|
|
20
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
21
|
+
] = None
|
|
22
|
+
r"""The project ID or Slug to filter by"""
|
|
@@ -0,0 +1,122 @@
|
|
|
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 Family(str, Enum):
|
|
11
|
+
I_PV4 = "IPv4"
|
|
12
|
+
I_PV6 = "IPv6"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class IPAddressType(str, Enum):
|
|
16
|
+
PUBLIC = "Public"
|
|
17
|
+
PRIVATE = "Private"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class IPAddressProjectTypedDict(TypedDict):
|
|
21
|
+
id: NotRequired[str]
|
|
22
|
+
name: NotRequired[str]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class IPAddressProject(BaseModel):
|
|
26
|
+
id: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
name: Optional[str] = None
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class LocationTypedDict(TypedDict):
|
|
32
|
+
id: NotRequired[str]
|
|
33
|
+
name: NotRequired[str]
|
|
34
|
+
slug: NotRequired[str]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Location(BaseModel):
|
|
38
|
+
id: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
name: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
slug: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class IPAddressRegionTypedDict(TypedDict):
|
|
46
|
+
id: NotRequired[str]
|
|
47
|
+
name: NotRequired[str]
|
|
48
|
+
location: NotRequired[LocationTypedDict]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class IPAddressRegion(BaseModel):
|
|
52
|
+
id: Optional[str] = None
|
|
53
|
+
|
|
54
|
+
name: Optional[str] = None
|
|
55
|
+
|
|
56
|
+
location: Optional[Location] = None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class AssignmentTypedDict(TypedDict):
|
|
60
|
+
server_id: NotRequired[str]
|
|
61
|
+
hostname: NotRequired[str]
|
|
62
|
+
assigned_at: NotRequired[str]
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class Assignment(BaseModel):
|
|
66
|
+
server_id: Optional[str] = None
|
|
67
|
+
|
|
68
|
+
hostname: Optional[str] = None
|
|
69
|
+
|
|
70
|
+
assigned_at: Optional[str] = None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class IPAddressAttributesTypedDict(TypedDict):
|
|
74
|
+
address: NotRequired[str]
|
|
75
|
+
cidr: NotRequired[str]
|
|
76
|
+
family: NotRequired[Family]
|
|
77
|
+
gateway: NotRequired[str]
|
|
78
|
+
netmask: NotRequired[str]
|
|
79
|
+
type: NotRequired[IPAddressType]
|
|
80
|
+
public: NotRequired[bool]
|
|
81
|
+
management: NotRequired[bool]
|
|
82
|
+
project: NotRequired[IPAddressProjectTypedDict]
|
|
83
|
+
region: NotRequired[IPAddressRegionTypedDict]
|
|
84
|
+
available: NotRequired[bool]
|
|
85
|
+
assignment: NotRequired[AssignmentTypedDict]
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class IPAddressAttributes(BaseModel):
|
|
89
|
+
address: Optional[str] = None
|
|
90
|
+
|
|
91
|
+
cidr: Optional[str] = None
|
|
92
|
+
|
|
93
|
+
family: Optional[Family] = None
|
|
94
|
+
|
|
95
|
+
gateway: Optional[str] = None
|
|
96
|
+
|
|
97
|
+
netmask: Optional[str] = None
|
|
98
|
+
|
|
99
|
+
type: Optional[IPAddressType] = None
|
|
100
|
+
|
|
101
|
+
public: Optional[bool] = None
|
|
102
|
+
|
|
103
|
+
management: Optional[bool] = None
|
|
104
|
+
|
|
105
|
+
project: Optional[IPAddressProject] = None
|
|
106
|
+
|
|
107
|
+
region: Optional[IPAddressRegion] = None
|
|
108
|
+
|
|
109
|
+
available: Optional[bool] = None
|
|
110
|
+
|
|
111
|
+
assignment: Optional[Assignment] = None
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class IPAddressTypedDict(TypedDict):
|
|
115
|
+
id: NotRequired[str]
|
|
116
|
+
attributes: NotRequired[IPAddressAttributesTypedDict]
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class IPAddress(BaseModel):
|
|
120
|
+
id: Optional[str] = None
|
|
121
|
+
|
|
122
|
+
attributes: Optional[IPAddressAttributes] = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .ip_address import IPAddress, IPAddressTypedDict
|
|
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 IPAddressesTypedDict(TypedDict):
|
|
11
|
+
data: NotRequired[List[IPAddressTypedDict]]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IPAddresses(BaseModel):
|
|
15
|
+
data: Optional[List[IPAddress]] = None
|
|
@@ -0,0 +1,53 @@
|
|
|
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 IpmiSessionType(str, Enum):
|
|
11
|
+
IPMI_SESSIONS = "ipmi_sessions"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IpmiSessionAttributesTypedDict(TypedDict):
|
|
15
|
+
ipmi_address: NotRequired[str]
|
|
16
|
+
r"""The IPMI IP Address"""
|
|
17
|
+
ipmi_username: NotRequired[str]
|
|
18
|
+
r"""The IPMI username"""
|
|
19
|
+
ipmi_password: NotRequired[str]
|
|
20
|
+
r"""The IPMI password"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class IpmiSessionAttributes(BaseModel):
|
|
24
|
+
ipmi_address: Optional[str] = None
|
|
25
|
+
r"""The IPMI IP Address"""
|
|
26
|
+
|
|
27
|
+
ipmi_username: Optional[str] = None
|
|
28
|
+
r"""The IPMI username"""
|
|
29
|
+
|
|
30
|
+
ipmi_password: Optional[str] = None
|
|
31
|
+
r"""The IPMI password"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class IpmiSessionDataTypedDict(TypedDict):
|
|
35
|
+
id: NotRequired[str]
|
|
36
|
+
type: NotRequired[IpmiSessionType]
|
|
37
|
+
attributes: NotRequired[IpmiSessionAttributesTypedDict]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class IpmiSessionData(BaseModel):
|
|
41
|
+
id: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
type: Optional[IpmiSessionType] = None
|
|
44
|
+
|
|
45
|
+
attributes: Optional[IpmiSessionAttributes] = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class IpmiSessionTypedDict(TypedDict):
|
|
49
|
+
data: NotRequired[IpmiSessionDataTypedDict]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class IpmiSession(BaseModel):
|
|
53
|
+
data: Optional[IpmiSessionData] = None
|
|
@@ -0,0 +1,20 @@
|
|
|
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, QueryParamMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListFirewallsRequestTypedDict(TypedDict):
|
|
12
|
+
filter_project: NotRequired[str]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ListFirewallsRequest(BaseModel):
|
|
16
|
+
filter_project: Annotated[
|
|
17
|
+
Optional[str],
|
|
18
|
+
pydantic.Field(alias="filter[project]"),
|
|
19
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
20
|
+
] = None
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MembershipRole(str, Enum):
|
|
12
|
+
OWNER = "owner"
|
|
13
|
+
ADMINISTRATOR = "administrator"
|
|
14
|
+
COLLABORATOR = "collaborator"
|
|
15
|
+
BILLING = "billing"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class MembershipAttributesTypedDict(TypedDict):
|
|
19
|
+
first_name: NotRequired[str]
|
|
20
|
+
last_name: NotRequired[str]
|
|
21
|
+
email: NotRequired[str]
|
|
22
|
+
role: NotRequired[MembershipRole]
|
|
23
|
+
mfa_enabled: NotRequired[bool]
|
|
24
|
+
created_at: NotRequired[datetime]
|
|
25
|
+
updated_at: NotRequired[datetime]
|
|
26
|
+
last_login_at: NotRequired[datetime]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class MembershipAttributes(BaseModel):
|
|
30
|
+
first_name: Optional[str] = None
|
|
31
|
+
|
|
32
|
+
last_name: Optional[str] = None
|
|
33
|
+
|
|
34
|
+
email: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
role: Optional[MembershipRole] = None
|
|
37
|
+
|
|
38
|
+
mfa_enabled: Optional[bool] = None
|
|
39
|
+
|
|
40
|
+
created_at: Optional[datetime] = None
|
|
41
|
+
|
|
42
|
+
updated_at: Optional[datetime] = None
|
|
43
|
+
|
|
44
|
+
last_login_at: Optional[datetime] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class MembershipDataTypedDict(TypedDict):
|
|
48
|
+
id: NotRequired[str]
|
|
49
|
+
attributes: NotRequired[MembershipAttributesTypedDict]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class MembershipData(BaseModel):
|
|
53
|
+
id: Optional[str] = None
|
|
54
|
+
|
|
55
|
+
attributes: Optional[MembershipAttributes] = None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class MembershipTypedDict(TypedDict):
|
|
59
|
+
data: NotRequired[MembershipDataTypedDict]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class Membership(BaseModel):
|
|
63
|
+
data: Optional[MembershipData] = None
|
|
@@ -0,0 +1,57 @@
|
|
|
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 List, Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class FeaturesTypedDict(TypedDict):
|
|
10
|
+
raid: NotRequired[bool]
|
|
11
|
+
ssh_keys: NotRequired[bool]
|
|
12
|
+
user_data: NotRequired[bool]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Features(BaseModel):
|
|
16
|
+
raid: Optional[bool] = None
|
|
17
|
+
|
|
18
|
+
ssh_keys: Optional[bool] = None
|
|
19
|
+
|
|
20
|
+
user_data: Optional[bool] = None
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class OperatingSystemsAttributesTypedDict(TypedDict):
|
|
24
|
+
features: NotRequired[FeaturesTypedDict]
|
|
25
|
+
name: NotRequired[str]
|
|
26
|
+
slug: NotRequired[str]
|
|
27
|
+
distro: NotRequired[str]
|
|
28
|
+
user: NotRequired[str]
|
|
29
|
+
version: NotRequired[str]
|
|
30
|
+
provisionable_on: NotRequired[List[str]]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class OperatingSystemsAttributes(BaseModel):
|
|
34
|
+
features: Optional[Features] = None
|
|
35
|
+
|
|
36
|
+
name: Optional[str] = None
|
|
37
|
+
|
|
38
|
+
slug: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
distro: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
user: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
version: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
provisionable_on: Optional[List[str]] = None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class OperatingSystemsTypedDict(TypedDict):
|
|
50
|
+
id: NotRequired[str]
|
|
51
|
+
attributes: NotRequired[OperatingSystemsAttributesTypedDict]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class OperatingSystems(BaseModel):
|
|
55
|
+
id: Optional[str] = None
|
|
56
|
+
|
|
57
|
+
attributes: Optional[OperatingSystemsAttributes] = None
|
|
@@ -0,0 +1,88 @@
|
|
|
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 OutOfBandConnectionSSHKeyTypedDict(TypedDict):
|
|
10
|
+
id: NotRequired[str]
|
|
11
|
+
description: NotRequired[str]
|
|
12
|
+
fingerprint: NotRequired[str]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class OutOfBandConnectionSSHKey(BaseModel):
|
|
16
|
+
id: Optional[str] = None
|
|
17
|
+
|
|
18
|
+
description: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
fingerprint: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CredentialsTypedDict(TypedDict):
|
|
24
|
+
r"""credentials are valid only when the server is deployed with ssh keys"""
|
|
25
|
+
|
|
26
|
+
user: NotRequired[str]
|
|
27
|
+
password: NotRequired[str]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Credentials(BaseModel):
|
|
31
|
+
r"""credentials are valid only when the server is deployed with ssh keys"""
|
|
32
|
+
|
|
33
|
+
user: Optional[str] = None
|
|
34
|
+
|
|
35
|
+
password: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class OutOfBandConnectionAttributesTypedDict(TypedDict):
|
|
39
|
+
ssh_key: NotRequired[OutOfBandConnectionSSHKeyTypedDict]
|
|
40
|
+
created_at: NotRequired[str]
|
|
41
|
+
username: NotRequired[str]
|
|
42
|
+
credentials: NotRequired[CredentialsTypedDict]
|
|
43
|
+
r"""credentials are valid only when the server is deployed with ssh keys"""
|
|
44
|
+
port: NotRequired[str]
|
|
45
|
+
access_ip: NotRequired[str]
|
|
46
|
+
server_id: NotRequired[str]
|
|
47
|
+
status: NotRequired[str]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class OutOfBandConnectionAttributes(BaseModel):
|
|
51
|
+
ssh_key: Optional[OutOfBandConnectionSSHKey] = None
|
|
52
|
+
|
|
53
|
+
created_at: Optional[str] = None
|
|
54
|
+
|
|
55
|
+
username: Optional[str] = None
|
|
56
|
+
|
|
57
|
+
credentials: Optional[Credentials] = None
|
|
58
|
+
r"""credentials are valid only when the server is deployed with ssh keys"""
|
|
59
|
+
|
|
60
|
+
port: Optional[str] = None
|
|
61
|
+
|
|
62
|
+
access_ip: Optional[str] = None
|
|
63
|
+
|
|
64
|
+
server_id: Optional[str] = None
|
|
65
|
+
|
|
66
|
+
status: Optional[str] = None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class OutOfBandConnectionDataTypedDict(TypedDict):
|
|
70
|
+
id: NotRequired[str]
|
|
71
|
+
type: NotRequired[str]
|
|
72
|
+
attributes: NotRequired[OutOfBandConnectionAttributesTypedDict]
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class OutOfBandConnectionData(BaseModel):
|
|
76
|
+
id: Optional[str] = None
|
|
77
|
+
|
|
78
|
+
type: Optional[str] = None
|
|
79
|
+
|
|
80
|
+
attributes: Optional[OutOfBandConnectionAttributes] = None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class OutOfBandConnectionTypedDict(TypedDict):
|
|
84
|
+
data: NotRequired[OutOfBandConnectionDataTypedDict]
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class OutOfBandConnection(BaseModel):
|
|
88
|
+
data: Optional[OutOfBandConnectionData] = None
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .team import Team, TeamTypedDict
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
7
|
+
from latitudesh_python_sdk.utils import (
|
|
8
|
+
FieldMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
RequestMetadata,
|
|
11
|
+
)
|
|
12
|
+
from typing import Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class PatchCurrentTeamTeamsType(str, Enum):
|
|
17
|
+
TEAMS = "teams"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class PatchCurrentTeamTeamsCurrency(str, Enum):
|
|
21
|
+
USD = "USD"
|
|
22
|
+
BRL = "BRL"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class PatchCurrentTeamTeamsAttributesTypedDict(TypedDict):
|
|
26
|
+
address: NotRequired[str]
|
|
27
|
+
name: NotRequired[str]
|
|
28
|
+
currency: NotRequired[PatchCurrentTeamTeamsCurrency]
|
|
29
|
+
referred_code: NotRequired[str]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class PatchCurrentTeamTeamsAttributes(BaseModel):
|
|
33
|
+
address: Optional[str] = None
|
|
34
|
+
|
|
35
|
+
name: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
currency: Optional[PatchCurrentTeamTeamsCurrency] = (
|
|
38
|
+
PatchCurrentTeamTeamsCurrency.USD
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
referred_code: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class PatchCurrentTeamTeamsDataTypedDict(TypedDict):
|
|
45
|
+
id: str
|
|
46
|
+
type: PatchCurrentTeamTeamsType
|
|
47
|
+
attributes: NotRequired[PatchCurrentTeamTeamsAttributesTypedDict]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class PatchCurrentTeamTeamsData(BaseModel):
|
|
51
|
+
id: str
|
|
52
|
+
|
|
53
|
+
type: PatchCurrentTeamTeamsType
|
|
54
|
+
|
|
55
|
+
attributes: Optional[PatchCurrentTeamTeamsAttributes] = None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class PatchCurrentTeamTeamsRequestBodyTypedDict(TypedDict):
|
|
59
|
+
data: PatchCurrentTeamTeamsDataTypedDict
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class PatchCurrentTeamTeamsRequestBody(BaseModel):
|
|
63
|
+
data: PatchCurrentTeamTeamsData
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class PatchCurrentTeamRequestTypedDict(TypedDict):
|
|
67
|
+
team_id: str
|
|
68
|
+
request_body: PatchCurrentTeamTeamsRequestBodyTypedDict
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class PatchCurrentTeamRequest(BaseModel):
|
|
72
|
+
team_id: Annotated[
|
|
73
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
request_body: Annotated[
|
|
77
|
+
PatchCurrentTeamTeamsRequestBody,
|
|
78
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class PatchCurrentTeamResponseBodyTypedDict(TypedDict):
|
|
83
|
+
r"""Success"""
|
|
84
|
+
|
|
85
|
+
data: NotRequired[TeamTypedDict]
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class PatchCurrentTeamResponseBody(BaseModel):
|
|
89
|
+
r"""Success"""
|
|
90
|
+
|
|
91
|
+
data: Optional[Team] = None
|