Browse Source

ECS SDK Auto Released By puling.tyq,Version:1.50.4

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
f6b9dc4bf8

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-01-10 Version: 1.50.4
+1, regenerated for ECS/2014-05-26
+
 2019-01-10 Version: 1.50.3
 1, Add fields for QueryBrokerDemand api.
 

+ 1 - 0
services/ecs/create_disk.go

@@ -90,6 +90,7 @@ type CreateDiskRequest struct {
 	DiskCategory         string           `position:"Query" name:"DiskCategory"`
 	ZoneId               string           `position:"Query" name:"ZoneId"`
 	Tag                  *[]CreateDiskTag `position:"Query" name:"Tag"  type:"Repeated"`
+	KMSKeyId             string           `position:"Query" name:"KMSKeyId"`
 }
 
 // CreateDiskTag is a repeated param struct in CreateDiskRequest

+ 1 - 0
services/ecs/create_instance.go

@@ -142,6 +142,7 @@ type CreateInstanceDataDisk struct {
 	Encrypted          string `name:"Encrypted"`
 	Description        string `name:"Description"`
 	Category           string `name:"Category"`
+	KMSKeyId           string `name:"KMSKeyId"`
 	Device             string `name:"Device"`
 	DeleteWithInstance string `name:"DeleteWithInstance"`
 }

+ 1 - 0
services/ecs/describe_available_resource.go

@@ -82,6 +82,7 @@ type DescribeAvailableResourceRequest struct {
 	DataDiskCategory     string           `position:"Query" name:"DataDiskCategory"`
 	Cores                requests.Integer `position:"Query" name:"Cores"`
 	SystemDiskCategory   string           `position:"Query" name:"SystemDiskCategory"`
+	Scope                string           `position:"Query" name:"Scope"`
 	InstanceType         string           `position:"Query" name:"InstanceType"`
 	NetworkCategory      string           `position:"Query" name:"NetworkCategory"`
 	InstanceChargeType   string           `position:"Query" name:"InstanceChargeType"`

+ 1 - 0
services/ecs/describe_disks.go

@@ -107,6 +107,7 @@ type DescribeDisksRequest struct {
 	Encrypted                     requests.Boolean    `position:"Query" name:"Encrypted"`
 	ZoneId                        string              `position:"Query" name:"ZoneId"`
 	Category                      string              `position:"Query" name:"Category"`
+	KMSKeyId                      string              `position:"Query" name:"KMSKeyId"`
 	Status                        string              `position:"Query" name:"Status"`
 }
 

+ 1 - 0
services/ecs/describe_snapshots.go

@@ -98,6 +98,7 @@ type DescribeSnapshotsRequest struct {
 	InstanceId           string                  `position:"Query" name:"InstanceId"`
 	Encrypted            requests.Boolean        `position:"Query" name:"Encrypted"`
 	SnapshotType         string                  `position:"Query" name:"SnapshotType"`
+	KMSKeyId             string                  `position:"Query" name:"KMSKeyId"`
 	Status               string                  `position:"Query" name:"Status"`
 }
 

+ 2 - 0
services/ecs/run_instances.go

@@ -82,6 +82,7 @@ type RunInstancesRequest struct {
 	HpcClusterId                string                          `position:"Query" name:"HpcClusterId"`
 	SecurityEnhancementStrategy string                          `position:"Query" name:"SecurityEnhancementStrategy"`
 	KeyPairName                 string                          `position:"Query" name:"KeyPairName"`
+	MinAmount                   requests.Integer                `position:"Query" name:"MinAmount"`
 	SpotPriceLimit              requests.Float                  `position:"Query" name:"SpotPriceLimit"`
 	DeletionProtection          requests.Boolean                `position:"Query" name:"DeletionProtection"`
 	ResourceGroupId             string                          `position:"Query" name:"ResourceGroupId"`
@@ -153,6 +154,7 @@ type RunInstancesDataDisk struct {
 	SnapshotId         string `name:"SnapshotId"`
 	Category           string `name:"Category"`
 	Encrypted          string `name:"Encrypted"`
+	KMSKeyId           string `name:"KMSKeyId"`
 	DiskName           string `name:"DiskName"`
 	Description        string `name:"Description"`
 	Device             string `name:"Device"`

+ 2 - 0
services/ecs/struct_capacity.go

@@ -19,6 +19,8 @@ package ecs
 type Capacity struct {
 	TotalVcpus            int     `json:"TotalVcpus" xml:"TotalVcpus"`
 	AvailableVcpus        int     `json:"AvailableVcpus" xml:"AvailableVcpus"`
+	TotalVgpus            int     `json:"TotalVgpus" xml:"TotalVgpus"`
+	AvailableVgpus        int     `json:"AvailableVgpus" xml:"AvailableVgpus"`
 	TotalMemory           float64 `json:"TotalMemory" xml:"TotalMemory"`
 	AvailableMemory       float64 `json:"AvailableMemory" xml:"AvailableMemory"`
 	TotalLocalStorage     int     `json:"TotalLocalStorage" xml:"TotalLocalStorage"`

+ 3 - 0
services/ecs/struct_dedicated_host.go

@@ -26,6 +26,8 @@ type DedicatedHost struct {
 	DedicatedHostType             string                                                `json:"DedicatedHostType" xml:"DedicatedHostType"`
 	Sockets                       int                                                   `json:"Sockets" xml:"Sockets"`
 	Cores                         int                                                   `json:"Cores" xml:"Cores"`
+	PhysicalGpus                  int                                                   `json:"PhysicalGpus" xml:"PhysicalGpus"`
+	GPUSpec                       string                                                `json:"GPUSpec" xml:"GPUSpec"`
 	ActionOnMaintenance           string                                                `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"`
 	Status                        string                                                `json:"Status" xml:"Status"`
 	CreationTime                  string                                                `json:"CreationTime" xml:"CreationTime"`
@@ -35,6 +37,7 @@ type DedicatedHost struct {
 	AutoReleaseTime               string                                                `json:"AutoReleaseTime" xml:"AutoReleaseTime"`
 	ResourceGroupId               string                                                `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHosts `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"`
+	SupportedInstanceTypesList    SupportedInstanceTypesListInDescribeDedicatedHosts    `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"`
 	Capacity                      Capacity                                              `json:"Capacity" xml:"Capacity"`
 	NetworkAttributes             NetworkAttributes                                     `json:"NetworkAttributes" xml:"NetworkAttributes"`
 	Instances                     InstancesInDescribeDedicatedHosts                     `json:"Instances" xml:"Instances"`

+ 4 - 0
services/ecs/struct_dedicated_host_type.go

@@ -20,10 +20,14 @@ type DedicatedHostType struct {
 	DedicatedHostType             string                                                    `json:"DedicatedHostType" xml:"DedicatedHostType"`
 	Sockets                       int                                                       `json:"Sockets" xml:"Sockets"`
 	TotalVcpus                    int                                                       `json:"TotalVcpus" xml:"TotalVcpus"`
+	TotalVgpus                    int                                                       `json:"TotalVgpus" xml:"TotalVgpus"`
 	Cores                         int                                                       `json:"Cores" xml:"Cores"`
+	PhysicalGpus                  int                                                       `json:"PhysicalGpus" xml:"PhysicalGpus"`
 	MemorySize                    float64                                                   `json:"MemorySize" xml:"MemorySize"`
 	LocalStorageCapacity          int                                                       `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
 	LocalStorageAmount            int                                                       `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
 	LocalStorageCategory          string                                                    `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
+	GPUSpec                       string                                                    `json:"GPUSpec" xml:"GPUSpec"`
 	SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"`
+	SupportedInstanceTypesList    SupportedInstanceTypesListInDescribeDedicatedHostTypes    `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"`
 }

+ 1 - 0
services/ecs/struct_disk.go

@@ -48,6 +48,7 @@ type Disk struct {
 	IOPS                          int                           `json:"IOPS" xml:"IOPS"`
 	IOPSRead                      int                           `json:"IOPSRead" xml:"IOPSRead"`
 	IOPSWrite                     int                           `json:"IOPSWrite" xml:"IOPSWrite"`
+	KMSKeyId                      string                        `json:"KMSKeyId" xml:"KMSKeyId"`
 	OperationLocks                OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"`
 	MountInstances                MountInstances                `json:"MountInstances" xml:"MountInstances"`
 	Tags                          TagsInDescribeDisks           `json:"Tags" xml:"Tags"`

+ 23 - 22
services/ecs/struct_instance_type.go

@@ -17,26 +17,27 @@ package ecs
 
 // InstanceType is a nested struct in ecs response
 type InstanceType struct {
-	MemorySize           float64 `json:"MemorySize" xml:"MemorySize"`
-	InstancePpsRx        int     `json:"InstancePpsRx" xml:"InstancePpsRx"`
-	CpuCoreCount         int     `json:"CpuCoreCount" xml:"CpuCoreCount"`
-	Cores                int     `json:"Cores" xml:"Cores"`
-	Memory               int     `json:"Memory" xml:"Memory"`
-	InstanceTypeId       string  `json:"InstanceTypeId" xml:"InstanceTypeId"`
-	InstanceBandwidthRx  int     `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"`
-	InstanceType         string  `json:"InstanceType" xml:"InstanceType"`
-	BaselineCredit       int     `json:"BaselineCredit" xml:"BaselineCredit"`
-	EniQuantity          int     `json:"EniQuantity" xml:"EniQuantity"`
-	Generation           string  `json:"Generation" xml:"Generation"`
-	GPUAmount            int     `json:"GPUAmount" xml:"GPUAmount"`
-	SupportIoOptimized   string  `json:"SupportIoOptimized" xml:"SupportIoOptimized"`
-	InstanceTypeFamily   string  `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
-	InitialCredit        int     `json:"InitialCredit" xml:"InitialCredit"`
-	InstancePpsTx        int     `json:"InstancePpsTx" xml:"InstancePpsTx"`
-	LocalStorageAmount   int     `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
-	InstanceFamilyLevel  string  `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"`
-	LocalStorageCapacity int     `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
-	GPUSpec              string  `json:"GPUSpec" xml:"GPUSpec"`
-	LocalStorageCategory string  `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
-	InstanceBandwidthTx  int     `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`
+	MemorySize                  float64 `json:"MemorySize" xml:"MemorySize"`
+	EniPrivateIpAddressQuantity int     `json:"EniPrivateIpAddressQuantity" xml:"EniPrivateIpAddressQuantity"`
+	InstancePpsRx               int     `json:"InstancePpsRx" xml:"InstancePpsRx"`
+	CpuCoreCount                int     `json:"CpuCoreCount" xml:"CpuCoreCount"`
+	Cores                       int     `json:"Cores" xml:"Cores"`
+	Memory                      int     `json:"Memory" xml:"Memory"`
+	InstanceTypeId              string  `json:"InstanceTypeId" xml:"InstanceTypeId"`
+	InstanceBandwidthRx         int     `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"`
+	InstanceType                string  `json:"InstanceType" xml:"InstanceType"`
+	BaselineCredit              int     `json:"BaselineCredit" xml:"BaselineCredit"`
+	EniQuantity                 int     `json:"EniQuantity" xml:"EniQuantity"`
+	Generation                  string  `json:"Generation" xml:"Generation"`
+	GPUAmount                   int     `json:"GPUAmount" xml:"GPUAmount"`
+	SupportIoOptimized          string  `json:"SupportIoOptimized" xml:"SupportIoOptimized"`
+	InstanceTypeFamily          string  `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
+	InitialCredit               int     `json:"InitialCredit" xml:"InitialCredit"`
+	InstancePpsTx               int     `json:"InstancePpsTx" xml:"InstancePpsTx"`
+	LocalStorageAmount          int     `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
+	InstanceFamilyLevel         string  `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"`
+	LocalStorageCapacity        int     `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	GPUSpec                     string  `json:"GPUSpec" xml:"GPUSpec"`
+	LocalStorageCategory        string  `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
+	InstanceBandwidthTx         int     `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`
 }

+ 1 - 0
services/ecs/struct_snapshot.go

@@ -33,5 +33,6 @@ type Snapshot struct {
 	SourceStorageType string                  `json:"SourceStorageType" xml:"SourceStorageType"`
 	RemainTime        int                     `json:"RemainTime" xml:"RemainTime"`
 	ResourceGroupId   string                  `json:"ResourceGroupId" xml:"ResourceGroupId"`
+	KMSKeyId          string                  `json:"KMSKeyId" xml:"KMSKeyId"`
 	Tags              TagsInDescribeSnapshots `json:"Tags" xml:"Tags"`
 }

+ 21 - 0
services/ecs/struct_supported_instance_types_list_in_describe_dedicated_host_types.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportedInstanceTypesListInDescribeDedicatedHostTypes is a nested struct in ecs response
+type SupportedInstanceTypesListInDescribeDedicatedHostTypes struct {
+	SupportedInstanceTypesList []string `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"`
+}

+ 21 - 0
services/ecs/struct_supported_instance_types_list_in_describe_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportedInstanceTypesListInDescribeDedicatedHosts is a nested struct in ecs response
+type SupportedInstanceTypesListInDescribeDedicatedHosts struct {
+	SupportedInstanceTypesList []string `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"`
+}