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.

Files changed (206) hide show
  1. latitudesh_python_sdk/__init__.py +18 -0
  2. latitudesh_python_sdk/_hooks/__init__.py +5 -0
  3. latitudesh_python_sdk/_hooks/registration.py +13 -0
  4. latitudesh_python_sdk/_hooks/sdkhooks.py +76 -0
  5. latitudesh_python_sdk/_hooks/types.py +106 -0
  6. latitudesh_python_sdk/_version.py +15 -0
  7. latitudesh_python_sdk/apikeys.py +802 -0
  8. latitudesh_python_sdk/basesdk.py +366 -0
  9. latitudesh_python_sdk/billing.py +210 -0
  10. latitudesh_python_sdk/events_sdk.py +240 -0
  11. latitudesh_python_sdk/firewalls_sdk.py +1640 -0
  12. latitudesh_python_sdk/httpclient.py +136 -0
  13. latitudesh_python_sdk/ipaddresses_sdk.py +448 -0
  14. latitudesh_python_sdk/models/__init__.py +1927 -0
  15. latitudesh_python_sdk/models/api_key.py +81 -0
  16. latitudesh_python_sdk/models/apierror.py +22 -0
  17. latitudesh_python_sdk/models/assign_server_virtual_networkop.py +43 -0
  18. latitudesh_python_sdk/models/bandwidth_packages.py +67 -0
  19. latitudesh_python_sdk/models/bandwidth_plan.py +72 -0
  20. latitudesh_python_sdk/models/bandwidth_plans.py +15 -0
  21. latitudesh_python_sdk/models/billing_usage.py +158 -0
  22. latitudesh_python_sdk/models/create_api_key.py +40 -0
  23. latitudesh_python_sdk/models/create_firewall_assignmentop.py +61 -0
  24. latitudesh_python_sdk/models/create_firewallop.py +69 -0
  25. latitudesh_python_sdk/models/create_ipmi_sessionop.py +16 -0
  26. latitudesh_python_sdk/models/create_projectop.py +79 -0
  27. latitudesh_python_sdk/models/create_server_actionop.py +69 -0
  28. latitudesh_python_sdk/models/create_server_out_of_bandop.py +61 -0
  29. latitudesh_python_sdk/models/create_server_reinstallop.py +140 -0
  30. latitudesh_python_sdk/models/create_serverop.py +173 -0
  31. latitudesh_python_sdk/models/create_tagop.py +50 -0
  32. latitudesh_python_sdk/models/create_virtual_networkop.py +72 -0
  33. latitudesh_python_sdk/models/custom_tag.py +54 -0
  34. latitudesh_python_sdk/models/delete_api_keyop.py +16 -0
  35. latitudesh_python_sdk/models/delete_firewall_assignmentop.py +25 -0
  36. latitudesh_python_sdk/models/delete_firewallop.py +18 -0
  37. latitudesh_python_sdk/models/delete_project_ssh_keyop.py +23 -0
  38. latitudesh_python_sdk/models/delete_project_user_dataop.py +23 -0
  39. latitudesh_python_sdk/models/delete_projectop.py +18 -0
  40. latitudesh_python_sdk/models/delete_storage_filesystemsop.py +16 -0
  41. latitudesh_python_sdk/models/delete_virtual_networks_assignmentsop.py +16 -0
  42. latitudesh_python_sdk/models/delete_vpn_sessionop.py +16 -0
  43. latitudesh_python_sdk/models/deploy_config.py +74 -0
  44. latitudesh_python_sdk/models/destroy_serverop.py +31 -0
  45. latitudesh_python_sdk/models/destroy_tagop.py +16 -0
  46. latitudesh_python_sdk/models/destroy_team_memberop.py +18 -0
  47. latitudesh_python_sdk/models/destroy_virtual_machineop.py +16 -0
  48. latitudesh_python_sdk/models/destroy_virtual_networkop.py +18 -0
  49. latitudesh_python_sdk/models/error_object.py +49 -0
  50. latitudesh_python_sdk/models/events.py +90 -0
  51. latitudesh_python_sdk/models/filesystem_data.py +53 -0
  52. latitudesh_python_sdk/models/firewall.py +71 -0
  53. latitudesh_python_sdk/models/firewall_server.py +50 -0
  54. latitudesh_python_sdk/models/firewalls.py +26 -0
  55. latitudesh_python_sdk/models/get_bandwidth_plansop.py +33 -0
  56. latitudesh_python_sdk/models/get_billing_usageop.py +46 -0
  57. latitudesh_python_sdk/models/get_eventsop.py +98 -0
  58. latitudesh_python_sdk/models/get_firewall_assignmentsop.py +18 -0
  59. latitudesh_python_sdk/models/get_firewallop.py +18 -0
  60. latitudesh_python_sdk/models/get_ipop.py +33 -0
  61. latitudesh_python_sdk/models/get_ipsop.py +91 -0
  62. latitudesh_python_sdk/models/get_planop.py +16 -0
  63. latitudesh_python_sdk/models/get_plans_operating_systemop.py +19 -0
  64. latitudesh_python_sdk/models/get_plansop.py +125 -0
  65. latitudesh_python_sdk/models/get_project_ssh_keyop.py +37 -0
  66. latitudesh_python_sdk/models/get_project_ssh_keysop.py +33 -0
  67. latitudesh_python_sdk/models/get_project_user_dataop.py +38 -0
  68. latitudesh_python_sdk/models/get_project_users_dataop.py +46 -0
  69. latitudesh_python_sdk/models/get_projectsop.py +76 -0
  70. latitudesh_python_sdk/models/get_regionop.py +18 -0
  71. latitudesh_python_sdk/models/get_role_idop.py +16 -0
  72. latitudesh_python_sdk/models/get_rolesop.py +19 -0
  73. latitudesh_python_sdk/models/get_server_deploy_configop.py +18 -0
  74. latitudesh_python_sdk/models/get_server_out_of_bandop.py +18 -0
  75. latitudesh_python_sdk/models/get_serverop.py +33 -0
  76. latitudesh_python_sdk/models/get_serversop.py +156 -0
  77. latitudesh_python_sdk/models/get_storage_filesystemsop.py +22 -0
  78. latitudesh_python_sdk/models/get_traffic_consumptionop.py +45 -0
  79. latitudesh_python_sdk/models/get_traffic_quotaop.py +20 -0
  80. latitudesh_python_sdk/models/get_user_profileop.py +19 -0
  81. latitudesh_python_sdk/models/get_virtual_networkop.py +32 -0
  82. latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +40 -0
  83. latitudesh_python_sdk/models/get_virtual_networksop.py +40 -0
  84. latitudesh_python_sdk/models/get_vpn_sessionsop.py +70 -0
  85. latitudesh_python_sdk/models/index_virtual_machineop.py +22 -0
  86. latitudesh_python_sdk/models/ip_address.py +122 -0
  87. latitudesh_python_sdk/models/ip_addresses.py +15 -0
  88. latitudesh_python_sdk/models/ipmi_session.py +53 -0
  89. latitudesh_python_sdk/models/list_firewallsop.py +20 -0
  90. latitudesh_python_sdk/models/membership.py +63 -0
  91. latitudesh_python_sdk/models/operating_systems.py +57 -0
  92. latitudesh_python_sdk/models/out_of_band_connection.py +88 -0
  93. latitudesh_python_sdk/models/patch_current_teamop.py +91 -0
  94. latitudesh_python_sdk/models/patch_storage_filesystemsop.py +79 -0
  95. latitudesh_python_sdk/models/patch_user_profileop.py +88 -0
  96. latitudesh_python_sdk/models/plan.py +15 -0
  97. latitudesh_python_sdk/models/plan_data.py +206 -0
  98. latitudesh_python_sdk/models/post_api_keyop.py +19 -0
  99. latitudesh_python_sdk/models/post_project_ssh_keyop.py +81 -0
  100. latitudesh_python_sdk/models/post_project_user_dataop.py +68 -0
  101. latitudesh_python_sdk/models/post_storage_filesystemsop.py +63 -0
  102. latitudesh_python_sdk/models/post_team_membersop.py +54 -0
  103. latitudesh_python_sdk/models/post_teamop.py +67 -0
  104. latitudesh_python_sdk/models/post_vpn_sessionop.py +63 -0
  105. latitudesh_python_sdk/models/project.py +130 -0
  106. latitudesh_python_sdk/models/project_include.py +72 -0
  107. latitudesh_python_sdk/models/projects.py +15 -0
  108. latitudesh_python_sdk/models/put_project_ssh_keyop.py +87 -0
  109. latitudesh_python_sdk/models/put_project_user_dataop.py +76 -0
  110. latitudesh_python_sdk/models/put_vpn_sessionop.py +16 -0
  111. latitudesh_python_sdk/models/region.py +50 -0
  112. latitudesh_python_sdk/models/region_resource_data.py +37 -0
  113. latitudesh_python_sdk/models/regions.py +50 -0
  114. latitudesh_python_sdk/models/role.py +15 -0
  115. latitudesh_python_sdk/models/role_data.py +35 -0
  116. latitudesh_python_sdk/models/security.py +25 -0
  117. latitudesh_python_sdk/models/server.py +54 -0
  118. latitudesh_python_sdk/models/server_action.py +52 -0
  119. latitudesh_python_sdk/models/server_data.py +219 -0
  120. latitudesh_python_sdk/models/server_exit_rescue_modeop.py +16 -0
  121. latitudesh_python_sdk/models/server_lockop.py +16 -0
  122. latitudesh_python_sdk/models/server_rescue.py +22 -0
  123. latitudesh_python_sdk/models/server_schedule_deletion.py +44 -0
  124. latitudesh_python_sdk/models/server_schedule_deletionop.py +16 -0
  125. latitudesh_python_sdk/models/server_start_rescue_modeop.py +16 -0
  126. latitudesh_python_sdk/models/server_unlockop.py +16 -0
  127. latitudesh_python_sdk/models/server_unschedule_deletionop.py +16 -0
  128. latitudesh_python_sdk/models/servers.py +26 -0
  129. latitudesh_python_sdk/models/show_virtual_machineop.py +16 -0
  130. latitudesh_python_sdk/models/ssh_key.py +15 -0
  131. latitudesh_python_sdk/models/ssh_key_data.py +55 -0
  132. latitudesh_python_sdk/models/storage_plan.py +36 -0
  133. latitudesh_python_sdk/models/storage_plans.py +15 -0
  134. latitudesh_python_sdk/models/team.py +74 -0
  135. latitudesh_python_sdk/models/team_include.py +43 -0
  136. latitudesh_python_sdk/models/team_members.py +51 -0
  137. latitudesh_python_sdk/models/teams.py +26 -0
  138. latitudesh_python_sdk/models/traffic.py +133 -0
  139. latitudesh_python_sdk/models/traffic_quota.py +106 -0
  140. latitudesh_python_sdk/models/update_api_key.py +48 -0
  141. latitudesh_python_sdk/models/update_api_keyop.py +41 -0
  142. latitudesh_python_sdk/models/update_firewallop.py +89 -0
  143. latitudesh_python_sdk/models/update_plans_bandwidthop.py +50 -0
  144. latitudesh_python_sdk/models/update_projectop.py +95 -0
  145. latitudesh_python_sdk/models/update_server_deploy_configop.py +122 -0
  146. latitudesh_python_sdk/models/update_serverop.py +69 -0
  147. latitudesh_python_sdk/models/update_tagop.py +74 -0
  148. latitudesh_python_sdk/models/update_virtual_networkop.py +67 -0
  149. latitudesh_python_sdk/models/user.py +59 -0
  150. latitudesh_python_sdk/models/user_data.py +15 -0
  151. latitudesh_python_sdk/models/user_data_properties.py +46 -0
  152. latitudesh_python_sdk/models/user_include.py +52 -0
  153. latitudesh_python_sdk/models/user_team.py +61 -0
  154. latitudesh_python_sdk/models/user_teams.py +26 -0
  155. latitudesh_python_sdk/models/user_update.py +37 -0
  156. latitudesh_python_sdk/models/virtual_machine.py +25 -0
  157. latitudesh_python_sdk/models/virtual_machine_payload.py +41 -0
  158. latitudesh_python_sdk/models/virtual_machine_plans.py +180 -0
  159. latitudesh_python_sdk/models/virtual_network.py +103 -0
  160. latitudesh_python_sdk/models/virtual_network1.py +84 -0
  161. latitudesh_python_sdk/models/virtual_network_assignment.py +37 -0
  162. latitudesh_python_sdk/models/virtual_network_assignments.py +29 -0
  163. latitudesh_python_sdk/models/virtual_networks.py +26 -0
  164. latitudesh_python_sdk/models/vpn_session_data_with_password.py +77 -0
  165. latitudesh_python_sdk/models/vpn_session_with_password.py +18 -0
  166. latitudesh_python_sdk/operatingsystems_sdk.py +188 -0
  167. latitudesh_python_sdk/plans.py +1178 -0
  168. latitudesh_python_sdk/privatenetworks.py +1672 -0
  169. latitudesh_python_sdk/projects_sdk.py +864 -0
  170. latitudesh_python_sdk/py.typed +1 -0
  171. latitudesh_python_sdk/regions_sdk.py +376 -0
  172. latitudesh_python_sdk/roles.py +374 -0
  173. latitudesh_python_sdk/sdk.py +214 -0
  174. latitudesh_python_sdk/sdkconfiguration.py +57 -0
  175. latitudesh_python_sdk/servers_sdk.py +3810 -0
  176. latitudesh_python_sdk/sshkeys.py +1050 -0
  177. latitudesh_python_sdk/storage.py +820 -0
  178. latitudesh_python_sdk/tags.py +786 -0
  179. latitudesh_python_sdk/teams_sdk.py +596 -0
  180. latitudesh_python_sdk/teamsmembers.py +578 -0
  181. latitudesh_python_sdk/traffic_sdk.py +400 -0
  182. latitudesh_python_sdk/types/__init__.py +21 -0
  183. latitudesh_python_sdk/types/basemodel.py +39 -0
  184. latitudesh_python_sdk/userdata_sdk.py +1052 -0
  185. latitudesh_python_sdk/userprofile.py +596 -0
  186. latitudesh_python_sdk/utils/__init__.py +101 -0
  187. latitudesh_python_sdk/utils/annotations.py +55 -0
  188. latitudesh_python_sdk/utils/enums.py +34 -0
  189. latitudesh_python_sdk/utils/eventstreaming.py +238 -0
  190. latitudesh_python_sdk/utils/forms.py +202 -0
  191. latitudesh_python_sdk/utils/headers.py +136 -0
  192. latitudesh_python_sdk/utils/logger.py +27 -0
  193. latitudesh_python_sdk/utils/metadata.py +118 -0
  194. latitudesh_python_sdk/utils/queryparams.py +205 -0
  195. latitudesh_python_sdk/utils/requestbodies.py +66 -0
  196. latitudesh_python_sdk/utils/retries.py +217 -0
  197. latitudesh_python_sdk/utils/security.py +192 -0
  198. latitudesh_python_sdk/utils/serializers.py +219 -0
  199. latitudesh_python_sdk/utils/url.py +155 -0
  200. latitudesh_python_sdk/utils/values.py +137 -0
  201. latitudesh_python_sdk/virtualmachines.py +772 -0
  202. latitudesh_python_sdk/vpnsessions.py +818 -0
  203. latitudesh_python_sdk-0.0.6.dist-info/LICENSE +21 -0
  204. latitudesh_python_sdk-0.0.6.dist-info/METADATA +730 -0
  205. latitudesh_python_sdk-0.0.6.dist-info/RECORD +206 -0
  206. latitudesh_python_sdk-0.0.6.dist-info/WHEEL +4 -0
@@ -0,0 +1,54 @@
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 CustomTagType(str, Enum):
12
+ TAGS = "tags"
13
+
14
+
15
+ class CustomTagAttributesTypedDict(TypedDict):
16
+ name: NotRequired[str]
17
+ r"""Name of the Tag"""
18
+ slug: NotRequired[str]
19
+ r"""Slug of the Tag"""
20
+ description: NotRequired[str]
21
+ r"""Description of the Tag"""
22
+ color: NotRequired[str]
23
+ r"""Color of the Tag"""
24
+ team: NotRequired[TeamIncludeTypedDict]
25
+
26
+
27
+ class CustomTagAttributes(BaseModel):
28
+ name: Optional[str] = None
29
+ r"""Name of the Tag"""
30
+
31
+ slug: Optional[str] = None
32
+ r"""Slug of the Tag"""
33
+
34
+ description: Optional[str] = None
35
+ r"""Description of the Tag"""
36
+
37
+ color: Optional[str] = None
38
+ r"""Color of the Tag"""
39
+
40
+ team: Optional[TeamInclude] = None
41
+
42
+
43
+ class CustomTagTypedDict(TypedDict):
44
+ id: NotRequired[str]
45
+ type: NotRequired[CustomTagType]
46
+ attributes: NotRequired[CustomTagAttributesTypedDict]
47
+
48
+
49
+ class CustomTag(BaseModel):
50
+ id: Optional[str] = None
51
+
52
+ type: Optional[CustomTagType] = None
53
+
54
+ attributes: Optional[CustomTagAttributes] = 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 DeleteAPIKeyRequestTypedDict(TypedDict):
10
+ api_key_id: str
11
+
12
+
13
+ class DeleteAPIKeyRequest(BaseModel):
14
+ api_key_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -0,0 +1,25 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class DeleteFirewallAssignmentRequestTypedDict(TypedDict):
10
+ firewall_id: str
11
+ r"""The Firewall ID"""
12
+ assignment_id: str
13
+ r"""The Assignment ID"""
14
+
15
+
16
+ class DeleteFirewallAssignmentRequest(BaseModel):
17
+ firewall_id: Annotated[
18
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
19
+ ]
20
+ r"""The Firewall ID"""
21
+
22
+ assignment_id: Annotated[
23
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
24
+ ]
25
+ r"""The Assignment 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 DeleteFirewallRequestTypedDict(TypedDict):
10
+ firewall_id: str
11
+ r"""The Firewall ID"""
12
+
13
+
14
+ class DeleteFirewallRequest(BaseModel):
15
+ firewall_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The Firewall ID"""
@@ -0,0 +1,23 @@
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 DeleteProjectSSHKeyRequestTypedDict(TypedDict):
10
+ project_id: str
11
+ r"""Project ID or Slug"""
12
+ ssh_key_id: str
13
+
14
+
15
+ class DeleteProjectSSHKeyRequest(BaseModel):
16
+ project_id: Annotated[
17
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
18
+ ]
19
+ r"""Project ID or Slug"""
20
+
21
+ ssh_key_id: Annotated[
22
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
23
+ ]
@@ -0,0 +1,23 @@
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 DeleteProjectUserDataRequestTypedDict(TypedDict):
10
+ project_id: str
11
+ r"""Project ID or Slug"""
12
+ user_data_id: str
13
+
14
+
15
+ class DeleteProjectUserDataRequest(BaseModel):
16
+ project_id: Annotated[
17
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
18
+ ]
19
+ r"""Project ID or Slug"""
20
+
21
+ user_data_id: Annotated[
22
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
23
+ ]
@@ -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 DeleteProjectRequestTypedDict(TypedDict):
10
+ project_id: str
11
+ r"""The project ID or Slug"""
12
+
13
+
14
+ class DeleteProjectRequest(BaseModel):
15
+ project_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The project ID or Slug"""
@@ -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 DeleteStorageFilesystemsRequestTypedDict(TypedDict):
10
+ filesystem_id: str
11
+
12
+
13
+ class DeleteStorageFilesystemsRequest(BaseModel):
14
+ filesystem_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -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 DeleteVirtualNetworksAssignmentsRequestTypedDict(TypedDict):
10
+ assignment_id: str
11
+
12
+
13
+ class DeleteVirtualNetworksAssignmentsRequest(BaseModel):
14
+ assignment_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -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 DeleteVpnSessionRequestTypedDict(TypedDict):
10
+ vpn_session_id: str
11
+
12
+
13
+ class DeleteVpnSessionRequest(BaseModel):
14
+ vpn_session_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -0,0 +1,74 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk import utils
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 DeployConfigPartitionsTypedDict(TypedDict):
11
+ path: NotRequired[str]
12
+ size_in_gb: NotRequired[int]
13
+ filesystem_type: NotRequired[str]
14
+
15
+
16
+ class DeployConfigPartitions(BaseModel):
17
+ path: Optional[str] = None
18
+
19
+ size_in_gb: Optional[int] = None
20
+
21
+ filesystem_type: Optional[str] = None
22
+
23
+
24
+ class DeployConfigAttributesTypedDict(TypedDict):
25
+ operating_system: NotRequired[str]
26
+ hostname: NotRequired[str]
27
+ raid: NotRequired[str]
28
+ ssh_keys: NotRequired[List[str]]
29
+ partitions: NotRequired[List[DeployConfigPartitionsTypedDict]]
30
+
31
+
32
+ class DeployConfigAttributes(BaseModel):
33
+ operating_system: Optional[str] = None
34
+
35
+ hostname: Optional[str] = None
36
+
37
+ raid: Optional[str] = None
38
+
39
+ ssh_keys: Optional[List[str]] = None
40
+
41
+ partitions: Optional[List[DeployConfigPartitions]] = None
42
+
43
+
44
+ class DeployConfigDataTypedDict(TypedDict):
45
+ id: NotRequired[str]
46
+ attributes: NotRequired[DeployConfigAttributesTypedDict]
47
+
48
+
49
+ class DeployConfigData(BaseModel):
50
+ id: Optional[str] = None
51
+
52
+ attributes: Optional[DeployConfigAttributes] = None
53
+
54
+
55
+ class DeployConfigTypedDict(TypedDict):
56
+ data: NotRequired[DeployConfigDataTypedDict]
57
+
58
+
59
+ class DeployConfig(BaseModel):
60
+ data: Optional[DeployConfigData] = None
61
+
62
+
63
+ class DeployConfigErrorData(BaseModel):
64
+ data: Optional[DeployConfigData] = None
65
+
66
+
67
+ class DeployConfigError(Exception):
68
+ data: DeployConfigErrorData
69
+
70
+ def __init__(self, data: DeployConfigErrorData):
71
+ self.data = data
72
+
73
+ def __str__(self) -> str:
74
+ return utils.marshal_json(self.data, DeployConfigErrorData)
@@ -0,0 +1,31 @@
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
+ from typing import Optional
11
+ from typing_extensions import Annotated, NotRequired, TypedDict
12
+
13
+
14
+ class DestroyServerRequestTypedDict(TypedDict):
15
+ server_id: str
16
+ r"""The server ID"""
17
+ reason: NotRequired[str]
18
+ r"""The reason for deleting the server"""
19
+
20
+
21
+ class DestroyServerRequest(BaseModel):
22
+ server_id: Annotated[
23
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
24
+ ]
25
+ r"""The server ID"""
26
+
27
+ reason: Annotated[
28
+ Optional[str],
29
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
30
+ ] = None
31
+ r"""The reason for deleting the server"""
@@ -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 DestroyTagRequestTypedDict(TypedDict):
10
+ tag_id: str
11
+
12
+
13
+ class DestroyTagRequest(BaseModel):
14
+ tag_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -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 DestroyTeamMemberRequestTypedDict(TypedDict):
10
+ user_id: str
11
+ r"""The user ID"""
12
+
13
+
14
+ class DestroyTeamMemberRequest(BaseModel):
15
+ user_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The user 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 DestroyVirtualMachineRequestTypedDict(TypedDict):
10
+ virtual_machine_id: str
11
+
12
+
13
+ class DestroyVirtualMachineRequest(BaseModel):
14
+ virtual_machine_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -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 DestroyVirtualNetworkRequestTypedDict(TypedDict):
10
+ vlan_id: int
11
+ r"""The virtual network ID"""
12
+
13
+
14
+ class DestroyVirtualNetworkRequest(BaseModel):
15
+ vlan_id: Annotated[
16
+ int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The virtual network ID"""
@@ -0,0 +1,49 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk import utils
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 ErrorObjectMetaTypedDict(TypedDict):
11
+ pass
12
+
13
+
14
+ class ErrorObjectMeta(BaseModel):
15
+ pass
16
+
17
+
18
+ class ErrorsTypedDict(TypedDict):
19
+ code: NotRequired[str]
20
+ status: NotRequired[str]
21
+ title: NotRequired[str]
22
+ detail: NotRequired[str]
23
+ meta: NotRequired[ErrorObjectMetaTypedDict]
24
+
25
+
26
+ class Errors(BaseModel):
27
+ code: Optional[str] = None
28
+
29
+ status: Optional[str] = None
30
+
31
+ title: Optional[str] = None
32
+
33
+ detail: Optional[str] = None
34
+
35
+ meta: Optional[ErrorObjectMeta] = None
36
+
37
+
38
+ class ErrorObjectData(BaseModel):
39
+ errors: Optional[List[Errors]] = None
40
+
41
+
42
+ class ErrorObject(Exception):
43
+ data: ErrorObjectData
44
+
45
+ def __init__(self, data: ErrorObjectData):
46
+ self.data = data
47
+
48
+ def __str__(self) -> str:
49
+ return utils.marshal_json(self.data, ErrorObjectData)
@@ -0,0 +1,90 @@
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 AuthorTypedDict(TypedDict):
10
+ id: NotRequired[str]
11
+ name: NotRequired[str]
12
+ email: NotRequired[str]
13
+
14
+
15
+ class Author(BaseModel):
16
+ id: Optional[str] = None
17
+
18
+ name: Optional[str] = None
19
+
20
+ email: Optional[str] = None
21
+
22
+
23
+ class EventsProjectTypedDict(TypedDict):
24
+ id: NotRequired[str]
25
+ name: NotRequired[str]
26
+ slug: NotRequired[str]
27
+
28
+
29
+ class EventsProject(BaseModel):
30
+ id: Optional[str] = None
31
+
32
+ name: Optional[str] = None
33
+
34
+ slug: Optional[str] = None
35
+
36
+
37
+ class EventsTeamTypedDict(TypedDict):
38
+ id: NotRequired[str]
39
+ name: NotRequired[str]
40
+
41
+
42
+ class EventsTeam(BaseModel):
43
+ id: Optional[str] = None
44
+
45
+ name: Optional[str] = None
46
+
47
+
48
+ class TargetTypedDict(TypedDict):
49
+ id: NotRequired[str]
50
+ name: NotRequired[str]
51
+
52
+
53
+ class Target(BaseModel):
54
+ id: Optional[str] = None
55
+
56
+ name: Optional[str] = None
57
+
58
+
59
+ class EventsAttributesTypedDict(TypedDict):
60
+ action: NotRequired[str]
61
+ created_at: NotRequired[str]
62
+ author: NotRequired[AuthorTypedDict]
63
+ project: NotRequired[EventsProjectTypedDict]
64
+ team: NotRequired[EventsTeamTypedDict]
65
+ target: NotRequired[TargetTypedDict]
66
+
67
+
68
+ class EventsAttributes(BaseModel):
69
+ action: Optional[str] = None
70
+
71
+ created_at: Optional[str] = None
72
+
73
+ author: Optional[Author] = None
74
+
75
+ project: Optional[EventsProject] = None
76
+
77
+ team: Optional[EventsTeam] = None
78
+
79
+ target: Optional[Target] = None
80
+
81
+
82
+ class EventsTypedDict(TypedDict):
83
+ id: NotRequired[str]
84
+ attributes: NotRequired[EventsAttributesTypedDict]
85
+
86
+
87
+ class Events(BaseModel):
88
+ id: Optional[str] = None
89
+
90
+ attributes: Optional[EventsAttributes] = None
@@ -0,0 +1,53 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from typing import Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class FilesystemDataType(str, Enum):
11
+ FILESYSTEMS = "filesystems"
12
+
13
+
14
+ class FilesystemDataProjectTypedDict(TypedDict):
15
+ id: NotRequired[str]
16
+ name: NotRequired[str]
17
+ slug: NotRequired[str]
18
+
19
+
20
+ class FilesystemDataProject(BaseModel):
21
+ id: Optional[str] = None
22
+
23
+ name: Optional[str] = None
24
+
25
+ slug: Optional[str] = None
26
+
27
+
28
+ class FilesystemDataAttributesTypedDict(TypedDict):
29
+ name: NotRequired[str]
30
+ size_in_gb: NotRequired[int]
31
+ project: NotRequired[FilesystemDataProjectTypedDict]
32
+
33
+
34
+ class FilesystemDataAttributes(BaseModel):
35
+ name: Optional[str] = None
36
+
37
+ size_in_gb: Optional[int] = None
38
+
39
+ project: Optional[FilesystemDataProject] = None
40
+
41
+
42
+ class FilesystemDataTypedDict(TypedDict):
43
+ id: NotRequired[str]
44
+ type: NotRequired[FilesystemDataType]
45
+ attributes: NotRequired[FilesystemDataAttributesTypedDict]
46
+
47
+
48
+ class FilesystemData(BaseModel):
49
+ id: Optional[str] = None
50
+
51
+ type: Optional[FilesystemDataType] = None
52
+
53
+ attributes: Optional[FilesystemDataAttributes] = None
@@ -0,0 +1,71 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ import pydantic
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class FirewallType(str, Enum):
12
+ FIREWALLS = "firewalls"
13
+
14
+
15
+ class RulesTypedDict(TypedDict):
16
+ from_: NotRequired[str]
17
+ to: NotRequired[str]
18
+ port: NotRequired[str]
19
+ protocol: NotRequired[str]
20
+
21
+
22
+ class Rules(BaseModel):
23
+ from_: Annotated[Optional[str], pydantic.Field(alias="from")] = None
24
+
25
+ to: Optional[str] = None
26
+
27
+ port: Optional[str] = None
28
+
29
+ protocol: Optional[str] = None
30
+
31
+
32
+ class FirewallProjectTypedDict(TypedDict):
33
+ id: NotRequired[str]
34
+ slug: NotRequired[str]
35
+ name: NotRequired[str]
36
+
37
+
38
+ class FirewallProject(BaseModel):
39
+ id: Optional[str] = None
40
+
41
+ slug: Optional[str] = None
42
+
43
+ name: Optional[str] = None
44
+
45
+
46
+ class FirewallAttributesTypedDict(TypedDict):
47
+ name: NotRequired[str]
48
+ rules: NotRequired[List[RulesTypedDict]]
49
+ project: NotRequired[FirewallProjectTypedDict]
50
+
51
+
52
+ class FirewallAttributes(BaseModel):
53
+ name: Optional[str] = None
54
+
55
+ rules: Optional[List[Rules]] = None
56
+
57
+ project: Optional[FirewallProject] = None
58
+
59
+
60
+ class FirewallTypedDict(TypedDict):
61
+ id: NotRequired[str]
62
+ type: NotRequired[FirewallType]
63
+ attributes: NotRequired[FirewallAttributesTypedDict]
64
+
65
+
66
+ class Firewall(BaseModel):
67
+ id: Optional[str] = None
68
+
69
+ type: Optional[FirewallType] = None
70
+
71
+ attributes: Optional[FirewallAttributes] = None