latitudesh-python-sdk 1.0.0__py3-none-any.whl → 2.0.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.
Potentially problematic release.
This version of latitudesh-python-sdk might be problematic. Click here for more details.
- latitudesh_python_sdk/_hooks/types.py +7 -0
- latitudesh_python_sdk/_version.py +6 -4
- latitudesh_python_sdk/apikeys.py +22 -18
- latitudesh_python_sdk/basesdk.py +12 -20
- latitudesh_python_sdk/billing.py +2 -0
- latitudesh_python_sdk/events_sdk.py +86 -5
- latitudesh_python_sdk/firewalls_sdk.py +146 -9
- latitudesh_python_sdk/httpclient.py +6 -16
- latitudesh_python_sdk/ipaddresses_sdk.py +82 -5
- latitudesh_python_sdk/models/__init__.py +2597 -1071
- latitudesh_python_sdk/models/assign_server_virtual_networkop.py +2 -2
- latitudesh_python_sdk/models/{bandwidth_plan.py → bandwidth_plan_data.py} +9 -9
- latitudesh_python_sdk/models/bandwidth_plans.py +14 -3
- latitudesh_python_sdk/models/billing_usage.py +3 -0
- latitudesh_python_sdk/models/custom_tag.py +15 -0
- latitudesh_python_sdk/models/custom_tag_data.py +54 -0
- latitudesh_python_sdk/models/custom_tags.py +26 -0
- latitudesh_python_sdk/models/delete_ssh_keyop.py +16 -0
- latitudesh_python_sdk/models/delete_user_dataop.py +16 -0
- latitudesh_python_sdk/models/event_data.py +98 -0
- latitudesh_python_sdk/models/events.py +16 -1
- latitudesh_python_sdk/models/filesystem_data.py +4 -0
- latitudesh_python_sdk/models/firewall.py +15 -0
- latitudesh_python_sdk/models/firewall_assignment_data.py +50 -0
- latitudesh_python_sdk/models/firewall_assignments.py +29 -0
- latitudesh_python_sdk/models/firewall_data.py +71 -0
- latitudesh_python_sdk/models/firewall_server.py +4 -1
- latitudesh_python_sdk/models/firewalls.py +7 -7
- latitudesh_python_sdk/models/get_bandwidth_plansop.py +30 -1
- latitudesh_python_sdk/models/get_eventsop.py +29 -1
- latitudesh_python_sdk/models/get_firewall_assignmentsop.py +37 -2
- latitudesh_python_sdk/models/get_ipsop.py +30 -1
- latitudesh_python_sdk/models/get_plans_operating_systemop.py +37 -2
- latitudesh_python_sdk/models/get_projectsop.py +30 -1
- latitudesh_python_sdk/models/get_regionsop.py +42 -0
- latitudesh_python_sdk/models/get_rolesop.py +37 -2
- latitudesh_python_sdk/models/get_serversop.py +30 -1
- latitudesh_python_sdk/models/get_ssh_keyop.py +30 -0
- latitudesh_python_sdk/models/get_ssh_keysop.py +22 -0
- latitudesh_python_sdk/models/get_team_membersop.py +42 -0
- latitudesh_python_sdk/models/get_traffic_consumptionop.py +8 -4
- latitudesh_python_sdk/models/get_user_dataop.py +31 -0
- latitudesh_python_sdk/models/get_users_dataop.py +35 -0
- latitudesh_python_sdk/models/get_virtual_networks_assignmentsop.py +33 -1
- latitudesh_python_sdk/models/get_virtual_networksop.py +30 -1
- latitudesh_python_sdk/models/list_firewallsop.py +30 -1
- latitudesh_python_sdk/models/operating_system_data.py +65 -0
- latitudesh_python_sdk/models/operating_systems.py +15 -0
- latitudesh_python_sdk/models/out_of_band_connection.py +4 -4
- latitudesh_python_sdk/models/patch_user_dataop.py +69 -0
- latitudesh_python_sdk/models/post_ssh_keyop.py +58 -0
- latitudesh_python_sdk/models/post_user_dataop.py +45 -0
- latitudesh_python_sdk/models/project_include.py +3 -0
- latitudesh_python_sdk/models/put_ssh_keyop.py +80 -0
- latitudesh_python_sdk/models/role.py +11 -0
- latitudesh_python_sdk/models/server_data.py +8 -0
- latitudesh_python_sdk/models/{ssh_key.py → ssh_keys.py} +13 -2
- latitudesh_python_sdk/models/storage_plan_data.py +47 -0
- latitudesh_python_sdk/models/storage_plans.py +14 -3
- latitudesh_python_sdk/models/update_serverop.py +60 -10
- latitudesh_python_sdk/models/user_data.py +11 -0
- latitudesh_python_sdk/models/virtual_network.py +19 -1
- latitudesh_python_sdk/models/virtual_network1.py +15 -0
- latitudesh_python_sdk/models/virtual_network_assignment.py +41 -0
- latitudesh_python_sdk/models/virtual_network_assignment_data.py +68 -0
- latitudesh_python_sdk/models/virtual_network_assignments.py +5 -5
- latitudesh_python_sdk/models/virtual_network_data.py +88 -0
- latitudesh_python_sdk/models/virtual_networks.py +3 -3
- latitudesh_python_sdk/operatingsystems_sdk.py +78 -9
- latitudesh_python_sdk/plans.py +109 -30
- latitudesh_python_sdk/privatenetworks.py +185 -36
- latitudesh_python_sdk/projects_sdk.py +113 -32
- latitudesh_python_sdk/regions_sdk.py +78 -7
- latitudesh_python_sdk/roles.py +78 -7
- latitudesh_python_sdk/sdk.py +110 -73
- latitudesh_python_sdk/sdkconfiguration.py +0 -7
- latitudesh_python_sdk/servers_sdk.py +195 -50
- latitudesh_python_sdk/{sshkeys.py → sshkeys_sdk.py} +1030 -5
- latitudesh_python_sdk/storage.py +8 -0
- latitudesh_python_sdk/tags.py +30 -22
- latitudesh_python_sdk/teams_sdk.py +6 -0
- latitudesh_python_sdk/teamsmembers.py +80 -7
- latitudesh_python_sdk/traffic_sdk.py +12 -8
- latitudesh_python_sdk/userdata_sdk.py +1029 -0
- latitudesh_python_sdk/userprofile.py +6 -0
- latitudesh_python_sdk/utils/__init__.py +131 -45
- latitudesh_python_sdk/utils/datetimes.py +23 -0
- latitudesh_python_sdk/utils/forms.py +49 -28
- latitudesh_python_sdk/utils/serializers.py +32 -3
- latitudesh_python_sdk/virtualmachines.py +36 -18
- latitudesh_python_sdk/vpnsessions.py +38 -26
- {latitudesh_python_sdk-1.0.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/METADATA +58 -22
- {latitudesh_python_sdk-1.0.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/RECORD +95 -73
- {latitudesh_python_sdk-1.0.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/WHEEL +1 -1
- latitudesh_python_sdk/models/storage_plan.py +0 -36
- {latitudesh_python_sdk-1.0.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/LICENSE +0 -0
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .storage_plan_data import StoragePlanData, StoragePlanDataTypedDict
|
|
5
5
|
from latitudesh_python_sdk.types import BaseModel
|
|
6
6
|
from typing import List, Optional
|
|
7
7
|
from typing_extensions import NotRequired, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
class StoragePlansMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class StoragePlansMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
class StoragePlansTypedDict(TypedDict):
|
|
11
|
-
data: NotRequired[List[
|
|
19
|
+
data: NotRequired[List[StoragePlanDataTypedDict]]
|
|
20
|
+
meta: NotRequired[StoragePlansMetaTypedDict]
|
|
12
21
|
|
|
13
22
|
|
|
14
23
|
class StoragePlans(BaseModel):
|
|
15
|
-
data: Optional[List[
|
|
24
|
+
data: Optional[List[StoragePlanData]] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[StoragePlansMeta] = None
|
|
@@ -12,45 +12,95 @@ from typing import List, Optional
|
|
|
12
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class UpdateServerServersRequestType(str, Enum):
|
|
16
16
|
SERVERS = "servers"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class UpdateServerServersRequestBilling(str, Enum):
|
|
20
20
|
HOURLY = "hourly"
|
|
21
21
|
MONTHLY = "monthly"
|
|
22
22
|
YEARLY = "yearly"
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class UpdateServerServersRequestAttributesTypedDict(TypedDict):
|
|
26
26
|
hostname: NotRequired[str]
|
|
27
|
-
billing: NotRequired[
|
|
27
|
+
billing: NotRequired[UpdateServerServersRequestBilling]
|
|
28
28
|
tags: NotRequired[List[str]]
|
|
29
29
|
project: NotRequired[str]
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
class
|
|
32
|
+
class UpdateServerServersRequestAttributes(BaseModel):
|
|
33
33
|
hostname: Optional[str] = "new-hostname"
|
|
34
34
|
|
|
35
|
-
billing: Optional[
|
|
35
|
+
billing: Optional[UpdateServerServersRequestBilling] = (
|
|
36
|
+
UpdateServerServersRequestBilling.MONTHLY
|
|
37
|
+
)
|
|
36
38
|
|
|
37
39
|
tags: Optional[List[str]] = None
|
|
38
40
|
|
|
39
41
|
project: Optional[str] = None
|
|
40
42
|
|
|
41
43
|
|
|
44
|
+
class UpdateServerServersRequestApplicationJSONType(str, Enum):
|
|
45
|
+
SERVERS = "servers"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class UpdateServerServersRequestApplicationJSONBilling(str, Enum):
|
|
49
|
+
HOURLY = "hourly"
|
|
50
|
+
MONTHLY = "monthly"
|
|
51
|
+
YEARLY = "yearly"
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class UpdateServerServersRequestApplicationJSONAttributesTypedDict(TypedDict):
|
|
55
|
+
hostname: NotRequired[str]
|
|
56
|
+
billing: NotRequired[UpdateServerServersRequestApplicationJSONBilling]
|
|
57
|
+
tags: NotRequired[List[str]]
|
|
58
|
+
project: NotRequired[str]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class UpdateServerServersRequestApplicationJSONAttributes(BaseModel):
|
|
62
|
+
hostname: Optional[str] = "new-hostname"
|
|
63
|
+
|
|
64
|
+
billing: Optional[UpdateServerServersRequestApplicationJSONBilling] = (
|
|
65
|
+
UpdateServerServersRequestApplicationJSONBilling.MONTHLY
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
tags: Optional[List[str]] = None
|
|
69
|
+
|
|
70
|
+
project: Optional[str] = None
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class UpdateServerServersDataTypedDict(TypedDict):
|
|
74
|
+
id: NotRequired[str]
|
|
75
|
+
type: NotRequired[UpdateServerServersRequestApplicationJSONType]
|
|
76
|
+
attributes: NotRequired[
|
|
77
|
+
UpdateServerServersRequestApplicationJSONAttributesTypedDict
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class UpdateServerServersData(BaseModel):
|
|
82
|
+
id: Optional[str] = "sv_81EVOtR1N4J2Z"
|
|
83
|
+
|
|
84
|
+
type: Optional[UpdateServerServersRequestApplicationJSONType] = None
|
|
85
|
+
|
|
86
|
+
attributes: Optional[UpdateServerServersRequestApplicationJSONAttributes] = None
|
|
87
|
+
|
|
88
|
+
|
|
42
89
|
class UpdateServerServersRequestBodyTypedDict(TypedDict):
|
|
43
90
|
id: NotRequired[str]
|
|
44
|
-
type: NotRequired[
|
|
45
|
-
attributes: NotRequired[
|
|
91
|
+
type: NotRequired[UpdateServerServersRequestType]
|
|
92
|
+
attributes: NotRequired[UpdateServerServersRequestAttributesTypedDict]
|
|
93
|
+
data: NotRequired[UpdateServerServersDataTypedDict]
|
|
46
94
|
|
|
47
95
|
|
|
48
96
|
class UpdateServerServersRequestBody(BaseModel):
|
|
49
97
|
id: Optional[str] = "sv_81EVOtR1N4J2Z"
|
|
50
98
|
|
|
51
|
-
type: Optional[
|
|
99
|
+
type: Optional[UpdateServerServersRequestType] = None
|
|
100
|
+
|
|
101
|
+
attributes: Optional[UpdateServerServersRequestAttributes] = None
|
|
52
102
|
|
|
53
|
-
|
|
103
|
+
data: Optional[UpdateServerServersData] = None
|
|
54
104
|
|
|
55
105
|
|
|
56
106
|
class UpdateServerRequestTypedDict(TypedDict):
|
|
@@ -7,9 +7,20 @@ from typing import Optional
|
|
|
7
7
|
from typing_extensions import NotRequired, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
class UserDataMetaTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class UserDataMeta(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
class UserDataTypedDict(TypedDict):
|
|
11
19
|
data: NotRequired[UserDataPropertiesTypedDict]
|
|
20
|
+
meta: NotRequired[UserDataMetaTypedDict]
|
|
12
21
|
|
|
13
22
|
|
|
14
23
|
class UserData(BaseModel):
|
|
15
24
|
data: Optional[UserDataProperties] = None
|
|
25
|
+
|
|
26
|
+
meta: Optional[UserDataMeta] = None
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .virtual_network_data import VirtualNetworkData, VirtualNetworkDataTypedDict
|
|
5
5
|
from enum import Enum
|
|
6
6
|
from latitudesh_python_sdk import utils
|
|
7
7
|
from latitudesh_python_sdk.types import BaseModel
|
|
@@ -72,10 +72,20 @@ class VirtualNetworkAttributes1(BaseModel):
|
|
|
72
72
|
r"""Amount of devices assigned to the virtual network"""
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
class VirtualNetworkMeta1TypedDict(TypedDict):
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class VirtualNetworkMeta1(BaseModel):
|
|
80
|
+
pass
|
|
81
|
+
|
|
82
|
+
|
|
75
83
|
class VirtualNetworkTypedDict(TypedDict):
|
|
76
84
|
id: NotRequired[str]
|
|
77
85
|
type: NotRequired[VirtualNetworkType1]
|
|
78
86
|
attributes: NotRequired[VirtualNetworkAttributes1TypedDict]
|
|
87
|
+
data: NotRequired[VirtualNetworkDataTypedDict]
|
|
88
|
+
meta: NotRequired[VirtualNetworkMeta1TypedDict]
|
|
79
89
|
|
|
80
90
|
|
|
81
91
|
class VirtualNetwork(BaseModel):
|
|
@@ -85,6 +95,10 @@ class VirtualNetwork(BaseModel):
|
|
|
85
95
|
|
|
86
96
|
attributes: Optional[VirtualNetworkAttributes1] = None
|
|
87
97
|
|
|
98
|
+
data: Optional[VirtualNetworkData] = None
|
|
99
|
+
|
|
100
|
+
meta: Optional[VirtualNetworkMeta1] = None
|
|
101
|
+
|
|
88
102
|
|
|
89
103
|
class VirtualNetworkErrorData(BaseModel):
|
|
90
104
|
id: Optional[str] = None
|
|
@@ -93,6 +107,10 @@ class VirtualNetworkErrorData(BaseModel):
|
|
|
93
107
|
|
|
94
108
|
attributes: Optional[VirtualNetworkAttributes1] = None
|
|
95
109
|
|
|
110
|
+
data: Optional[VirtualNetworkData] = None
|
|
111
|
+
|
|
112
|
+
meta: Optional[VirtualNetworkMeta1] = None
|
|
113
|
+
|
|
96
114
|
|
|
97
115
|
class VirtualNetworkError(Exception):
|
|
98
116
|
data: VirtualNetworkErrorData
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .virtual_network_data import VirtualNetworkData, VirtualNetworkDataTypedDict
|
|
4
5
|
from enum import Enum
|
|
5
6
|
from latitudesh_python_sdk.types import BaseModel
|
|
6
7
|
from typing import Optional
|
|
@@ -70,10 +71,20 @@ class VirtualNetworkAttributes(BaseModel):
|
|
|
70
71
|
r"""Amount of devices assigned to the virtual network"""
|
|
71
72
|
|
|
72
73
|
|
|
74
|
+
class VirtualNetworkMetaTypedDict(TypedDict):
|
|
75
|
+
pass
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class VirtualNetworkMeta(BaseModel):
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
|
|
73
82
|
class VirtualNetwork1TypedDict(TypedDict):
|
|
74
83
|
id: NotRequired[str]
|
|
75
84
|
type: NotRequired[VirtualNetworkType]
|
|
76
85
|
attributes: NotRequired[VirtualNetworkAttributesTypedDict]
|
|
86
|
+
data: NotRequired[VirtualNetworkDataTypedDict]
|
|
87
|
+
meta: NotRequired[VirtualNetworkMetaTypedDict]
|
|
77
88
|
|
|
78
89
|
|
|
79
90
|
class VirtualNetwork1(BaseModel):
|
|
@@ -82,3 +93,7 @@ class VirtualNetwork1(BaseModel):
|
|
|
82
93
|
type: Optional[VirtualNetworkType] = None
|
|
83
94
|
|
|
84
95
|
attributes: Optional[VirtualNetworkAttributes] = None
|
|
96
|
+
|
|
97
|
+
data: Optional[VirtualNetworkData] = None
|
|
98
|
+
|
|
99
|
+
meta: Optional[VirtualNetworkMeta] = None
|
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .virtual_network_assignment_data import (
|
|
5
|
+
VirtualNetworkAssignmentData,
|
|
6
|
+
VirtualNetworkAssignmentDataTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from latitudesh_python_sdk.types import BaseModel
|
|
5
9
|
from typing import Optional
|
|
6
10
|
from typing_extensions import NotRequired, TypedDict
|
|
7
11
|
|
|
8
12
|
|
|
13
|
+
class VirtualNetworkAssignmentServerTypedDict(TypedDict):
|
|
14
|
+
id: NotRequired[str]
|
|
15
|
+
hostname: NotRequired[str]
|
|
16
|
+
label: NotRequired[str]
|
|
17
|
+
locked: NotRequired[bool]
|
|
18
|
+
status: NotRequired[str]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VirtualNetworkAssignmentServer(BaseModel):
|
|
22
|
+
id: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
hostname: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
label: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
locked: Optional[bool] = None
|
|
29
|
+
|
|
30
|
+
status: Optional[str] = None
|
|
31
|
+
|
|
32
|
+
|
|
9
33
|
class VirtualNetworkAssignmentAttributesTypedDict(TypedDict):
|
|
10
34
|
virtual_network_id: NotRequired[str]
|
|
11
35
|
vid: NotRequired[int]
|
|
12
36
|
server_id: NotRequired[str]
|
|
13
37
|
description: NotRequired[str]
|
|
14
38
|
status: NotRequired[str]
|
|
39
|
+
server: NotRequired[VirtualNetworkAssignmentServerTypedDict]
|
|
15
40
|
|
|
16
41
|
|
|
17
42
|
class VirtualNetworkAssignmentAttributes(BaseModel):
|
|
@@ -25,13 +50,29 @@ class VirtualNetworkAssignmentAttributes(BaseModel):
|
|
|
25
50
|
|
|
26
51
|
status: Optional[str] = None
|
|
27
52
|
|
|
53
|
+
server: Optional[VirtualNetworkAssignmentServer] = None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class VirtualNetworkAssignmentMetaTypedDict(TypedDict):
|
|
57
|
+
pass
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class VirtualNetworkAssignmentMeta(BaseModel):
|
|
61
|
+
pass
|
|
62
|
+
|
|
28
63
|
|
|
29
64
|
class VirtualNetworkAssignmentTypedDict(TypedDict):
|
|
30
65
|
id: NotRequired[str]
|
|
31
66
|
attributes: NotRequired[VirtualNetworkAssignmentAttributesTypedDict]
|
|
67
|
+
data: NotRequired[VirtualNetworkAssignmentDataTypedDict]
|
|
68
|
+
meta: NotRequired[VirtualNetworkAssignmentMetaTypedDict]
|
|
32
69
|
|
|
33
70
|
|
|
34
71
|
class VirtualNetworkAssignment(BaseModel):
|
|
35
72
|
id: Optional[str] = None
|
|
36
73
|
|
|
37
74
|
attributes: Optional[VirtualNetworkAssignmentAttributes] = None
|
|
75
|
+
|
|
76
|
+
data: Optional[VirtualNetworkAssignmentData] = None
|
|
77
|
+
|
|
78
|
+
meta: Optional[VirtualNetworkAssignmentMeta] = None
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
from latitudesh_python_sdk.types import BaseModel
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VirtualNetworkAssignmentDataType(str, Enum):
|
|
11
|
+
VIRTUAL_NETWORK_ASSIGNMENT = "virtual_network_assignment"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VirtualNetworkAssignmentDataServerTypedDict(TypedDict):
|
|
15
|
+
id: NotRequired[str]
|
|
16
|
+
hostname: NotRequired[str]
|
|
17
|
+
label: NotRequired[str]
|
|
18
|
+
locked: NotRequired[bool]
|
|
19
|
+
status: NotRequired[str]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class VirtualNetworkAssignmentDataServer(BaseModel):
|
|
23
|
+
id: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
hostname: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
label: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
locked: Optional[bool] = None
|
|
30
|
+
|
|
31
|
+
status: Optional[str] = None
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class VirtualNetworkAssignmentDataAttributesTypedDict(TypedDict):
|
|
35
|
+
virtual_network_id: NotRequired[str]
|
|
36
|
+
vid: NotRequired[int]
|
|
37
|
+
server_id: NotRequired[str]
|
|
38
|
+
description: NotRequired[str]
|
|
39
|
+
status: NotRequired[str]
|
|
40
|
+
server: NotRequired[VirtualNetworkAssignmentDataServerTypedDict]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class VirtualNetworkAssignmentDataAttributes(BaseModel):
|
|
44
|
+
virtual_network_id: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
vid: Optional[int] = None
|
|
47
|
+
|
|
48
|
+
server_id: Optional[str] = None
|
|
49
|
+
|
|
50
|
+
description: Optional[str] = None
|
|
51
|
+
|
|
52
|
+
status: Optional[str] = None
|
|
53
|
+
|
|
54
|
+
server: Optional[VirtualNetworkAssignmentDataServer] = None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class VirtualNetworkAssignmentDataTypedDict(TypedDict):
|
|
58
|
+
id: NotRequired[str]
|
|
59
|
+
type: NotRequired[VirtualNetworkAssignmentDataType]
|
|
60
|
+
attributes: NotRequired[VirtualNetworkAssignmentDataAttributesTypedDict]
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class VirtualNetworkAssignmentData(BaseModel):
|
|
64
|
+
id: Optional[str] = None
|
|
65
|
+
|
|
66
|
+
type: Optional[VirtualNetworkAssignmentDataType] = None
|
|
67
|
+
|
|
68
|
+
attributes: Optional[VirtualNetworkAssignmentDataAttributes] = None
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
from .virtual_network_assignment_data import (
|
|
5
|
+
VirtualNetworkAssignmentData,
|
|
6
|
+
VirtualNetworkAssignmentDataTypedDict,
|
|
7
7
|
)
|
|
8
8
|
from latitudesh_python_sdk.types import BaseModel
|
|
9
9
|
from typing import List, Optional
|
|
@@ -19,11 +19,11 @@ class VirtualNetworkAssignmentsMeta(BaseModel):
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class VirtualNetworkAssignmentsTypedDict(TypedDict):
|
|
22
|
-
data: NotRequired[List[
|
|
22
|
+
data: NotRequired[List[VirtualNetworkAssignmentDataTypedDict]]
|
|
23
23
|
meta: NotRequired[VirtualNetworkAssignmentsMetaTypedDict]
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class VirtualNetworkAssignments(BaseModel):
|
|
27
|
-
data: Optional[List[
|
|
27
|
+
data: Optional[List[VirtualNetworkAssignmentData]] = None
|
|
28
28
|
|
|
29
29
|
meta: Optional[VirtualNetworkAssignmentsMeta] = None
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from datetime import datetime
|
|
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 VirtualNetworkDataType(str, Enum):
|
|
12
|
+
VIRTUAL_NETWORKS = "virtual_networks"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class VirtualNetworkDataSiteTypedDict(TypedDict):
|
|
16
|
+
id: NotRequired[str]
|
|
17
|
+
facility: NotRequired[str]
|
|
18
|
+
name: NotRequired[str]
|
|
19
|
+
slug: NotRequired[str]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class VirtualNetworkDataSite(BaseModel):
|
|
23
|
+
id: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
facility: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
name: Optional[str] = None
|
|
28
|
+
|
|
29
|
+
slug: Optional[str] = None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class VirtualNetworkDataRegionTypedDict(TypedDict):
|
|
33
|
+
city: NotRequired[str]
|
|
34
|
+
country: NotRequired[str]
|
|
35
|
+
site: NotRequired[VirtualNetworkDataSiteTypedDict]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class VirtualNetworkDataRegion(BaseModel):
|
|
39
|
+
city: Optional[str] = None
|
|
40
|
+
|
|
41
|
+
country: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
site: Optional[VirtualNetworkDataSite] = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class VirtualNetworkDataAttributesTypedDict(TypedDict):
|
|
47
|
+
vid: NotRequired[int]
|
|
48
|
+
r"""vlan ID of the virtual network"""
|
|
49
|
+
name: NotRequired[str]
|
|
50
|
+
r"""Name of the virtual network"""
|
|
51
|
+
description: NotRequired[str]
|
|
52
|
+
r"""Description of the virtual network"""
|
|
53
|
+
region: NotRequired[VirtualNetworkDataRegionTypedDict]
|
|
54
|
+
assignments_count: NotRequired[int]
|
|
55
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
56
|
+
created_at: NotRequired[datetime]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class VirtualNetworkDataAttributes(BaseModel):
|
|
60
|
+
vid: Optional[int] = None
|
|
61
|
+
r"""vlan ID of the virtual network"""
|
|
62
|
+
|
|
63
|
+
name: Optional[str] = None
|
|
64
|
+
r"""Name of the virtual network"""
|
|
65
|
+
|
|
66
|
+
description: Optional[str] = None
|
|
67
|
+
r"""Description of the virtual network"""
|
|
68
|
+
|
|
69
|
+
region: Optional[VirtualNetworkDataRegion] = None
|
|
70
|
+
|
|
71
|
+
assignments_count: Optional[int] = None
|
|
72
|
+
r"""Amount of devices assigned to the virtual network"""
|
|
73
|
+
|
|
74
|
+
created_at: Optional[datetime] = None
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class VirtualNetworkDataTypedDict(TypedDict):
|
|
78
|
+
id: NotRequired[str]
|
|
79
|
+
type: NotRequired[VirtualNetworkDataType]
|
|
80
|
+
attributes: NotRequired[VirtualNetworkDataAttributesTypedDict]
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class VirtualNetworkData(BaseModel):
|
|
84
|
+
id: Optional[str] = None
|
|
85
|
+
|
|
86
|
+
type: Optional[VirtualNetworkDataType] = None
|
|
87
|
+
|
|
88
|
+
attributes: Optional[VirtualNetworkDataAttributes] = None
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .virtual_network_data import VirtualNetworkData, VirtualNetworkDataTypedDict
|
|
5
5
|
from latitudesh_python_sdk.types import BaseModel
|
|
6
6
|
from typing import List, Optional
|
|
7
7
|
from typing_extensions import NotRequired, TypedDict
|
|
@@ -16,11 +16,11 @@ class VirtualNetworksMeta(BaseModel):
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class VirtualNetworksTypedDict(TypedDict):
|
|
19
|
-
data: NotRequired[List[
|
|
19
|
+
data: NotRequired[List[VirtualNetworkDataTypedDict]]
|
|
20
20
|
meta: NotRequired[VirtualNetworksMetaTypedDict]
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class VirtualNetworks(BaseModel):
|
|
24
|
-
data: Optional[List[
|
|
24
|
+
data: Optional[List[VirtualNetworkData]] = None
|
|
25
25
|
|
|
26
26
|
meta: Optional[VirtualNetworksMeta] = None
|