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,38 @@
|
|
|
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 (
|
|
6
|
+
FieldMetadata,
|
|
7
|
+
PathParamMetadata,
|
|
8
|
+
QueryParamMetadata,
|
|
9
|
+
)
|
|
10
|
+
import pydantic
|
|
11
|
+
from typing import Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetProjectUserDataRequestTypedDict(TypedDict):
|
|
16
|
+
project_id: str
|
|
17
|
+
r"""Project ID or Slug"""
|
|
18
|
+
user_data_id: str
|
|
19
|
+
extra_fields_user_data: NotRequired[str]
|
|
20
|
+
r"""The `decoded_content` is provided as an extra attribute that shows content in decoded form."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetProjectUserDataRequest(BaseModel):
|
|
24
|
+
project_id: Annotated[
|
|
25
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
26
|
+
]
|
|
27
|
+
r"""Project ID or Slug"""
|
|
28
|
+
|
|
29
|
+
user_data_id: Annotated[
|
|
30
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
extra_fields_user_data: Annotated[
|
|
34
|
+
Optional[str],
|
|
35
|
+
pydantic.Field(alias="extra_fields[user_data]"),
|
|
36
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
37
|
+
] = "decoded_content"
|
|
38
|
+
r"""The `decoded_content` is provided as an extra attribute that shows content in decoded form."""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .user_data import UserData, UserDataTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from latitudesh_python_sdk.utils import (
|
|
7
|
+
FieldMetadata,
|
|
8
|
+
PathParamMetadata,
|
|
9
|
+
QueryParamMetadata,
|
|
10
|
+
)
|
|
11
|
+
import pydantic
|
|
12
|
+
from typing import List, Optional
|
|
13
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetProjectUsersDataRequestTypedDict(TypedDict):
|
|
17
|
+
project_id: str
|
|
18
|
+
r"""Project ID or Slug"""
|
|
19
|
+
extra_fields_user_data: NotRequired[str]
|
|
20
|
+
r"""The `decoded_content` is provided as an extra attribute that shows content in decoded form."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetProjectUsersDataRequest(BaseModel):
|
|
24
|
+
project_id: Annotated[
|
|
25
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
26
|
+
]
|
|
27
|
+
r"""Project ID or Slug"""
|
|
28
|
+
|
|
29
|
+
extra_fields_user_data: Annotated[
|
|
30
|
+
Optional[str],
|
|
31
|
+
pydantic.Field(alias="extra_fields[user_data]"),
|
|
32
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
33
|
+
] = "decoded_content"
|
|
34
|
+
r"""The `decoded_content` is provided as an extra attribute that shows content in decoded form."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class GetProjectUsersDataResponseBodyTypedDict(TypedDict):
|
|
38
|
+
r"""Success"""
|
|
39
|
+
|
|
40
|
+
data: NotRequired[List[UserDataTypedDict]]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class GetProjectUsersDataResponseBody(BaseModel):
|
|
44
|
+
r"""Success"""
|
|
45
|
+
|
|
46
|
+
data: Optional[List[UserData]] = None
|
|
@@ -0,0 +1,76 @@
|
|
|
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 GetProjectsRequestTypedDict(TypedDict):
|
|
12
|
+
filter_name: NotRequired[str]
|
|
13
|
+
r"""The project name to filter by"""
|
|
14
|
+
filter_slug: NotRequired[str]
|
|
15
|
+
r"""The project slug to filter by"""
|
|
16
|
+
filter_description: NotRequired[str]
|
|
17
|
+
r"""The project description to filter by"""
|
|
18
|
+
filter_billing_type: NotRequired[str]
|
|
19
|
+
r"""The billing type to filter by"""
|
|
20
|
+
filter_environment: NotRequired[str]
|
|
21
|
+
r"""The environment to filter by"""
|
|
22
|
+
filter_tags: NotRequired[str]
|
|
23
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return projects with `tag_1` AND `tag_2`"""
|
|
24
|
+
extra_fields_projects: NotRequired[str]
|
|
25
|
+
r"""The `last_renewal_date` and `next_renewal_date` are provided as extra attributes that show previous and future billing cycle dates. To request it, just set `extra_fields[projects]=last_renewal_date,next_renewal_date` in the query string."""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class GetProjectsRequest(BaseModel):
|
|
29
|
+
filter_name: Annotated[
|
|
30
|
+
Optional[str],
|
|
31
|
+
pydantic.Field(alias="filter[name]"),
|
|
32
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
33
|
+
] = None
|
|
34
|
+
r"""The project name to filter by"""
|
|
35
|
+
|
|
36
|
+
filter_slug: Annotated[
|
|
37
|
+
Optional[str],
|
|
38
|
+
pydantic.Field(alias="filter[slug]"),
|
|
39
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
+
] = None
|
|
41
|
+
r"""The project slug to filter by"""
|
|
42
|
+
|
|
43
|
+
filter_description: Annotated[
|
|
44
|
+
Optional[str],
|
|
45
|
+
pydantic.Field(alias="filter[description]"),
|
|
46
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
47
|
+
] = None
|
|
48
|
+
r"""The project description to filter by"""
|
|
49
|
+
|
|
50
|
+
filter_billing_type: Annotated[
|
|
51
|
+
Optional[str],
|
|
52
|
+
pydantic.Field(alias="filter[billing_type]"),
|
|
53
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
54
|
+
] = None
|
|
55
|
+
r"""The billing type to filter by"""
|
|
56
|
+
|
|
57
|
+
filter_environment: Annotated[
|
|
58
|
+
Optional[str],
|
|
59
|
+
pydantic.Field(alias="filter[environment]"),
|
|
60
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
61
|
+
] = None
|
|
62
|
+
r"""The environment to filter by"""
|
|
63
|
+
|
|
64
|
+
filter_tags: Annotated[
|
|
65
|
+
Optional[str],
|
|
66
|
+
pydantic.Field(alias="filter[tags]"),
|
|
67
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
68
|
+
] = None
|
|
69
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return projects with `tag_1` AND `tag_2`"""
|
|
70
|
+
|
|
71
|
+
extra_fields_projects: Annotated[
|
|
72
|
+
Optional[str],
|
|
73
|
+
pydantic.Field(alias="extra_fields[projects]"),
|
|
74
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
75
|
+
] = None
|
|
76
|
+
r"""The `last_renewal_date` and `next_renewal_date` are provided as extra attributes that show previous and future billing cycle dates. To request it, just set `extra_fields[projects]=last_renewal_date,next_renewal_date` in the query string."""
|
|
@@ -0,0 +1,18 @@
|
|
|
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 GetRegionRequestTypedDict(TypedDict):
|
|
10
|
+
region_id: str
|
|
11
|
+
r"""The region region_ID"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetRegionRequest(BaseModel):
|
|
15
|
+
region_id: Annotated[
|
|
16
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
17
|
+
]
|
|
18
|
+
r"""The region region_ID"""
|
|
@@ -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 GetRoleIDRequestTypedDict(TypedDict):
|
|
10
|
+
role_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class GetRoleIDRequest(BaseModel):
|
|
14
|
+
role_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,19 @@
|
|
|
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 List, Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetRolesResponseBodyTypedDict(TypedDict):
|
|
11
|
+
r"""Success"""
|
|
12
|
+
|
|
13
|
+
data: NotRequired[List[RoleDataTypedDict]]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetRolesResponseBody(BaseModel):
|
|
17
|
+
r"""Success"""
|
|
18
|
+
|
|
19
|
+
data: Optional[List[RoleData]] = None
|
|
@@ -0,0 +1,18 @@
|
|
|
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 GetServerDeployConfigRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
r"""The Server ID"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetServerDeployConfigRequest(BaseModel):
|
|
15
|
+
server_id: Annotated[
|
|
16
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
17
|
+
]
|
|
18
|
+
r"""The Server ID"""
|
|
@@ -0,0 +1,18 @@
|
|
|
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 GetServerOutOfBandRequestTypedDict(TypedDict):
|
|
10
|
+
server_id: str
|
|
11
|
+
r"""The Server ID"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetServerOutOfBandRequest(BaseModel):
|
|
15
|
+
server_id: Annotated[
|
|
16
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
17
|
+
]
|
|
18
|
+
r"""The Server ID"""
|
|
@@ -0,0 +1,33 @@
|
|
|
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 (
|
|
6
|
+
FieldMetadata,
|
|
7
|
+
PathParamMetadata,
|
|
8
|
+
QueryParamMetadata,
|
|
9
|
+
)
|
|
10
|
+
import pydantic
|
|
11
|
+
from typing import Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetServerRequestTypedDict(TypedDict):
|
|
16
|
+
server_id: str
|
|
17
|
+
r"""The Server ID"""
|
|
18
|
+
extra_fields_servers: NotRequired[str]
|
|
19
|
+
r"""The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string."""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class GetServerRequest(BaseModel):
|
|
23
|
+
server_id: Annotated[
|
|
24
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
25
|
+
]
|
|
26
|
+
r"""The Server ID"""
|
|
27
|
+
|
|
28
|
+
extra_fields_servers: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
pydantic.Field(alias="extra_fields[servers]"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
] = None
|
|
33
|
+
r"""The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string."""
|
|
@@ -0,0 +1,156 @@
|
|
|
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 GetServersRequestTypedDict(TypedDict):
|
|
12
|
+
filter_project: NotRequired[str]
|
|
13
|
+
r"""The project ID or Slug to filter by"""
|
|
14
|
+
filter_region: NotRequired[str]
|
|
15
|
+
r"""The region Slug to filter by"""
|
|
16
|
+
filter_hostname: NotRequired[str]
|
|
17
|
+
r"""The hostname of server to filter by"""
|
|
18
|
+
filter_created_at_gte: NotRequired[str]
|
|
19
|
+
r"""The created at greater than equal date to filter by"""
|
|
20
|
+
filter_created_at_lte: NotRequired[str]
|
|
21
|
+
r"""The created at less than equal date to filter by"""
|
|
22
|
+
filter_label: NotRequired[str]
|
|
23
|
+
r"""The label of server to filter by"""
|
|
24
|
+
filter_status: NotRequired[str]
|
|
25
|
+
r"""The status of server to filter by"""
|
|
26
|
+
filter_plan: NotRequired[str]
|
|
27
|
+
r"""The platform/plan name of the server to filter by"""
|
|
28
|
+
filter_gpu: NotRequired[bool]
|
|
29
|
+
r"""Filter by the existence of an associated GPU"""
|
|
30
|
+
filter_ram_eql: NotRequired[int]
|
|
31
|
+
r"""Filter servers with RAM size (in GB) equals the provided value."""
|
|
32
|
+
filter_ram_gte: NotRequired[int]
|
|
33
|
+
r"""Filter servers with RAM size (in GB) greater than or equal the provided value."""
|
|
34
|
+
filter_ram_lte: NotRequired[int]
|
|
35
|
+
r"""Filter servers with RAM size (in GB) less than or equal the provided value."""
|
|
36
|
+
filter_disk: NotRequired[int]
|
|
37
|
+
r"""The disk size in Gigabytes to filter by, should be used with the following options:
|
|
38
|
+
[eql] to filter for values equal to the provided value.
|
|
39
|
+
[gte] to filter for values greater or equal to the provided value.
|
|
40
|
+
[lte] to filter by values lower or equal to the provided value.
|
|
41
|
+
"""
|
|
42
|
+
filter_tags: NotRequired[str]
|
|
43
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return servers with `tag_1` AND `tag_2`"""
|
|
44
|
+
extra_fields_servers: NotRequired[str]
|
|
45
|
+
r"""The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string."""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class GetServersRequest(BaseModel):
|
|
49
|
+
filter_project: Annotated[
|
|
50
|
+
Optional[str],
|
|
51
|
+
pydantic.Field(alias="filter[project]"),
|
|
52
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
53
|
+
] = None
|
|
54
|
+
r"""The project ID or Slug to filter by"""
|
|
55
|
+
|
|
56
|
+
filter_region: Annotated[
|
|
57
|
+
Optional[str],
|
|
58
|
+
pydantic.Field(alias="filter[region]"),
|
|
59
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
60
|
+
] = None
|
|
61
|
+
r"""The region Slug to filter by"""
|
|
62
|
+
|
|
63
|
+
filter_hostname: Annotated[
|
|
64
|
+
Optional[str],
|
|
65
|
+
pydantic.Field(alias="filter[hostname]"),
|
|
66
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
67
|
+
] = None
|
|
68
|
+
r"""The hostname of server to filter by"""
|
|
69
|
+
|
|
70
|
+
filter_created_at_gte: Annotated[
|
|
71
|
+
Optional[str],
|
|
72
|
+
pydantic.Field(alias="filter[created_at_gte]"),
|
|
73
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
74
|
+
] = None
|
|
75
|
+
r"""The created at greater than equal date to filter by"""
|
|
76
|
+
|
|
77
|
+
filter_created_at_lte: Annotated[
|
|
78
|
+
Optional[str],
|
|
79
|
+
pydantic.Field(alias="filter[created_at_lte]"),
|
|
80
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
81
|
+
] = None
|
|
82
|
+
r"""The created at less than equal date to filter by"""
|
|
83
|
+
|
|
84
|
+
filter_label: Annotated[
|
|
85
|
+
Optional[str],
|
|
86
|
+
pydantic.Field(alias="filter[label]"),
|
|
87
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
88
|
+
] = None
|
|
89
|
+
r"""The label of server to filter by"""
|
|
90
|
+
|
|
91
|
+
filter_status: Annotated[
|
|
92
|
+
Optional[str],
|
|
93
|
+
pydantic.Field(alias="filter[status]"),
|
|
94
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
95
|
+
] = None
|
|
96
|
+
r"""The status of server to filter by"""
|
|
97
|
+
|
|
98
|
+
filter_plan: Annotated[
|
|
99
|
+
Optional[str],
|
|
100
|
+
pydantic.Field(alias="filter[plan]"),
|
|
101
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
102
|
+
] = None
|
|
103
|
+
r"""The platform/plan name of the server to filter by"""
|
|
104
|
+
|
|
105
|
+
filter_gpu: Annotated[
|
|
106
|
+
Optional[bool],
|
|
107
|
+
pydantic.Field(alias="filter[gpu]"),
|
|
108
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
109
|
+
] = None
|
|
110
|
+
r"""Filter by the existence of an associated GPU"""
|
|
111
|
+
|
|
112
|
+
filter_ram_eql: Annotated[
|
|
113
|
+
Optional[int],
|
|
114
|
+
pydantic.Field(alias="filter[ram][eql]"),
|
|
115
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
116
|
+
] = None
|
|
117
|
+
r"""Filter servers with RAM size (in GB) equals the provided value."""
|
|
118
|
+
|
|
119
|
+
filter_ram_gte: Annotated[
|
|
120
|
+
Optional[int],
|
|
121
|
+
pydantic.Field(alias="filter[ram][gte]"),
|
|
122
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
123
|
+
] = None
|
|
124
|
+
r"""Filter servers with RAM size (in GB) greater than or equal the provided value."""
|
|
125
|
+
|
|
126
|
+
filter_ram_lte: Annotated[
|
|
127
|
+
Optional[int],
|
|
128
|
+
pydantic.Field(alias="filter[ram][lte]"),
|
|
129
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
130
|
+
] = None
|
|
131
|
+
r"""Filter servers with RAM size (in GB) less than or equal the provided value."""
|
|
132
|
+
|
|
133
|
+
filter_disk: Annotated[
|
|
134
|
+
Optional[int],
|
|
135
|
+
pydantic.Field(alias="filter[disk]"),
|
|
136
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
137
|
+
] = None
|
|
138
|
+
r"""The disk size in Gigabytes to filter by, should be used with the following options:
|
|
139
|
+
[eql] to filter for values equal to the provided value.
|
|
140
|
+
[gte] to filter for values greater or equal to the provided value.
|
|
141
|
+
[lte] to filter by values lower or equal to the provided value.
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
filter_tags: Annotated[
|
|
145
|
+
Optional[str],
|
|
146
|
+
pydantic.Field(alias="filter[tags]"),
|
|
147
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
148
|
+
] = None
|
|
149
|
+
r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return servers with `tag_1` AND `tag_2`"""
|
|
150
|
+
|
|
151
|
+
extra_fields_servers: Annotated[
|
|
152
|
+
Optional[str],
|
|
153
|
+
pydantic.Field(alias="extra_fields[servers]"),
|
|
154
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
155
|
+
] = None
|
|
156
|
+
r"""The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string."""
|
|
@@ -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 GetStorageFilesystemsRequestTypedDict(TypedDict):
|
|
12
|
+
filter_project: NotRequired[str]
|
|
13
|
+
r"""The project ID or Slug to filter by"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetStorageFilesystemsRequest(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,45 @@
|
|
|
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 GetTrafficConsumptionRequestTypedDict(TypedDict):
|
|
12
|
+
filter_date_gte: str
|
|
13
|
+
r"""The start timestamp to retrieve the traffic. You must provide in ISO8601 format. Example: filter[date][gte]=2024-04-01T00:00:00Z"""
|
|
14
|
+
filter_date_lte: str
|
|
15
|
+
r"""The end timestamp to retrieve the traffic. You must provide in ISO8601 format. Example: filter[date][gte]=2024-04-31T23:59:59Z"""
|
|
16
|
+
filter_server: NotRequired[int]
|
|
17
|
+
filter_project: NotRequired[int]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetTrafficConsumptionRequest(BaseModel):
|
|
21
|
+
filter_date_gte: Annotated[
|
|
22
|
+
str,
|
|
23
|
+
pydantic.Field(alias="filter[date][gte]"),
|
|
24
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
25
|
+
]
|
|
26
|
+
r"""The start timestamp to retrieve the traffic. You must provide in ISO8601 format. Example: filter[date][gte]=2024-04-01T00:00:00Z"""
|
|
27
|
+
|
|
28
|
+
filter_date_lte: Annotated[
|
|
29
|
+
str,
|
|
30
|
+
pydantic.Field(alias="filter[date][lte]"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
]
|
|
33
|
+
r"""The end timestamp to retrieve the traffic. You must provide in ISO8601 format. Example: filter[date][gte]=2024-04-31T23:59:59Z"""
|
|
34
|
+
|
|
35
|
+
filter_server: Annotated[
|
|
36
|
+
Optional[int],
|
|
37
|
+
pydantic.Field(alias="filter[server]"),
|
|
38
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
39
|
+
] = None
|
|
40
|
+
|
|
41
|
+
filter_project: Annotated[
|
|
42
|
+
Optional[int],
|
|
43
|
+
pydantic.Field(alias="filter[project]"),
|
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
45
|
+
] = 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 GetTrafficQuotaRequestTypedDict(TypedDict):
|
|
12
|
+
filter_project: NotRequired[str]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetTrafficQuotaRequest(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,19 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .user import User, UserTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetUserProfileResponseBodyTypedDict(TypedDict):
|
|
11
|
+
r"""Success"""
|
|
12
|
+
|
|
13
|
+
data: NotRequired[UserTypedDict]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetUserProfileResponseBody(BaseModel):
|
|
17
|
+
r"""Success"""
|
|
18
|
+
|
|
19
|
+
data: Optional[User] = None
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .virtual_network1 import VirtualNetwork1, VirtualNetwork1TypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
|
|
7
|
+
from typing import Optional
|
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetVirtualNetworkRequestTypedDict(TypedDict):
|
|
12
|
+
vlan_id: str
|
|
13
|
+
r"""Virtual Network ID"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetVirtualNetworkRequest(BaseModel):
|
|
17
|
+
vlan_id: Annotated[
|
|
18
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
19
|
+
]
|
|
20
|
+
r"""Virtual Network ID"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetVirtualNetworkResponseBodyTypedDict(TypedDict):
|
|
24
|
+
r"""List private networks"""
|
|
25
|
+
|
|
26
|
+
data: NotRequired[VirtualNetwork1TypedDict]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class GetVirtualNetworkResponseBody(BaseModel):
|
|
30
|
+
r"""List private networks"""
|
|
31
|
+
|
|
32
|
+
data: Optional[VirtualNetwork1] = None
|
|
@@ -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 GetVirtualNetworksAssignmentsRequestTypedDict(TypedDict):
|
|
12
|
+
filter_server: NotRequired[str]
|
|
13
|
+
r"""The server ID to filter by"""
|
|
14
|
+
filter_vid: NotRequired[str]
|
|
15
|
+
r"""The vlan ID to filter by"""
|
|
16
|
+
filter_virtual_network_id: NotRequired[str]
|
|
17
|
+
r"""The virtual network ID to filter by"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetVirtualNetworksAssignmentsRequest(BaseModel):
|
|
21
|
+
filter_server: Annotated[
|
|
22
|
+
Optional[str],
|
|
23
|
+
pydantic.Field(alias="filter[server]"),
|
|
24
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
25
|
+
] = None
|
|
26
|
+
r"""The server ID to filter by"""
|
|
27
|
+
|
|
28
|
+
filter_vid: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
pydantic.Field(alias="filter[vid]"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
] = None
|
|
33
|
+
r"""The vlan ID to filter by"""
|
|
34
|
+
|
|
35
|
+
filter_virtual_network_id: Annotated[
|
|
36
|
+
Optional[str],
|
|
37
|
+
pydantic.Field(alias="filter[virtual_network_id]"),
|
|
38
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
39
|
+
] = None
|
|
40
|
+
r"""The virtual network ID to filter by"""
|