zenlayercloud-sdk-python 2.0.1__tar.gz → 2.0.2__tar.gz
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.
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/PKG-INFO +1 -1
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/__init__.py +1 -1
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/bmc/v20221120/models.py +2 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/vm/v20230313/models.py +122 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/vm/v20230313/vm_client.py +15 -0
- zenlayercloud-sdk-python-2.0.2/zenlayercloud/zls/__init__.py +2 -0
- zenlayercloud-sdk-python-2.0.2/zenlayercloud/zls/v20230804/__init__.py +2 -0
- zenlayercloud-sdk-python-2.0.2/zenlayercloud/zls/v20230804/models.py +82 -0
- zenlayercloud-sdk-python-2.0.2/zenlayercloud/zls/v20230804/zls_client.py +17 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud_sdk_python.egg-info/PKG-INFO +1 -1
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud_sdk_python.egg-info/SOURCES.txt +4 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/LICENSE +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/README.rst +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/setup.cfg +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/setup.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/bmc/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/bmc/v20221120/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/bmc/v20221120/bmc_client.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/abstract_client.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/abstract_model.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/config.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/credential.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/excpetion/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/excpetion/error_code.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/excpetion/zenlayer_cloud_sdk_exception.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/request.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/response.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/utils.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/vm/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/vm/v20230313/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud_sdk_python.egg-info/dependency_links.txt +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud_sdk_python.egg-info/requires.txt +0 -0
- {zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud_sdk_python.egg-info/top_level.txt +0 -0
|
@@ -405,6 +405,7 @@ class InstanceInfo(AbstractModel):
|
|
|
405
405
|
self.raidConfig = None
|
|
406
406
|
self.partitions = None
|
|
407
407
|
self.nic = None
|
|
408
|
+
self.autoRenew = None
|
|
408
409
|
|
|
409
410
|
def _deserialize(self, params):
|
|
410
411
|
self.instanceId = params.get("instanceId")
|
|
@@ -438,6 +439,7 @@ class InstanceInfo(AbstractModel):
|
|
|
438
439
|
self.partitions.append(obj)
|
|
439
440
|
if params.get("nic") is not None:
|
|
440
441
|
self.nic = Nic(params.get("nic"))
|
|
442
|
+
self.autoRenew = params.get("autoRenew")
|
|
441
443
|
|
|
442
444
|
|
|
443
445
|
class StartInstancesRequest(AbstractModel):
|
|
@@ -402,6 +402,7 @@ class InstanceInfo(AbstractModel):
|
|
|
402
402
|
self.securityGroupIds = None
|
|
403
403
|
self.systemDisk = None
|
|
404
404
|
self.dataDisks = None
|
|
405
|
+
self.autoRenew = None
|
|
405
406
|
|
|
406
407
|
def _deserialize(self, params):
|
|
407
408
|
self.instanceId = params.get("instanceId")
|
|
@@ -433,6 +434,7 @@ class InstanceInfo(AbstractModel):
|
|
|
433
434
|
for item in params.get("dataDisks"):
|
|
434
435
|
obj = DataDisk(item)
|
|
435
436
|
self.dataDisks.append(obj)
|
|
437
|
+
self.autoRenew = params.get("autoRenew")
|
|
436
438
|
|
|
437
439
|
|
|
438
440
|
class DescribeInstancesStatusRequest(AbstractModel):
|
|
@@ -819,6 +821,124 @@ class ModifyInstancesResourceGroupResponse(AbstractModel):
|
|
|
819
821
|
self.requestId = params.get("requestId")
|
|
820
822
|
|
|
821
823
|
|
|
824
|
+
class DescribeInstanceTrafficRequest(AbstractModel):
|
|
825
|
+
|
|
826
|
+
def __init__(self):
|
|
827
|
+
self.instanceId = None
|
|
828
|
+
self.startTime = None
|
|
829
|
+
self.endTime = None
|
|
830
|
+
|
|
831
|
+
def _deserialize(self, params):
|
|
832
|
+
self.instanceId = params.get("instanceId")
|
|
833
|
+
self.startTime = params.get("startTime")
|
|
834
|
+
self.endTime = params.get("endTime")
|
|
835
|
+
|
|
836
|
+
class DescribeInstanceTrafficResponse(AbstractModel):
|
|
837
|
+
|
|
838
|
+
def __init__(self):
|
|
839
|
+
self.requestId = None
|
|
840
|
+
self.dataList = None
|
|
841
|
+
self.in95 = None
|
|
842
|
+
self.in95Time = None
|
|
843
|
+
self.inAvg = None
|
|
844
|
+
self.inMax = None
|
|
845
|
+
self.inMin = None
|
|
846
|
+
self.inTotal = None
|
|
847
|
+
self.maxBandwidth95ValueMbps = None
|
|
848
|
+
self.out95 = None
|
|
849
|
+
self.out95Time = None
|
|
850
|
+
self.outAvg = None
|
|
851
|
+
self.outMax = None
|
|
852
|
+
self.outMin = None
|
|
853
|
+
self.outTotal = None
|
|
854
|
+
self.totalUnit = None
|
|
855
|
+
self.unit = None
|
|
856
|
+
|
|
857
|
+
def _deserialize(self, params):
|
|
858
|
+
self.requestId = params.get("requestId")
|
|
859
|
+
if params.get("dataList") is not None:
|
|
860
|
+
self.dataList = []
|
|
861
|
+
for item in params.get("dataList"):
|
|
862
|
+
obj = InstanceTrafficData(item)
|
|
863
|
+
self.dataList.append(obj)
|
|
864
|
+
self.in95 = params.get("in95")
|
|
865
|
+
self.in95Time = params.get("in95Time")
|
|
866
|
+
self.inAvg = params.get("inAvg")
|
|
867
|
+
self.inMax = params.get("inMax")
|
|
868
|
+
self.inMin = params.get("inMin")
|
|
869
|
+
self.inTotal = params.get("inTotal")
|
|
870
|
+
self.maxBandwidth95ValueMbps = params.get("maxBandwidth95ValueMbps")
|
|
871
|
+
self.out95 = params.get("out95")
|
|
872
|
+
self.out95Time = params.get("out95Time")
|
|
873
|
+
self.outAvg = params.get("outAvg")
|
|
874
|
+
self.outMax = params.get("outMax")
|
|
875
|
+
self.outMin = params.get("outMin")
|
|
876
|
+
self.outTotal = params.get("outTotal")
|
|
877
|
+
self.totalUnit = params.get("totalUnit")
|
|
878
|
+
self.unit = params.get("unit")
|
|
879
|
+
|
|
880
|
+
class InstanceTrafficData(AbstractModel):
|
|
881
|
+
|
|
882
|
+
def __init__(self, params=None):
|
|
883
|
+
if params is None:
|
|
884
|
+
params = {}
|
|
885
|
+
if len(params) > 0:
|
|
886
|
+
self._deserialize(params)
|
|
887
|
+
return
|
|
888
|
+
self.internetRX = None
|
|
889
|
+
self.internetTX = None
|
|
890
|
+
self.time = None
|
|
891
|
+
|
|
892
|
+
def _deserialize(self, params):
|
|
893
|
+
self.internetRX = params.get("internetRX")
|
|
894
|
+
self.internetTX = params.get("internetTX")
|
|
895
|
+
self.time = params.get("time")
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
class DescribeInstanceCpuMonitorRequest(AbstractModel):
|
|
899
|
+
|
|
900
|
+
def __init__(self):
|
|
901
|
+
self.instanceId = None
|
|
902
|
+
self.startTime = None
|
|
903
|
+
self.endTime = None
|
|
904
|
+
|
|
905
|
+
def _deserialize(self, params):
|
|
906
|
+
self.instanceId = params.get("instanceId")
|
|
907
|
+
self.startTime = params.get("startTime")
|
|
908
|
+
self.endTime = params.get("endTime")
|
|
909
|
+
|
|
910
|
+
class DescribeInstanceCpuMonitorResponse(AbstractModel):
|
|
911
|
+
|
|
912
|
+
def __init__(self):
|
|
913
|
+
self.requestId = None
|
|
914
|
+
self.dataList = None
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
def _deserialize(self, params):
|
|
918
|
+
self.requestId = params.get("requestId")
|
|
919
|
+
if params.get("dataList") is not None:
|
|
920
|
+
self.dataList = []
|
|
921
|
+
for item in params.get("dataList"):
|
|
922
|
+
obj = InstanceCpuMonitorData(item)
|
|
923
|
+
self.dataList.append(obj)
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
class InstanceCpuMonitorData(AbstractModel):
|
|
927
|
+
|
|
928
|
+
def __init__(self, params=None):
|
|
929
|
+
if params is None:
|
|
930
|
+
params = {}
|
|
931
|
+
if len(params) > 0:
|
|
932
|
+
self._deserialize(params)
|
|
933
|
+
return
|
|
934
|
+
self.cpu = None
|
|
935
|
+
self.time = None
|
|
936
|
+
|
|
937
|
+
def _deserialize(self, params):
|
|
938
|
+
self.cpu = params.get("cpu")
|
|
939
|
+
self.time = params.get("time")
|
|
940
|
+
|
|
941
|
+
|
|
822
942
|
class CreateDisksRequest(AbstractModel):
|
|
823
943
|
|
|
824
944
|
def __init__(self):
|
|
@@ -916,6 +1036,7 @@ class DiskInfo(AbstractModel):
|
|
|
916
1036
|
self.createTime = None
|
|
917
1037
|
self.expiredTime = None
|
|
918
1038
|
self.period = None
|
|
1039
|
+
self.autoRenew = None
|
|
919
1040
|
|
|
920
1041
|
def _deserialize(self, params):
|
|
921
1042
|
self.diskId = params.get("diskId")
|
|
@@ -932,6 +1053,7 @@ class DiskInfo(AbstractModel):
|
|
|
932
1053
|
self.createTime = params.get("createTime")
|
|
933
1054
|
self.expiredTime = params.get("expiredTime")
|
|
934
1055
|
self.period = params.get("period")
|
|
1056
|
+
self.autoRenew = params.get("autoRenew")
|
|
935
1057
|
|
|
936
1058
|
|
|
937
1059
|
class AttachDisksRequest(AbstractModel):
|
|
@@ -155,6 +155,7 @@ class VmClient(AbstractClient):
|
|
|
155
155
|
model._deserialize(response)
|
|
156
156
|
return model
|
|
157
157
|
|
|
158
|
+
|
|
158
159
|
def ModifyInstancesResourceGroup(self, request):
|
|
159
160
|
response = self._api_call("ModifyInstancesResourceGroup", request)
|
|
160
161
|
|
|
@@ -162,6 +163,20 @@ class VmClient(AbstractClient):
|
|
|
162
163
|
model._deserialize(response)
|
|
163
164
|
return model
|
|
164
165
|
|
|
166
|
+
def DescribeInstanceTraffic(self, request):
|
|
167
|
+
response = self._api_call("DescribeInstanceTraffic", request)
|
|
168
|
+
|
|
169
|
+
model = models.DescribeInstanceTrafficResponse()
|
|
170
|
+
model._deserialize(response)
|
|
171
|
+
return model
|
|
172
|
+
|
|
173
|
+
def DescribeInstanceCpuMonitor(self, request):
|
|
174
|
+
response = self._api_call("DescribeInstanceCpuMonitor", request)
|
|
175
|
+
|
|
176
|
+
model = models.DescribeInstanceCpuMonitorResponse()
|
|
177
|
+
model._deserialize(response)
|
|
178
|
+
return model
|
|
179
|
+
|
|
165
180
|
def CreateDisks(self, request):
|
|
166
181
|
response = self._api_call("CreateDisks", request)
|
|
167
182
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Zenlayer.com Inc.
|
|
2
|
+
# Copyright (c) 2014-2023 All Rights Reserved.
|
|
3
|
+
from zenlayercloud.common.abstract_model import AbstractModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DescribeLogsRequest(AbstractModel):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
self.startTime = None
|
|
9
|
+
self.endTime = None
|
|
10
|
+
self.resUid = None
|
|
11
|
+
self.resEvent = None
|
|
12
|
+
self.clientIP = None
|
|
13
|
+
self.size = None
|
|
14
|
+
self.cursor = None
|
|
15
|
+
|
|
16
|
+
def _deserialize(self, params):
|
|
17
|
+
self.startTime = params.get("startTime")
|
|
18
|
+
self.endTime = params.get("endTime")
|
|
19
|
+
self.resUid = params.get("resUid")
|
|
20
|
+
self.resEvent = params.get("resEvent")
|
|
21
|
+
self.clientIP = params.get("clientIP")
|
|
22
|
+
self.size = params.get("size")
|
|
23
|
+
if params.get("cursor") is not None:
|
|
24
|
+
self.cursor = []
|
|
25
|
+
for item in params.get("cursor"):
|
|
26
|
+
obj = item
|
|
27
|
+
self.cursor.append(obj)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DescribeLogsResponse(AbstractModel):
|
|
31
|
+
|
|
32
|
+
def __init__(self):
|
|
33
|
+
self.requestId = None
|
|
34
|
+
self.cursor = None
|
|
35
|
+
self.dataSet = None
|
|
36
|
+
|
|
37
|
+
def _deserialize(self, params):
|
|
38
|
+
self.requestId = params.get("requestId")
|
|
39
|
+
if params.get("cursor") is not None:
|
|
40
|
+
self.cursor = []
|
|
41
|
+
for item in params.get("cursor"):
|
|
42
|
+
obj = item
|
|
43
|
+
self.cursor.append(obj)
|
|
44
|
+
if params.get("dataSet") is not None:
|
|
45
|
+
self.dataSet = []
|
|
46
|
+
for item in params.get("dataSet"):
|
|
47
|
+
obj = LogInfo(item)
|
|
48
|
+
self.dataSet.append(obj)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class LogInfo(AbstractModel):
|
|
52
|
+
def __init__(self, params=None):
|
|
53
|
+
if params is None:
|
|
54
|
+
params = {}
|
|
55
|
+
if len(params) > 0:
|
|
56
|
+
self._deserialize(params)
|
|
57
|
+
return
|
|
58
|
+
self.resUid = None
|
|
59
|
+
self.resType = None
|
|
60
|
+
self.resEvent = None
|
|
61
|
+
self.opsTime = None
|
|
62
|
+
self.eventSource = None
|
|
63
|
+
self.apiVersion = None
|
|
64
|
+
self.opsUser = None
|
|
65
|
+
self.clientIP = None
|
|
66
|
+
self.request = None
|
|
67
|
+
self.response = None
|
|
68
|
+
|
|
69
|
+
def _deserialize(self, params):
|
|
70
|
+
self.resUid = params.get("resUid")
|
|
71
|
+
self.resType = params.get("resType")
|
|
72
|
+
self.resEvent = params.get("resEvent")
|
|
73
|
+
self.opsTime = params.get("opsTime")
|
|
74
|
+
self.eventSource = params.get("eventSource")
|
|
75
|
+
self.apiVersion = params.get("apiVersion")
|
|
76
|
+
self.opsUser = params.get("opsUser")
|
|
77
|
+
self.clientIP = params.get("clientIP")
|
|
78
|
+
self.request = params.get("request")
|
|
79
|
+
self.response = params.get("response")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Zenlayer.com Inc.
|
|
2
|
+
# Copyright (c) 2014-2023 All Rights Reserved.
|
|
3
|
+
from zenlayercloud.zls.v20230804 import models
|
|
4
|
+
from zenlayercloud.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ZlsClient(AbstractClient):
|
|
8
|
+
_api_version = "2023-08-04"
|
|
9
|
+
_service = "zls"
|
|
10
|
+
|
|
11
|
+
def DescribeLogs(self, request):
|
|
12
|
+
response = self._api_call("DescribeLogs", request)
|
|
13
|
+
|
|
14
|
+
model = models.DescribeLogsResponse()
|
|
15
|
+
model._deserialize(response)
|
|
16
|
+
return model
|
|
17
|
+
|
|
@@ -21,6 +21,10 @@ zenlayercloud/vm/__init__.py
|
|
|
21
21
|
zenlayercloud/vm/v20230313/__init__.py
|
|
22
22
|
zenlayercloud/vm/v20230313/models.py
|
|
23
23
|
zenlayercloud/vm/v20230313/vm_client.py
|
|
24
|
+
zenlayercloud/zls/__init__.py
|
|
25
|
+
zenlayercloud/zls/v20230804/__init__.py
|
|
26
|
+
zenlayercloud/zls/v20230804/models.py
|
|
27
|
+
zenlayercloud/zls/v20230804/zls_client.py
|
|
24
28
|
zenlayercloud_sdk_python.egg-info/PKG-INFO
|
|
25
29
|
zenlayercloud_sdk_python.egg-info/SOURCES.txt
|
|
26
30
|
zenlayercloud_sdk_python.egg-info/dependency_links.txt
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/bmc/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/config.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/credential.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/request.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/response.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/common/utils.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.1 → zenlayercloud-sdk-python-2.0.2}/zenlayercloud/vm/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|