latitudesh-python-sdk 1.1.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 +2 -0
- latitudesh_python_sdk/firewalls_sdk.py +18 -2
- latitudesh_python_sdk/httpclient.py +6 -16
- latitudesh_python_sdk/ipaddresses_sdk.py +4 -0
- latitudesh_python_sdk/models/__init__.py +2563 -1126
- 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/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_firewall_assignmentsop.py +3 -3
- 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_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/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 -0
- 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 +2 -0
- latitudesh_python_sdk/plans.py +42 -26
- latitudesh_python_sdk/privatenetworks.py +44 -28
- latitudesh_python_sdk/projects_sdk.py +36 -28
- latitudesh_python_sdk/regions_sdk.py +4 -0
- latitudesh_python_sdk/roles.py +4 -0
- latitudesh_python_sdk/sdk.py +110 -73
- latitudesh_python_sdk/sdkconfiguration.py +0 -7
- latitudesh_python_sdk/servers_sdk.py +102 -46
- 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 +6 -0
- 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 -46
- latitudesh_python_sdk/utils/forms.py +49 -28
- latitudesh_python_sdk/virtualmachines.py +36 -18
- latitudesh_python_sdk/vpnsessions.py +38 -26
- {latitudesh_python_sdk-1.1.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/METADATA +30 -20
- {latitudesh_python_sdk-1.1.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/RECORD +80 -61
- {latitudesh_python_sdk-1.1.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.1.0.dist-info → latitudesh_python_sdk-2.0.0.dist-info}/LICENSE +0 -0
latitudesh_python_sdk/plans.py
CHANGED
|
@@ -4,9 +4,9 @@ from .basesdk import BaseSDK
|
|
|
4
4
|
from jsonpath import JSONPath
|
|
5
5
|
from latitudesh_python_sdk import models, utils
|
|
6
6
|
from latitudesh_python_sdk._hooks import HookContext
|
|
7
|
-
from latitudesh_python_sdk.types import
|
|
7
|
+
from latitudesh_python_sdk.types import OptionalNullable, UNSET
|
|
8
8
|
from latitudesh_python_sdk.utils import get_security_from_env
|
|
9
|
-
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
9
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Plans(BaseSDK):
|
|
@@ -91,6 +91,7 @@ class Plans(BaseSDK):
|
|
|
91
91
|
|
|
92
92
|
http_res = self.do_request(
|
|
93
93
|
hook_ctx=HookContext(
|
|
94
|
+
config=self.sdk_configuration,
|
|
94
95
|
base_url=base_url or "",
|
|
95
96
|
operation_id="get-plans",
|
|
96
97
|
oauth2_scopes=[],
|
|
@@ -206,6 +207,7 @@ class Plans(BaseSDK):
|
|
|
206
207
|
|
|
207
208
|
http_res = await self.do_request_async(
|
|
208
209
|
hook_ctx=HookContext(
|
|
210
|
+
config=self.sdk_configuration,
|
|
209
211
|
base_url=base_url or "",
|
|
210
212
|
operation_id="get-plans",
|
|
211
213
|
oauth2_scopes=[],
|
|
@@ -297,6 +299,7 @@ class Plans(BaseSDK):
|
|
|
297
299
|
|
|
298
300
|
http_res = self.do_request(
|
|
299
301
|
hook_ctx=HookContext(
|
|
302
|
+
config=self.sdk_configuration,
|
|
300
303
|
base_url=base_url or "",
|
|
301
304
|
operation_id="get-plan",
|
|
302
305
|
oauth2_scopes=[],
|
|
@@ -392,6 +395,7 @@ class Plans(BaseSDK):
|
|
|
392
395
|
|
|
393
396
|
http_res = await self.do_request_async(
|
|
394
397
|
hook_ctx=HookContext(
|
|
398
|
+
config=self.sdk_configuration,
|
|
395
399
|
base_url=base_url or "",
|
|
396
400
|
operation_id="get-plan",
|
|
397
401
|
oauth2_scopes=[],
|
|
@@ -498,6 +502,7 @@ class Plans(BaseSDK):
|
|
|
498
502
|
|
|
499
503
|
http_res = self.do_request(
|
|
500
504
|
hook_ctx=HookContext(
|
|
505
|
+
config=self.sdk_configuration,
|
|
501
506
|
base_url=base_url or "",
|
|
502
507
|
operation_id="get-bandwidth-plans",
|
|
503
508
|
oauth2_scopes=[],
|
|
@@ -625,6 +630,7 @@ class Plans(BaseSDK):
|
|
|
625
630
|
|
|
626
631
|
http_res = await self.do_request_async(
|
|
627
632
|
hook_ctx=HookContext(
|
|
633
|
+
config=self.sdk_configuration,
|
|
628
634
|
base_url=base_url or "",
|
|
629
635
|
operation_id="get-bandwidth-plans",
|
|
630
636
|
oauth2_scopes=[],
|
|
@@ -687,10 +693,12 @@ class Plans(BaseSDK):
|
|
|
687
693
|
def update_bandwidth(
|
|
688
694
|
self,
|
|
689
695
|
*,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
696
|
+
data: Optional[
|
|
697
|
+
Union[
|
|
698
|
+
models.UpdatePlansBandwidthPlansData,
|
|
699
|
+
models.UpdatePlansBandwidthPlansDataTypedDict,
|
|
700
|
+
]
|
|
701
|
+
] = None,
|
|
694
702
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
695
703
|
server_url: Optional[str] = None,
|
|
696
704
|
timeout_ms: Optional[int] = None,
|
|
@@ -701,7 +709,7 @@ class Plans(BaseSDK):
|
|
|
701
709
|
Allow to increase or decrease bandwidth packages. Only admins and owners can request.
|
|
702
710
|
|
|
703
711
|
|
|
704
|
-
:param
|
|
712
|
+
:param data:
|
|
705
713
|
:param retries: Override the default retry configuration for this method
|
|
706
714
|
:param server_url: Override the default server URL for this method
|
|
707
715
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -717,11 +725,11 @@ class Plans(BaseSDK):
|
|
|
717
725
|
else:
|
|
718
726
|
base_url = self._get_url(base_url, url_variables)
|
|
719
727
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
)
|
|
724
|
-
|
|
728
|
+
request = models.UpdatePlansBandwidthPlansRequestBody(
|
|
729
|
+
data=utils.get_pydantic_model(
|
|
730
|
+
data, Optional[models.UpdatePlansBandwidthPlansData]
|
|
731
|
+
),
|
|
732
|
+
)
|
|
725
733
|
|
|
726
734
|
req = self._build_request(
|
|
727
735
|
method="POST",
|
|
@@ -739,9 +747,9 @@ class Plans(BaseSDK):
|
|
|
739
747
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
740
748
|
request,
|
|
741
749
|
False,
|
|
742
|
-
|
|
750
|
+
False,
|
|
743
751
|
"json",
|
|
744
|
-
|
|
752
|
+
models.UpdatePlansBandwidthPlansRequestBody,
|
|
745
753
|
),
|
|
746
754
|
timeout_ms=timeout_ms,
|
|
747
755
|
)
|
|
@@ -756,6 +764,7 @@ class Plans(BaseSDK):
|
|
|
756
764
|
|
|
757
765
|
http_res = self.do_request(
|
|
758
766
|
hook_ctx=HookContext(
|
|
767
|
+
config=self.sdk_configuration,
|
|
759
768
|
base_url=base_url or "",
|
|
760
769
|
operation_id="update-plans-bandwidth",
|
|
761
770
|
oauth2_scopes=[],
|
|
@@ -797,10 +806,12 @@ class Plans(BaseSDK):
|
|
|
797
806
|
async def update_bandwidth_async(
|
|
798
807
|
self,
|
|
799
808
|
*,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
809
|
+
data: Optional[
|
|
810
|
+
Union[
|
|
811
|
+
models.UpdatePlansBandwidthPlansData,
|
|
812
|
+
models.UpdatePlansBandwidthPlansDataTypedDict,
|
|
813
|
+
]
|
|
814
|
+
] = None,
|
|
804
815
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
805
816
|
server_url: Optional[str] = None,
|
|
806
817
|
timeout_ms: Optional[int] = None,
|
|
@@ -811,7 +822,7 @@ class Plans(BaseSDK):
|
|
|
811
822
|
Allow to increase or decrease bandwidth packages. Only admins and owners can request.
|
|
812
823
|
|
|
813
824
|
|
|
814
|
-
:param
|
|
825
|
+
:param data:
|
|
815
826
|
:param retries: Override the default retry configuration for this method
|
|
816
827
|
:param server_url: Override the default server URL for this method
|
|
817
828
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -827,11 +838,11 @@ class Plans(BaseSDK):
|
|
|
827
838
|
else:
|
|
828
839
|
base_url = self._get_url(base_url, url_variables)
|
|
829
840
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
)
|
|
834
|
-
|
|
841
|
+
request = models.UpdatePlansBandwidthPlansRequestBody(
|
|
842
|
+
data=utils.get_pydantic_model(
|
|
843
|
+
data, Optional[models.UpdatePlansBandwidthPlansData]
|
|
844
|
+
),
|
|
845
|
+
)
|
|
835
846
|
|
|
836
847
|
req = self._build_request_async(
|
|
837
848
|
method="POST",
|
|
@@ -849,9 +860,9 @@ class Plans(BaseSDK):
|
|
|
849
860
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
850
861
|
request,
|
|
851
862
|
False,
|
|
852
|
-
|
|
863
|
+
False,
|
|
853
864
|
"json",
|
|
854
|
-
|
|
865
|
+
models.UpdatePlansBandwidthPlansRequestBody,
|
|
855
866
|
),
|
|
856
867
|
timeout_ms=timeout_ms,
|
|
857
868
|
)
|
|
@@ -866,6 +877,7 @@ class Plans(BaseSDK):
|
|
|
866
877
|
|
|
867
878
|
http_res = await self.do_request_async(
|
|
868
879
|
hook_ctx=HookContext(
|
|
880
|
+
config=self.sdk_configuration,
|
|
869
881
|
base_url=base_url or "",
|
|
870
882
|
operation_id="update-plans-bandwidth",
|
|
871
883
|
oauth2_scopes=[],
|
|
@@ -954,6 +966,7 @@ class Plans(BaseSDK):
|
|
|
954
966
|
|
|
955
967
|
http_res = self.do_request(
|
|
956
968
|
hook_ctx=HookContext(
|
|
969
|
+
config=self.sdk_configuration,
|
|
957
970
|
base_url=base_url or "",
|
|
958
971
|
operation_id="get-storage-plans",
|
|
959
972
|
oauth2_scopes=[],
|
|
@@ -1038,6 +1051,7 @@ class Plans(BaseSDK):
|
|
|
1038
1051
|
|
|
1039
1052
|
http_res = await self.do_request_async(
|
|
1040
1053
|
hook_ctx=HookContext(
|
|
1054
|
+
config=self.sdk_configuration,
|
|
1041
1055
|
base_url=base_url or "",
|
|
1042
1056
|
operation_id="get-storage-plans",
|
|
1043
1057
|
oauth2_scopes=[],
|
|
@@ -1122,6 +1136,7 @@ class Plans(BaseSDK):
|
|
|
1122
1136
|
|
|
1123
1137
|
http_res = self.do_request(
|
|
1124
1138
|
hook_ctx=HookContext(
|
|
1139
|
+
config=self.sdk_configuration,
|
|
1125
1140
|
base_url=base_url or "",
|
|
1126
1141
|
operation_id="get-vm-plans",
|
|
1127
1142
|
oauth2_scopes=[],
|
|
@@ -1206,6 +1221,7 @@ class Plans(BaseSDK):
|
|
|
1206
1221
|
|
|
1207
1222
|
http_res = await self.do_request_async(
|
|
1208
1223
|
hook_ctx=HookContext(
|
|
1224
|
+
config=self.sdk_configuration,
|
|
1209
1225
|
base_url=base_url or "",
|
|
1210
1226
|
operation_id="get-vm-plans",
|
|
1211
1227
|
oauth2_scopes=[],
|
|
@@ -4,9 +4,9 @@ from .basesdk import BaseSDK
|
|
|
4
4
|
from jsonpath import JSONPath
|
|
5
5
|
from latitudesh_python_sdk import models, utils
|
|
6
6
|
from latitudesh_python_sdk._hooks import HookContext
|
|
7
|
-
from latitudesh_python_sdk.types import
|
|
7
|
+
from latitudesh_python_sdk.types import OptionalNullable, UNSET
|
|
8
8
|
from latitudesh_python_sdk.utils import get_security_from_env
|
|
9
|
-
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
9
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class PrivateNetworks(BaseSDK):
|
|
@@ -82,6 +82,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
82
82
|
|
|
83
83
|
http_res = self.do_request(
|
|
84
84
|
hook_ctx=HookContext(
|
|
85
|
+
config=self.sdk_configuration,
|
|
85
86
|
base_url=base_url or "",
|
|
86
87
|
operation_id="get-virtual-networks",
|
|
87
88
|
oauth2_scopes=[],
|
|
@@ -214,6 +215,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
214
215
|
|
|
215
216
|
http_res = await self.do_request_async(
|
|
216
217
|
hook_ctx=HookContext(
|
|
218
|
+
config=self.sdk_configuration,
|
|
217
219
|
base_url=base_url or "",
|
|
218
220
|
operation_id="get-virtual-networks",
|
|
219
221
|
oauth2_scopes=[],
|
|
@@ -346,6 +348,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
346
348
|
|
|
347
349
|
http_res = self.do_request(
|
|
348
350
|
hook_ctx=HookContext(
|
|
351
|
+
config=self.sdk_configuration,
|
|
349
352
|
base_url=base_url or "",
|
|
350
353
|
operation_id="create-virtual-network",
|
|
351
354
|
oauth2_scopes=[],
|
|
@@ -456,6 +459,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
456
459
|
|
|
457
460
|
http_res = await self.do_request_async(
|
|
458
461
|
hook_ctx=HookContext(
|
|
462
|
+
config=self.sdk_configuration,
|
|
459
463
|
base_url=base_url or "",
|
|
460
464
|
operation_id="create-virtual-network",
|
|
461
465
|
oauth2_scopes=[],
|
|
@@ -574,6 +578,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
574
578
|
|
|
575
579
|
http_res = self.do_request(
|
|
576
580
|
hook_ctx=HookContext(
|
|
581
|
+
config=self.sdk_configuration,
|
|
577
582
|
base_url=base_url or "",
|
|
578
583
|
operation_id="update-virtual-network",
|
|
579
584
|
oauth2_scopes=[],
|
|
@@ -694,6 +699,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
694
699
|
|
|
695
700
|
http_res = await self.do_request_async(
|
|
696
701
|
hook_ctx=HookContext(
|
|
702
|
+
config=self.sdk_configuration,
|
|
697
703
|
base_url=base_url or "",
|
|
698
704
|
operation_id="update-virtual-network",
|
|
699
705
|
oauth2_scopes=[],
|
|
@@ -794,6 +800,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
794
800
|
|
|
795
801
|
http_res = self.do_request(
|
|
796
802
|
hook_ctx=HookContext(
|
|
803
|
+
config=self.sdk_configuration,
|
|
797
804
|
base_url=base_url or "",
|
|
798
805
|
operation_id="destroy-virtual-network",
|
|
799
806
|
oauth2_scopes=[],
|
|
@@ -892,6 +899,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
892
899
|
|
|
893
900
|
http_res = await self.do_request_async(
|
|
894
901
|
hook_ctx=HookContext(
|
|
902
|
+
config=self.sdk_configuration,
|
|
895
903
|
base_url=base_url or "",
|
|
896
904
|
operation_id="destroy-virtual-network",
|
|
897
905
|
oauth2_scopes=[],
|
|
@@ -990,6 +998,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
990
998
|
|
|
991
999
|
http_res = self.do_request(
|
|
992
1000
|
hook_ctx=HookContext(
|
|
1001
|
+
config=self.sdk_configuration,
|
|
993
1002
|
base_url=base_url or "",
|
|
994
1003
|
operation_id="get-virtual-network",
|
|
995
1004
|
oauth2_scopes=[],
|
|
@@ -1086,6 +1095,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1086
1095
|
|
|
1087
1096
|
http_res = await self.do_request_async(
|
|
1088
1097
|
hook_ctx=HookContext(
|
|
1098
|
+
config=self.sdk_configuration,
|
|
1089
1099
|
base_url=base_url or "",
|
|
1090
1100
|
operation_id="get-virtual-network",
|
|
1091
1101
|
oauth2_scopes=[],
|
|
@@ -1194,6 +1204,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1194
1204
|
|
|
1195
1205
|
http_res = self.do_request(
|
|
1196
1206
|
hook_ctx=HookContext(
|
|
1207
|
+
config=self.sdk_configuration,
|
|
1197
1208
|
base_url=base_url or "",
|
|
1198
1209
|
operation_id="get-virtual-networks-assignments",
|
|
1199
1210
|
oauth2_scopes=[],
|
|
@@ -1328,6 +1339,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1328
1339
|
|
|
1329
1340
|
http_res = await self.do_request_async(
|
|
1330
1341
|
hook_ctx=HookContext(
|
|
1342
|
+
config=self.sdk_configuration,
|
|
1331
1343
|
base_url=base_url or "",
|
|
1332
1344
|
operation_id="get-virtual-networks-assignments",
|
|
1333
1345
|
oauth2_scopes=[],
|
|
@@ -1393,10 +1405,12 @@ class PrivateNetworks(BaseSDK):
|
|
|
1393
1405
|
def assign(
|
|
1394
1406
|
self,
|
|
1395
1407
|
*,
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1408
|
+
data: Optional[
|
|
1409
|
+
Union[
|
|
1410
|
+
models.AssignServerVirtualNetworkPrivateNetworksData,
|
|
1411
|
+
models.AssignServerVirtualNetworkPrivateNetworksDataTypedDict,
|
|
1412
|
+
]
|
|
1413
|
+
] = None,
|
|
1400
1414
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1401
1415
|
server_url: Optional[str] = None,
|
|
1402
1416
|
timeout_ms: Optional[int] = None,
|
|
@@ -1404,7 +1418,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1404
1418
|
) -> models.VirtualNetworkAssignment:
|
|
1405
1419
|
r"""Assign Virtual network
|
|
1406
1420
|
|
|
1407
|
-
:param
|
|
1421
|
+
:param data:
|
|
1408
1422
|
:param retries: Override the default retry configuration for this method
|
|
1409
1423
|
:param server_url: Override the default server URL for this method
|
|
1410
1424
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1420,12 +1434,10 @@ class PrivateNetworks(BaseSDK):
|
|
|
1420
1434
|
else:
|
|
1421
1435
|
base_url = self._get_url(base_url, url_variables)
|
|
1422
1436
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
)
|
|
1427
|
-
request = cast(
|
|
1428
|
-
models.AssignServerVirtualNetworkPrivateNetworksRequestBody, request
|
|
1437
|
+
request = models.AssignServerVirtualNetworkPrivateNetworksRequestBody(
|
|
1438
|
+
data=utils.get_pydantic_model(
|
|
1439
|
+
data, Optional[models.AssignServerVirtualNetworkPrivateNetworksData]
|
|
1440
|
+
),
|
|
1429
1441
|
)
|
|
1430
1442
|
|
|
1431
1443
|
req = self._build_request(
|
|
@@ -1444,9 +1456,9 @@ class PrivateNetworks(BaseSDK):
|
|
|
1444
1456
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1445
1457
|
request,
|
|
1446
1458
|
False,
|
|
1447
|
-
|
|
1459
|
+
False,
|
|
1448
1460
|
"json",
|
|
1449
|
-
|
|
1461
|
+
models.AssignServerVirtualNetworkPrivateNetworksRequestBody,
|
|
1450
1462
|
),
|
|
1451
1463
|
timeout_ms=timeout_ms,
|
|
1452
1464
|
)
|
|
@@ -1461,6 +1473,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1461
1473
|
|
|
1462
1474
|
http_res = self.do_request(
|
|
1463
1475
|
hook_ctx=HookContext(
|
|
1476
|
+
config=self.sdk_configuration,
|
|
1464
1477
|
base_url=base_url or "",
|
|
1465
1478
|
operation_id="assign-server-virtual-network",
|
|
1466
1479
|
oauth2_scopes=[],
|
|
@@ -1502,10 +1515,12 @@ class PrivateNetworks(BaseSDK):
|
|
|
1502
1515
|
async def assign_async(
|
|
1503
1516
|
self,
|
|
1504
1517
|
*,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1518
|
+
data: Optional[
|
|
1519
|
+
Union[
|
|
1520
|
+
models.AssignServerVirtualNetworkPrivateNetworksData,
|
|
1521
|
+
models.AssignServerVirtualNetworkPrivateNetworksDataTypedDict,
|
|
1522
|
+
]
|
|
1523
|
+
] = None,
|
|
1509
1524
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1510
1525
|
server_url: Optional[str] = None,
|
|
1511
1526
|
timeout_ms: Optional[int] = None,
|
|
@@ -1513,7 +1528,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1513
1528
|
) -> models.VirtualNetworkAssignment:
|
|
1514
1529
|
r"""Assign Virtual network
|
|
1515
1530
|
|
|
1516
|
-
:param
|
|
1531
|
+
:param data:
|
|
1517
1532
|
:param retries: Override the default retry configuration for this method
|
|
1518
1533
|
:param server_url: Override the default server URL for this method
|
|
1519
1534
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1529,12 +1544,10 @@ class PrivateNetworks(BaseSDK):
|
|
|
1529
1544
|
else:
|
|
1530
1545
|
base_url = self._get_url(base_url, url_variables)
|
|
1531
1546
|
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
)
|
|
1536
|
-
request = cast(
|
|
1537
|
-
models.AssignServerVirtualNetworkPrivateNetworksRequestBody, request
|
|
1547
|
+
request = models.AssignServerVirtualNetworkPrivateNetworksRequestBody(
|
|
1548
|
+
data=utils.get_pydantic_model(
|
|
1549
|
+
data, Optional[models.AssignServerVirtualNetworkPrivateNetworksData]
|
|
1550
|
+
),
|
|
1538
1551
|
)
|
|
1539
1552
|
|
|
1540
1553
|
req = self._build_request_async(
|
|
@@ -1553,9 +1566,9 @@ class PrivateNetworks(BaseSDK):
|
|
|
1553
1566
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1554
1567
|
request,
|
|
1555
1568
|
False,
|
|
1556
|
-
|
|
1569
|
+
False,
|
|
1557
1570
|
"json",
|
|
1558
|
-
|
|
1571
|
+
models.AssignServerVirtualNetworkPrivateNetworksRequestBody,
|
|
1559
1572
|
),
|
|
1560
1573
|
timeout_ms=timeout_ms,
|
|
1561
1574
|
)
|
|
@@ -1570,6 +1583,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1570
1583
|
|
|
1571
1584
|
http_res = await self.do_request_async(
|
|
1572
1585
|
hook_ctx=HookContext(
|
|
1586
|
+
config=self.sdk_configuration,
|
|
1573
1587
|
base_url=base_url or "",
|
|
1574
1588
|
operation_id="assign-server-virtual-network",
|
|
1575
1589
|
oauth2_scopes=[],
|
|
@@ -1668,6 +1682,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1668
1682
|
|
|
1669
1683
|
http_res = self.do_request(
|
|
1670
1684
|
hook_ctx=HookContext(
|
|
1685
|
+
config=self.sdk_configuration,
|
|
1671
1686
|
base_url=base_url or "",
|
|
1672
1687
|
operation_id="delete-virtual-networks-assignments",
|
|
1673
1688
|
oauth2_scopes=[],
|
|
@@ -1766,6 +1781,7 @@ class PrivateNetworks(BaseSDK):
|
|
|
1766
1781
|
|
|
1767
1782
|
http_res = await self.do_request_async(
|
|
1768
1783
|
hook_ctx=HookContext(
|
|
1784
|
+
config=self.sdk_configuration,
|
|
1769
1785
|
base_url=base_url or "",
|
|
1770
1786
|
operation_id="delete-virtual-networks-assignments",
|
|
1771
1787
|
oauth2_scopes=[],
|
|
@@ -4,9 +4,9 @@ from .basesdk import BaseSDK
|
|
|
4
4
|
from jsonpath import JSONPath
|
|
5
5
|
from latitudesh_python_sdk import models, utils
|
|
6
6
|
from latitudesh_python_sdk._hooks import HookContext
|
|
7
|
-
from latitudesh_python_sdk.types import
|
|
7
|
+
from latitudesh_python_sdk.types import OptionalNullable, UNSET
|
|
8
8
|
from latitudesh_python_sdk.utils import get_security_from_env
|
|
9
|
-
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
9
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ProjectsSDK(BaseSDK):
|
|
@@ -94,6 +94,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
94
94
|
|
|
95
95
|
http_res = self.do_request(
|
|
96
96
|
hook_ctx=HookContext(
|
|
97
|
+
config=self.sdk_configuration,
|
|
97
98
|
base_url=base_url or "",
|
|
98
99
|
operation_id="get-projects",
|
|
99
100
|
oauth2_scopes=[],
|
|
@@ -242,6 +243,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
242
243
|
|
|
243
244
|
http_res = await self.do_request_async(
|
|
244
245
|
hook_ctx=HookContext(
|
|
246
|
+
config=self.sdk_configuration,
|
|
245
247
|
base_url=base_url or "",
|
|
246
248
|
operation_id="get-projects",
|
|
247
249
|
oauth2_scopes=[],
|
|
@@ -309,10 +311,12 @@ class ProjectsSDK(BaseSDK):
|
|
|
309
311
|
def create(
|
|
310
312
|
self,
|
|
311
313
|
*,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
data: Optional[
|
|
315
|
+
Union[
|
|
316
|
+
models.CreateProjectProjectsData,
|
|
317
|
+
models.CreateProjectProjectsDataTypedDict,
|
|
318
|
+
]
|
|
319
|
+
] = None,
|
|
316
320
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
317
321
|
server_url: Optional[str] = None,
|
|
318
322
|
timeout_ms: Optional[int] = None,
|
|
@@ -320,7 +324,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
320
324
|
) -> models.CreateProjectResponseBody:
|
|
321
325
|
r"""Create a Project
|
|
322
326
|
|
|
323
|
-
:param
|
|
327
|
+
:param data:
|
|
324
328
|
:param retries: Override the default retry configuration for this method
|
|
325
329
|
:param server_url: Override the default server URL for this method
|
|
326
330
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -336,9 +340,11 @@ class ProjectsSDK(BaseSDK):
|
|
|
336
340
|
else:
|
|
337
341
|
base_url = self._get_url(base_url, url_variables)
|
|
338
342
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
343
|
+
request = models.CreateProjectProjectsRequestBody(
|
|
344
|
+
data=utils.get_pydantic_model(
|
|
345
|
+
data, Optional[models.CreateProjectProjectsData]
|
|
346
|
+
),
|
|
347
|
+
)
|
|
342
348
|
|
|
343
349
|
req = self._build_request(
|
|
344
350
|
method="POST",
|
|
@@ -354,11 +360,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
354
360
|
http_headers=http_headers,
|
|
355
361
|
security=self.sdk_configuration.security,
|
|
356
362
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
357
|
-
request,
|
|
358
|
-
False,
|
|
359
|
-
True,
|
|
360
|
-
"json",
|
|
361
|
-
Optional[models.CreateProjectProjectsRequestBody],
|
|
363
|
+
request, False, False, "json", models.CreateProjectProjectsRequestBody
|
|
362
364
|
),
|
|
363
365
|
timeout_ms=timeout_ms,
|
|
364
366
|
)
|
|
@@ -373,6 +375,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
373
375
|
|
|
374
376
|
http_res = self.do_request(
|
|
375
377
|
hook_ctx=HookContext(
|
|
378
|
+
config=self.sdk_configuration,
|
|
376
379
|
base_url=base_url or "",
|
|
377
380
|
operation_id="create-project",
|
|
378
381
|
oauth2_scopes=[],
|
|
@@ -416,10 +419,12 @@ class ProjectsSDK(BaseSDK):
|
|
|
416
419
|
async def create_async(
|
|
417
420
|
self,
|
|
418
421
|
*,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
422
|
+
data: Optional[
|
|
423
|
+
Union[
|
|
424
|
+
models.CreateProjectProjectsData,
|
|
425
|
+
models.CreateProjectProjectsDataTypedDict,
|
|
426
|
+
]
|
|
427
|
+
] = None,
|
|
423
428
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
424
429
|
server_url: Optional[str] = None,
|
|
425
430
|
timeout_ms: Optional[int] = None,
|
|
@@ -427,7 +432,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
427
432
|
) -> models.CreateProjectResponseBody:
|
|
428
433
|
r"""Create a Project
|
|
429
434
|
|
|
430
|
-
:param
|
|
435
|
+
:param data:
|
|
431
436
|
:param retries: Override the default retry configuration for this method
|
|
432
437
|
:param server_url: Override the default server URL for this method
|
|
433
438
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -443,9 +448,11 @@ class ProjectsSDK(BaseSDK):
|
|
|
443
448
|
else:
|
|
444
449
|
base_url = self._get_url(base_url, url_variables)
|
|
445
450
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
451
|
+
request = models.CreateProjectProjectsRequestBody(
|
|
452
|
+
data=utils.get_pydantic_model(
|
|
453
|
+
data, Optional[models.CreateProjectProjectsData]
|
|
454
|
+
),
|
|
455
|
+
)
|
|
449
456
|
|
|
450
457
|
req = self._build_request_async(
|
|
451
458
|
method="POST",
|
|
@@ -461,11 +468,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
461
468
|
http_headers=http_headers,
|
|
462
469
|
security=self.sdk_configuration.security,
|
|
463
470
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
464
|
-
request,
|
|
465
|
-
False,
|
|
466
|
-
True,
|
|
467
|
-
"json",
|
|
468
|
-
Optional[models.CreateProjectProjectsRequestBody],
|
|
471
|
+
request, False, False, "json", models.CreateProjectProjectsRequestBody
|
|
469
472
|
),
|
|
470
473
|
timeout_ms=timeout_ms,
|
|
471
474
|
)
|
|
@@ -480,6 +483,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
480
483
|
|
|
481
484
|
http_res = await self.do_request_async(
|
|
482
485
|
hook_ctx=HookContext(
|
|
486
|
+
config=self.sdk_configuration,
|
|
483
487
|
base_url=base_url or "",
|
|
484
488
|
operation_id="create-project",
|
|
485
489
|
oauth2_scopes=[],
|
|
@@ -591,6 +595,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
591
595
|
|
|
592
596
|
http_res = self.do_request(
|
|
593
597
|
hook_ctx=HookContext(
|
|
598
|
+
config=self.sdk_configuration,
|
|
594
599
|
base_url=base_url or "",
|
|
595
600
|
operation_id="update-project",
|
|
596
601
|
oauth2_scopes=[],
|
|
@@ -702,6 +707,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
702
707
|
|
|
703
708
|
http_res = await self.do_request_async(
|
|
704
709
|
hook_ctx=HookContext(
|
|
710
|
+
config=self.sdk_configuration,
|
|
705
711
|
base_url=base_url or "",
|
|
706
712
|
operation_id="update-project",
|
|
707
713
|
oauth2_scopes=[],
|
|
@@ -799,6 +805,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
799
805
|
|
|
800
806
|
http_res = self.do_request(
|
|
801
807
|
hook_ctx=HookContext(
|
|
808
|
+
config=self.sdk_configuration,
|
|
802
809
|
base_url=base_url or "",
|
|
803
810
|
operation_id="delete-project",
|
|
804
811
|
oauth2_scopes=[],
|
|
@@ -896,6 +903,7 @@ class ProjectsSDK(BaseSDK):
|
|
|
896
903
|
|
|
897
904
|
http_res = await self.do_request_async(
|
|
898
905
|
hook_ctx=HookContext(
|
|
906
|
+
config=self.sdk_configuration,
|
|
899
907
|
base_url=base_url or "",
|
|
900
908
|
operation_id="delete-project",
|
|
901
909
|
oauth2_scopes=[],
|
|
@@ -74,6 +74,7 @@ class RegionsSDK(BaseSDK):
|
|
|
74
74
|
|
|
75
75
|
http_res = self.do_request(
|
|
76
76
|
hook_ctx=HookContext(
|
|
77
|
+
config=self.sdk_configuration,
|
|
77
78
|
base_url=base_url or "",
|
|
78
79
|
operation_id="get-regions",
|
|
79
80
|
oauth2_scopes=[],
|
|
@@ -195,6 +196,7 @@ class RegionsSDK(BaseSDK):
|
|
|
195
196
|
|
|
196
197
|
http_res = await self.do_request_async(
|
|
197
198
|
hook_ctx=HookContext(
|
|
199
|
+
config=self.sdk_configuration,
|
|
198
200
|
base_url=base_url or "",
|
|
199
201
|
operation_id="get-regions",
|
|
200
202
|
oauth2_scopes=[],
|
|
@@ -309,6 +311,7 @@ class RegionsSDK(BaseSDK):
|
|
|
309
311
|
|
|
310
312
|
http_res = self.do_request(
|
|
311
313
|
hook_ctx=HookContext(
|
|
314
|
+
config=self.sdk_configuration,
|
|
312
315
|
base_url=base_url or "",
|
|
313
316
|
operation_id="get-region",
|
|
314
317
|
oauth2_scopes=[],
|
|
@@ -404,6 +407,7 @@ class RegionsSDK(BaseSDK):
|
|
|
404
407
|
|
|
405
408
|
http_res = await self.do_request_async(
|
|
406
409
|
hook_ctx=HookContext(
|
|
410
|
+
config=self.sdk_configuration,
|
|
407
411
|
base_url=base_url or "",
|
|
408
412
|
operation_id="get-region",
|
|
409
413
|
oauth2_scopes=[],
|