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,67 @@
|
|
|
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 typing import Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PostTeamTeamsType(str, Enum):
|
|
12
|
+
TEAMS = "teams"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PostTeamTeamsCurrency(str, Enum):
|
|
16
|
+
USD = "USD"
|
|
17
|
+
BRL = "BRL"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class PostTeamTeamsAttributesTypedDict(TypedDict):
|
|
21
|
+
name: str
|
|
22
|
+
currency: PostTeamTeamsCurrency
|
|
23
|
+
address: NotRequired[str]
|
|
24
|
+
referred_code: NotRequired[str]
|
|
25
|
+
r"""Supported only for first team creation"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class PostTeamTeamsAttributes(BaseModel):
|
|
29
|
+
name: str
|
|
30
|
+
|
|
31
|
+
currency: PostTeamTeamsCurrency
|
|
32
|
+
|
|
33
|
+
address: Optional[str] = None
|
|
34
|
+
|
|
35
|
+
referred_code: Optional[str] = None
|
|
36
|
+
r"""Supported only for first team creation"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class PostTeamTeamsDataTypedDict(TypedDict):
|
|
40
|
+
type: PostTeamTeamsType
|
|
41
|
+
attributes: NotRequired[PostTeamTeamsAttributesTypedDict]
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class PostTeamTeamsData(BaseModel):
|
|
45
|
+
type: PostTeamTeamsType
|
|
46
|
+
|
|
47
|
+
attributes: Optional[PostTeamTeamsAttributes] = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class PostTeamTeamsRequestBodyTypedDict(TypedDict):
|
|
51
|
+
data: PostTeamTeamsDataTypedDict
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class PostTeamTeamsRequestBody(BaseModel):
|
|
55
|
+
data: PostTeamTeamsData
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class PostTeamResponseBodyTypedDict(TypedDict):
|
|
59
|
+
r"""Created"""
|
|
60
|
+
|
|
61
|
+
data: NotRequired[TeamTypedDict]
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class PostTeamResponseBody(BaseModel):
|
|
65
|
+
r"""Created"""
|
|
66
|
+
|
|
67
|
+
data: Optional[Team] = None
|
|
@@ -0,0 +1,63 @@
|
|
|
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 PostVpnSessionVpnSessionsType(str, Enum):
|
|
11
|
+
VPN_SESSIONS = "vpn_sessions"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class PostVpnSessionVpnSessionsSite(str, Enum):
|
|
15
|
+
ASH = "ASH"
|
|
16
|
+
BGT = "BGT"
|
|
17
|
+
BUE = "BUE"
|
|
18
|
+
CHI = "CHI"
|
|
19
|
+
DAL = "DAL"
|
|
20
|
+
FRA = "FRA"
|
|
21
|
+
LAX = "LAX"
|
|
22
|
+
LON = "LON"
|
|
23
|
+
MEX = "MEX"
|
|
24
|
+
MEX2 = "MEX2"
|
|
25
|
+
MIA = "MIA"
|
|
26
|
+
MIA2 = "MIA2"
|
|
27
|
+
NYC = "NYC"
|
|
28
|
+
SAN = "SAN"
|
|
29
|
+
SAO = "SAO"
|
|
30
|
+
SAO2 = "SAO2"
|
|
31
|
+
SYD = "SYD"
|
|
32
|
+
TYO = "TYO"
|
|
33
|
+
TYO2 = "TYO2"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class PostVpnSessionVpnSessionsAttributesTypedDict(TypedDict):
|
|
37
|
+
site: NotRequired[PostVpnSessionVpnSessionsSite]
|
|
38
|
+
server_id: NotRequired[str]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class PostVpnSessionVpnSessionsAttributes(BaseModel):
|
|
42
|
+
site: Optional[PostVpnSessionVpnSessionsSite] = None
|
|
43
|
+
|
|
44
|
+
server_id: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class PostVpnSessionVpnSessionsDataTypedDict(TypedDict):
|
|
48
|
+
type: NotRequired[PostVpnSessionVpnSessionsType]
|
|
49
|
+
attributes: NotRequired[PostVpnSessionVpnSessionsAttributesTypedDict]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class PostVpnSessionVpnSessionsData(BaseModel):
|
|
53
|
+
type: Optional[PostVpnSessionVpnSessionsType] = None
|
|
54
|
+
|
|
55
|
+
attributes: Optional[PostVpnSessionVpnSessionsAttributes] = None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class PostVpnSessionVpnSessionsRequestBodyTypedDict(TypedDict):
|
|
59
|
+
data: NotRequired[PostVpnSessionVpnSessionsDataTypedDict]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class PostVpnSessionVpnSessionsRequestBody(BaseModel):
|
|
63
|
+
data: Optional[PostVpnSessionVpnSessionsData] = None
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .team_include import TeamInclude, TeamIncludeTypedDict
|
|
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 BillingType(str, Enum):
|
|
12
|
+
YEARLY = "Yearly"
|
|
13
|
+
MONTHLY = "Monthly"
|
|
14
|
+
HOURLY = "Hourly"
|
|
15
|
+
NORMAL = "Normal"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class BillingMethod(str, Enum):
|
|
19
|
+
NORMAL = "Normal"
|
|
20
|
+
NINETY_FIVETH_PERCENTILE = "95th percentile"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Environment(str, Enum):
|
|
24
|
+
DEVELOPMENT = "Development"
|
|
25
|
+
STAGING = "Staging"
|
|
26
|
+
PRODUCTION = "Production"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ProjectStatsTypedDict(TypedDict):
|
|
30
|
+
ip_addresses: NotRequired[float]
|
|
31
|
+
r"""The number of IP addresses assigned to the project"""
|
|
32
|
+
prefixes: NotRequired[float]
|
|
33
|
+
r"""The IP address prefixes in the project"""
|
|
34
|
+
servers: NotRequired[float]
|
|
35
|
+
r"""The number of servers assigned to the project"""
|
|
36
|
+
containers: NotRequired[float]
|
|
37
|
+
r"""The number of containers assigned to the project"""
|
|
38
|
+
vlans: NotRequired[float]
|
|
39
|
+
r"""The number of VLANs assigned to the project"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class ProjectStats(BaseModel):
|
|
43
|
+
ip_addresses: Optional[float] = None
|
|
44
|
+
r"""The number of IP addresses assigned to the project"""
|
|
45
|
+
|
|
46
|
+
prefixes: Optional[float] = None
|
|
47
|
+
r"""The IP address prefixes in the project"""
|
|
48
|
+
|
|
49
|
+
servers: Optional[float] = None
|
|
50
|
+
r"""The number of servers assigned to the project"""
|
|
51
|
+
|
|
52
|
+
containers: Optional[float] = None
|
|
53
|
+
r"""The number of containers assigned to the project"""
|
|
54
|
+
|
|
55
|
+
vlans: Optional[float] = None
|
|
56
|
+
r"""The number of VLANs assigned to the project"""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class ProjectBillingTypedDict(TypedDict):
|
|
60
|
+
subscription_id: NotRequired[str]
|
|
61
|
+
type: NotRequired[str]
|
|
62
|
+
method: NotRequired[str]
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class ProjectBilling(BaseModel):
|
|
66
|
+
subscription_id: Optional[str] = None
|
|
67
|
+
|
|
68
|
+
type: Optional[str] = None
|
|
69
|
+
|
|
70
|
+
method: Optional[str] = None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class ProjectAttributesTypedDict(TypedDict):
|
|
74
|
+
name: NotRequired[str]
|
|
75
|
+
r"""The project name"""
|
|
76
|
+
slug: NotRequired[str]
|
|
77
|
+
r"""A unique project identifier"""
|
|
78
|
+
description: NotRequired[str]
|
|
79
|
+
r"""The project description"""
|
|
80
|
+
billing_type: NotRequired[BillingType]
|
|
81
|
+
billing_method: NotRequired[BillingMethod]
|
|
82
|
+
cost: NotRequired[str]
|
|
83
|
+
environment: NotRequired[Environment]
|
|
84
|
+
stats: NotRequired[ProjectStatsTypedDict]
|
|
85
|
+
billing: NotRequired[ProjectBillingTypedDict]
|
|
86
|
+
team: NotRequired[TeamIncludeTypedDict]
|
|
87
|
+
created_at: NotRequired[str]
|
|
88
|
+
updated_at: NotRequired[str]
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class ProjectAttributes(BaseModel):
|
|
92
|
+
name: Optional[str] = None
|
|
93
|
+
r"""The project name"""
|
|
94
|
+
|
|
95
|
+
slug: Optional[str] = None
|
|
96
|
+
r"""A unique project identifier"""
|
|
97
|
+
|
|
98
|
+
description: Optional[str] = None
|
|
99
|
+
r"""The project description"""
|
|
100
|
+
|
|
101
|
+
billing_type: Optional[BillingType] = None
|
|
102
|
+
|
|
103
|
+
billing_method: Optional[BillingMethod] = None
|
|
104
|
+
|
|
105
|
+
cost: Optional[str] = None
|
|
106
|
+
|
|
107
|
+
environment: Optional[Environment] = None
|
|
108
|
+
|
|
109
|
+
stats: Optional[ProjectStats] = None
|
|
110
|
+
|
|
111
|
+
billing: Optional[ProjectBilling] = None
|
|
112
|
+
|
|
113
|
+
team: Optional[TeamInclude] = None
|
|
114
|
+
|
|
115
|
+
created_at: Optional[str] = None
|
|
116
|
+
|
|
117
|
+
updated_at: Optional[str] = None
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class ProjectTypedDict(TypedDict):
|
|
121
|
+
id: NotRequired[str]
|
|
122
|
+
r"""The project ID"""
|
|
123
|
+
attributes: NotRequired[ProjectAttributesTypedDict]
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class Project(BaseModel):
|
|
127
|
+
id: Optional[str] = None
|
|
128
|
+
r"""The project ID"""
|
|
129
|
+
|
|
130
|
+
attributes: Optional[ProjectAttributes] = None
|
|
@@ -0,0 +1,72 @@
|
|
|
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 BillingModelTypedDict(TypedDict):
|
|
10
|
+
subscription_id: NotRequired[str]
|
|
11
|
+
type: NotRequired[str]
|
|
12
|
+
method: NotRequired[str]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class BillingModel(BaseModel):
|
|
16
|
+
subscription_id: Optional[str] = None
|
|
17
|
+
|
|
18
|
+
type: Optional[str] = None
|
|
19
|
+
|
|
20
|
+
method: Optional[str] = None
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class StatsTypedDict(TypedDict):
|
|
24
|
+
ip_addresses: NotRequired[int]
|
|
25
|
+
prefixes: NotRequired[int]
|
|
26
|
+
servers: NotRequired[int]
|
|
27
|
+
vlans: NotRequired[int]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Stats(BaseModel):
|
|
31
|
+
ip_addresses: Optional[int] = None
|
|
32
|
+
|
|
33
|
+
prefixes: Optional[int] = None
|
|
34
|
+
|
|
35
|
+
servers: Optional[int] = None
|
|
36
|
+
|
|
37
|
+
vlans: Optional[int] = None
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class ProjectIncludeTypedDict(TypedDict):
|
|
41
|
+
id: NotRequired[str]
|
|
42
|
+
name: NotRequired[str]
|
|
43
|
+
slug: NotRequired[str]
|
|
44
|
+
description: NotRequired[str]
|
|
45
|
+
billing_type: NotRequired[str]
|
|
46
|
+
billing_method: NotRequired[str]
|
|
47
|
+
bandwidth_alert: NotRequired[bool]
|
|
48
|
+
environment: NotRequired[str]
|
|
49
|
+
billing: NotRequired[BillingModelTypedDict]
|
|
50
|
+
stats: NotRequired[StatsTypedDict]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class ProjectInclude(BaseModel):
|
|
54
|
+
id: Optional[str] = None
|
|
55
|
+
|
|
56
|
+
name: Optional[str] = None
|
|
57
|
+
|
|
58
|
+
slug: Optional[str] = None
|
|
59
|
+
|
|
60
|
+
description: Optional[str] = None
|
|
61
|
+
|
|
62
|
+
billing_type: Optional[str] = None
|
|
63
|
+
|
|
64
|
+
billing_method: Optional[str] = None
|
|
65
|
+
|
|
66
|
+
bandwidth_alert: Optional[bool] = None
|
|
67
|
+
|
|
68
|
+
environment: Optional[str] = None
|
|
69
|
+
|
|
70
|
+
billing: Optional[BillingModel] = None
|
|
71
|
+
|
|
72
|
+
stats: Optional[Stats] = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .project import Project, ProjectTypedDict
|
|
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 ProjectsTypedDict(TypedDict):
|
|
11
|
+
data: NotRequired[List[ProjectTypedDict]]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Projects(BaseModel):
|
|
15
|
+
data: Optional[List[Project]] = None
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .ssh_key_data import SSHKeyData, SSHKeyDataTypedDict
|
|
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 List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class PutProjectSSHKeySSHKeysType(str, Enum):
|
|
17
|
+
SSH_KEYS = "ssh_keys"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class PutProjectSSHKeySSHKeysAttributesTypedDict(TypedDict):
|
|
21
|
+
tags: NotRequired[List[str]]
|
|
22
|
+
name: NotRequired[str]
|
|
23
|
+
r"""Name of the SSH Key"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class PutProjectSSHKeySSHKeysAttributes(BaseModel):
|
|
27
|
+
tags: Optional[List[str]] = None
|
|
28
|
+
|
|
29
|
+
name: Optional[str] = "New SSH Key Name"
|
|
30
|
+
r"""Name of the SSH Key"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class PutProjectSSHKeySSHKeysDataTypedDict(TypedDict):
|
|
34
|
+
type: PutProjectSSHKeySSHKeysType
|
|
35
|
+
id: NotRequired[str]
|
|
36
|
+
attributes: NotRequired[PutProjectSSHKeySSHKeysAttributesTypedDict]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class PutProjectSSHKeySSHKeysData(BaseModel):
|
|
40
|
+
type: PutProjectSSHKeySSHKeysType
|
|
41
|
+
|
|
42
|
+
id: Optional[str] = "ssh_81EVOtR1N4J2Z"
|
|
43
|
+
|
|
44
|
+
attributes: Optional[PutProjectSSHKeySSHKeysAttributes] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class PutProjectSSHKeySSHKeysRequestBodyTypedDict(TypedDict):
|
|
48
|
+
data: PutProjectSSHKeySSHKeysDataTypedDict
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class PutProjectSSHKeySSHKeysRequestBody(BaseModel):
|
|
52
|
+
data: PutProjectSSHKeySSHKeysData
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class PutProjectSSHKeyRequestTypedDict(TypedDict):
|
|
56
|
+
project_id: str
|
|
57
|
+
r"""Project ID or Slug"""
|
|
58
|
+
ssh_key_id: str
|
|
59
|
+
request_body: PutProjectSSHKeySSHKeysRequestBodyTypedDict
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class PutProjectSSHKeyRequest(BaseModel):
|
|
63
|
+
project_id: Annotated[
|
|
64
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
65
|
+
]
|
|
66
|
+
r"""Project ID or Slug"""
|
|
67
|
+
|
|
68
|
+
ssh_key_id: Annotated[
|
|
69
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
request_body: Annotated[
|
|
73
|
+
PutProjectSSHKeySSHKeysRequestBody,
|
|
74
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class PutProjectSSHKeyResponseBodyTypedDict(TypedDict):
|
|
79
|
+
r"""Success"""
|
|
80
|
+
|
|
81
|
+
data: NotRequired[SSHKeyDataTypedDict]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class PutProjectSSHKeyResponseBody(BaseModel):
|
|
85
|
+
r"""Success"""
|
|
86
|
+
|
|
87
|
+
data: Optional[SSHKeyData] = None
|
|
@@ -0,0 +1,76 @@
|
|
|
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 latitudesh_python_sdk.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
RequestMetadata,
|
|
10
|
+
)
|
|
11
|
+
from typing import Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PutProjectUserDataUserDataType(str, Enum):
|
|
16
|
+
USER_DATA = "user_data"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class PutProjectUserDataUserDataAttributesTypedDict(TypedDict):
|
|
20
|
+
description: NotRequired[str]
|
|
21
|
+
r"""description dummy user data"""
|
|
22
|
+
content: NotRequired[str]
|
|
23
|
+
r"""encoded content of the User Data"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class PutProjectUserDataUserDataAttributes(BaseModel):
|
|
27
|
+
description: Optional[str] = None
|
|
28
|
+
r"""description dummy user data"""
|
|
29
|
+
|
|
30
|
+
content: Optional[str] = None
|
|
31
|
+
r"""encoded content of the User Data"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class PutProjectUserDataUserDataDataTypedDict(TypedDict):
|
|
35
|
+
id: str
|
|
36
|
+
type: PutProjectUserDataUserDataType
|
|
37
|
+
attributes: NotRequired[PutProjectUserDataUserDataAttributesTypedDict]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class PutProjectUserDataUserDataData(BaseModel):
|
|
41
|
+
id: str
|
|
42
|
+
|
|
43
|
+
type: PutProjectUserDataUserDataType
|
|
44
|
+
|
|
45
|
+
attributes: Optional[PutProjectUserDataUserDataAttributes] = None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class PutProjectUserDataUserDataRequestBodyTypedDict(TypedDict):
|
|
49
|
+
data: PutProjectUserDataUserDataDataTypedDict
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class PutProjectUserDataUserDataRequestBody(BaseModel):
|
|
53
|
+
data: PutProjectUserDataUserDataData
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class PutProjectUserDataRequestTypedDict(TypedDict):
|
|
57
|
+
project_id: str
|
|
58
|
+
r"""Project ID or Slug"""
|
|
59
|
+
user_data_id: str
|
|
60
|
+
request_body: NotRequired[PutProjectUserDataUserDataRequestBodyTypedDict]
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class PutProjectUserDataRequest(BaseModel):
|
|
64
|
+
project_id: Annotated[
|
|
65
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
66
|
+
]
|
|
67
|
+
r"""Project ID or Slug"""
|
|
68
|
+
|
|
69
|
+
user_data_id: Annotated[
|
|
70
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
request_body: Annotated[
|
|
74
|
+
Optional[PutProjectUserDataUserDataRequestBody],
|
|
75
|
+
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
|
76
|
+
] = 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 PutVpnSessionRequestTypedDict(TypedDict):
|
|
10
|
+
vpn_session_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PutVpnSessionRequest(BaseModel):
|
|
14
|
+
vpn_session_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,50 @@
|
|
|
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 RegionCountryTypedDict(TypedDict):
|
|
10
|
+
slug: NotRequired[str]
|
|
11
|
+
name: NotRequired[str]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class RegionCountry(BaseModel):
|
|
15
|
+
slug: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class RegionAttributesTypedDict(TypedDict):
|
|
21
|
+
slug: NotRequired[str]
|
|
22
|
+
name: NotRequired[str]
|
|
23
|
+
country: NotRequired[RegionCountryTypedDict]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RegionAttributes(BaseModel):
|
|
27
|
+
slug: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
name: Optional[str] = None
|
|
30
|
+
|
|
31
|
+
country: Optional[RegionCountry] = None
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class RegionDataTypedDict(TypedDict):
|
|
35
|
+
id: NotRequired[str]
|
|
36
|
+
attributes: NotRequired[RegionAttributesTypedDict]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class RegionData(BaseModel):
|
|
40
|
+
id: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
attributes: Optional[RegionAttributes] = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class RegionTypedDict(TypedDict):
|
|
46
|
+
data: NotRequired[RegionDataTypedDict]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Region(BaseModel):
|
|
50
|
+
data: Optional[RegionData] = 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 SiteTypedDict(TypedDict):
|
|
10
|
+
id: NotRequired[str]
|
|
11
|
+
name: NotRequired[str]
|
|
12
|
+
slug: NotRequired[str]
|
|
13
|
+
facility: NotRequired[str]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Site(BaseModel):
|
|
17
|
+
id: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
name: Optional[str] = None
|
|
20
|
+
|
|
21
|
+
slug: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
facility: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RegionResourceDataTypedDict(TypedDict):
|
|
27
|
+
city: NotRequired[str]
|
|
28
|
+
country: NotRequired[str]
|
|
29
|
+
site: NotRequired[SiteTypedDict]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class RegionResourceData(BaseModel):
|
|
33
|
+
city: Optional[str] = None
|
|
34
|
+
|
|
35
|
+
country: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
site: Optional[Site] = None
|
|
@@ -0,0 +1,50 @@
|
|
|
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 CountryTypedDict(TypedDict):
|
|
10
|
+
slug: NotRequired[str]
|
|
11
|
+
name: NotRequired[str]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Country(BaseModel):
|
|
15
|
+
slug: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
name: Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class RegionsAttributesTypedDict(TypedDict):
|
|
21
|
+
slug: NotRequired[str]
|
|
22
|
+
name: NotRequired[str]
|
|
23
|
+
country: NotRequired[CountryTypedDict]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RegionsAttributes(BaseModel):
|
|
27
|
+
slug: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
name: Optional[str] = None
|
|
30
|
+
|
|
31
|
+
country: Optional[Country] = None
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class RegionsDataTypedDict(TypedDict):
|
|
35
|
+
id: NotRequired[str]
|
|
36
|
+
attributes: NotRequired[RegionsAttributesTypedDict]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class RegionsData(BaseModel):
|
|
40
|
+
id: Optional[str] = None
|
|
41
|
+
|
|
42
|
+
attributes: Optional[RegionsAttributes] = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class RegionsTypedDict(TypedDict):
|
|
46
|
+
data: NotRequired[List[RegionsDataTypedDict]]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Regions(BaseModel):
|
|
50
|
+
data: Optional[List[RegionsData]] = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .role_data import RoleData, RoleDataTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RoleTypedDict(TypedDict):
|
|
11
|
+
data: NotRequired[RoleDataTypedDict]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Role(BaseModel):
|
|
15
|
+
data: Optional[RoleData] = None
|