zenlayercloud-sdk-python 2.0.2__tar.gz → 2.0.3__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.2 → zenlayercloud-sdk-python-2.0.3}/PKG-INFO +1 -1
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/__init__.py +1 -1
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/vm/v20230313/models.py +339 -5
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/vm/v20230313/vm_client.py +77 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud_sdk_python.egg-info/PKG-INFO +1 -1
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/LICENSE +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/README.rst +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/setup.cfg +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/setup.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/bmc/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/bmc/v20221120/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/bmc/v20221120/bmc_client.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/bmc/v20221120/models.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/abstract_client.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/abstract_model.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/config.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/credential.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/excpetion/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/excpetion/error_code.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/excpetion/zenlayer_cloud_sdk_exception.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/request.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/response.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/utils.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/vm/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/vm/v20230313/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/zls/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/zls/v20230804/__init__.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/zls/v20230804/models.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/zls/v20230804/zls_client.py +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud_sdk_python.egg-info/SOURCES.txt +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud_sdk_python.egg-info/dependency_links.txt +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud_sdk_python.egg-info/requires.txt +0 -0
- {zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud_sdk_python.egg-info/top_level.txt +0 -0
|
@@ -35,10 +35,14 @@ class ZoneInfo(AbstractModel):
|
|
|
35
35
|
return
|
|
36
36
|
self.zoneId = None
|
|
37
37
|
self.zoneName = None
|
|
38
|
+
self.supportSecurityGroup = None
|
|
39
|
+
self.supportNetworkType = None
|
|
38
40
|
|
|
39
41
|
def _deserialize(self, params):
|
|
40
42
|
self.zoneId = params.get("zoneId")
|
|
41
43
|
self.zoneName = params.get("zoneName")
|
|
44
|
+
self.supportSecurityGroup = params.get("supportSecurityGroup")
|
|
45
|
+
self.supportNetworkType = params.get("supportNetworkType")
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
class DescribeZoneInstanceConfigInfosRequest(AbstractModel):
|
|
@@ -833,6 +837,7 @@ class DescribeInstanceTrafficRequest(AbstractModel):
|
|
|
833
837
|
self.startTime = params.get("startTime")
|
|
834
838
|
self.endTime = params.get("endTime")
|
|
835
839
|
|
|
840
|
+
|
|
836
841
|
class DescribeInstanceTrafficResponse(AbstractModel):
|
|
837
842
|
|
|
838
843
|
def __init__(self):
|
|
@@ -877,6 +882,7 @@ class DescribeInstanceTrafficResponse(AbstractModel):
|
|
|
877
882
|
self.totalUnit = params.get("totalUnit")
|
|
878
883
|
self.unit = params.get("unit")
|
|
879
884
|
|
|
885
|
+
|
|
880
886
|
class InstanceTrafficData(AbstractModel):
|
|
881
887
|
|
|
882
888
|
def __init__(self, params=None):
|
|
@@ -907,13 +913,13 @@ class DescribeInstanceCpuMonitorRequest(AbstractModel):
|
|
|
907
913
|
self.startTime = params.get("startTime")
|
|
908
914
|
self.endTime = params.get("endTime")
|
|
909
915
|
|
|
916
|
+
|
|
910
917
|
class DescribeInstanceCpuMonitorResponse(AbstractModel):
|
|
911
918
|
|
|
912
919
|
def __init__(self):
|
|
913
920
|
self.requestId = None
|
|
914
921
|
self.dataList = None
|
|
915
922
|
|
|
916
|
-
|
|
917
923
|
def _deserialize(self, params):
|
|
918
924
|
self.requestId = params.get("requestId")
|
|
919
925
|
if params.get("dataList") is not None:
|
|
@@ -939,6 +945,74 @@ class InstanceCpuMonitorData(AbstractModel):
|
|
|
939
945
|
self.time = params.get("time")
|
|
940
946
|
|
|
941
947
|
|
|
948
|
+
class ModifyInstanceTypeRequest(AbstractModel):
|
|
949
|
+
|
|
950
|
+
def __init__(self):
|
|
951
|
+
self.instanceId = None
|
|
952
|
+
self.instanceTypeId = None
|
|
953
|
+
|
|
954
|
+
def _deserialize(self, params):
|
|
955
|
+
self.instanceId = params.get("instanceId")
|
|
956
|
+
self.instanceTypeId = params.get("instanceTypeId")
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
class ModifyInstanceTypeResponse(AbstractModel):
|
|
960
|
+
|
|
961
|
+
def __init__(self):
|
|
962
|
+
self.requestId = None
|
|
963
|
+
self.orderNumber = None
|
|
964
|
+
|
|
965
|
+
def _deserialize(self, params):
|
|
966
|
+
self.requestId = params.get("requestId")
|
|
967
|
+
self.orderNumber = params.get("orderNumber")
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
class CancelInstanceDowngradeRequest(AbstractModel):
|
|
971
|
+
|
|
972
|
+
def __init__(self):
|
|
973
|
+
self.instanceId = None
|
|
974
|
+
|
|
975
|
+
def _deserialize(self, params):
|
|
976
|
+
self.instanceId = params.get("instanceId")
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
class CancelInstanceDowngradeResponse(AbstractModel):
|
|
980
|
+
|
|
981
|
+
def __init__(self):
|
|
982
|
+
self.requestId = None
|
|
983
|
+
|
|
984
|
+
def _deserialize(self, params):
|
|
985
|
+
self.requestId = params.get("requestId")
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
class DescribeInstanceTypeStatusRequest(AbstractModel):
|
|
989
|
+
|
|
990
|
+
def __init__(self):
|
|
991
|
+
self.instanceId = None
|
|
992
|
+
|
|
993
|
+
def _deserialize(self, params):
|
|
994
|
+
self.instanceId = params.get("instanceId")
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
class DescribeInstanceTypeStatusResponse(AbstractModel):
|
|
998
|
+
|
|
999
|
+
def __init__(self):
|
|
1000
|
+
self.requestId = None
|
|
1001
|
+
self.instanceId = None
|
|
1002
|
+
self.instanceName = None
|
|
1003
|
+
self.instanceType = None
|
|
1004
|
+
self.modifiedInstanceType = None
|
|
1005
|
+
self.modifiedInstanceTypeStatus = None
|
|
1006
|
+
|
|
1007
|
+
def _deserialize(self, params):
|
|
1008
|
+
self.requestId = params.get("requestId")
|
|
1009
|
+
self.instanceId = params.get("instanceId")
|
|
1010
|
+
self.instanceName = params.get("instanceName")
|
|
1011
|
+
self.instanceType = params.get("instanceType")
|
|
1012
|
+
self.modifiedInstanceType = params.get("modifiedInstanceType")
|
|
1013
|
+
self.modifiedInstanceTypeStatus = params.get("modifiedInstanceTypeStatus")
|
|
1014
|
+
|
|
1015
|
+
|
|
942
1016
|
class CreateDisksRequest(AbstractModel):
|
|
943
1017
|
|
|
944
1018
|
def __init__(self):
|
|
@@ -1538,7 +1612,6 @@ class RuleInfo(AbstractModel):
|
|
|
1538
1612
|
return
|
|
1539
1613
|
self.direction = None
|
|
1540
1614
|
self.policy = None
|
|
1541
|
-
self.priority = None
|
|
1542
1615
|
self.ipProtocol = None
|
|
1543
1616
|
self.portRange = None
|
|
1544
1617
|
self.cidrIp = None
|
|
@@ -1546,7 +1619,6 @@ class RuleInfo(AbstractModel):
|
|
|
1546
1619
|
def _deserialize(self, params):
|
|
1547
1620
|
self.direction = params.get("direction")
|
|
1548
1621
|
self.policy = params.get("policy")
|
|
1549
|
-
self.priority = params.get("priority")
|
|
1550
1622
|
self.ipProtocol = params.get("ipProtocol")
|
|
1551
1623
|
self.portRange = params.get("portRange")
|
|
1552
1624
|
self.cidrIp = params.get("cidrIp")
|
|
@@ -1716,7 +1788,6 @@ class AuthorizeSecurityGroupRuleRequest(AbstractModel):
|
|
|
1716
1788
|
self.securityGroupId = None
|
|
1717
1789
|
self.direction = None
|
|
1718
1790
|
self.policy = None
|
|
1719
|
-
self.priority = None
|
|
1720
1791
|
self.ipProtocol = None
|
|
1721
1792
|
self.portRange = None
|
|
1722
1793
|
self.cidrIp = None
|
|
@@ -1725,7 +1796,6 @@ class AuthorizeSecurityGroupRuleRequest(AbstractModel):
|
|
|
1725
1796
|
self.securityGroupId = params.get("securityGroupId")
|
|
1726
1797
|
self.direction = params.get("direction")
|
|
1727
1798
|
self.policy = params.get("policy")
|
|
1728
|
-
self.priority = params.get("priority")
|
|
1729
1799
|
self.ipProtocol = params.get("ipProtocol")
|
|
1730
1800
|
self.portRange = params.get("portRange")
|
|
1731
1801
|
self.cidrIp = params.get("cidrIp")
|
|
@@ -1804,6 +1874,270 @@ class UnAssociateSecurityGroupInstanceResponse(AbstractModel):
|
|
|
1804
1874
|
self.requestId = params.get("requestId")
|
|
1805
1875
|
|
|
1806
1876
|
|
|
1877
|
+
class CreateVpcRequest(AbstractModel):
|
|
1878
|
+
|
|
1879
|
+
def __init__(self):
|
|
1880
|
+
self.zoneId = None
|
|
1881
|
+
self.vpcName = None
|
|
1882
|
+
self.vpcCidrBlock = None
|
|
1883
|
+
self.subnetName = None
|
|
1884
|
+
self.subnetCidrBlock = None
|
|
1885
|
+
|
|
1886
|
+
def _deserialize(self, params):
|
|
1887
|
+
self.zoneId = params.get("zoneId")
|
|
1888
|
+
self.vpcName = params.get("vpcName")
|
|
1889
|
+
self.vpcCidrBlock = params.get("vpcCidrBlock")
|
|
1890
|
+
self.subnetName = params.get("subnetName")
|
|
1891
|
+
self.subnetCidrBlock = params.get("subnetCidrBlock")
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
class CreateVpcResponse(AbstractModel):
|
|
1895
|
+
|
|
1896
|
+
def __init__(self):
|
|
1897
|
+
self.requestId = None
|
|
1898
|
+
self.vpcId = None
|
|
1899
|
+
|
|
1900
|
+
def _deserialize(self, params):
|
|
1901
|
+
self.requestId = params.get("requestId")
|
|
1902
|
+
self.vpcId = params.get("vpcId")
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
class DeleteVpcRequest(AbstractModel):
|
|
1906
|
+
|
|
1907
|
+
def __init__(self):
|
|
1908
|
+
self.vpcId = None
|
|
1909
|
+
|
|
1910
|
+
def _deserialize(self, params):
|
|
1911
|
+
self.vpcId = params.get("vpcId")
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
class DeleteVpcResponse(AbstractModel):
|
|
1915
|
+
|
|
1916
|
+
def __init__(self):
|
|
1917
|
+
self.requestId = None
|
|
1918
|
+
|
|
1919
|
+
def _deserialize(self, params):
|
|
1920
|
+
self.requestId = params.get("requestId")
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
class ModifyVpcsAttributeRequest(AbstractModel):
|
|
1924
|
+
|
|
1925
|
+
def __init__(self):
|
|
1926
|
+
self.vpcIds = None
|
|
1927
|
+
self.vpcName = None
|
|
1928
|
+
|
|
1929
|
+
def _deserialize(self, params):
|
|
1930
|
+
self.vpcIds = params.get("vpcIds")
|
|
1931
|
+
self.vpcName = params.get("vpcName")
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
class ModifyVpcsAttributeResponse(AbstractModel):
|
|
1935
|
+
|
|
1936
|
+
def __init__(self):
|
|
1937
|
+
self.requestId = None
|
|
1938
|
+
|
|
1939
|
+
def _deserialize(self, params):
|
|
1940
|
+
self.requestId = params.get("requestId")
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
class DescribeVpcsRequest(AbstractModel):
|
|
1944
|
+
|
|
1945
|
+
def __init__(self):
|
|
1946
|
+
self.vpcIds = None
|
|
1947
|
+
self.cidrBlock = None
|
|
1948
|
+
self.zoneId = None
|
|
1949
|
+
self.vpcStatus = None
|
|
1950
|
+
self.vpcName = None
|
|
1951
|
+
self.pageSize = None
|
|
1952
|
+
self.pageNum = None
|
|
1953
|
+
|
|
1954
|
+
def _deserialize(self, params):
|
|
1955
|
+
self.vpcIds = params.get("vpcIds")
|
|
1956
|
+
self.cidrBlock = params.get("cidrBlock")
|
|
1957
|
+
self.zoneId = params.get("zoneId")
|
|
1958
|
+
self.vpcStatus = params.get("vpcStatus")
|
|
1959
|
+
self.vpcName = params.get("vpcName")
|
|
1960
|
+
self.pageSize = params.get("pageSize")
|
|
1961
|
+
self.pageNum = params.get("pageNum")
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
class DescribeVpcsResponse(AbstractModel):
|
|
1965
|
+
|
|
1966
|
+
def __init__(self):
|
|
1967
|
+
self.requestId = None
|
|
1968
|
+
self.totalCount = None
|
|
1969
|
+
self.dataSet = None
|
|
1970
|
+
|
|
1971
|
+
def _deserialize(self, params):
|
|
1972
|
+
self.requestId = params.get("requestId")
|
|
1973
|
+
self.totalCount = params.get("totalCount")
|
|
1974
|
+
if params.get("dataSet") is not None:
|
|
1975
|
+
self.dataSet = []
|
|
1976
|
+
for item in params.get("dataSet"):
|
|
1977
|
+
obj = VpcNetworkInfo(item)
|
|
1978
|
+
self.dataSet.append(obj)
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
class VpcNetworkInfo(AbstractModel):
|
|
1982
|
+
|
|
1983
|
+
def __init__(self, params=None):
|
|
1984
|
+
if params is None:
|
|
1985
|
+
params = {}
|
|
1986
|
+
if len(params) > 0:
|
|
1987
|
+
self._deserialize(params)
|
|
1988
|
+
return
|
|
1989
|
+
self.vpcId = None
|
|
1990
|
+
self.zoneId = None
|
|
1991
|
+
self.vpcName = None
|
|
1992
|
+
self.vpcStatus = None
|
|
1993
|
+
self.cidrBlock = None
|
|
1994
|
+
self.subnetIdList = None
|
|
1995
|
+
self.createTime = None
|
|
1996
|
+
self.isDefault = None
|
|
1997
|
+
|
|
1998
|
+
def _deserialize(self, params):
|
|
1999
|
+
self.vpcId = params.get("vpcId")
|
|
2000
|
+
self.zoneId = params.get("zoneId")
|
|
2001
|
+
self.vpcName = params.get("vpcName")
|
|
2002
|
+
self.vpcStatus = params.get("vpcStatus")
|
|
2003
|
+
self.cidrBlock = params.get("cidrBlock")
|
|
2004
|
+
self.subnetIdList = params.get("subnetIdList")
|
|
2005
|
+
self.createTime = params.get("createTime")
|
|
2006
|
+
self.isDefault = params.get("isDefault")
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
class CreateVpcSubnetRequest(AbstractModel):
|
|
2010
|
+
|
|
2011
|
+
def __init__(self):
|
|
2012
|
+
self.cidrBlock = None
|
|
2013
|
+
self.subnetName = None
|
|
2014
|
+
self.vpcId = None
|
|
2015
|
+
|
|
2016
|
+
def _deserialize(self, params):
|
|
2017
|
+
self.cidrBlock = params.get("cidrBlock")
|
|
2018
|
+
self.subnetName = params.get("subnetName")
|
|
2019
|
+
self.vpcId = params.get("vpcId")
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
class CreateVpcSubnetResponse(AbstractModel):
|
|
2023
|
+
|
|
2024
|
+
def __init__(self):
|
|
2025
|
+
self.requestId = None
|
|
2026
|
+
self.subnetId = None
|
|
2027
|
+
|
|
2028
|
+
def _deserialize(self, params):
|
|
2029
|
+
self.requestId = params.get("requestId")
|
|
2030
|
+
self.subnetId = params.get("subnetId")
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
class DeleteVpcSubnetRequest(AbstractModel):
|
|
2034
|
+
|
|
2035
|
+
def __init__(self):
|
|
2036
|
+
self.subnetId = None
|
|
2037
|
+
|
|
2038
|
+
def _deserialize(self, params):
|
|
2039
|
+
self.subnetId = params.get("subnetId")
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
class DeleteVpcSubnetResponse(AbstractModel):
|
|
2043
|
+
|
|
2044
|
+
def __init__(self):
|
|
2045
|
+
self.requestId = None
|
|
2046
|
+
|
|
2047
|
+
def _deserialize(self, params):
|
|
2048
|
+
self.requestId = params.get("requestId")
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
class ModifyVpcSubnetsAttributeRequest(AbstractModel):
|
|
2052
|
+
|
|
2053
|
+
def __init__(self):
|
|
2054
|
+
self.subnetIds = None
|
|
2055
|
+
self.subnetName = None
|
|
2056
|
+
|
|
2057
|
+
def _deserialize(self, params):
|
|
2058
|
+
self.subnetIds = params.get("subnetIds")
|
|
2059
|
+
self.subnetName = params.get("subnetName")
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
class ModifyVpcSubnetsAttributeResponse(AbstractModel):
|
|
2063
|
+
|
|
2064
|
+
def __init__(self):
|
|
2065
|
+
self.requestId = None
|
|
2066
|
+
|
|
2067
|
+
def _deserialize(self, params):
|
|
2068
|
+
self.requestId = params.get("requestId")
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
class DescribeVpcSubnetsRequest(AbstractModel):
|
|
2072
|
+
|
|
2073
|
+
def __init__(self):
|
|
2074
|
+
self.subnetIds = None
|
|
2075
|
+
self.cidrBlock = None
|
|
2076
|
+
self.vpcId = None
|
|
2077
|
+
self.subnetStatus = None
|
|
2078
|
+
self.subnetName = None
|
|
2079
|
+
self.pageSize = None
|
|
2080
|
+
self.pageNum = None
|
|
2081
|
+
|
|
2082
|
+
def _deserialize(self, params):
|
|
2083
|
+
self.subnetIds = params.get("subnetIds")
|
|
2084
|
+
self.cidrBlock = params.get("cidrBlock")
|
|
2085
|
+
self.vpcId = params.get("vpcId")
|
|
2086
|
+
self.subnetStatus = params.get("subnetStatus")
|
|
2087
|
+
self.subnetName = params.get("subnetName")
|
|
2088
|
+
self.pageSize = params.get("pageSize")
|
|
2089
|
+
self.pageNum = params.get("pageNum")
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
class DescribeVpcSubnetsResponse(AbstractModel):
|
|
2093
|
+
|
|
2094
|
+
def __init__(self):
|
|
2095
|
+
self.requestId = None
|
|
2096
|
+
self.totalCount = None
|
|
2097
|
+
self.dataSet = None
|
|
2098
|
+
|
|
2099
|
+
def _deserialize(self, params):
|
|
2100
|
+
self.requestId = params.get("requestId")
|
|
2101
|
+
self.totalCount = params.get("totalCount")
|
|
2102
|
+
if params.get("dataSet") is not None:
|
|
2103
|
+
self.dataSet = []
|
|
2104
|
+
for item in params.get("dataSet"):
|
|
2105
|
+
obj = VpcSubnetInfo(item)
|
|
2106
|
+
self.dataSet.append(obj)
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
class VpcSubnetInfo(AbstractModel):
|
|
2110
|
+
|
|
2111
|
+
def __init__(self, params=None):
|
|
2112
|
+
if params is None:
|
|
2113
|
+
params = {}
|
|
2114
|
+
if len(params) > 0:
|
|
2115
|
+
self._deserialize(params)
|
|
2116
|
+
return
|
|
2117
|
+
self.subnetId = None
|
|
2118
|
+
self.vpcId = None
|
|
2119
|
+
self.subnetName = None
|
|
2120
|
+
self.subnetStatus = None
|
|
2121
|
+
self.cidrBlock = None
|
|
2122
|
+
self.instanceIdList = None
|
|
2123
|
+
self.createTime = None
|
|
2124
|
+
self.usageIpCount = None
|
|
2125
|
+
self.totalIpCount = None
|
|
2126
|
+
self.isDefault = None
|
|
2127
|
+
|
|
2128
|
+
def _deserialize(self, params):
|
|
2129
|
+
self.subnetId = params.get("subnetId")
|
|
2130
|
+
self.vpcId = params.get("vpcId")
|
|
2131
|
+
self.subnetName = params.get("subnetName")
|
|
2132
|
+
self.subnetStatus = params.get("subnetStatus")
|
|
2133
|
+
self.cidrBlock = params.get("cidrBlock")
|
|
2134
|
+
self.instanceIdList = params.get("instanceIdList")
|
|
2135
|
+
self.createTime = params.get("createTime")
|
|
2136
|
+
self.usageIpCount = params.get("usageIpCount")
|
|
2137
|
+
self.totalIpCount = params.get("totalIpCount")
|
|
2138
|
+
self.isDefault = params.get("isDefault")
|
|
2139
|
+
|
|
2140
|
+
|
|
1807
2141
|
class CreateSubnetRequest(AbstractModel):
|
|
1808
2142
|
|
|
1809
2143
|
def __init__(self):
|
|
@@ -177,6 +177,27 @@ class VmClient(AbstractClient):
|
|
|
177
177
|
model._deserialize(response)
|
|
178
178
|
return model
|
|
179
179
|
|
|
180
|
+
def ModifyInstanceType(self, request):
|
|
181
|
+
response = self._api_call("ModifyInstanceType", request)
|
|
182
|
+
|
|
183
|
+
model = models.ModifyInstanceTypeResponse()
|
|
184
|
+
model._deserialize(response)
|
|
185
|
+
return model
|
|
186
|
+
|
|
187
|
+
def CancelInstanceDowngrade(self, request):
|
|
188
|
+
response = self._api_call("CancelInstanceDowngrade", request)
|
|
189
|
+
|
|
190
|
+
model = models.CancelInstanceDowngradeResponse()
|
|
191
|
+
model._deserialize(response)
|
|
192
|
+
return model
|
|
193
|
+
|
|
194
|
+
def DescribeInstanceTypeStatus(self, request):
|
|
195
|
+
response = self._api_call("DescribeInstanceTypeStatus", request)
|
|
196
|
+
|
|
197
|
+
model = models.DescribeInstanceTypeStatusResponse()
|
|
198
|
+
model._deserialize(response)
|
|
199
|
+
return model
|
|
200
|
+
|
|
180
201
|
def CreateDisks(self, request):
|
|
181
202
|
response = self._api_call("CreateDisks", request)
|
|
182
203
|
|
|
@@ -373,6 +394,62 @@ class VmClient(AbstractClient):
|
|
|
373
394
|
model._deserialize(response)
|
|
374
395
|
return model
|
|
375
396
|
|
|
397
|
+
def CreateVpc(self, request):
|
|
398
|
+
response = self._api_call("CreateVpc", request)
|
|
399
|
+
|
|
400
|
+
model = models.CreateVpcResponse()
|
|
401
|
+
model._deserialize(response)
|
|
402
|
+
return model
|
|
403
|
+
|
|
404
|
+
def DeleteVpc(self, request):
|
|
405
|
+
response = self._api_call("DeleteVpc", request)
|
|
406
|
+
|
|
407
|
+
model = models.DeleteVpcResponse()
|
|
408
|
+
model._deserialize(response)
|
|
409
|
+
return model
|
|
410
|
+
|
|
411
|
+
def ModifyVpcsAttribute(self, request):
|
|
412
|
+
response = self._api_call("ModifyVpcsAttribute", request)
|
|
413
|
+
|
|
414
|
+
model = models.ModifyVpcsAttributeResponse()
|
|
415
|
+
model._deserialize(response)
|
|
416
|
+
return model
|
|
417
|
+
|
|
418
|
+
def DescribeVpcs(self, request):
|
|
419
|
+
response = self._api_call("DescribeVpcs", request)
|
|
420
|
+
|
|
421
|
+
model = models.DescribeVpcsResponse()
|
|
422
|
+
model._deserialize(response)
|
|
423
|
+
return model
|
|
424
|
+
|
|
425
|
+
def CreateVpcSubnet(self, request):
|
|
426
|
+
response = self._api_call("CreateVpcSubnet", request)
|
|
427
|
+
|
|
428
|
+
model = models.CreateVpcSubnetResponse()
|
|
429
|
+
model._deserialize(response)
|
|
430
|
+
return model
|
|
431
|
+
|
|
432
|
+
def DeleteVpcSubnet(self, request):
|
|
433
|
+
response = self._api_call("DeleteVpcSubnet", request)
|
|
434
|
+
|
|
435
|
+
model = models.DeleteVpcSubnetResponse()
|
|
436
|
+
model._deserialize(response)
|
|
437
|
+
return model
|
|
438
|
+
|
|
439
|
+
def ModifyVpcSubnetsAttribute(self, request):
|
|
440
|
+
response = self._api_call("ModifyVpcSubnetsAttribute", request)
|
|
441
|
+
|
|
442
|
+
model = models.ModifyVpcSubnetsAttributeResponse()
|
|
443
|
+
model._deserialize(response)
|
|
444
|
+
return model
|
|
445
|
+
|
|
446
|
+
def DescribeVpcSubnets(self, request):
|
|
447
|
+
response = self._api_call("DescribeVpcSubnets", request)
|
|
448
|
+
|
|
449
|
+
model = models.DescribeVpcSubnetsResponse()
|
|
450
|
+
model._deserialize(response)
|
|
451
|
+
return model
|
|
452
|
+
|
|
376
453
|
def CreateSubnet(self, request):
|
|
377
454
|
response = self._api_call("CreateSubnet", request)
|
|
378
455
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/bmc/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/config.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/credential.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/request.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/response.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/common/utils.py
RENAMED
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/vm/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{zenlayercloud-sdk-python-2.0.2 → zenlayercloud-sdk-python-2.0.3}/zenlayercloud/zls/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|