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,79 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .filesystem_data import FilesystemData, FilesystemDataTypedDict
5
+ from enum import Enum
6
+ from latitudesh_python_sdk.types import BaseModel
7
+ from latitudesh_python_sdk.utils import (
8
+ FieldMetadata,
9
+ PathParamMetadata,
10
+ RequestMetadata,
11
+ )
12
+ from typing import Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class PatchStorageFilesystemsStorageType(str, Enum):
17
+ FILESYSTEMS = "filesystems"
18
+
19
+
20
+ class PatchStorageFilesystemsStorageAttributesTypedDict(TypedDict):
21
+ size_in_gb: NotRequired[int]
22
+ r"""Size in GB (not required, default is 1500)"""
23
+
24
+
25
+ class PatchStorageFilesystemsStorageAttributes(BaseModel):
26
+ size_in_gb: Optional[int] = 1500
27
+ r"""Size in GB (not required, default is 1500)"""
28
+
29
+
30
+ class PatchStorageFilesystemsStorageDataTypedDict(TypedDict):
31
+ id: str
32
+ r"""Filesystem ID"""
33
+ type: PatchStorageFilesystemsStorageType
34
+ attributes: PatchStorageFilesystemsStorageAttributesTypedDict
35
+
36
+
37
+ class PatchStorageFilesystemsStorageData(BaseModel):
38
+ id: str
39
+ r"""Filesystem ID"""
40
+
41
+ type: PatchStorageFilesystemsStorageType
42
+
43
+ attributes: PatchStorageFilesystemsStorageAttributes
44
+
45
+
46
+ class PatchStorageFilesystemsStorageRequestBodyTypedDict(TypedDict):
47
+ data: PatchStorageFilesystemsStorageDataTypedDict
48
+
49
+
50
+ class PatchStorageFilesystemsStorageRequestBody(BaseModel):
51
+ data: PatchStorageFilesystemsStorageData
52
+
53
+
54
+ class PatchStorageFilesystemsRequestTypedDict(TypedDict):
55
+ filesystem_id: str
56
+ request_body: PatchStorageFilesystemsStorageRequestBodyTypedDict
57
+
58
+
59
+ class PatchStorageFilesystemsRequest(BaseModel):
60
+ filesystem_id: Annotated[
61
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
62
+ ]
63
+
64
+ request_body: Annotated[
65
+ PatchStorageFilesystemsStorageRequestBody,
66
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
67
+ ]
68
+
69
+
70
+ class PatchStorageFilesystemsResponseBodyTypedDict(TypedDict):
71
+ r"""Success"""
72
+
73
+ data: NotRequired[FilesystemDataTypedDict]
74
+
75
+
76
+ class PatchStorageFilesystemsResponseBody(BaseModel):
77
+ r"""Success"""
78
+
79
+ data: Optional[FilesystemData] = None
@@ -0,0 +1,88 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .user_update import UserUpdate, UserUpdateTypedDict
5
+ from enum import Enum
6
+ from latitudesh_python_sdk.types import BaseModel
7
+ from latitudesh_python_sdk.utils import (
8
+ FieldMetadata,
9
+ PathParamMetadata,
10
+ RequestMetadata,
11
+ )
12
+ from typing import Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class PatchUserProfileUserProfileType(str, Enum):
17
+ USERS = "users"
18
+
19
+
20
+ class PatchUserProfileUserProfileRole(str, Enum):
21
+ ADMINISTRATOR = "administrator"
22
+ BILLING = "billing"
23
+ COLLABORATOR = "collaborator"
24
+ OWNER = "owner"
25
+
26
+
27
+ class PatchUserProfileUserProfileAttributesTypedDict(TypedDict):
28
+ first_name: NotRequired[str]
29
+ last_name: NotRequired[str]
30
+ role: NotRequired[PatchUserProfileUserProfileRole]
31
+
32
+
33
+ class PatchUserProfileUserProfileAttributes(BaseModel):
34
+ first_name: Optional[str] = None
35
+
36
+ last_name: Optional[str] = None
37
+
38
+ role: Optional[PatchUserProfileUserProfileRole] = None
39
+
40
+
41
+ class PatchUserProfileUserProfileDataTypedDict(TypedDict):
42
+ id: str
43
+ type: PatchUserProfileUserProfileType
44
+ attributes: NotRequired[PatchUserProfileUserProfileAttributesTypedDict]
45
+
46
+
47
+ class PatchUserProfileUserProfileData(BaseModel):
48
+ id: str
49
+
50
+ type: PatchUserProfileUserProfileType
51
+
52
+ attributes: Optional[PatchUserProfileUserProfileAttributes] = None
53
+
54
+
55
+ class PatchUserProfileUserProfileRequestBodyTypedDict(TypedDict):
56
+ data: PatchUserProfileUserProfileDataTypedDict
57
+
58
+
59
+ class PatchUserProfileUserProfileRequestBody(BaseModel):
60
+ data: PatchUserProfileUserProfileData
61
+
62
+
63
+ class PatchUserProfileRequestTypedDict(TypedDict):
64
+ id: str
65
+ request_body: PatchUserProfileUserProfileRequestBodyTypedDict
66
+
67
+
68
+ class PatchUserProfileRequest(BaseModel):
69
+ id: Annotated[
70
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
71
+ ]
72
+
73
+ request_body: Annotated[
74
+ PatchUserProfileUserProfileRequestBody,
75
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
76
+ ]
77
+
78
+
79
+ class PatchUserProfileResponseBodyTypedDict(TypedDict):
80
+ r"""Success"""
81
+
82
+ data: NotRequired[UserUpdateTypedDict]
83
+
84
+
85
+ class PatchUserProfileResponseBody(BaseModel):
86
+ r"""Success"""
87
+
88
+ data: Optional[UserUpdate] = None
@@ -0,0 +1,15 @@
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 latitudesh_python_sdk.types import BaseModel
6
+ from typing import Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class PlanTypedDict(TypedDict):
11
+ data: NotRequired[PlanDataTypedDict]
12
+
13
+
14
+ class Plan(BaseModel):
15
+ data: Optional[PlanData] = None
@@ -0,0 +1,206 @@
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 PlanDataType(str, Enum):
12
+ PLANS = "plans"
13
+
14
+
15
+ class CPUTypedDict(TypedDict):
16
+ type: NotRequired[str]
17
+ clock: NotRequired[float]
18
+ cores: NotRequired[float]
19
+ count: NotRequired[float]
20
+
21
+
22
+ class CPU(BaseModel):
23
+ type: Optional[str] = None
24
+
25
+ clock: Optional[float] = None
26
+
27
+ cores: Optional[float] = None
28
+
29
+ count: Optional[float] = None
30
+
31
+
32
+ class MemoryTypedDict(TypedDict):
33
+ total: NotRequired[str]
34
+
35
+
36
+ class Memory(BaseModel):
37
+ total: Optional[str] = None
38
+
39
+
40
+ class PlanDataAttributesType(str, Enum):
41
+ SSD = "SSD"
42
+ HDD = "HDD"
43
+
44
+
45
+ class DrivesTypedDict(TypedDict):
46
+ count: NotRequired[float]
47
+ size: NotRequired[str]
48
+ type: NotRequired[PlanDataAttributesType]
49
+
50
+
51
+ class Drives(BaseModel):
52
+ count: Optional[float] = None
53
+
54
+ size: Optional[str] = None
55
+
56
+ type: Optional[PlanDataAttributesType] = None
57
+
58
+
59
+ class NicsTypedDict(TypedDict):
60
+ count: NotRequired[float]
61
+ type: NotRequired[str]
62
+
63
+
64
+ class Nics(BaseModel):
65
+ count: Optional[float] = None
66
+
67
+ type: Optional[str] = None
68
+
69
+
70
+ class GpuTypedDict(TypedDict):
71
+ count: NotRequired[float]
72
+ type: NotRequired[str]
73
+
74
+
75
+ class Gpu(BaseModel):
76
+ count: Optional[float] = None
77
+
78
+ type: Optional[str] = None
79
+
80
+
81
+ class SpecsTypedDict(TypedDict):
82
+ cpu: NotRequired[CPUTypedDict]
83
+ memory: NotRequired[MemoryTypedDict]
84
+ drives: NotRequired[List[DrivesTypedDict]]
85
+ nics: NotRequired[List[NicsTypedDict]]
86
+ gpu: NotRequired[GpuTypedDict]
87
+
88
+
89
+ class Specs(BaseModel):
90
+ cpu: Optional[CPU] = None
91
+
92
+ memory: Optional[Memory] = None
93
+
94
+ drives: Optional[List[Drives]] = None
95
+
96
+ nics: Optional[List[Nics]] = None
97
+
98
+ gpu: Optional[Gpu] = None
99
+
100
+
101
+ class LocationsTypedDict(TypedDict):
102
+ available: NotRequired[List[str]]
103
+ in_stock: NotRequired[List[str]]
104
+
105
+
106
+ class Locations(BaseModel):
107
+ available: Optional[List[str]] = None
108
+
109
+ in_stock: Optional[List[str]] = None
110
+
111
+
112
+ class StockLevel(str, Enum):
113
+ UNAVAILABLE = "unavailable"
114
+ LOW = "low"
115
+ MEDIUM = "medium"
116
+ HIGH = "high"
117
+
118
+
119
+ class PlanDataUSDTypedDict(TypedDict):
120
+ hour: NotRequired[float]
121
+ month: NotRequired[float]
122
+ year: NotRequired[float]
123
+
124
+
125
+ class PlanDataUSD(BaseModel):
126
+ hour: Optional[float] = None
127
+
128
+ month: Optional[float] = None
129
+
130
+ year: Optional[float] = None
131
+
132
+
133
+ class PlanDataBRLTypedDict(TypedDict):
134
+ hour: NotRequired[float]
135
+ month: NotRequired[float]
136
+ year: NotRequired[float]
137
+
138
+
139
+ class PlanDataBRL(BaseModel):
140
+ hour: Optional[float] = None
141
+
142
+ month: Optional[float] = None
143
+
144
+ year: Optional[float] = None
145
+
146
+
147
+ class PlanDataPricingTypedDict(TypedDict):
148
+ usd: NotRequired[PlanDataUSDTypedDict]
149
+ brl: NotRequired[PlanDataBRLTypedDict]
150
+
151
+
152
+ class PlanDataPricing(BaseModel):
153
+ usd: Annotated[Optional[PlanDataUSD], pydantic.Field(alias="USD")] = None
154
+
155
+ brl: Annotated[Optional[PlanDataBRL], pydantic.Field(alias="BRL")] = None
156
+
157
+
158
+ class PlanDataRegionsTypedDict(TypedDict):
159
+ name: NotRequired[str]
160
+ deploys_instantly: NotRequired[List[str]]
161
+ locations: NotRequired[LocationsTypedDict]
162
+ stock_level: NotRequired[StockLevel]
163
+ pricing: NotRequired[PlanDataPricingTypedDict]
164
+
165
+
166
+ class PlanDataRegions(BaseModel):
167
+ name: Optional[str] = None
168
+
169
+ deploys_instantly: Optional[List[str]] = None
170
+
171
+ locations: Optional[Locations] = None
172
+
173
+ stock_level: Optional[StockLevel] = None
174
+
175
+ pricing: Optional[PlanDataPricing] = None
176
+
177
+
178
+ class PlanDataAttributesTypedDict(TypedDict):
179
+ slug: NotRequired[str]
180
+ features: NotRequired[List[str]]
181
+ specs: NotRequired[SpecsTypedDict]
182
+ regions: NotRequired[List[PlanDataRegionsTypedDict]]
183
+
184
+
185
+ class PlanDataAttributes(BaseModel):
186
+ slug: Optional[str] = None
187
+
188
+ features: Optional[List[str]] = None
189
+
190
+ specs: Optional[Specs] = None
191
+
192
+ regions: Optional[List[PlanDataRegions]] = None
193
+
194
+
195
+ class PlanDataTypedDict(TypedDict):
196
+ id: NotRequired[str]
197
+ type: NotRequired[PlanDataType]
198
+ attributes: NotRequired[PlanDataAttributesTypedDict]
199
+
200
+
201
+ class PlanData(BaseModel):
202
+ id: Optional[str] = None
203
+
204
+ type: Optional[PlanDataType] = None
205
+
206
+ attributes: Optional[PlanDataAttributes] = None
@@ -0,0 +1,19 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .api_key import APIKey, APIKeyTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from typing import Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class PostAPIKeyResponseBodyTypedDict(TypedDict):
11
+ r"""API Key Created"""
12
+
13
+ data: NotRequired[APIKeyTypedDict]
14
+
15
+
16
+ class PostAPIKeyResponseBody(BaseModel):
17
+ r"""API Key Created"""
18
+
19
+ data: Optional[APIKey] = None
@@ -0,0 +1,81 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .ssh_key_data import SSHKeyData, SSHKeyDataTypedDict
5
+ from enum import Enum
6
+ from latitudesh_python_sdk.types import BaseModel
7
+ from latitudesh_python_sdk.utils import (
8
+ FieldMetadata,
9
+ PathParamMetadata,
10
+ RequestMetadata,
11
+ )
12
+ from typing import Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class PostProjectSSHKeySSHKeysType(str, Enum):
17
+ SSH_KEYS = "ssh_keys"
18
+
19
+
20
+ class PostProjectSSHKeySSHKeysAttributesTypedDict(TypedDict):
21
+ name: NotRequired[str]
22
+ r"""Name of the SSH Key"""
23
+ public_key: NotRequired[str]
24
+ r"""SSH Public Key"""
25
+
26
+
27
+ class PostProjectSSHKeySSHKeysAttributes(BaseModel):
28
+ name: Optional[str] = None
29
+ r"""Name of the SSH Key"""
30
+
31
+ public_key: Optional[str] = None
32
+ r"""SSH Public Key"""
33
+
34
+
35
+ class PostProjectSSHKeySSHKeysDataTypedDict(TypedDict):
36
+ type: PostProjectSSHKeySSHKeysType
37
+ attributes: NotRequired[PostProjectSSHKeySSHKeysAttributesTypedDict]
38
+
39
+
40
+ class PostProjectSSHKeySSHKeysData(BaseModel):
41
+ type: PostProjectSSHKeySSHKeysType
42
+
43
+ attributes: Optional[PostProjectSSHKeySSHKeysAttributes] = None
44
+
45
+
46
+ class PostProjectSSHKeySSHKeysRequestBodyTypedDict(TypedDict):
47
+ data: PostProjectSSHKeySSHKeysDataTypedDict
48
+
49
+
50
+ class PostProjectSSHKeySSHKeysRequestBody(BaseModel):
51
+ data: PostProjectSSHKeySSHKeysData
52
+
53
+
54
+ class PostProjectSSHKeyRequestTypedDict(TypedDict):
55
+ project_id: str
56
+ r"""Project ID or Slug"""
57
+ request_body: PostProjectSSHKeySSHKeysRequestBodyTypedDict
58
+
59
+
60
+ class PostProjectSSHKeyRequest(BaseModel):
61
+ project_id: Annotated[
62
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
63
+ ]
64
+ r"""Project ID or Slug"""
65
+
66
+ request_body: Annotated[
67
+ PostProjectSSHKeySSHKeysRequestBody,
68
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
69
+ ]
70
+
71
+
72
+ class PostProjectSSHKeyResponseBodyTypedDict(TypedDict):
73
+ r"""Created"""
74
+
75
+ data: NotRequired[SSHKeyDataTypedDict]
76
+
77
+
78
+ class PostProjectSSHKeyResponseBody(BaseModel):
79
+ r"""Created"""
80
+
81
+ data: Optional[SSHKeyData] = None
@@ -0,0 +1,68 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import (
7
+ FieldMetadata,
8
+ PathParamMetadata,
9
+ RequestMetadata,
10
+ )
11
+ from typing import Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
13
+
14
+
15
+ class PostProjectUserDataUserDataType(str, Enum):
16
+ USER_DATA = "user_data"
17
+
18
+
19
+ class PostProjectUserDataUserDataAttributesTypedDict(TypedDict):
20
+ description: str
21
+ r"""description of the User Data"""
22
+ content: str
23
+ r"""base64 encoded content of the User Data"""
24
+
25
+
26
+ class PostProjectUserDataUserDataAttributes(BaseModel):
27
+ description: str
28
+ r"""description of the User Data"""
29
+
30
+ content: str
31
+ r"""base64 encoded content of the User Data"""
32
+
33
+
34
+ class PostProjectUserDataUserDataDataTypedDict(TypedDict):
35
+ type: PostProjectUserDataUserDataType
36
+ attributes: NotRequired[PostProjectUserDataUserDataAttributesTypedDict]
37
+
38
+
39
+ class PostProjectUserDataUserDataData(BaseModel):
40
+ type: PostProjectUserDataUserDataType
41
+
42
+ attributes: Optional[PostProjectUserDataUserDataAttributes] = None
43
+
44
+
45
+ class PostProjectUserDataUserDataRequestBodyTypedDict(TypedDict):
46
+ data: PostProjectUserDataUserDataDataTypedDict
47
+
48
+
49
+ class PostProjectUserDataUserDataRequestBody(BaseModel):
50
+ data: PostProjectUserDataUserDataData
51
+
52
+
53
+ class PostProjectUserDataRequestTypedDict(TypedDict):
54
+ project_id: str
55
+ r"""Project ID or Slug"""
56
+ request_body: PostProjectUserDataUserDataRequestBodyTypedDict
57
+
58
+
59
+ class PostProjectUserDataRequest(BaseModel):
60
+ project_id: Annotated[
61
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
62
+ ]
63
+ r"""Project ID or Slug"""
64
+
65
+ request_body: Annotated[
66
+ PostProjectUserDataUserDataRequestBody,
67
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
68
+ ]
@@ -0,0 +1,63 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .filesystem_data import FilesystemData, FilesystemDataTypedDict
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 PostStorageFilesystemsStorageType(str, Enum):
12
+ FILESYSTEMS = "filesystems"
13
+
14
+
15
+ class PostStorageFilesystemsStorageAttributesTypedDict(TypedDict):
16
+ project: str
17
+ r"""Project ID or slug"""
18
+ name: str
19
+ r"""Storage name"""
20
+ size_in_gb: NotRequired[int]
21
+ r"""Size in GB (not required, default is 1500)"""
22
+
23
+
24
+ class PostStorageFilesystemsStorageAttributes(BaseModel):
25
+ project: str
26
+ r"""Project ID or slug"""
27
+
28
+ name: str
29
+ r"""Storage name"""
30
+
31
+ size_in_gb: Optional[int] = 1500
32
+ r"""Size in GB (not required, default is 1500)"""
33
+
34
+
35
+ class PostStorageFilesystemsStorageDataTypedDict(TypedDict):
36
+ type: PostStorageFilesystemsStorageType
37
+ attributes: PostStorageFilesystemsStorageAttributesTypedDict
38
+
39
+
40
+ class PostStorageFilesystemsStorageData(BaseModel):
41
+ type: PostStorageFilesystemsStorageType
42
+
43
+ attributes: PostStorageFilesystemsStorageAttributes
44
+
45
+
46
+ class PostStorageFilesystemsStorageRequestBodyTypedDict(TypedDict):
47
+ data: PostStorageFilesystemsStorageDataTypedDict
48
+
49
+
50
+ class PostStorageFilesystemsStorageRequestBody(BaseModel):
51
+ data: PostStorageFilesystemsStorageData
52
+
53
+
54
+ class PostStorageFilesystemsResponseBodyTypedDict(TypedDict):
55
+ r"""Created"""
56
+
57
+ data: NotRequired[FilesystemDataTypedDict]
58
+
59
+
60
+ class PostStorageFilesystemsResponseBody(BaseModel):
61
+ r"""Created"""
62
+
63
+ data: Optional[FilesystemData] = None
@@ -0,0 +1,54 @@
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 PostTeamMembersTeamsMembersType(str, Enum):
11
+ MEMBERSHIPS = "memberships"
12
+
13
+
14
+ class PostTeamMembersTeamsMembersRole(str, Enum):
15
+ OWNER = "owner"
16
+ ADMINISTRATOR = "administrator"
17
+ COLLABORATOR = "collaborator"
18
+ BILLING = "billing"
19
+
20
+
21
+ class PostTeamMembersTeamsMembersAttributesTypedDict(TypedDict):
22
+ email: str
23
+ role: PostTeamMembersTeamsMembersRole
24
+ first_name: NotRequired[str]
25
+ last_name: NotRequired[str]
26
+
27
+
28
+ class PostTeamMembersTeamsMembersAttributes(BaseModel):
29
+ email: str
30
+
31
+ role: PostTeamMembersTeamsMembersRole
32
+
33
+ first_name: Optional[str] = None
34
+
35
+ last_name: Optional[str] = None
36
+
37
+
38
+ class PostTeamMembersTeamsMembersDataTypedDict(TypedDict):
39
+ type: PostTeamMembersTeamsMembersType
40
+ attributes: NotRequired[PostTeamMembersTeamsMembersAttributesTypedDict]
41
+
42
+
43
+ class PostTeamMembersTeamsMembersData(BaseModel):
44
+ type: PostTeamMembersTeamsMembersType
45
+
46
+ attributes: Optional[PostTeamMembersTeamsMembersAttributes] = None
47
+
48
+
49
+ class PostTeamMembersTeamsMembersRequestBodyTypedDict(TypedDict):
50
+ data: PostTeamMembersTeamsMembersDataTypedDict
51
+
52
+
53
+ class PostTeamMembersTeamsMembersRequestBody(BaseModel):
54
+ data: PostTeamMembersTeamsMembersData