latitudesh-python-sdk 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- latitudesh_python_sdk/__init__.py +18 -0
- latitudesh_python_sdk/_hooks/__init__.py +5 -0
- latitudesh_python_sdk/_hooks/registration.py +13 -0
- latitudesh_python_sdk/_hooks/sdkhooks.py +76 -0
- latitudesh_python_sdk/_hooks/types.py +113 -0
- latitudesh_python_sdk/_version.py +17 -0
- latitudesh_python_sdk/apikeys.py +703 -0
- latitudesh_python_sdk/basesdk.py +374 -0
- latitudesh_python_sdk/billing.py +197 -0
- latitudesh_python_sdk/events_sdk.py +298 -0
- latitudesh_python_sdk/firewalls_sdk.py +1786 -0
- latitudesh_python_sdk/httpclient.py +125 -0
- latitudesh_python_sdk/ipaddresses_sdk.py +470 -0
- latitudesh_python_sdk/models/__init__.py +3581 -0
- latitudesh_python_sdk/models/api_key.py +81 -0
- latitudesh_python_sdk/models/apierror.py +40 -0
- latitudesh_python_sdk/models/assign_server_virtual_networkop.py +43 -0
- latitudesh_python_sdk/models/bandwidth_packages.py +67 -0
- latitudesh_python_sdk/models/bandwidth_plan_data.py +72 -0
- latitudesh_python_sdk/models/bandwidth_plans.py +26 -0
- latitudesh_python_sdk/models/billing_usage.py +249 -0
- latitudesh_python_sdk/models/container_plan_data.py +163 -0
- latitudesh_python_sdk/models/create_api_key.py +40 -0
- latitudesh_python_sdk/models/create_firewall_assignmentop.py +61 -0
- latitudesh_python_sdk/models/create_firewallop.py +73 -0
- latitudesh_python_sdk/models/create_ipmi_sessionop.py +16 -0
- latitudesh_python_sdk/models/create_projectop.py +79 -0
- latitudesh_python_sdk/models/create_server_actionop.py +69 -0
- latitudesh_python_sdk/models/create_server_out_of_bandop.py +61 -0
- latitudesh_python_sdk/models/create_server_reinstallop.py +140 -0
- latitudesh_python_sdk/models/create_serverop.py +173 -0
- latitudesh_python_sdk/models/create_tagop.py +50 -0
- latitudesh_python_sdk/models/create_virtual_machine_actionop.py +63 -0
- latitudesh_python_sdk/models/create_virtual_networkop.py +72 -0
- latitudesh_python_sdk/models/custom_tag.py +26 -0
- latitudesh_python_sdk/models/custom_tag_data.py +54 -0
- latitudesh_python_sdk/models/custom_tags.py +26 -0
- latitudesh_python_sdk/models/delete_api_keyop.py +16 -0
- latitudesh_python_sdk/models/delete_firewall_assignmentop.py +25 -0
- latitudesh_python_sdk/models/delete_firewallop.py +18 -0
- latitudesh_python_sdk/models/delete_project_ssh_keyop.py +23 -0
- latitudesh_python_sdk/models/delete_project_user_dataop.py +23 -0
- latitudesh_python_sdk/models/delete_projectop.py +18 -0
- latitudesh_python_sdk/models/delete_ssh_keyop.py +16 -0
- latitudesh_python_sdk/models/delete_storage_filesystemsop.py +16 -0
- latitudesh_python_sdk/models/delete_storage_volumesop.py +16 -0
- latitudesh_python_sdk/models/delete_user_dataop.py +16 -0
- latitudesh_python_sdk/models/delete_virtual_networks_assignmentsop.py +16 -0
- latitudesh_python_sdk/models/delete_vpn_sessionop.py +16 -0
- latitudesh_python_sdk/models/deploy_config.py +62 -0
- latitudesh_python_sdk/models/destroy_serverop.py +31 -0
- latitudesh_python_sdk/models/destroy_tagop.py +16 -0
- latitudesh_python_sdk/models/destroy_team_memberop.py +18 -0
- latitudesh_python_sdk/models/destroy_virtual_machineop.py +16 -0
- latitudesh_python_sdk/models/destroy_virtual_networkop.py +18 -0
- latitudesh_python_sdk/models/event_data.py +98 -0
- latitudesh_python_sdk/models/events.py +26 -0
- latitudesh_python_sdk/models/filesystem_data.py +57 -0
- latitudesh_python_sdk/models/firewall.py +26 -0
- latitudesh_python_sdk/models/firewall_assignment_data.py +50 -0
- latitudesh_python_sdk/models/firewall_assignments.py +29 -0
- latitudesh_python_sdk/models/firewall_data.py +75 -0
- latitudesh_python_sdk/models/firewall_server.py +36 -0
- latitudesh_python_sdk/models/firewalls.py +26 -0
- latitudesh_python_sdk/models/get_all_firewall_assignmentsop.py +51 -0
- latitudesh_python_sdk/models/get_bandwidth_plansop.py +62 -0
- latitudesh_python_sdk/models/get_billing_usageop.py +46 -0
- latitudesh_python_sdk/models/get_containers_planop.py +18 -0
- latitudesh_python_sdk/models/get_eventsop.py +126 -0
- latitudesh_python_sdk/models/get_firewall_assignmentsop.py +53 -0
- latitudesh_python_sdk/models/get_firewallop.py +18 -0
- latitudesh_python_sdk/models/get_ipop.py +33 -0
- latitudesh_python_sdk/models/get_ipsop.py +120 -0
- latitudesh_python_sdk/models/get_planop.py +16 -0
- latitudesh_python_sdk/models/get_plans_operating_systemop.py +54 -0
- latitudesh_python_sdk/models/get_plansop.py +125 -0
- latitudesh_python_sdk/models/get_project_ssh_keyop.py +37 -0
- latitudesh_python_sdk/models/get_project_ssh_keysop.py +33 -0
- latitudesh_python_sdk/models/get_project_user_dataop.py +38 -0
- latitudesh_python_sdk/models/get_project_users_dataop.py +46 -0
- latitudesh_python_sdk/models/get_projectsop.py +105 -0
- latitudesh_python_sdk/models/get_regionop.py +18 -0
- latitudesh_python_sdk/models/get_regionsop.py +42 -0
- latitudesh_python_sdk/models/get_role_idop.py +16 -0
- latitudesh_python_sdk/models/get_rolesop.py +54 -0
- latitudesh_python_sdk/models/get_server_deploy_configop.py +18 -0
- latitudesh_python_sdk/models/get_server_out_of_bandop.py +18 -0
- latitudesh_python_sdk/models/get_serverop.py +33 -0
- latitudesh_python_sdk/models/get_serversop.py +185 -0
- latitudesh_python_sdk/models/get_ssh_keyop.py +30 -0
- latitudesh_python_sdk/models/get_ssh_keysop.py +31 -0
- latitudesh_python_sdk/models/get_storage_filesystemsop.py +22 -0
- latitudesh_python_sdk/models/get_storage_volumeop.py +32 -0
- latitudesh_python_sdk/models/get_storage_volumesop.py +35 -0
- latitudesh_python_sdk/models/get_team_membersop.py +42 -0
- latitudesh_python_sdk/models/get_traffic_consumptionop.py +49 -0
- latitudesh_python_sdk/models/get_traffic_quotaop.py +20 -0
- latitudesh_python_sdk/models/get_user_dataop.py +31 -0
- latitudesh_python_sdk/models/get_user_profileop.py +19 -0
- latitudesh_python_sdk/models/get_users_dataop.py +44 -0
- latitudesh_python_sdk/models/get_virtual_networkop.py +32 -0
- latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +72 -0
- latitudesh_python_sdk/models/get_virtual_networksop.py +69 -0
- latitudesh_python_sdk/models/get_vpn_sessionsop.py +70 -0
- latitudesh_python_sdk/models/index_virtual_machineop.py +31 -0
- latitudesh_python_sdk/models/ip_address.py +122 -0
- latitudesh_python_sdk/models/ip_addresses.py +15 -0
- latitudesh_python_sdk/models/ipmi_session.py +53 -0
- latitudesh_python_sdk/models/latitudesherror.py +30 -0
- latitudesh_python_sdk/models/list_firewallsop.py +49 -0
- latitudesh_python_sdk/models/membership.py +63 -0
- latitudesh_python_sdk/models/no_response_error.py +17 -0
- latitudesh_python_sdk/models/operating_system_data.py +65 -0
- latitudesh_python_sdk/models/operating_systems.py +26 -0
- latitudesh_python_sdk/models/out_of_band_connection.py +88 -0
- latitudesh_python_sdk/models/patch_current_teamop.py +91 -0
- latitudesh_python_sdk/models/patch_storage_filesystemsop.py +79 -0
- latitudesh_python_sdk/models/patch_user_dataop.py +69 -0
- latitudesh_python_sdk/models/patch_user_profileop.py +88 -0
- latitudesh_python_sdk/models/plan.py +15 -0
- latitudesh_python_sdk/models/plan_data.py +210 -0
- latitudesh_python_sdk/models/post_api_keyop.py +19 -0
- latitudesh_python_sdk/models/post_project_ssh_keyop.py +81 -0
- latitudesh_python_sdk/models/post_project_user_dataop.py +68 -0
- latitudesh_python_sdk/models/post_ssh_keyop.py +63 -0
- latitudesh_python_sdk/models/post_storage_filesystemsop.py +63 -0
- latitudesh_python_sdk/models/post_storage_volumes_mountop.py +62 -0
- latitudesh_python_sdk/models/post_storage_volumesop.py +63 -0
- latitudesh_python_sdk/models/post_team_membersop.py +54 -0
- latitudesh_python_sdk/models/post_teamop.py +67 -0
- latitudesh_python_sdk/models/post_user_dataop.py +50 -0
- latitudesh_python_sdk/models/post_vpn_sessionop.py +63 -0
- latitudesh_python_sdk/models/project.py +131 -0
- latitudesh_python_sdk/models/project_include.py +75 -0
- latitudesh_python_sdk/models/projects.py +15 -0
- latitudesh_python_sdk/models/put_project_ssh_keyop.py +87 -0
- latitudesh_python_sdk/models/put_project_user_dataop.py +76 -0
- latitudesh_python_sdk/models/put_ssh_keyop.py +80 -0
- latitudesh_python_sdk/models/put_vpn_sessionop.py +16 -0
- latitudesh_python_sdk/models/region.py +50 -0
- latitudesh_python_sdk/models/region_resource_data.py +37 -0
- latitudesh_python_sdk/models/regions.py +50 -0
- latitudesh_python_sdk/models/responsevalidationerror.py +27 -0
- latitudesh_python_sdk/models/role.py +26 -0
- latitudesh_python_sdk/models/role_data.py +35 -0
- latitudesh_python_sdk/models/security.py +25 -0
- latitudesh_python_sdk/models/server.py +26 -0
- latitudesh_python_sdk/models/server_action.py +52 -0
- latitudesh_python_sdk/models/server_data.py +280 -0
- latitudesh_python_sdk/models/server_exit_rescue_modeop.py +16 -0
- latitudesh_python_sdk/models/server_lockop.py +16 -0
- latitudesh_python_sdk/models/server_region_resource_data.py +40 -0
- latitudesh_python_sdk/models/server_rescue.py +22 -0
- latitudesh_python_sdk/models/server_schedule_deletion.py +44 -0
- latitudesh_python_sdk/models/server_schedule_deletionop.py +16 -0
- latitudesh_python_sdk/models/server_start_rescue_modeop.py +16 -0
- latitudesh_python_sdk/models/server_unlockop.py +16 -0
- latitudesh_python_sdk/models/server_unschedule_deletionop.py +16 -0
- latitudesh_python_sdk/models/servers.py +26 -0
- latitudesh_python_sdk/models/show_virtual_machineop.py +16 -0
- latitudesh_python_sdk/models/ssh_key_data.py +55 -0
- latitudesh_python_sdk/models/ssh_keys.py +26 -0
- latitudesh_python_sdk/models/storage_plan_data.py +47 -0
- latitudesh_python_sdk/models/storage_plans.py +26 -0
- latitudesh_python_sdk/models/team.py +74 -0
- latitudesh_python_sdk/models/team_include.py +43 -0
- latitudesh_python_sdk/models/team_members.py +51 -0
- latitudesh_python_sdk/models/teams.py +26 -0
- latitudesh_python_sdk/models/traffic.py +133 -0
- latitudesh_python_sdk/models/traffic_quota.py +106 -0
- latitudesh_python_sdk/models/update_api_key.py +48 -0
- latitudesh_python_sdk/models/update_api_keyop.py +41 -0
- latitudesh_python_sdk/models/update_firewallop.py +89 -0
- latitudesh_python_sdk/models/update_plans_bandwidthop.py +50 -0
- latitudesh_python_sdk/models/update_projectop.py +95 -0
- latitudesh_python_sdk/models/update_server_deploy_configop.py +122 -0
- latitudesh_python_sdk/models/update_serverop.py +85 -0
- latitudesh_python_sdk/models/update_tagop.py +74 -0
- latitudesh_python_sdk/models/update_virtual_networkop.py +67 -0
- latitudesh_python_sdk/models/user.py +59 -0
- latitudesh_python_sdk/models/user_data.py +26 -0
- latitudesh_python_sdk/models/user_data_properties.py +46 -0
- latitudesh_python_sdk/models/user_include.py +52 -0
- latitudesh_python_sdk/models/user_team.py +61 -0
- latitudesh_python_sdk/models/user_teams.py +26 -0
- latitudesh_python_sdk/models/user_update.py +37 -0
- latitudesh_python_sdk/models/virtual_machine.py +29 -0
- latitudesh_python_sdk/models/virtual_machine_attributes.py +115 -0
- latitudesh_python_sdk/models/virtual_machine_payload.py +47 -0
- latitudesh_python_sdk/models/virtual_machine_plans.py +181 -0
- latitudesh_python_sdk/models/virtual_network.py +26 -0
- latitudesh_python_sdk/models/virtual_network_assignment.py +29 -0
- latitudesh_python_sdk/models/virtual_network_assignment_data.py +65 -0
- latitudesh_python_sdk/models/virtual_network_assignments.py +29 -0
- latitudesh_python_sdk/models/virtual_network_data.py +114 -0
- latitudesh_python_sdk/models/virtual_networks.py +26 -0
- latitudesh_python_sdk/models/volume_data.py +111 -0
- latitudesh_python_sdk/models/vpn_session_data_with_password.py +77 -0
- latitudesh_python_sdk/models/vpn_session_with_password.py +18 -0
- latitudesh_python_sdk/operatingsystems_sdk.py +238 -0
- latitudesh_python_sdk/plans.py +1304 -0
- latitudesh_python_sdk/privatenetworks.py +1612 -0
- latitudesh_python_sdk/projects_sdk.py +830 -0
- latitudesh_python_sdk/py.typed +1 -0
- latitudesh_python_sdk/regions_sdk.py +398 -0
- latitudesh_python_sdk/roles.py +398 -0
- latitudesh_python_sdk/sdk.py +264 -0
- latitudesh_python_sdk/sdkconfiguration.py +50 -0
- latitudesh_python_sdk/servers_sdk.py +3414 -0
- latitudesh_python_sdk/sshkeys_sdk.py +1882 -0
- latitudesh_python_sdk/storage.py +1651 -0
- latitudesh_python_sdk/tags.py +715 -0
- latitudesh_python_sdk/teams_sdk.py +527 -0
- latitudesh_python_sdk/teamsmembers.py +576 -0
- latitudesh_python_sdk/traffic_sdk.py +357 -0
- latitudesh_python_sdk/types/__init__.py +21 -0
- latitudesh_python_sdk/types/basemodel.py +39 -0
- latitudesh_python_sdk/userdata_sdk.py +1888 -0
- latitudesh_python_sdk/userprofile.py +531 -0
- latitudesh_python_sdk/utils/__init__.py +200 -0
- latitudesh_python_sdk/utils/annotations.py +79 -0
- latitudesh_python_sdk/utils/datetimes.py +23 -0
- latitudesh_python_sdk/utils/enums.py +74 -0
- latitudesh_python_sdk/utils/eventstreaming.py +248 -0
- latitudesh_python_sdk/utils/forms.py +234 -0
- latitudesh_python_sdk/utils/headers.py +136 -0
- latitudesh_python_sdk/utils/logger.py +27 -0
- latitudesh_python_sdk/utils/metadata.py +118 -0
- latitudesh_python_sdk/utils/queryparams.py +217 -0
- latitudesh_python_sdk/utils/requestbodies.py +66 -0
- latitudesh_python_sdk/utils/retries.py +281 -0
- latitudesh_python_sdk/utils/security.py +192 -0
- latitudesh_python_sdk/utils/serializers.py +249 -0
- latitudesh_python_sdk/utils/unmarshal_json_response.py +38 -0
- latitudesh_python_sdk/utils/url.py +155 -0
- latitudesh_python_sdk/utils/values.py +137 -0
- latitudesh_python_sdk/virtualmachines.py +941 -0
- latitudesh_python_sdk/vpnsessions.py +715 -0
- latitudesh_python_sdk-2.3.0.dist-info/METADATA +787 -0
- latitudesh_python_sdk-2.3.0.dist-info/RECORD +242 -0
- latitudesh_python_sdk-2.3.0.dist-info/WHEEL +4 -0
- latitudesh_python_sdk-2.3.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,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 GetPlanRequestTypedDict(TypedDict):
|
|
10
|
+
plan_id: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class GetPlanRequest(BaseModel):
|
|
14
|
+
plan_id: Annotated[
|
|
15
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
16
|
+
]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .operating_systems import OperatingSystems, OperatingSystemsTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Callable, List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetPlansOperatingSystemRequestTypedDict(TypedDict):
|
|
13
|
+
page_size: NotRequired[int]
|
|
14
|
+
r"""Number of items to return per page"""
|
|
15
|
+
page_number: NotRequired[int]
|
|
16
|
+
r"""Page number to return (starts at 1)"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class GetPlansOperatingSystemRequest(BaseModel):
|
|
20
|
+
page_size: Annotated[
|
|
21
|
+
Optional[int],
|
|
22
|
+
pydantic.Field(alias="page[size]"),
|
|
23
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
24
|
+
] = 20
|
|
25
|
+
r"""Number of items to return per page"""
|
|
26
|
+
|
|
27
|
+
page_number: Annotated[
|
|
28
|
+
Optional[int],
|
|
29
|
+
pydantic.Field(alias="page[number]"),
|
|
30
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
|
+
] = 1
|
|
32
|
+
r"""Page number to return (starts at 1)"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class GetPlansOperatingSystemResponseBodyTypedDict(TypedDict):
|
|
36
|
+
r"""Success"""
|
|
37
|
+
|
|
38
|
+
data: NotRequired[List[OperatingSystemsTypedDict]]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class GetPlansOperatingSystemResponseBody(BaseModel):
|
|
42
|
+
r"""Success"""
|
|
43
|
+
|
|
44
|
+
data: Optional[List[OperatingSystems]] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class GetPlansOperatingSystemResponseTypedDict(TypedDict):
|
|
48
|
+
result: GetPlansOperatingSystemResponseBodyTypedDict
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class GetPlansOperatingSystemResponse(BaseModel):
|
|
52
|
+
next: Callable[[], Optional[GetPlansOperatingSystemResponse]]
|
|
53
|
+
|
|
54
|
+
result: GetPlansOperatingSystemResponseBody
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .plan_data import PlanData, PlanDataTypedDict
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
7
|
+
from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
8
|
+
import pydantic
|
|
9
|
+
from typing import List, Optional
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FilterStockLevel(str, Enum):
|
|
14
|
+
r"""The stock level at the site to filter by"""
|
|
15
|
+
|
|
16
|
+
UNAVAILABLE = "unavailable"
|
|
17
|
+
LOW = "low"
|
|
18
|
+
MEDIUM = "medium"
|
|
19
|
+
HIGH = "high"
|
|
20
|
+
UNIQUE = "unique"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetPlansRequestTypedDict(TypedDict):
|
|
24
|
+
filter_name: NotRequired[str]
|
|
25
|
+
r"""The plan name to filter by"""
|
|
26
|
+
filter_slug: NotRequired[str]
|
|
27
|
+
r"""The plan slug to filter by"""
|
|
28
|
+
filter_location: NotRequired[str]
|
|
29
|
+
r"""The location of the site to filter by"""
|
|
30
|
+
filter_stock_level: NotRequired[FilterStockLevel]
|
|
31
|
+
r"""The stock level at the site to filter by"""
|
|
32
|
+
filter_in_stock: NotRequired[bool]
|
|
33
|
+
r"""The stock available at the site to filter by"""
|
|
34
|
+
filter_gpu: NotRequired[bool]
|
|
35
|
+
r"""Filter by the existence of an associated GPU"""
|
|
36
|
+
filter_ram: NotRequired[int]
|
|
37
|
+
r"""The ram 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_disk: NotRequired[int]
|
|
43
|
+
r"""The disk size in Gigabytes to filter by, should be used with the following options:
|
|
44
|
+
[eql] to filter for values equal to the provided value.
|
|
45
|
+
[gte] to filter for values greater or equal to the provided value.
|
|
46
|
+
[lte] to filter by values lower or equal to the provided value.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class GetPlansRequest(BaseModel):
|
|
51
|
+
filter_name: Annotated[
|
|
52
|
+
Optional[str],
|
|
53
|
+
pydantic.Field(alias="filter[name]"),
|
|
54
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
55
|
+
] = None
|
|
56
|
+
r"""The plan name to filter by"""
|
|
57
|
+
|
|
58
|
+
filter_slug: Annotated[
|
|
59
|
+
Optional[str],
|
|
60
|
+
pydantic.Field(alias="filter[slug]"),
|
|
61
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
62
|
+
] = None
|
|
63
|
+
r"""The plan slug to filter by"""
|
|
64
|
+
|
|
65
|
+
filter_location: Annotated[
|
|
66
|
+
Optional[str],
|
|
67
|
+
pydantic.Field(alias="filter[location]"),
|
|
68
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
69
|
+
] = None
|
|
70
|
+
r"""The location of the site to filter by"""
|
|
71
|
+
|
|
72
|
+
filter_stock_level: Annotated[
|
|
73
|
+
Optional[FilterStockLevel],
|
|
74
|
+
pydantic.Field(alias="filter[stock_level]"),
|
|
75
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
76
|
+
] = None
|
|
77
|
+
r"""The stock level at the site to filter by"""
|
|
78
|
+
|
|
79
|
+
filter_in_stock: Annotated[
|
|
80
|
+
Optional[bool],
|
|
81
|
+
pydantic.Field(alias="filter[in_stock]"),
|
|
82
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
83
|
+
] = None
|
|
84
|
+
r"""The stock available at the site to filter by"""
|
|
85
|
+
|
|
86
|
+
filter_gpu: Annotated[
|
|
87
|
+
Optional[bool],
|
|
88
|
+
pydantic.Field(alias="filter[gpu]"),
|
|
89
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
90
|
+
] = None
|
|
91
|
+
r"""Filter by the existence of an associated GPU"""
|
|
92
|
+
|
|
93
|
+
filter_ram: Annotated[
|
|
94
|
+
Optional[int],
|
|
95
|
+
pydantic.Field(alias="filter[ram]"),
|
|
96
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
97
|
+
] = None
|
|
98
|
+
r"""The ram size in Gigabytes to filter by, should be used with the following options:
|
|
99
|
+
[eql] to filter for values equal to the provided value.
|
|
100
|
+
[gte] to filter for values greater or equal to the provided value.
|
|
101
|
+
[lte] to filter by values lower or equal to the provided value.
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
filter_disk: Annotated[
|
|
105
|
+
Optional[int],
|
|
106
|
+
pydantic.Field(alias="filter[disk]"),
|
|
107
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
108
|
+
] = None
|
|
109
|
+
r"""The disk size in Gigabytes to filter by, should be used with the following options:
|
|
110
|
+
[eql] to filter for values equal to the provided value.
|
|
111
|
+
[gte] to filter for values greater or equal to the provided value.
|
|
112
|
+
[lte] to filter by values lower or equal to the provided value.
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class GetPlansResponseBodyTypedDict(TypedDict):
|
|
117
|
+
r"""Success"""
|
|
118
|
+
|
|
119
|
+
data: NotRequired[List[PlanDataTypedDict]]
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class GetPlansResponseBody(BaseModel):
|
|
123
|
+
r"""Success"""
|
|
124
|
+
|
|
125
|
+
data: Optional[List[PlanData]] = None
|
|
@@ -0,0 +1,37 @@
|
|
|
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 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 GetProjectSSHKeyRequestTypedDict(TypedDict):
|
|
12
|
+
project_id: str
|
|
13
|
+
r"""Project ID or Slug"""
|
|
14
|
+
ssh_key_id: str
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetProjectSSHKeyRequest(BaseModel):
|
|
18
|
+
project_id: Annotated[
|
|
19
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
20
|
+
]
|
|
21
|
+
r"""Project ID or Slug"""
|
|
22
|
+
|
|
23
|
+
ssh_key_id: Annotated[
|
|
24
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class GetProjectSSHKeyResponseBodyTypedDict(TypedDict):
|
|
29
|
+
r"""Success"""
|
|
30
|
+
|
|
31
|
+
data: NotRequired[SSHKeyDataTypedDict]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class GetProjectSSHKeyResponseBody(BaseModel):
|
|
35
|
+
r"""Success"""
|
|
36
|
+
|
|
37
|
+
data: Optional[SSHKeyData] = None
|
|
@@ -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 GetProjectSSHKeysRequestTypedDict(TypedDict):
|
|
16
|
+
project_id: str
|
|
17
|
+
r"""Project ID or Slug"""
|
|
18
|
+
filter_tags: NotRequired[str]
|
|
19
|
+
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`"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class GetProjectSSHKeysRequest(BaseModel):
|
|
23
|
+
project_id: Annotated[
|
|
24
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
25
|
+
]
|
|
26
|
+
r"""Project ID or Slug"""
|
|
27
|
+
|
|
28
|
+
filter_tags: Annotated[
|
|
29
|
+
Optional[str],
|
|
30
|
+
pydantic.Field(alias="filter[tags]"),
|
|
31
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
32
|
+
] = None
|
|
33
|
+
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,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,105 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .projects import Projects, ProjectsTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Callable, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetProjectsRequestTypedDict(TypedDict):
|
|
13
|
+
filter_name: NotRequired[str]
|
|
14
|
+
r"""The project name to filter by"""
|
|
15
|
+
filter_slug: NotRequired[str]
|
|
16
|
+
r"""The project slug to filter by"""
|
|
17
|
+
filter_description: NotRequired[str]
|
|
18
|
+
r"""The project description to filter by"""
|
|
19
|
+
filter_billing_type: NotRequired[str]
|
|
20
|
+
r"""The billing type to filter by"""
|
|
21
|
+
filter_environment: NotRequired[str]
|
|
22
|
+
r"""The environment to filter by"""
|
|
23
|
+
filter_tags: NotRequired[str]
|
|
24
|
+
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`"""
|
|
25
|
+
extra_fields_projects: NotRequired[str]
|
|
26
|
+
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."""
|
|
27
|
+
page_size: NotRequired[int]
|
|
28
|
+
r"""Number of items to return per page"""
|
|
29
|
+
page_number: NotRequired[int]
|
|
30
|
+
r"""Page number to return (starts at 1)"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class GetProjectsRequest(BaseModel):
|
|
34
|
+
filter_name: Annotated[
|
|
35
|
+
Optional[str],
|
|
36
|
+
pydantic.Field(alias="filter[name]"),
|
|
37
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
38
|
+
] = None
|
|
39
|
+
r"""The project name to filter by"""
|
|
40
|
+
|
|
41
|
+
filter_slug: Annotated[
|
|
42
|
+
Optional[str],
|
|
43
|
+
pydantic.Field(alias="filter[slug]"),
|
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
45
|
+
] = None
|
|
46
|
+
r"""The project slug to filter by"""
|
|
47
|
+
|
|
48
|
+
filter_description: Annotated[
|
|
49
|
+
Optional[str],
|
|
50
|
+
pydantic.Field(alias="filter[description]"),
|
|
51
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
52
|
+
] = None
|
|
53
|
+
r"""The project description to filter by"""
|
|
54
|
+
|
|
55
|
+
filter_billing_type: Annotated[
|
|
56
|
+
Optional[str],
|
|
57
|
+
pydantic.Field(alias="filter[billing_type]"),
|
|
58
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
59
|
+
] = None
|
|
60
|
+
r"""The billing type to filter by"""
|
|
61
|
+
|
|
62
|
+
filter_environment: Annotated[
|
|
63
|
+
Optional[str],
|
|
64
|
+
pydantic.Field(alias="filter[environment]"),
|
|
65
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
66
|
+
] = None
|
|
67
|
+
r"""The environment to filter by"""
|
|
68
|
+
|
|
69
|
+
filter_tags: Annotated[
|
|
70
|
+
Optional[str],
|
|
71
|
+
pydantic.Field(alias="filter[tags]"),
|
|
72
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
73
|
+
] = None
|
|
74
|
+
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`"""
|
|
75
|
+
|
|
76
|
+
extra_fields_projects: Annotated[
|
|
77
|
+
Optional[str],
|
|
78
|
+
pydantic.Field(alias="extra_fields[projects]"),
|
|
79
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
80
|
+
] = None
|
|
81
|
+
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."""
|
|
82
|
+
|
|
83
|
+
page_size: Annotated[
|
|
84
|
+
Optional[int],
|
|
85
|
+
pydantic.Field(alias="page[size]"),
|
|
86
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
87
|
+
] = 20
|
|
88
|
+
r"""Number of items to return per page"""
|
|
89
|
+
|
|
90
|
+
page_number: Annotated[
|
|
91
|
+
Optional[int],
|
|
92
|
+
pydantic.Field(alias="page[number]"),
|
|
93
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
94
|
+
] = 1
|
|
95
|
+
r"""Page number to return (starts at 1)"""
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class GetProjectsResponseTypedDict(TypedDict):
|
|
99
|
+
result: ProjectsTypedDict
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class GetProjectsResponse(BaseModel):
|
|
103
|
+
next: Callable[[], Optional[GetProjectsResponse]]
|
|
104
|
+
|
|
105
|
+
result: Projects
|
|
@@ -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,42 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .regions import Regions, RegionsTypedDict
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Callable, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetRegionsRequestTypedDict(TypedDict):
|
|
13
|
+
page_size: NotRequired[int]
|
|
14
|
+
r"""Number of items to return per page"""
|
|
15
|
+
page_number: NotRequired[int]
|
|
16
|
+
r"""Page number to return (starts at 1)"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class GetRegionsRequest(BaseModel):
|
|
20
|
+
page_size: Annotated[
|
|
21
|
+
Optional[int],
|
|
22
|
+
pydantic.Field(alias="page[size]"),
|
|
23
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
24
|
+
] = 20
|
|
25
|
+
r"""Number of items to return per page"""
|
|
26
|
+
|
|
27
|
+
page_number: Annotated[
|
|
28
|
+
Optional[int],
|
|
29
|
+
pydantic.Field(alias="page[number]"),
|
|
30
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
|
+
] = 1
|
|
32
|
+
r"""Page number to return (starts at 1)"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class GetRegionsResponseTypedDict(TypedDict):
|
|
36
|
+
result: RegionsTypedDict
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class GetRegionsResponse(BaseModel):
|
|
40
|
+
next: Callable[[], Optional[GetRegionsResponse]]
|
|
41
|
+
|
|
42
|
+
result: Regions
|
|
@@ -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,54 @@
|
|
|
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 latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import Callable, List, Optional
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetRolesRequestTypedDict(TypedDict):
|
|
13
|
+
page_size: NotRequired[int]
|
|
14
|
+
r"""Number of items to return per page"""
|
|
15
|
+
page_number: NotRequired[int]
|
|
16
|
+
r"""Page number to return (starts at 1)"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class GetRolesRequest(BaseModel):
|
|
20
|
+
page_size: Annotated[
|
|
21
|
+
Optional[int],
|
|
22
|
+
pydantic.Field(alias="page[size]"),
|
|
23
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
24
|
+
] = 20
|
|
25
|
+
r"""Number of items to return per page"""
|
|
26
|
+
|
|
27
|
+
page_number: Annotated[
|
|
28
|
+
Optional[int],
|
|
29
|
+
pydantic.Field(alias="page[number]"),
|
|
30
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
31
|
+
] = 1
|
|
32
|
+
r"""Page number to return (starts at 1)"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class GetRolesResponseBodyTypedDict(TypedDict):
|
|
36
|
+
r"""Success"""
|
|
37
|
+
|
|
38
|
+
data: NotRequired[List[RoleDataTypedDict]]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class GetRolesResponseBody(BaseModel):
|
|
42
|
+
r"""Success"""
|
|
43
|
+
|
|
44
|
+
data: Optional[List[RoleData]] = None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class GetRolesResponseTypedDict(TypedDict):
|
|
48
|
+
result: GetRolesResponseBodyTypedDict
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class GetRolesResponse(BaseModel):
|
|
52
|
+
next: Callable[[], Optional[GetRolesResponse]]
|
|
53
|
+
|
|
54
|
+
result: GetRolesResponseBody
|
|
@@ -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."""
|