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.
Files changed (242) 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 +113 -0
  6. latitudesh_python_sdk/_version.py +17 -0
  7. latitudesh_python_sdk/apikeys.py +703 -0
  8. latitudesh_python_sdk/basesdk.py +374 -0
  9. latitudesh_python_sdk/billing.py +197 -0
  10. latitudesh_python_sdk/events_sdk.py +298 -0
  11. latitudesh_python_sdk/firewalls_sdk.py +1786 -0
  12. latitudesh_python_sdk/httpclient.py +125 -0
  13. latitudesh_python_sdk/ipaddresses_sdk.py +470 -0
  14. latitudesh_python_sdk/models/__init__.py +3581 -0
  15. latitudesh_python_sdk/models/api_key.py +81 -0
  16. latitudesh_python_sdk/models/apierror.py +40 -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_data.py +72 -0
  20. latitudesh_python_sdk/models/bandwidth_plans.py +26 -0
  21. latitudesh_python_sdk/models/billing_usage.py +249 -0
  22. latitudesh_python_sdk/models/container_plan_data.py +163 -0
  23. latitudesh_python_sdk/models/create_api_key.py +40 -0
  24. latitudesh_python_sdk/models/create_firewall_assignmentop.py +61 -0
  25. latitudesh_python_sdk/models/create_firewallop.py +73 -0
  26. latitudesh_python_sdk/models/create_ipmi_sessionop.py +16 -0
  27. latitudesh_python_sdk/models/create_projectop.py +79 -0
  28. latitudesh_python_sdk/models/create_server_actionop.py +69 -0
  29. latitudesh_python_sdk/models/create_server_out_of_bandop.py +61 -0
  30. latitudesh_python_sdk/models/create_server_reinstallop.py +140 -0
  31. latitudesh_python_sdk/models/create_serverop.py +173 -0
  32. latitudesh_python_sdk/models/create_tagop.py +50 -0
  33. latitudesh_python_sdk/models/create_virtual_machine_actionop.py +63 -0
  34. latitudesh_python_sdk/models/create_virtual_networkop.py +72 -0
  35. latitudesh_python_sdk/models/custom_tag.py +26 -0
  36. latitudesh_python_sdk/models/custom_tag_data.py +54 -0
  37. latitudesh_python_sdk/models/custom_tags.py +26 -0
  38. latitudesh_python_sdk/models/delete_api_keyop.py +16 -0
  39. latitudesh_python_sdk/models/delete_firewall_assignmentop.py +25 -0
  40. latitudesh_python_sdk/models/delete_firewallop.py +18 -0
  41. latitudesh_python_sdk/models/delete_project_ssh_keyop.py +23 -0
  42. latitudesh_python_sdk/models/delete_project_user_dataop.py +23 -0
  43. latitudesh_python_sdk/models/delete_projectop.py +18 -0
  44. latitudesh_python_sdk/models/delete_ssh_keyop.py +16 -0
  45. latitudesh_python_sdk/models/delete_storage_filesystemsop.py +16 -0
  46. latitudesh_python_sdk/models/delete_storage_volumesop.py +16 -0
  47. latitudesh_python_sdk/models/delete_user_dataop.py +16 -0
  48. latitudesh_python_sdk/models/delete_virtual_networks_assignmentsop.py +16 -0
  49. latitudesh_python_sdk/models/delete_vpn_sessionop.py +16 -0
  50. latitudesh_python_sdk/models/deploy_config.py +62 -0
  51. latitudesh_python_sdk/models/destroy_serverop.py +31 -0
  52. latitudesh_python_sdk/models/destroy_tagop.py +16 -0
  53. latitudesh_python_sdk/models/destroy_team_memberop.py +18 -0
  54. latitudesh_python_sdk/models/destroy_virtual_machineop.py +16 -0
  55. latitudesh_python_sdk/models/destroy_virtual_networkop.py +18 -0
  56. latitudesh_python_sdk/models/event_data.py +98 -0
  57. latitudesh_python_sdk/models/events.py +26 -0
  58. latitudesh_python_sdk/models/filesystem_data.py +57 -0
  59. latitudesh_python_sdk/models/firewall.py +26 -0
  60. latitudesh_python_sdk/models/firewall_assignment_data.py +50 -0
  61. latitudesh_python_sdk/models/firewall_assignments.py +29 -0
  62. latitudesh_python_sdk/models/firewall_data.py +75 -0
  63. latitudesh_python_sdk/models/firewall_server.py +36 -0
  64. latitudesh_python_sdk/models/firewalls.py +26 -0
  65. latitudesh_python_sdk/models/get_all_firewall_assignmentsop.py +51 -0
  66. latitudesh_python_sdk/models/get_bandwidth_plansop.py +62 -0
  67. latitudesh_python_sdk/models/get_billing_usageop.py +46 -0
  68. latitudesh_python_sdk/models/get_containers_planop.py +18 -0
  69. latitudesh_python_sdk/models/get_eventsop.py +126 -0
  70. latitudesh_python_sdk/models/get_firewall_assignmentsop.py +53 -0
  71. latitudesh_python_sdk/models/get_firewallop.py +18 -0
  72. latitudesh_python_sdk/models/get_ipop.py +33 -0
  73. latitudesh_python_sdk/models/get_ipsop.py +120 -0
  74. latitudesh_python_sdk/models/get_planop.py +16 -0
  75. latitudesh_python_sdk/models/get_plans_operating_systemop.py +54 -0
  76. latitudesh_python_sdk/models/get_plansop.py +125 -0
  77. latitudesh_python_sdk/models/get_project_ssh_keyop.py +37 -0
  78. latitudesh_python_sdk/models/get_project_ssh_keysop.py +33 -0
  79. latitudesh_python_sdk/models/get_project_user_dataop.py +38 -0
  80. latitudesh_python_sdk/models/get_project_users_dataop.py +46 -0
  81. latitudesh_python_sdk/models/get_projectsop.py +105 -0
  82. latitudesh_python_sdk/models/get_regionop.py +18 -0
  83. latitudesh_python_sdk/models/get_regionsop.py +42 -0
  84. latitudesh_python_sdk/models/get_role_idop.py +16 -0
  85. latitudesh_python_sdk/models/get_rolesop.py +54 -0
  86. latitudesh_python_sdk/models/get_server_deploy_configop.py +18 -0
  87. latitudesh_python_sdk/models/get_server_out_of_bandop.py +18 -0
  88. latitudesh_python_sdk/models/get_serverop.py +33 -0
  89. latitudesh_python_sdk/models/get_serversop.py +185 -0
  90. latitudesh_python_sdk/models/get_ssh_keyop.py +30 -0
  91. latitudesh_python_sdk/models/get_ssh_keysop.py +31 -0
  92. latitudesh_python_sdk/models/get_storage_filesystemsop.py +22 -0
  93. latitudesh_python_sdk/models/get_storage_volumeop.py +32 -0
  94. latitudesh_python_sdk/models/get_storage_volumesop.py +35 -0
  95. latitudesh_python_sdk/models/get_team_membersop.py +42 -0
  96. latitudesh_python_sdk/models/get_traffic_consumptionop.py +49 -0
  97. latitudesh_python_sdk/models/get_traffic_quotaop.py +20 -0
  98. latitudesh_python_sdk/models/get_user_dataop.py +31 -0
  99. latitudesh_python_sdk/models/get_user_profileop.py +19 -0
  100. latitudesh_python_sdk/models/get_users_dataop.py +44 -0
  101. latitudesh_python_sdk/models/get_virtual_networkop.py +32 -0
  102. latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +72 -0
  103. latitudesh_python_sdk/models/get_virtual_networksop.py +69 -0
  104. latitudesh_python_sdk/models/get_vpn_sessionsop.py +70 -0
  105. latitudesh_python_sdk/models/index_virtual_machineop.py +31 -0
  106. latitudesh_python_sdk/models/ip_address.py +122 -0
  107. latitudesh_python_sdk/models/ip_addresses.py +15 -0
  108. latitudesh_python_sdk/models/ipmi_session.py +53 -0
  109. latitudesh_python_sdk/models/latitudesherror.py +30 -0
  110. latitudesh_python_sdk/models/list_firewallsop.py +49 -0
  111. latitudesh_python_sdk/models/membership.py +63 -0
  112. latitudesh_python_sdk/models/no_response_error.py +17 -0
  113. latitudesh_python_sdk/models/operating_system_data.py +65 -0
  114. latitudesh_python_sdk/models/operating_systems.py +26 -0
  115. latitudesh_python_sdk/models/out_of_band_connection.py +88 -0
  116. latitudesh_python_sdk/models/patch_current_teamop.py +91 -0
  117. latitudesh_python_sdk/models/patch_storage_filesystemsop.py +79 -0
  118. latitudesh_python_sdk/models/patch_user_dataop.py +69 -0
  119. latitudesh_python_sdk/models/patch_user_profileop.py +88 -0
  120. latitudesh_python_sdk/models/plan.py +15 -0
  121. latitudesh_python_sdk/models/plan_data.py +210 -0
  122. latitudesh_python_sdk/models/post_api_keyop.py +19 -0
  123. latitudesh_python_sdk/models/post_project_ssh_keyop.py +81 -0
  124. latitudesh_python_sdk/models/post_project_user_dataop.py +68 -0
  125. latitudesh_python_sdk/models/post_ssh_keyop.py +63 -0
  126. latitudesh_python_sdk/models/post_storage_filesystemsop.py +63 -0
  127. latitudesh_python_sdk/models/post_storage_volumes_mountop.py +62 -0
  128. latitudesh_python_sdk/models/post_storage_volumesop.py +63 -0
  129. latitudesh_python_sdk/models/post_team_membersop.py +54 -0
  130. latitudesh_python_sdk/models/post_teamop.py +67 -0
  131. latitudesh_python_sdk/models/post_user_dataop.py +50 -0
  132. latitudesh_python_sdk/models/post_vpn_sessionop.py +63 -0
  133. latitudesh_python_sdk/models/project.py +131 -0
  134. latitudesh_python_sdk/models/project_include.py +75 -0
  135. latitudesh_python_sdk/models/projects.py +15 -0
  136. latitudesh_python_sdk/models/put_project_ssh_keyop.py +87 -0
  137. latitudesh_python_sdk/models/put_project_user_dataop.py +76 -0
  138. latitudesh_python_sdk/models/put_ssh_keyop.py +80 -0
  139. latitudesh_python_sdk/models/put_vpn_sessionop.py +16 -0
  140. latitudesh_python_sdk/models/region.py +50 -0
  141. latitudesh_python_sdk/models/region_resource_data.py +37 -0
  142. latitudesh_python_sdk/models/regions.py +50 -0
  143. latitudesh_python_sdk/models/responsevalidationerror.py +27 -0
  144. latitudesh_python_sdk/models/role.py +26 -0
  145. latitudesh_python_sdk/models/role_data.py +35 -0
  146. latitudesh_python_sdk/models/security.py +25 -0
  147. latitudesh_python_sdk/models/server.py +26 -0
  148. latitudesh_python_sdk/models/server_action.py +52 -0
  149. latitudesh_python_sdk/models/server_data.py +280 -0
  150. latitudesh_python_sdk/models/server_exit_rescue_modeop.py +16 -0
  151. latitudesh_python_sdk/models/server_lockop.py +16 -0
  152. latitudesh_python_sdk/models/server_region_resource_data.py +40 -0
  153. latitudesh_python_sdk/models/server_rescue.py +22 -0
  154. latitudesh_python_sdk/models/server_schedule_deletion.py +44 -0
  155. latitudesh_python_sdk/models/server_schedule_deletionop.py +16 -0
  156. latitudesh_python_sdk/models/server_start_rescue_modeop.py +16 -0
  157. latitudesh_python_sdk/models/server_unlockop.py +16 -0
  158. latitudesh_python_sdk/models/server_unschedule_deletionop.py +16 -0
  159. latitudesh_python_sdk/models/servers.py +26 -0
  160. latitudesh_python_sdk/models/show_virtual_machineop.py +16 -0
  161. latitudesh_python_sdk/models/ssh_key_data.py +55 -0
  162. latitudesh_python_sdk/models/ssh_keys.py +26 -0
  163. latitudesh_python_sdk/models/storage_plan_data.py +47 -0
  164. latitudesh_python_sdk/models/storage_plans.py +26 -0
  165. latitudesh_python_sdk/models/team.py +74 -0
  166. latitudesh_python_sdk/models/team_include.py +43 -0
  167. latitudesh_python_sdk/models/team_members.py +51 -0
  168. latitudesh_python_sdk/models/teams.py +26 -0
  169. latitudesh_python_sdk/models/traffic.py +133 -0
  170. latitudesh_python_sdk/models/traffic_quota.py +106 -0
  171. latitudesh_python_sdk/models/update_api_key.py +48 -0
  172. latitudesh_python_sdk/models/update_api_keyop.py +41 -0
  173. latitudesh_python_sdk/models/update_firewallop.py +89 -0
  174. latitudesh_python_sdk/models/update_plans_bandwidthop.py +50 -0
  175. latitudesh_python_sdk/models/update_projectop.py +95 -0
  176. latitudesh_python_sdk/models/update_server_deploy_configop.py +122 -0
  177. latitudesh_python_sdk/models/update_serverop.py +85 -0
  178. latitudesh_python_sdk/models/update_tagop.py +74 -0
  179. latitudesh_python_sdk/models/update_virtual_networkop.py +67 -0
  180. latitudesh_python_sdk/models/user.py +59 -0
  181. latitudesh_python_sdk/models/user_data.py +26 -0
  182. latitudesh_python_sdk/models/user_data_properties.py +46 -0
  183. latitudesh_python_sdk/models/user_include.py +52 -0
  184. latitudesh_python_sdk/models/user_team.py +61 -0
  185. latitudesh_python_sdk/models/user_teams.py +26 -0
  186. latitudesh_python_sdk/models/user_update.py +37 -0
  187. latitudesh_python_sdk/models/virtual_machine.py +29 -0
  188. latitudesh_python_sdk/models/virtual_machine_attributes.py +115 -0
  189. latitudesh_python_sdk/models/virtual_machine_payload.py +47 -0
  190. latitudesh_python_sdk/models/virtual_machine_plans.py +181 -0
  191. latitudesh_python_sdk/models/virtual_network.py +26 -0
  192. latitudesh_python_sdk/models/virtual_network_assignment.py +29 -0
  193. latitudesh_python_sdk/models/virtual_network_assignment_data.py +65 -0
  194. latitudesh_python_sdk/models/virtual_network_assignments.py +29 -0
  195. latitudesh_python_sdk/models/virtual_network_data.py +114 -0
  196. latitudesh_python_sdk/models/virtual_networks.py +26 -0
  197. latitudesh_python_sdk/models/volume_data.py +111 -0
  198. latitudesh_python_sdk/models/vpn_session_data_with_password.py +77 -0
  199. latitudesh_python_sdk/models/vpn_session_with_password.py +18 -0
  200. latitudesh_python_sdk/operatingsystems_sdk.py +238 -0
  201. latitudesh_python_sdk/plans.py +1304 -0
  202. latitudesh_python_sdk/privatenetworks.py +1612 -0
  203. latitudesh_python_sdk/projects_sdk.py +830 -0
  204. latitudesh_python_sdk/py.typed +1 -0
  205. latitudesh_python_sdk/regions_sdk.py +398 -0
  206. latitudesh_python_sdk/roles.py +398 -0
  207. latitudesh_python_sdk/sdk.py +264 -0
  208. latitudesh_python_sdk/sdkconfiguration.py +50 -0
  209. latitudesh_python_sdk/servers_sdk.py +3414 -0
  210. latitudesh_python_sdk/sshkeys_sdk.py +1882 -0
  211. latitudesh_python_sdk/storage.py +1651 -0
  212. latitudesh_python_sdk/tags.py +715 -0
  213. latitudesh_python_sdk/teams_sdk.py +527 -0
  214. latitudesh_python_sdk/teamsmembers.py +576 -0
  215. latitudesh_python_sdk/traffic_sdk.py +357 -0
  216. latitudesh_python_sdk/types/__init__.py +21 -0
  217. latitudesh_python_sdk/types/basemodel.py +39 -0
  218. latitudesh_python_sdk/userdata_sdk.py +1888 -0
  219. latitudesh_python_sdk/userprofile.py +531 -0
  220. latitudesh_python_sdk/utils/__init__.py +200 -0
  221. latitudesh_python_sdk/utils/annotations.py +79 -0
  222. latitudesh_python_sdk/utils/datetimes.py +23 -0
  223. latitudesh_python_sdk/utils/enums.py +74 -0
  224. latitudesh_python_sdk/utils/eventstreaming.py +248 -0
  225. latitudesh_python_sdk/utils/forms.py +234 -0
  226. latitudesh_python_sdk/utils/headers.py +136 -0
  227. latitudesh_python_sdk/utils/logger.py +27 -0
  228. latitudesh_python_sdk/utils/metadata.py +118 -0
  229. latitudesh_python_sdk/utils/queryparams.py +217 -0
  230. latitudesh_python_sdk/utils/requestbodies.py +66 -0
  231. latitudesh_python_sdk/utils/retries.py +281 -0
  232. latitudesh_python_sdk/utils/security.py +192 -0
  233. latitudesh_python_sdk/utils/serializers.py +249 -0
  234. latitudesh_python_sdk/utils/unmarshal_json_response.py +38 -0
  235. latitudesh_python_sdk/utils/url.py +155 -0
  236. latitudesh_python_sdk/utils/values.py +137 -0
  237. latitudesh_python_sdk/virtualmachines.py +941 -0
  238. latitudesh_python_sdk/vpnsessions.py +715 -0
  239. latitudesh_python_sdk-2.3.0.dist-info/METADATA +787 -0
  240. latitudesh_python_sdk-2.3.0.dist-info/RECORD +242 -0
  241. latitudesh_python_sdk-2.3.0.dist-info/WHEEL +4 -0
  242. latitudesh_python_sdk-2.3.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,163 @@
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 ContainerPlanDataType(str, Enum):
12
+ CONTAINER_PLAN = "container_plan"
13
+
14
+
15
+ class ContainerPlanDataCPUTypedDict(TypedDict):
16
+ cores: NotRequired[float]
17
+ count: NotRequired[float]
18
+
19
+
20
+ class ContainerPlanDataCPU(BaseModel):
21
+ cores: Optional[float] = None
22
+
23
+ count: Optional[float] = None
24
+
25
+
26
+ class ContainerPlanDataMemoryTypedDict(TypedDict):
27
+ total: NotRequired[float]
28
+
29
+
30
+ class ContainerPlanDataMemory(BaseModel):
31
+ total: Optional[float] = None
32
+
33
+
34
+ class EphemeralStorageTypedDict(TypedDict):
35
+ size: NotRequired[float]
36
+
37
+
38
+ class EphemeralStorage(BaseModel):
39
+ size: Optional[float] = None
40
+
41
+
42
+ class ContainerPlanDataGpuTypedDict(TypedDict):
43
+ count: NotRequired[float]
44
+ type: NotRequired[str]
45
+
46
+
47
+ class ContainerPlanDataGpu(BaseModel):
48
+ count: Optional[float] = None
49
+
50
+ type: Optional[str] = None
51
+
52
+
53
+ class ContainerPlanDataSpecsTypedDict(TypedDict):
54
+ cpu: NotRequired[ContainerPlanDataCPUTypedDict]
55
+ memory: NotRequired[ContainerPlanDataMemoryTypedDict]
56
+ ephemeral_storage: NotRequired[EphemeralStorageTypedDict]
57
+ gpu: NotRequired[ContainerPlanDataGpuTypedDict]
58
+
59
+
60
+ class ContainerPlanDataSpecs(BaseModel):
61
+ cpu: Optional[ContainerPlanDataCPU] = None
62
+
63
+ memory: Optional[ContainerPlanDataMemory] = None
64
+
65
+ ephemeral_storage: Optional[EphemeralStorage] = None
66
+
67
+ gpu: Optional[ContainerPlanDataGpu] = None
68
+
69
+
70
+ class ContainerPlanDataLocationsTypedDict(TypedDict):
71
+ available: NotRequired[List[str]]
72
+ in_stock: NotRequired[List[str]]
73
+
74
+
75
+ class ContainerPlanDataLocations(BaseModel):
76
+ available: Optional[List[str]] = None
77
+
78
+ in_stock: Optional[List[str]] = None
79
+
80
+
81
+ class ContainerPlanDataStockLevel(str, Enum):
82
+ UNAVAILABLE = "unavailable"
83
+ LOW = "low"
84
+ MEDIUM = "medium"
85
+ HIGH = "high"
86
+
87
+
88
+ class ContainerPlanDataUSDTypedDict(TypedDict):
89
+ minute: NotRequired[float]
90
+ hour: NotRequired[float]
91
+
92
+
93
+ class ContainerPlanDataUSD(BaseModel):
94
+ minute: Optional[float] = None
95
+
96
+ hour: Optional[float] = None
97
+
98
+
99
+ class ContainerPlanDataBRLTypedDict(TypedDict):
100
+ minute: NotRequired[float]
101
+ hour: NotRequired[float]
102
+
103
+
104
+ class ContainerPlanDataBRL(BaseModel):
105
+ minute: Optional[float] = None
106
+
107
+ hour: Optional[float] = None
108
+
109
+
110
+ class ContainerPlanDataPricingTypedDict(TypedDict):
111
+ usd: NotRequired[ContainerPlanDataUSDTypedDict]
112
+ brl: NotRequired[ContainerPlanDataBRLTypedDict]
113
+
114
+
115
+ class ContainerPlanDataPricing(BaseModel):
116
+ usd: Annotated[Optional[ContainerPlanDataUSD], pydantic.Field(alias="USD")] = None
117
+
118
+ brl: Annotated[Optional[ContainerPlanDataBRL], pydantic.Field(alias="BRL")] = None
119
+
120
+
121
+ class ContainerPlanDataRegionsTypedDict(TypedDict):
122
+ name: NotRequired[str]
123
+ locations: NotRequired[ContainerPlanDataLocationsTypedDict]
124
+ stock_level: NotRequired[ContainerPlanDataStockLevel]
125
+ pricing: NotRequired[ContainerPlanDataPricingTypedDict]
126
+
127
+
128
+ class ContainerPlanDataRegions(BaseModel):
129
+ name: Optional[str] = None
130
+
131
+ locations: Optional[ContainerPlanDataLocations] = None
132
+
133
+ stock_level: Optional[ContainerPlanDataStockLevel] = None
134
+
135
+ pricing: Optional[ContainerPlanDataPricing] = None
136
+
137
+
138
+ class ContainerPlanDataAttributesTypedDict(TypedDict):
139
+ slug: NotRequired[str]
140
+ specs: NotRequired[ContainerPlanDataSpecsTypedDict]
141
+ regions: NotRequired[List[ContainerPlanDataRegionsTypedDict]]
142
+
143
+
144
+ class ContainerPlanDataAttributes(BaseModel):
145
+ slug: Optional[str] = None
146
+
147
+ specs: Optional[ContainerPlanDataSpecs] = None
148
+
149
+ regions: Optional[List[ContainerPlanDataRegions]] = None
150
+
151
+
152
+ class ContainerPlanDataTypedDict(TypedDict):
153
+ id: NotRequired[str]
154
+ type: NotRequired[ContainerPlanDataType]
155
+ attributes: NotRequired[ContainerPlanDataAttributesTypedDict]
156
+
157
+
158
+ class ContainerPlanData(BaseModel):
159
+ id: Optional[str] = None
160
+
161
+ type: Optional[ContainerPlanDataType] = None
162
+
163
+ attributes: Optional[ContainerPlanDataAttributes] = None
@@ -0,0 +1,40 @@
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 CreateAPIKeyType(str, Enum):
11
+ API_KEYS = "api_keys"
12
+
13
+
14
+ class CreateAPIKeyAttributesTypedDict(TypedDict):
15
+ name: NotRequired[str]
16
+ r"""Name of the API Key"""
17
+
18
+
19
+ class CreateAPIKeyAttributes(BaseModel):
20
+ name: Optional[str] = "Name of the API Key"
21
+ r"""Name of the API Key"""
22
+
23
+
24
+ class DataTypedDict(TypedDict):
25
+ type: CreateAPIKeyType
26
+ attributes: NotRequired[CreateAPIKeyAttributesTypedDict]
27
+
28
+
29
+ class Data(BaseModel):
30
+ type: CreateAPIKeyType
31
+
32
+ attributes: Optional[CreateAPIKeyAttributes] = None
33
+
34
+
35
+ class CreateAPIKeyTypedDict(TypedDict):
36
+ data: NotRequired[DataTypedDict]
37
+
38
+
39
+ class CreateAPIKey(BaseModel):
40
+ data: Optional[Data] = None
@@ -0,0 +1,61 @@
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 CreateFirewallAssignmentFirewallsType(str, Enum):
16
+ FIREWALL_ASSIGNMENTS = "firewall_assignments"
17
+
18
+
19
+ class CreateFirewallAssignmentFirewallsAttributesTypedDict(TypedDict):
20
+ server_id: str
21
+
22
+
23
+ class CreateFirewallAssignmentFirewallsAttributes(BaseModel):
24
+ server_id: str
25
+
26
+
27
+ class CreateFirewallAssignmentFirewallsDataTypedDict(TypedDict):
28
+ type: CreateFirewallAssignmentFirewallsType
29
+ attributes: NotRequired[CreateFirewallAssignmentFirewallsAttributesTypedDict]
30
+
31
+
32
+ class CreateFirewallAssignmentFirewallsData(BaseModel):
33
+ type: CreateFirewallAssignmentFirewallsType
34
+
35
+ attributes: Optional[CreateFirewallAssignmentFirewallsAttributes] = None
36
+
37
+
38
+ class CreateFirewallAssignmentFirewallsRequestBodyTypedDict(TypedDict):
39
+ data: CreateFirewallAssignmentFirewallsDataTypedDict
40
+
41
+
42
+ class CreateFirewallAssignmentFirewallsRequestBody(BaseModel):
43
+ data: CreateFirewallAssignmentFirewallsData
44
+
45
+
46
+ class CreateFirewallAssignmentRequestTypedDict(TypedDict):
47
+ firewall_id: str
48
+ r"""The Firewall ID"""
49
+ request_body: CreateFirewallAssignmentFirewallsRequestBodyTypedDict
50
+
51
+
52
+ class CreateFirewallAssignmentRequest(BaseModel):
53
+ firewall_id: Annotated[
54
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
55
+ ]
56
+ r"""The Firewall ID"""
57
+
58
+ request_body: Annotated[
59
+ CreateFirewallAssignmentFirewallsRequestBody,
60
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
61
+ ]
@@ -0,0 +1,73 @@
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 CreateFirewallFirewallsType(str, Enum):
12
+ FIREWALLS = "firewalls"
13
+
14
+
15
+ class CreateFirewallProtocol(str, Enum):
16
+ TCP = "TCP"
17
+ UDP = "UDP"
18
+
19
+
20
+ class CreateFirewallRulesTypedDict(TypedDict):
21
+ from_: NotRequired[str]
22
+ r"""Source IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
23
+ to: NotRequired[str]
24
+ r"""Destination IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
25
+ protocol: NotRequired[CreateFirewallProtocol]
26
+ port: NotRequired[str]
27
+ r"""Port number or range (e.g., \"80\", \"80-443\")"""
28
+
29
+
30
+ class CreateFirewallRules(BaseModel):
31
+ from_: Annotated[Optional[str], pydantic.Field(alias="from")] = None
32
+ r"""Source IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
33
+
34
+ to: Optional[str] = None
35
+ r"""Destination IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
36
+
37
+ protocol: Optional[CreateFirewallProtocol] = None
38
+
39
+ port: Optional[str] = None
40
+ r"""Port number or range (e.g., \"80\", \"80-443\")"""
41
+
42
+
43
+ class CreateFirewallFirewallsAttributesTypedDict(TypedDict):
44
+ name: str
45
+ project: str
46
+ rules: NotRequired[List[CreateFirewallRulesTypedDict]]
47
+
48
+
49
+ class CreateFirewallFirewallsAttributes(BaseModel):
50
+ name: str
51
+
52
+ project: str
53
+
54
+ rules: Optional[List[CreateFirewallRules]] = None
55
+
56
+
57
+ class CreateFirewallFirewallsDataTypedDict(TypedDict):
58
+ type: CreateFirewallFirewallsType
59
+ attributes: NotRequired[CreateFirewallFirewallsAttributesTypedDict]
60
+
61
+
62
+ class CreateFirewallFirewallsData(BaseModel):
63
+ type: CreateFirewallFirewallsType
64
+
65
+ attributes: Optional[CreateFirewallFirewallsAttributes] = None
66
+
67
+
68
+ class CreateFirewallFirewallsRequestBodyTypedDict(TypedDict):
69
+ data: CreateFirewallFirewallsDataTypedDict
70
+
71
+
72
+ class CreateFirewallFirewallsRequestBody(BaseModel):
73
+ data: CreateFirewallFirewallsData
@@ -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 CreateIpmiSessionRequestTypedDict(TypedDict):
10
+ server_id: str
11
+
12
+
13
+ class CreateIpmiSessionRequest(BaseModel):
14
+ server_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -0,0 +1,79 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .project import Project, ProjectTypedDict
5
+ from 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 CreateProjectProjectsType(str, Enum):
12
+ PROJECTS = "projects"
13
+
14
+
15
+ class CreateProjectProvisioningType(str, Enum):
16
+ r"""The provisioning type of the project. Default: on_demand"""
17
+
18
+ RESERVED = "reserved"
19
+ ON_DEMAND = "on_demand"
20
+
21
+
22
+ class CreateProjectProjectsEnvironment(str, Enum):
23
+ DEVELOPMENT = "Development"
24
+ STAGING = "Staging"
25
+ PRODUCTION = "Production"
26
+
27
+
28
+ class CreateProjectProjectsAttributesTypedDict(TypedDict):
29
+ name: str
30
+ r"""The project name. Must be unique."""
31
+ provisioning_type: CreateProjectProvisioningType
32
+ r"""The provisioning type of the project. Default: on_demand"""
33
+ description: NotRequired[str]
34
+ r"""The project description."""
35
+ environment: NotRequired[CreateProjectProjectsEnvironment]
36
+
37
+
38
+ class CreateProjectProjectsAttributes(BaseModel):
39
+ name: str
40
+ r"""The project name. Must be unique."""
41
+
42
+ provisioning_type: CreateProjectProvisioningType
43
+ r"""The provisioning type of the project. Default: on_demand"""
44
+
45
+ description: Optional[str] = None
46
+ r"""The project description."""
47
+
48
+ environment: Optional[CreateProjectProjectsEnvironment] = None
49
+
50
+
51
+ class CreateProjectProjectsDataTypedDict(TypedDict):
52
+ type: CreateProjectProjectsType
53
+ attributes: NotRequired[CreateProjectProjectsAttributesTypedDict]
54
+
55
+
56
+ class CreateProjectProjectsData(BaseModel):
57
+ type: CreateProjectProjectsType
58
+
59
+ attributes: Optional[CreateProjectProjectsAttributes] = None
60
+
61
+
62
+ class CreateProjectProjectsRequestBodyTypedDict(TypedDict):
63
+ data: NotRequired[CreateProjectProjectsDataTypedDict]
64
+
65
+
66
+ class CreateProjectProjectsRequestBody(BaseModel):
67
+ data: Optional[CreateProjectProjectsData] = None
68
+
69
+
70
+ class CreateProjectResponseBodyTypedDict(TypedDict):
71
+ r"""Created"""
72
+
73
+ data: NotRequired[ProjectTypedDict]
74
+
75
+
76
+ class CreateProjectResponseBody(BaseModel):
77
+ r"""Created"""
78
+
79
+ data: Optional[Project] = None
@@ -0,0 +1,69 @@
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 CreateServerActionServersType(str, Enum):
16
+ ACTIONS = "actions"
17
+
18
+
19
+ class CreateServerActionAction(str, Enum):
20
+ r"""The action to perform on the server"""
21
+
22
+ POWER_ON = "power_on"
23
+ POWER_OFF = "power_off"
24
+ REBOOT = "reboot"
25
+
26
+
27
+ class CreateServerActionServersAttributesTypedDict(TypedDict):
28
+ action: CreateServerActionAction
29
+ r"""The action to perform on the server"""
30
+
31
+
32
+ class CreateServerActionServersAttributes(BaseModel):
33
+ action: CreateServerActionAction
34
+ r"""The action to perform on the server"""
35
+
36
+
37
+ class CreateServerActionServersDataTypedDict(TypedDict):
38
+ type: CreateServerActionServersType
39
+ attributes: NotRequired[CreateServerActionServersAttributesTypedDict]
40
+
41
+
42
+ class CreateServerActionServersData(BaseModel):
43
+ type: CreateServerActionServersType
44
+
45
+ attributes: Optional[CreateServerActionServersAttributes] = None
46
+
47
+
48
+ class CreateServerActionServersRequestBodyTypedDict(TypedDict):
49
+ data: CreateServerActionServersDataTypedDict
50
+
51
+
52
+ class CreateServerActionServersRequestBody(BaseModel):
53
+ data: CreateServerActionServersData
54
+
55
+
56
+ class CreateServerActionRequestTypedDict(TypedDict):
57
+ server_id: str
58
+ request_body: CreateServerActionServersRequestBodyTypedDict
59
+
60
+
61
+ class CreateServerActionRequest(BaseModel):
62
+ server_id: Annotated[
63
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
64
+ ]
65
+
66
+ request_body: Annotated[
67
+ CreateServerActionServersRequestBody,
68
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
69
+ ]
@@ -0,0 +1,61 @@
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 CreateServerOutOfBandServersType(str, Enum):
16
+ OUT_OF_BAND = "out_of_band"
17
+
18
+
19
+ class CreateServerOutOfBandServersAttributesTypedDict(TypedDict):
20
+ ssh_key_id: NotRequired[str]
21
+ r"""SSH Key ID to set for out of band"""
22
+
23
+
24
+ class CreateServerOutOfBandServersAttributes(BaseModel):
25
+ ssh_key_id: Optional[str] = None
26
+ r"""SSH Key ID to set for out of band"""
27
+
28
+
29
+ class CreateServerOutOfBandServersDataTypedDict(TypedDict):
30
+ type: CreateServerOutOfBandServersType
31
+ attributes: NotRequired[CreateServerOutOfBandServersAttributesTypedDict]
32
+
33
+
34
+ class CreateServerOutOfBandServersData(BaseModel):
35
+ type: CreateServerOutOfBandServersType
36
+
37
+ attributes: Optional[CreateServerOutOfBandServersAttributes] = None
38
+
39
+
40
+ class CreateServerOutOfBandServersRequestBodyTypedDict(TypedDict):
41
+ data: CreateServerOutOfBandServersDataTypedDict
42
+
43
+
44
+ class CreateServerOutOfBandServersRequestBody(BaseModel):
45
+ data: CreateServerOutOfBandServersData
46
+
47
+
48
+ class CreateServerOutOfBandRequestTypedDict(TypedDict):
49
+ server_id: str
50
+ request_body: CreateServerOutOfBandServersRequestBodyTypedDict
51
+
52
+
53
+ class CreateServerOutOfBandRequest(BaseModel):
54
+ server_id: Annotated[
55
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
56
+ ]
57
+
58
+ request_body: Annotated[
59
+ CreateServerOutOfBandServersRequestBody,
60
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
61
+ ]