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,75 @@
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 FirewallDataType(str, Enum):
12
+ FIREWALLS = "firewalls"
13
+
14
+
15
+ class RulesTypedDict(TypedDict):
16
+ from_: NotRequired[str]
17
+ r"""Source IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
18
+ to: NotRequired[str]
19
+ r"""Destination IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
20
+ port: NotRequired[str]
21
+ protocol: NotRequired[str]
22
+
23
+
24
+ class Rules(BaseModel):
25
+ from_: Annotated[Optional[str], pydantic.Field(alias="from")] = None
26
+ r"""Source IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
27
+
28
+ to: Optional[str] = None
29
+ r"""Destination IP address, IP range in CIDR notation, or 'ANY' (e.g., \"192.168.1.1\", \"192.168.1.0/24\", \"ANY\")"""
30
+
31
+ port: Optional[str] = None
32
+
33
+ protocol: Optional[str] = None
34
+
35
+
36
+ class FirewallDataProjectTypedDict(TypedDict):
37
+ id: NotRequired[str]
38
+ slug: NotRequired[str]
39
+ name: NotRequired[str]
40
+
41
+
42
+ class FirewallDataProject(BaseModel):
43
+ id: Optional[str] = None
44
+
45
+ slug: Optional[str] = None
46
+
47
+ name: Optional[str] = None
48
+
49
+
50
+ class FirewallDataAttributesTypedDict(TypedDict):
51
+ name: NotRequired[str]
52
+ rules: NotRequired[List[RulesTypedDict]]
53
+ project: NotRequired[FirewallDataProjectTypedDict]
54
+
55
+
56
+ class FirewallDataAttributes(BaseModel):
57
+ name: Optional[str] = None
58
+
59
+ rules: Optional[List[Rules]] = None
60
+
61
+ project: Optional[FirewallDataProject] = None
62
+
63
+
64
+ class FirewallDataTypedDict(TypedDict):
65
+ id: NotRequired[str]
66
+ type: NotRequired[FirewallDataType]
67
+ attributes: NotRequired[FirewallDataAttributesTypedDict]
68
+
69
+
70
+ class FirewallData(BaseModel):
71
+ id: Optional[str] = None
72
+
73
+ type: Optional[FirewallDataType] = None
74
+
75
+ attributes: Optional[FirewallDataAttributes] = None
@@ -0,0 +1,36 @@
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 FirewallServerType(str, Enum):
11
+ FIREWALL_SERVERS = "firewall_servers"
12
+
13
+
14
+ class FirewallServerAttributesTypedDict(TypedDict):
15
+ server_id: NotRequired[str]
16
+ firewall_id: NotRequired[str]
17
+
18
+
19
+ class FirewallServerAttributes(BaseModel):
20
+ server_id: Optional[str] = None
21
+
22
+ firewall_id: Optional[str] = None
23
+
24
+
25
+ class FirewallServerTypedDict(TypedDict):
26
+ id: NotRequired[str]
27
+ type: NotRequired[FirewallServerType]
28
+ attributes: NotRequired[FirewallServerAttributesTypedDict]
29
+
30
+
31
+ class FirewallServer(BaseModel):
32
+ id: Optional[str] = None
33
+
34
+ type: Optional[FirewallServerType] = None
35
+
36
+ attributes: Optional[FirewallServerAttributes] = None
@@ -0,0 +1,26 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .firewall_data import FirewallData, FirewallDataTypedDict
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 FirewallsMetaTypedDict(TypedDict):
11
+ pass
12
+
13
+
14
+ class FirewallsMeta(BaseModel):
15
+ pass
16
+
17
+
18
+ class FirewallsTypedDict(TypedDict):
19
+ data: NotRequired[List[FirewallDataTypedDict]]
20
+ meta: NotRequired[FirewallsMetaTypedDict]
21
+
22
+
23
+ class Firewalls(BaseModel):
24
+ data: Optional[List[FirewallData]] = None
25
+
26
+ meta: Optional[FirewallsMeta] = None
@@ -0,0 +1,51 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .firewall_assignments import FirewallAssignments, FirewallAssignmentsTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
7
+ import pydantic
8
+ from typing import Callable, Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class GetAllFirewallAssignmentsRequestTypedDict(TypedDict):
13
+ filter_server: NotRequired[str]
14
+ r"""The server ID to filter by"""
15
+ page_size: NotRequired[int]
16
+ r"""Number of items to return per page"""
17
+ page_number: NotRequired[int]
18
+ r"""Page number to return (starts at 1)"""
19
+
20
+
21
+ class GetAllFirewallAssignmentsRequest(BaseModel):
22
+ filter_server: Annotated[
23
+ Optional[str],
24
+ pydantic.Field(alias="filter[server]"),
25
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
+ ] = None
27
+ r"""The server ID to filter by"""
28
+
29
+ page_size: Annotated[
30
+ Optional[int],
31
+ pydantic.Field(alias="page[size]"),
32
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
33
+ ] = 20
34
+ r"""Number of items to return per page"""
35
+
36
+ page_number: Annotated[
37
+ Optional[int],
38
+ pydantic.Field(alias="page[number]"),
39
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
40
+ ] = 1
41
+ r"""Page number to return (starts at 1)"""
42
+
43
+
44
+ class GetAllFirewallAssignmentsResponseTypedDict(TypedDict):
45
+ result: FirewallAssignmentsTypedDict
46
+
47
+
48
+ class GetAllFirewallAssignmentsResponse(BaseModel):
49
+ next: Callable[[], Optional[GetAllFirewallAssignmentsResponse]]
50
+
51
+ result: FirewallAssignments
@@ -0,0 +1,62 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .bandwidth_plans import BandwidthPlans, BandwidthPlansTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import (
7
+ FieldMetadata,
8
+ HeaderMetadata,
9
+ QueryParamMetadata,
10
+ )
11
+ import pydantic
12
+ from typing import Callable, Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class GetBandwidthPlansRequestTypedDict(TypedDict):
17
+ api_version: NotRequired[str]
18
+ filter_id: NotRequired[str]
19
+ r"""The plan ID to filter by"""
20
+ page_size: NotRequired[int]
21
+ r"""Number of items to return per page"""
22
+ page_number: NotRequired[int]
23
+ r"""Page number to return (starts at 1)"""
24
+
25
+
26
+ class GetBandwidthPlansRequest(BaseModel):
27
+ api_version: Annotated[
28
+ Optional[str],
29
+ pydantic.Field(alias="API-Version"),
30
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
31
+ ] = "2023-06-01"
32
+
33
+ filter_id: Annotated[
34
+ Optional[str],
35
+ pydantic.Field(alias="filter[id]"),
36
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
+ ] = None
38
+ r"""The plan ID to filter by"""
39
+
40
+ page_size: Annotated[
41
+ Optional[int],
42
+ pydantic.Field(alias="page[size]"),
43
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
44
+ ] = 20
45
+ r"""Number of items to return per page"""
46
+
47
+ page_number: Annotated[
48
+ Optional[int],
49
+ pydantic.Field(alias="page[number]"),
50
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
51
+ ] = 1
52
+ r"""Page number to return (starts at 1)"""
53
+
54
+
55
+ class GetBandwidthPlansResponseTypedDict(TypedDict):
56
+ result: BandwidthPlansTypedDict
57
+
58
+
59
+ class GetBandwidthPlansResponse(BaseModel):
60
+ next: Callable[[], Optional[GetBandwidthPlansResponse]]
61
+
62
+ result: BandwidthPlans
@@ -0,0 +1,46 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
6
+ import pydantic
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GetBillingUsageRequestTypedDict(TypedDict):
12
+ filter_project: str
13
+ filter_products: NotRequired[List[str]]
14
+ r"""Allows to filter the billing usage for specific products. It accepts an array of product ids.
15
+
16
+ """
17
+ filter_plan: NotRequired[str]
18
+ r"""Accepts a plan name and allows to filter the usage for that plan.
19
+
20
+ """
21
+
22
+
23
+ class GetBillingUsageRequest(BaseModel):
24
+ filter_project: Annotated[
25
+ str,
26
+ pydantic.Field(alias="filter[project]"),
27
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
28
+ ]
29
+
30
+ filter_products: Annotated[
31
+ Optional[List[str]],
32
+ pydantic.Field(alias="filter[products][]"),
33
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
34
+ ] = None
35
+ r"""Allows to filter the billing usage for specific products. It accepts an array of product ids.
36
+
37
+ """
38
+
39
+ filter_plan: Annotated[
40
+ Optional[str],
41
+ pydantic.Field(alias="filter[plan]"),
42
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
43
+ ] = None
44
+ r"""Accepts a plan name and allows to filter the usage for that plan.
45
+
46
+ """
@@ -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 GetContainersPlanRequestTypedDict(TypedDict):
10
+ plan_id: str
11
+ r"""The Plan ID"""
12
+
13
+
14
+ class GetContainersPlanRequest(BaseModel):
15
+ plan_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The Plan ID"""
@@ -0,0 +1,126 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .events import Events, EventsTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
7
+ import pydantic
8
+ from typing import Callable, List, Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class GetEventsRequestTypedDict(TypedDict):
13
+ filter_author: NotRequired[str]
14
+ r"""The author ID or email to filter by"""
15
+ filter_project: NotRequired[str]
16
+ r"""The project ID to filter by"""
17
+ filter_target_name: NotRequired[List[str]]
18
+ r"""The target type(s) of the event to filter by"""
19
+ filter_target_id: NotRequired[str]
20
+ r"""The target id of the event to filter by"""
21
+ filter_action: NotRequired[str]
22
+ r"""The action performed in event to filter by"""
23
+ filter_created_at_gte: NotRequired[str]
24
+ r"""The created at greater than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
25
+ filter_created_at_lte: NotRequired[str]
26
+ r"""The created at less than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
27
+ filter_created_at: NotRequired[List[str]]
28
+ r"""The created at between date range date1, date2 (inclusive) to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
29
+ page_size: NotRequired[int]
30
+ r"""Number of items to return per page"""
31
+ page_number: NotRequired[int]
32
+ r"""Page number to return (starts at 1)"""
33
+
34
+
35
+ class GetEventsRequest(BaseModel):
36
+ filter_author: Annotated[
37
+ Optional[str],
38
+ pydantic.Field(alias="filter[author]"),
39
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
40
+ ] = None
41
+ r"""The author ID or email to filter by"""
42
+
43
+ filter_project: Annotated[
44
+ Optional[str],
45
+ pydantic.Field(alias="filter[project]"),
46
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
47
+ ] = None
48
+ r"""The project ID to filter by"""
49
+
50
+ filter_target_name: Annotated[
51
+ Optional[List[str]],
52
+ pydantic.Field(alias="filter[target_name]"),
53
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
54
+ ] = None
55
+ r"""The target type(s) of the event to filter by"""
56
+
57
+ filter_target_id: Annotated[
58
+ Optional[str],
59
+ pydantic.Field(alias="filter[target_id]"),
60
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
61
+ ] = None
62
+ r"""The target id of the event to filter by"""
63
+
64
+ filter_action: Annotated[
65
+ Optional[str],
66
+ pydantic.Field(alias="filter[action]"),
67
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
68
+ ] = None
69
+ r"""The action performed in event to filter by"""
70
+
71
+ filter_created_at_gte: Annotated[
72
+ Optional[str],
73
+ pydantic.Field(alias="filter[created_at][gte]"),
74
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
75
+ ] = None
76
+ r"""The created at greater than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
77
+
78
+ filter_created_at_lte: Annotated[
79
+ Optional[str],
80
+ pydantic.Field(alias="filter[created_at][lte]"),
81
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
82
+ ] = None
83
+ r"""The created at less than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
84
+
85
+ filter_created_at: Annotated[
86
+ Optional[List[str]],
87
+ pydantic.Field(alias="filter[created_at]"),
88
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
89
+ ] = None
90
+ r"""The created at between date range date1, date2 (inclusive) to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
91
+
92
+ page_size: Annotated[
93
+ Optional[int],
94
+ pydantic.Field(alias="page[size]"),
95
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
96
+ ] = 20
97
+ r"""Number of items to return per page"""
98
+
99
+ page_number: Annotated[
100
+ Optional[int],
101
+ pydantic.Field(alias="page[number]"),
102
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
103
+ ] = 1
104
+ r"""Page number to return (starts at 1)"""
105
+
106
+
107
+ class GetEventsResponseBodyTypedDict(TypedDict):
108
+ r"""Success"""
109
+
110
+ data: NotRequired[List[EventsTypedDict]]
111
+
112
+
113
+ class GetEventsResponseBody(BaseModel):
114
+ r"""Success"""
115
+
116
+ data: Optional[List[Events]] = None
117
+
118
+
119
+ class GetEventsResponseTypedDict(TypedDict):
120
+ result: GetEventsResponseBodyTypedDict
121
+
122
+
123
+ class GetEventsResponse(BaseModel):
124
+ next: Callable[[], Optional[GetEventsResponse]]
125
+
126
+ result: GetEventsResponseBody
@@ -0,0 +1,53 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .firewall_assignments import FirewallAssignments, FirewallAssignmentsTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import (
7
+ FieldMetadata,
8
+ PathParamMetadata,
9
+ QueryParamMetadata,
10
+ )
11
+ import pydantic
12
+ from typing import Callable, Optional
13
+ from typing_extensions import Annotated, NotRequired, TypedDict
14
+
15
+
16
+ class GetFirewallAssignmentsRequestTypedDict(TypedDict):
17
+ firewall_id: str
18
+ r"""The Firewall ID"""
19
+ page_size: NotRequired[int]
20
+ r"""Number of items to return per page"""
21
+ page_number: NotRequired[int]
22
+ r"""Page number to return (starts at 1)"""
23
+
24
+
25
+ class GetFirewallAssignmentsRequest(BaseModel):
26
+ firewall_id: Annotated[
27
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
28
+ ]
29
+ r"""The Firewall ID"""
30
+
31
+ page_size: Annotated[
32
+ Optional[int],
33
+ pydantic.Field(alias="page[size]"),
34
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
+ ] = 20
36
+ r"""Number of items to return per page"""
37
+
38
+ page_number: Annotated[
39
+ Optional[int],
40
+ pydantic.Field(alias="page[number]"),
41
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
42
+ ] = 1
43
+ r"""Page number to return (starts at 1)"""
44
+
45
+
46
+ class GetFirewallAssignmentsResponseTypedDict(TypedDict):
47
+ result: FirewallAssignmentsTypedDict
48
+
49
+
50
+ class GetFirewallAssignmentsResponse(BaseModel):
51
+ next: Callable[[], Optional[GetFirewallAssignmentsResponse]]
52
+
53
+ result: FirewallAssignments
@@ -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 GetFirewallRequestTypedDict(TypedDict):
10
+ firewall_id: str
11
+ r"""The Firewall ID"""
12
+
13
+
14
+ class GetFirewallRequest(BaseModel):
15
+ firewall_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The Firewall ID"""
@@ -0,0 +1,33 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import (
6
+ FieldMetadata,
7
+ PathParamMetadata,
8
+ QueryParamMetadata,
9
+ )
10
+ import pydantic
11
+ from typing import Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
13
+
14
+
15
+ class GetIPRequestTypedDict(TypedDict):
16
+ ip_id: str
17
+ r"""The IP Address ID"""
18
+ extra_fields_ip_addresses: NotRequired[str]
19
+ r"""The `region` and `server` are provided as extra attributes that are lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
20
+
21
+
22
+ class GetIPRequest(BaseModel):
23
+ ip_id: Annotated[
24
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
25
+ ]
26
+ r"""The IP Address ID"""
27
+
28
+ extra_fields_ip_addresses: Annotated[
29
+ Optional[str],
30
+ pydantic.Field(alias="extra_fields[ip_addresses]"),
31
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
32
+ ] = None
33
+ r"""The `region` and `server` are provided as extra attributes that are lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
@@ -0,0 +1,120 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .ip_addresses import IPAddresses, IPAddressesTypedDict
5
+ from enum import Enum
6
+ from latitudesh_python_sdk.types import BaseModel
7
+ from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
8
+ import pydantic
9
+ from typing import Callable, Optional
10
+ from typing_extensions import Annotated, NotRequired, TypedDict
11
+
12
+
13
+ class FilterFamily(str, Enum):
14
+ r"""The protocol family to filter by"""
15
+
16
+ I_PV4 = "IPv4"
17
+ I_PV6 = "IPv6"
18
+
19
+
20
+ class FilterType(str, Enum):
21
+ r"""The protocol type to filter by"""
22
+
23
+ PRIVATE = "private"
24
+ PUBLIC = "public"
25
+
26
+
27
+ class GetIpsRequestTypedDict(TypedDict):
28
+ filter_server: NotRequired[str]
29
+ r"""The server ID to filter by"""
30
+ filter_project: NotRequired[str]
31
+ r"""The project ID or Slug to filter by"""
32
+ filter_family: NotRequired[FilterFamily]
33
+ r"""The protocol family to filter by"""
34
+ filter_type: NotRequired[FilterType]
35
+ r"""The protocol type to filter by"""
36
+ filter_location: NotRequired[str]
37
+ r"""The site slug to filter by"""
38
+ filter_address: NotRequired[str]
39
+ r"""The address of IP to filter by starts_with"""
40
+ extra_fields_ip_addresses: NotRequired[str]
41
+ r"""The `region` and `server` are provided as extra attributes that are lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
42
+ page_size: NotRequired[int]
43
+ r"""Number of items to return per page"""
44
+ page_number: NotRequired[int]
45
+ r"""Page number to return (starts at 1)"""
46
+
47
+
48
+ class GetIpsRequest(BaseModel):
49
+ filter_server: Annotated[
50
+ Optional[str],
51
+ pydantic.Field(alias="filter[server]"),
52
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
53
+ ] = None
54
+ r"""The server ID to filter by"""
55
+
56
+ filter_project: Annotated[
57
+ Optional[str],
58
+ pydantic.Field(alias="filter[project]"),
59
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
60
+ ] = None
61
+ r"""The project ID or Slug to filter by"""
62
+
63
+ filter_family: Annotated[
64
+ Optional[FilterFamily],
65
+ pydantic.Field(alias="filter[family]"),
66
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
67
+ ] = None
68
+ r"""The protocol family to filter by"""
69
+
70
+ filter_type: Annotated[
71
+ Optional[FilterType],
72
+ pydantic.Field(alias="filter[type]"),
73
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
74
+ ] = None
75
+ r"""The protocol type to filter by"""
76
+
77
+ filter_location: Annotated[
78
+ Optional[str],
79
+ pydantic.Field(alias="filter[location]"),
80
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
81
+ ] = None
82
+ r"""The site slug to filter by"""
83
+
84
+ filter_address: Annotated[
85
+ Optional[str],
86
+ pydantic.Field(alias="filter[address]"),
87
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
88
+ ] = None
89
+ r"""The address of IP to filter by starts_with"""
90
+
91
+ extra_fields_ip_addresses: Annotated[
92
+ Optional[str],
93
+ pydantic.Field(alias="extra_fields[ip_addresses]"),
94
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
95
+ ] = None
96
+ r"""The `region` and `server` are provided as extra attributes that are lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
97
+
98
+ page_size: Annotated[
99
+ Optional[int],
100
+ pydantic.Field(alias="page[size]"),
101
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
102
+ ] = 20
103
+ r"""Number of items to return per page"""
104
+
105
+ page_number: Annotated[
106
+ Optional[int],
107
+ pydantic.Field(alias="page[number]"),
108
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
109
+ ] = 1
110
+ r"""Page number to return (starts at 1)"""
111
+
112
+
113
+ class GetIpsResponseTypedDict(TypedDict):
114
+ result: IPAddressesTypedDict
115
+
116
+
117
+ class GetIpsResponse(BaseModel):
118
+ next: Callable[[], Optional[GetIpsResponse]]
119
+
120
+ result: IPAddresses