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,50 @@
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_ASSIGNMENTS = "firewall_assignments"
12
+
13
+
14
+ class FirewallServerServerTypedDict(TypedDict):
15
+ id: NotRequired[str]
16
+ primary_ipv4: NotRequired[str]
17
+ hostname: NotRequired[str]
18
+
19
+
20
+ class FirewallServerServer(BaseModel):
21
+ id: Optional[str] = None
22
+
23
+ primary_ipv4: Optional[str] = None
24
+
25
+ hostname: Optional[str] = None
26
+
27
+
28
+ class FirewallServerAttributesTypedDict(TypedDict):
29
+ server: NotRequired[FirewallServerServerTypedDict]
30
+ firewall_id: NotRequired[str]
31
+
32
+
33
+ class FirewallServerAttributes(BaseModel):
34
+ server: Optional[FirewallServerServer] = None
35
+
36
+ firewall_id: Optional[str] = None
37
+
38
+
39
+ class FirewallServerTypedDict(TypedDict):
40
+ id: NotRequired[str]
41
+ type: NotRequired[FirewallServerType]
42
+ attributes: NotRequired[FirewallServerAttributesTypedDict]
43
+
44
+
45
+ class FirewallServer(BaseModel):
46
+ id: Optional[str] = None
47
+
48
+ type: Optional[FirewallServerType] = None
49
+
50
+ 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 import Firewall, FirewallTypedDict
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 MetaTypedDict(TypedDict):
11
+ pass
12
+
13
+
14
+ class Meta(BaseModel):
15
+ pass
16
+
17
+
18
+ class FirewallsTypedDict(TypedDict):
19
+ data: NotRequired[List[FirewallTypedDict]]
20
+ meta: NotRequired[MetaTypedDict]
21
+
22
+
23
+ class Firewalls(BaseModel):
24
+ data: Optional[List[Firewall]] = None
25
+
26
+ meta: Optional[Meta] = None
@@ -0,0 +1,33 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import (
6
+ FieldMetadata,
7
+ HeaderMetadata,
8
+ QueryParamMetadata,
9
+ )
10
+ import pydantic
11
+ from typing import Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
13
+
14
+
15
+ class GetBandwidthPlansRequestTypedDict(TypedDict):
16
+ api_version: NotRequired[str]
17
+ filter_id: NotRequired[str]
18
+ r"""The plan ID to filter by"""
19
+
20
+
21
+ class GetBandwidthPlansRequest(BaseModel):
22
+ api_version: Annotated[
23
+ Optional[str],
24
+ pydantic.Field(alias="API-Version"),
25
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
26
+ ] = "2023-06-01"
27
+
28
+ filter_id: Annotated[
29
+ Optional[str],
30
+ pydantic.Field(alias="filter[id]"),
31
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
32
+ ] = None
33
+ r"""The plan ID to filter by"""
@@ -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,98 @@
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 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
+
30
+
31
+ class GetEventsRequest(BaseModel):
32
+ filter_author: Annotated[
33
+ Optional[str],
34
+ pydantic.Field(alias="filter[author]"),
35
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
36
+ ] = None
37
+ r"""The author ID or email to filter by"""
38
+
39
+ filter_project: Annotated[
40
+ Optional[str],
41
+ pydantic.Field(alias="filter[project]"),
42
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
43
+ ] = None
44
+ r"""The project ID to filter by"""
45
+
46
+ filter_target_name: Annotated[
47
+ Optional[List[str]],
48
+ pydantic.Field(alias="filter[target_name]"),
49
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
50
+ ] = None
51
+ r"""The target type(s) of the event to filter by"""
52
+
53
+ filter_target_id: Annotated[
54
+ Optional[str],
55
+ pydantic.Field(alias="filter[target_id]"),
56
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
57
+ ] = None
58
+ r"""The target id of the event to filter by"""
59
+
60
+ filter_action: Annotated[
61
+ Optional[str],
62
+ pydantic.Field(alias="filter[action]"),
63
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
64
+ ] = None
65
+ r"""The action performed in event to filter by"""
66
+
67
+ filter_created_at_gte: Annotated[
68
+ Optional[str],
69
+ pydantic.Field(alias="filter[created_at][gte]"),
70
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
71
+ ] = None
72
+ r"""The created at greater than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
73
+
74
+ filter_created_at_lte: Annotated[
75
+ Optional[str],
76
+ pydantic.Field(alias="filter[created_at][lte]"),
77
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
78
+ ] = None
79
+ r"""The created at less than equal date to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
80
+
81
+ filter_created_at: Annotated[
82
+ Optional[List[str]],
83
+ pydantic.Field(alias="filter[created_at]"),
84
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
85
+ ] = None
86
+ r"""The created at between date range date1, date2 (inclusive) to filter by, in ISO formatting (yyyy-MM-dd'T'HH:mm:ss)"""
87
+
88
+
89
+ class GetEventsResponseBodyTypedDict(TypedDict):
90
+ r"""Success"""
91
+
92
+ data: NotRequired[List[EventsTypedDict]]
93
+
94
+
95
+ class GetEventsResponseBody(BaseModel):
96
+ r"""Success"""
97
+
98
+ data: Optional[List[Events]] = None
@@ -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 GetFirewallAssignmentsRequestTypedDict(TypedDict):
10
+ firewall_id: str
11
+ r"""The Firewall ID"""
12
+
13
+
14
+ class GetFirewallAssignmentsRequest(BaseModel):
15
+ firewall_id: Annotated[
16
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
17
+ ]
18
+ r"""The Firewall ID"""
@@ -0,0 +1,18 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class 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 is 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 is lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
@@ -0,0 +1,91 @@
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 FieldMetadata, QueryParamMetadata
7
+ import pydantic
8
+ from typing import Optional
9
+ from typing_extensions import Annotated, NotRequired, TypedDict
10
+
11
+
12
+ class FilterFamily(str, Enum):
13
+ r"""The protocol family to filter by"""
14
+
15
+ I_PV4 = "IPv4"
16
+ I_PV6 = "IPv6"
17
+
18
+
19
+ class FilterType(str, Enum):
20
+ r"""The protocol type to filter by"""
21
+
22
+ PRIVATE = "private"
23
+ PUBLIC = "public"
24
+
25
+
26
+ class GetIpsRequestTypedDict(TypedDict):
27
+ filter_server: NotRequired[str]
28
+ r"""The server ID to filter by"""
29
+ filter_project: NotRequired[str]
30
+ r"""The project ID or Slug to filter by"""
31
+ filter_family: NotRequired[FilterFamily]
32
+ r"""The protocol family to filter by"""
33
+ filter_type: NotRequired[FilterType]
34
+ r"""The protocol type to filter by"""
35
+ filter_location: NotRequired[str]
36
+ r"""The site slug to filter by"""
37
+ filter_address: NotRequired[str]
38
+ r"""The address of IP to filter by starts_with"""
39
+ extra_fields_ip_addresses: NotRequired[str]
40
+ r"""The `region` and `server` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
41
+
42
+
43
+ class GetIpsRequest(BaseModel):
44
+ filter_server: Annotated[
45
+ Optional[str],
46
+ pydantic.Field(alias="filter[server]"),
47
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
48
+ ] = None
49
+ r"""The server ID to filter by"""
50
+
51
+ filter_project: Annotated[
52
+ Optional[str],
53
+ pydantic.Field(alias="filter[project]"),
54
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
55
+ ] = None
56
+ r"""The project ID or Slug to filter by"""
57
+
58
+ filter_family: Annotated[
59
+ Optional[FilterFamily],
60
+ pydantic.Field(alias="filter[family]"),
61
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
62
+ ] = None
63
+ r"""The protocol family to filter by"""
64
+
65
+ filter_type: Annotated[
66
+ Optional[FilterType],
67
+ pydantic.Field(alias="filter[type]"),
68
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
69
+ ] = None
70
+ r"""The protocol type to filter by"""
71
+
72
+ filter_location: Annotated[
73
+ Optional[str],
74
+ pydantic.Field(alias="filter[location]"),
75
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
76
+ ] = None
77
+ r"""The site slug to filter by"""
78
+
79
+ filter_address: Annotated[
80
+ Optional[str],
81
+ pydantic.Field(alias="filter[address]"),
82
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
83
+ ] = None
84
+ r"""The address of IP to filter by starts_with"""
85
+
86
+ extra_fields_ip_addresses: Annotated[
87
+ Optional[str],
88
+ pydantic.Field(alias="extra_fields[ip_addresses]"),
89
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
90
+ ] = None
91
+ r"""The `region` and `server` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[ip_addresses]=region,server` in the query string."""
@@ -0,0 +1,16 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class GetPlanRequestTypedDict(TypedDict):
10
+ plan_id: str
11
+
12
+
13
+ class GetPlanRequest(BaseModel):
14
+ plan_id: Annotated[
15
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
16
+ ]
@@ -0,0 +1,19 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .operating_systems import OperatingSystems, OperatingSystemsTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class GetPlansOperatingSystemResponseBodyTypedDict(TypedDict):
11
+ r"""Success"""
12
+
13
+ data: NotRequired[List[OperatingSystemsTypedDict]]
14
+
15
+
16
+ class GetPlansOperatingSystemResponseBody(BaseModel):
17
+ r"""Success"""
18
+
19
+ data: Optional[List[OperatingSystems]] = None
@@ -0,0 +1,125 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .plan_data import PlanData, PlanDataTypedDict
5
+ from enum import Enum
6
+ from latitudesh_python_sdk.types import BaseModel
7
+ from latitudesh_python_sdk.utils import FieldMetadata, QueryParamMetadata
8
+ import pydantic
9
+ from typing import List, Optional
10
+ from typing_extensions import Annotated, NotRequired, TypedDict
11
+
12
+
13
+ class FilterStockLevel(str, Enum):
14
+ r"""The stock level at the site to filter by"""
15
+
16
+ UNAVAILABLE = "Unavailable"
17
+ LOW = "Low"
18
+ MEDIUM = "Medium"
19
+ HIGH = "High"
20
+ UNIQUE = "Unique"
21
+
22
+
23
+ class GetPlansRequestTypedDict(TypedDict):
24
+ filter_name: NotRequired[str]
25
+ r"""The plan name to filter by"""
26
+ filter_slug: NotRequired[str]
27
+ r"""The plan slug to filter by"""
28
+ filter_location: NotRequired[str]
29
+ r"""The location of the site to filter by"""
30
+ filter_stock_level: NotRequired[FilterStockLevel]
31
+ r"""The stock level at the site to filter by"""
32
+ filter_in_stock: NotRequired[bool]
33
+ r"""The stock available at the site to filter by"""
34
+ filter_gpu: NotRequired[bool]
35
+ r"""Filter by the existence of an associated GPU"""
36
+ filter_ram: NotRequired[int]
37
+ r"""The ram size in Gigabytes to filter by, should be used with the following options:
38
+ [eql] to filter for values equal to the provided value.
39
+ [gte] to filter for values greater or equal to the provided value.
40
+ [lte] to filter by values lower or equal to the provided value.
41
+ """
42
+ filter_disk: NotRequired[int]
43
+ r"""The disk size in Gigabytes to filter by, should be used with the following options:
44
+ [eql] to filter for values equal to the provided value.
45
+ [gte] to filter for values greater or equal to the provided value.
46
+ [lte] to filter by values lower or equal to the provided value.
47
+ """
48
+
49
+
50
+ class GetPlansRequest(BaseModel):
51
+ filter_name: Annotated[
52
+ Optional[str],
53
+ pydantic.Field(alias="filter[name]"),
54
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
55
+ ] = None
56
+ r"""The plan name to filter by"""
57
+
58
+ filter_slug: Annotated[
59
+ Optional[str],
60
+ pydantic.Field(alias="filter[slug]"),
61
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
62
+ ] = None
63
+ r"""The plan slug to filter by"""
64
+
65
+ filter_location: Annotated[
66
+ Optional[str],
67
+ pydantic.Field(alias="filter[location]"),
68
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
69
+ ] = None
70
+ r"""The location of the site to filter by"""
71
+
72
+ filter_stock_level: Annotated[
73
+ Optional[FilterStockLevel],
74
+ pydantic.Field(alias="filter[stock_level]"),
75
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
76
+ ] = None
77
+ r"""The stock level at the site to filter by"""
78
+
79
+ filter_in_stock: Annotated[
80
+ Optional[bool],
81
+ pydantic.Field(alias="filter[in_stock]"),
82
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
83
+ ] = None
84
+ r"""The stock available at the site to filter by"""
85
+
86
+ filter_gpu: Annotated[
87
+ Optional[bool],
88
+ pydantic.Field(alias="filter[gpu]"),
89
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
90
+ ] = None
91
+ r"""Filter by the existence of an associated GPU"""
92
+
93
+ filter_ram: Annotated[
94
+ Optional[int],
95
+ pydantic.Field(alias="filter[ram]"),
96
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
97
+ ] = None
98
+ r"""The ram size in Gigabytes to filter by, should be used with the following options:
99
+ [eql] to filter for values equal to the provided value.
100
+ [gte] to filter for values greater or equal to the provided value.
101
+ [lte] to filter by values lower or equal to the provided value.
102
+ """
103
+
104
+ filter_disk: Annotated[
105
+ Optional[int],
106
+ pydantic.Field(alias="filter[disk]"),
107
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
108
+ ] = None
109
+ r"""The disk size in Gigabytes to filter by, should be used with the following options:
110
+ [eql] to filter for values equal to the provided value.
111
+ [gte] to filter for values greater or equal to the provided value.
112
+ [lte] to filter by values lower or equal to the provided value.
113
+ """
114
+
115
+
116
+ class GetPlansResponseBodyTypedDict(TypedDict):
117
+ r"""Success"""
118
+
119
+ data: NotRequired[List[PlanDataTypedDict]]
120
+
121
+
122
+ class GetPlansResponseBody(BaseModel):
123
+ r"""Success"""
124
+
125
+ data: Optional[List[PlanData]] = None
@@ -0,0 +1,37 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .ssh_key_data import SSHKeyData, SSHKeyDataTypedDict
5
+ from latitudesh_python_sdk.types import BaseModel
6
+ from latitudesh_python_sdk.utils import FieldMetadata, PathParamMetadata
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GetProjectSSHKeyRequestTypedDict(TypedDict):
12
+ project_id: str
13
+ r"""Project ID or Slug"""
14
+ ssh_key_id: str
15
+
16
+
17
+ class GetProjectSSHKeyRequest(BaseModel):
18
+ project_id: Annotated[
19
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
20
+ ]
21
+ r"""Project ID or Slug"""
22
+
23
+ ssh_key_id: Annotated[
24
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
25
+ ]
26
+
27
+
28
+ class GetProjectSSHKeyResponseBodyTypedDict(TypedDict):
29
+ r"""Success"""
30
+
31
+ data: NotRequired[SSHKeyDataTypedDict]
32
+
33
+
34
+ class GetProjectSSHKeyResponseBody(BaseModel):
35
+ r"""Success"""
36
+
37
+ data: Optional[SSHKeyData] = None
@@ -0,0 +1,33 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from latitudesh_python_sdk.types import BaseModel
5
+ from latitudesh_python_sdk.utils import (
6
+ FieldMetadata,
7
+ PathParamMetadata,
8
+ QueryParamMetadata,
9
+ )
10
+ import pydantic
11
+ from typing import Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
13
+
14
+
15
+ class GetProjectSSHKeysRequestTypedDict(TypedDict):
16
+ project_id: str
17
+ r"""Project ID or Slug"""
18
+ filter_tags: NotRequired[str]
19
+ r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return ssh keys with `tag_1` AND `tag_2`"""
20
+
21
+
22
+ class GetProjectSSHKeysRequest(BaseModel):
23
+ project_id: Annotated[
24
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
25
+ ]
26
+ r"""Project ID or Slug"""
27
+
28
+ filter_tags: Annotated[
29
+ Optional[str],
30
+ pydantic.Field(alias="filter[tags]"),
31
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
32
+ ] = None
33
+ r"""The tags ids to filter by, separated by comma, e.g. `filter[tags]=tag_1,tag_2`will return ssh keys with `tag_1` AND `tag_2`"""