Преглед на файлове

ECS SDK Auto Released By hongsong.shs,Version:1.20.6

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao преди 7 години
родител
ревизия
42ad5cc140

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-06-27 Version: 1.20.6
+1, DescribeNetworkInterfaces support query with vpcId
+
 2018-06-22 Version: 1.20.5
 1, rtc openapi
 

+ 1 - 0
services/ecs/describe_network_interfaces.go

@@ -97,6 +97,7 @@ type DescribeNetworkInterfacesRequest struct {
 	VSwitchId            string           `position:"Query" name:"VSwitchId"`
 	InstanceId           string           `position:"Query" name:"InstanceId"`
 	Tag2Value            string           `position:"Query" name:"Tag.2.Value"`
+	VpcId                string           `position:"Query" name:"VpcId"`
 	Tag4Key              string           `position:"Query" name:"Tag.4.Key"`
 	PrimaryIpAddress     string           `position:"Query" name:"PrimaryIpAddress"`
 	NetworkInterfaceId   *[]string        `position:"Query" name:"NetworkInterfaceId"  type:"Repeated"`

+ 1 - 0
services/ecs/describe_regions.go

@@ -79,6 +79,7 @@ type DescribeRegionsRequest struct {
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	AcceptLanguage       string           `position:"Query" name:"AcceptLanguage"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	InstanceChargeType   string           `position:"Query" name:"InstanceChargeType"`
 	ResourceType         string           `position:"Query" name:"ResourceType"`

+ 1 - 1
services/ecs/get_instance_screenshot.go

@@ -78,7 +78,7 @@ type GetInstanceScreenshotRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	Wakeup               requests.Boolean `position:"Query" name:"Wakeup"`
+	WakeUp               requests.Boolean `position:"Query" name:"WakeUp"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	InstanceId           string           `position:"Query" name:"InstanceId"`

+ 1 - 0
services/ecs/modify_disk_charge_type.go

@@ -77,6 +77,7 @@ func (client *Client) ModifyDiskChargeTypeWithCallback(request *ModifyDiskCharge
 type ModifyDiskChargeTypeRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	DiskChargeType       string           `position:"Query" name:"DiskChargeType"`
 	InstanceId           string           `position:"Query" name:"InstanceId"`
 	AutoPay              requests.Boolean `position:"Query" name:"AutoPay"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`

+ 5 - 0
services/ecs/run_instances.go

@@ -86,12 +86,16 @@ type RunInstancesRequest struct {
 	HostName                    string                          `position:"Query" name:"HostName"`
 	Password                    string                          `position:"Query" name:"Password"`
 	Tag                         *[]RunInstancesTag              `position:"Query" name:"Tag"  type:"Repeated"`
+	AutoRenewPeriod             requests.Integer                `position:"Query" name:"AutoRenewPeriod"`
+	Period                      requests.Integer                `position:"Query" name:"Period"`
 	DryRun                      requests.Boolean                `position:"Query" name:"DryRun"`
 	LaunchTemplateId            string                          `position:"Query" name:"LaunchTemplateId"`
 	OwnerId                     requests.Integer                `position:"Query" name:"OwnerId"`
 	VSwitchId                   string                          `position:"Query" name:"VSwitchId"`
 	SpotStrategy                string                          `position:"Query" name:"SpotStrategy"`
+	PeriodUnit                  string                          `position:"Query" name:"PeriodUnit"`
 	InstanceName                string                          `position:"Query" name:"InstanceName"`
+	AutoRenew                   requests.Boolean                `position:"Query" name:"AutoRenew"`
 	InternetChargeType          string                          `position:"Query" name:"InternetChargeType"`
 	ZoneId                      string                          `position:"Query" name:"ZoneId"`
 	InternetMaxBandwidthIn      requests.Integer                `position:"Query" name:"InternetMaxBandwidthIn"`
@@ -106,6 +110,7 @@ type RunInstancesRequest struct {
 	UserData                    string                          `position:"Query" name:"UserData"`
 	PasswordInherit             requests.Boolean                `position:"Query" name:"PasswordInherit"`
 	InstanceType                string                          `position:"Query" name:"InstanceType"`
+	InstanceChargeType          string                          `position:"Query" name:"InstanceChargeType"`
 	NetworkInterface            *[]RunInstancesNetworkInterface `position:"Query" name:"NetworkInterface"  type:"Repeated"`
 	Amount                      requests.Integer                `position:"Query" name:"Amount"`
 	ResourceOwnerAccount        string                          `position:"Query" name:"ResourceOwnerAccount"`

+ 4 - 3
services/ecs/struct_region.go

@@ -17,7 +17,8 @@ package ecs
 
 // Region is a nested struct in ecs response
 type Region struct {
-	RegionId  string `json:"RegionId" xml:"RegionId"`
-	LocalName string `json:"LocalName" xml:"LocalName"`
-	Status    string `json:"Status" xml:"Status"`
+	RegionId       string `json:"RegionId" xml:"RegionId"`
+	LocalName      string `json:"LocalName" xml:"LocalName"`
+	RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"`
+	Status         string `json:"Status" xml:"Status"`
 }