浏览代码

ECS SDK Auto Released By corey.ql,Version:1.60.7

Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
sdk-team 6 年之前
父节点
当前提交
a06161b486

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-05-15 Version: 1.60.7
+1, Add InstanceId parameter to api CreateDisk
+2, Add parameter Affinity and Tenancy in ECS instance DedicatedHost related apis.
+3, Add SecurityGroupIds parameter to Instance creation apis.
+
 2019-05-14 Version: 1.60.6
 1, Support body detect.
 

+ 1 - 0
services/ecs/create_disk.go

@@ -85,6 +85,7 @@ type CreateDiskRequest struct {
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	DiskName             string           `position:"Query" name:"DiskName"`
 	ResourceGroupId      string           `position:"Query" name:"ResourceGroupId"`
+	InstanceId           string           `position:"Query" name:"InstanceId"`
 	Size                 requests.Integer `position:"Query" name:"Size"`
 	Encrypted            requests.Boolean `position:"Query" name:"Encrypted"`
 	DiskCategory         string           `position:"Query" name:"DiskCategory"`

+ 2 - 0
services/ecs/create_instance.go

@@ -102,6 +102,7 @@ type CreateInstanceRequest struct {
 	ZoneId                        string                    `position:"Query" name:"ZoneId"`
 	InternetMaxBandwidthIn        requests.Integer          `position:"Query" name:"InternetMaxBandwidthIn"`
 	UseAdditionalService          requests.Boolean          `position:"Query" name:"UseAdditionalService"`
+	Affinity                      string                    `position:"Query" name:"Affinity"`
 	ImageId                       string                    `position:"Query" name:"ImageId"`
 	ClientToken                   string                    `position:"Query" name:"ClientToken"`
 	VlanId                        string                    `position:"Query" name:"VlanId"`
@@ -121,6 +122,7 @@ type CreateInstanceRequest struct {
 	InnerIpAddress                string                    `position:"Query" name:"InnerIpAddress"`
 	ResourceOwnerAccount          string                    `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount                  string                    `position:"Query" name:"OwnerAccount"`
+	Tenancy                       string                    `position:"Query" name:"Tenancy"`
 	SystemDiskDiskName            string                    `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName                   string                    `position:"Query" name:"RamRoleName"`
 	DedicatedHostId               string                    `position:"Query" name:"DedicatedHostId"`

+ 1 - 1
services/ecs/create_launch_template_version.go

@@ -152,7 +152,7 @@ type CreateLaunchTemplateVersionDataDisk struct {
 type CreateLaunchTemplateVersionResponse struct {
 	*responses.BaseResponse
 	RequestId                   string `json:"RequestId" xml:"RequestId"`
-	LaunchTemplateVersionNumber int    `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"`
+	LaunchTemplateVersionNumber int64  `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"`
 }
 
 // CreateCreateLaunchTemplateVersionRequest creates a request to invoke CreateLaunchTemplateVersion API

+ 1 - 1
services/ecs/create_router_interface.go

@@ -108,7 +108,7 @@ type CreateRouterInterfaceResponse struct {
 	*responses.BaseResponse
 	RequestId         string `json:"RequestId" xml:"RequestId"`
 	RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"`
-	OrderId           int    `json:"OrderId" xml:"OrderId"`
+	OrderId           int64  `json:"OrderId" xml:"OrderId"`
 }
 
 // CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API

+ 3 - 3
services/ecs/describe_commands.go

@@ -92,9 +92,9 @@ type DescribeCommandsRequest struct {
 type DescribeCommandsResponse struct {
 	*responses.BaseResponse
 	RequestId  string   `json:"RequestId" xml:"RequestId"`
-	TotalCount int      `json:"TotalCount" xml:"TotalCount"`
-	PageNumber int      `json:"PageNumber" xml:"PageNumber"`
-	PageSize   int      `json:"PageSize" xml:"PageSize"`
+	TotalCount int64    `json:"TotalCount" xml:"TotalCount"`
+	PageNumber int64    `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int64    `json:"PageSize" xml:"PageSize"`
 	Commands   Commands `json:"Commands" xml:"Commands"`
 }
 

+ 3 - 3
services/ecs/describe_invocations.go

@@ -95,9 +95,9 @@ type DescribeInvocationsRequest struct {
 type DescribeInvocationsResponse struct {
 	*responses.BaseResponse
 	RequestId   string      `json:"RequestId" xml:"RequestId"`
-	TotalCount  int         `json:"TotalCount" xml:"TotalCount"`
-	PageNumber  int         `json:"PageNumber" xml:"PageNumber"`
-	PageSize    int         `json:"PageSize" xml:"PageSize"`
+	TotalCount  int64       `json:"TotalCount" xml:"TotalCount"`
+	PageNumber  int64       `json:"PageNumber" xml:"PageNumber"`
+	PageSize    int64       `json:"PageSize" xml:"PageSize"`
 	Invocations Invocations `json:"Invocations" xml:"Invocations"`
 }
 

+ 1 - 1
services/ecs/describe_snapshots_usage.go

@@ -87,7 +87,7 @@ type DescribeSnapshotsUsageResponse struct {
 	*responses.BaseResponse
 	RequestId     string `json:"RequestId" xml:"RequestId"`
 	SnapshotCount int    `json:"SnapshotCount" xml:"SnapshotCount"`
-	SnapshotSize  int    `json:"SnapshotSize" xml:"SnapshotSize"`
+	SnapshotSize  int64  `json:"SnapshotSize" xml:"SnapshotSize"`
 }
 
 // CreateDescribeSnapshotsUsageRequest creates a request to invoke DescribeSnapshotsUsage API

+ 2 - 0
services/ecs/modify_instance_deployment.go

@@ -80,10 +80,12 @@ type ModifyInstanceDeploymentRequest struct {
 	DeploymentSetId      string           `position:"Query" name:"DeploymentSetId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	Tenancy              string           `position:"Query" name:"Tenancy"`
 	DedicatedHostId      string           `position:"Query" name:"DedicatedHostId"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	InstanceId           string           `position:"Query" name:"InstanceId"`
 	Force                requests.Boolean `position:"Query" name:"Force"`
+	Affinity             string           `position:"Query" name:"Affinity"`
 }
 
 // ModifyInstanceDeploymentResponse is the response struct for api ModifyInstanceDeployment

+ 2 - 0
services/ecs/run_instances.go

@@ -106,6 +106,7 @@ type RunInstancesRequest struct {
 	ZoneId                        string                          `position:"Query" name:"ZoneId"`
 	Ipv6Address                   *[]string                       `position:"Query" name:"Ipv6Address"  type:"Repeated"`
 	InternetMaxBandwidthIn        requests.Integer                `position:"Query" name:"InternetMaxBandwidthIn"`
+	Affinity                      string                          `position:"Query" name:"Affinity"`
 	ImageId                       string                          `position:"Query" name:"ImageId"`
 	SpotInterruptionBehavior      string                          `position:"Query" name:"SpotInterruptionBehavior"`
 	ClientToken                   string                          `position:"Query" name:"ClientToken"`
@@ -125,6 +126,7 @@ type RunInstancesRequest struct {
 	Amount                        requests.Integer                `position:"Query" name:"Amount"`
 	ResourceOwnerAccount          string                          `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount                  string                          `position:"Query" name:"OwnerAccount"`
+	Tenancy                       string                          `position:"Query" name:"Tenancy"`
 	SystemDiskDiskName            string                          `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName                   string                          `position:"Query" name:"RamRoleName"`
 	AutoReleaseTime               string                          `position:"Query" name:"AutoReleaseTime"`

+ 1 - 1
services/ecs/struct_command.go

@@ -23,7 +23,7 @@ type Command struct {
 	Description     string         `json:"Description" xml:"Description"`
 	CommandContent  string         `json:"CommandContent" xml:"CommandContent"`
 	WorkingDir      string         `json:"WorkingDir" xml:"WorkingDir"`
-	Timeout         int            `json:"Timeout" xml:"Timeout"`
+	Timeout         int64          `json:"Timeout" xml:"Timeout"`
 	CreationTime    string         `json:"CreationTime" xml:"CreationTime"`
 	EnableParameter bool           `json:"EnableParameter" xml:"EnableParameter"`
 	ParameterNames  ParameterNames `json:"ParameterNames" xml:"ParameterNames"`

+ 1 - 1
services/ecs/struct_data_point.go

@@ -18,5 +18,5 @@ package ecs
 // DataPoint is a nested struct in ecs response
 type DataPoint struct {
 	TimeStamp string `json:"TimeStamp" xml:"TimeStamp"`
-	Size      int    `json:"Size" xml:"Size"`
+	Size      int64  `json:"Size" xml:"Size"`
 }

+ 1 - 1
services/ecs/struct_dedicated_host_type.go

@@ -24,7 +24,7 @@ type DedicatedHostType struct {
 	Cores                         int                                                       `json:"Cores" xml:"Cores"`
 	PhysicalGpus                  int                                                       `json:"PhysicalGpus" xml:"PhysicalGpus"`
 	MemorySize                    float64                                                   `json:"MemorySize" xml:"MemorySize"`
-	LocalStorageCapacity          int                                                       `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	LocalStorageCapacity          int64                                                     `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
 	LocalStorageAmount            int                                                       `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
 	LocalStorageCategory          string                                                    `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
 	GPUSpec                       string                                                    `json:"GPUSpec" xml:"GPUSpec"`

+ 1 - 1
services/ecs/struct_instance.go

@@ -56,7 +56,7 @@ type Instance struct {
 	CreationTime               string                               `json:"CreationTime" xml:"CreationTime"`
 	KeyPairName                string                               `json:"KeyPairName" xml:"KeyPairName"`
 	HpcClusterId               string                               `json:"HpcClusterId" xml:"HpcClusterId"`
-	LocalStorageCapacity       int                                  `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	LocalStorageCapacity       int64                                `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
 	VlanId                     string                               `json:"VlanId" xml:"VlanId"`
 	StoppedMode                string                               `json:"StoppedMode" xml:"StoppedMode"`
 	SpotStrategy               string                               `json:"SpotStrategy" xml:"SpotStrategy"`

+ 3 - 3
services/ecs/struct_instance_type.go

@@ -19,7 +19,7 @@ package ecs
 type InstanceType struct {
 	MemorySize                  float64 `json:"MemorySize" xml:"MemorySize"`
 	EniPrivateIpAddressQuantity int     `json:"EniPrivateIpAddressQuantity" xml:"EniPrivateIpAddressQuantity"`
-	InstancePpsRx               int     `json:"InstancePpsRx" xml:"InstancePpsRx"`
+	InstancePpsRx               int64   `json:"InstancePpsRx" xml:"InstancePpsRx"`
 	CpuCoreCount                int     `json:"CpuCoreCount" xml:"CpuCoreCount"`
 	Cores                       int     `json:"Cores" xml:"Cores"`
 	Memory                      int     `json:"Memory" xml:"Memory"`
@@ -33,10 +33,10 @@ type InstanceType struct {
 	SupportIoOptimized          string  `json:"SupportIoOptimized" xml:"SupportIoOptimized"`
 	InstanceTypeFamily          string  `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
 	InitialCredit               int     `json:"InitialCredit" xml:"InitialCredit"`
-	InstancePpsTx               int     `json:"InstancePpsTx" xml:"InstancePpsTx"`
+	InstancePpsTx               int64   `json:"InstancePpsTx" xml:"InstancePpsTx"`
 	LocalStorageAmount          int     `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
 	InstanceFamilyLevel         string  `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"`
-	LocalStorageCapacity        int     `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	LocalStorageCapacity        int64   `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
 	GPUSpec                     string  `json:"GPUSpec" xml:"GPUSpec"`
 	LocalStorageCategory        string  `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
 	InstanceBandwidthTx         int     `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`

+ 3 - 3
services/ecs/struct_invocation.go

@@ -18,9 +18,9 @@ package ecs
 // Invocation is a nested struct in ecs response
 type Invocation struct {
 	CommandId         string            `json:"CommandId" xml:"CommandId"`
-	PageNumber        int               `json:"PageNumber" xml:"PageNumber"`
-	TotalCount        int               `json:"TotalCount" xml:"TotalCount"`
-	PageSize          int               `json:"PageSize" xml:"PageSize"`
+	PageNumber        int64             `json:"PageNumber" xml:"PageNumber"`
+	TotalCount        int64             `json:"TotalCount" xml:"TotalCount"`
+	PageSize          int64             `json:"PageSize" xml:"PageSize"`
 	Timed             bool              `json:"Timed" xml:"Timed"`
 	Frequency         string            `json:"Frequency" xml:"Frequency"`
 	CommandName       string            `json:"CommandName" xml:"CommandName"`

+ 1 - 1
services/ecs/struct_invocation_result.go

@@ -23,5 +23,5 @@ type InvocationResult struct {
 	FinishedTime       string `json:"FinishedTime" xml:"FinishedTime"`
 	Output             string `json:"Output" xml:"Output"`
 	InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"`
-	ExitCode           int    `json:"ExitCode" xml:"ExitCode"`
+	ExitCode           int64  `json:"ExitCode" xml:"ExitCode"`
 }

+ 2 - 2
services/ecs/struct_launch_template_set.go

@@ -21,8 +21,8 @@ type LaunchTemplateSet struct {
 	ModifiedTime         string                        `json:"ModifiedTime" xml:"ModifiedTime"`
 	LaunchTemplateId     string                        `json:"LaunchTemplateId" xml:"LaunchTemplateId"`
 	LaunchTemplateName   string                        `json:"LaunchTemplateName" xml:"LaunchTemplateName"`
-	DefaultVersionNumber int                           `json:"DefaultVersionNumber" xml:"DefaultVersionNumber"`
-	LatestVersionNumber  int                           `json:"LatestVersionNumber" xml:"LatestVersionNumber"`
+	DefaultVersionNumber int64                         `json:"DefaultVersionNumber" xml:"DefaultVersionNumber"`
+	LatestVersionNumber  int64                         `json:"LatestVersionNumber" xml:"LatestVersionNumber"`
 	CreatedBy            string                        `json:"CreatedBy" xml:"CreatedBy"`
 	ResourceGroupId      string                        `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	Tags                 TagsInDescribeLaunchTemplates `json:"Tags" xml:"Tags"`

+ 1 - 1
services/ecs/struct_launch_template_version_set.go

@@ -22,7 +22,7 @@ type LaunchTemplateVersionSet struct {
 	LaunchTemplateId   string             `json:"LaunchTemplateId" xml:"LaunchTemplateId"`
 	LaunchTemplateName string             `json:"LaunchTemplateName" xml:"LaunchTemplateName"`
 	DefaultVersion     bool               `json:"DefaultVersion" xml:"DefaultVersion"`
-	VersionNumber      int                `json:"VersionNumber" xml:"VersionNumber"`
+	VersionNumber      int64              `json:"VersionNumber" xml:"VersionNumber"`
 	VersionDescription string             `json:"VersionDescription" xml:"VersionDescription"`
 	CreatedBy          string             `json:"CreatedBy" xml:"CreatedBy"`
 	LaunchTemplateData LaunchTemplateData `json:"LaunchTemplateData" xml:"LaunchTemplateData"`

+ 1 - 1
services/ecs/struct_network_interface_permission.go

@@ -18,7 +18,7 @@ package ecs
 // NetworkInterfacePermission is a nested struct in ecs response
 type NetworkInterfacePermission struct {
 	Permission                   string `json:"Permission" xml:"Permission"`
-	AccountId                    int    `json:"AccountId" xml:"AccountId"`
+	AccountId                    int64  `json:"AccountId" xml:"AccountId"`
 	NetworkInterfaceId           string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"`
 	ServiceName                  string `json:"ServiceName" xml:"ServiceName"`
 	NetworkInterfacePermissionId string `json:"NetworkInterfacePermissionId" xml:"NetworkInterfacePermissionId"`

+ 1 - 1
services/ecs/struct_network_interface_set.go

@@ -30,7 +30,7 @@ type NetworkInterfaceSet struct {
 	InstanceId           string                                      `json:"InstanceId" xml:"InstanceId"`
 	CreationTime         string                                      `json:"CreationTime" xml:"CreationTime"`
 	ResourceGroupId      string                                      `json:"ResourceGroupId" xml:"ResourceGroupId"`
-	ServiceID            int                                         `json:"ServiceID" xml:"ServiceID"`
+	ServiceID            int64                                       `json:"ServiceID" xml:"ServiceID"`
 	ServiceManaged       bool                                        `json:"ServiceManaged" xml:"ServiceManaged"`
 	SecurityGroupIds     SecurityGroupIdsInDescribeNetworkInterfaces `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
 	AssociatedPublicIp   AssociatedPublicIp                          `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"`

+ 1 - 1
services/ecs/struct_physical_connection_type.go

@@ -34,5 +34,5 @@ type PhysicalConnectionType struct {
 	AdLocation                    string `json:"AdLocation" xml:"AdLocation"`
 	PortNumber                    string `json:"PortNumber" xml:"PortNumber"`
 	CircuitCode                   string `json:"CircuitCode" xml:"CircuitCode"`
-	Bandwidth                     int    `json:"Bandwidth" xml:"Bandwidth"`
+	Bandwidth                     int64  `json:"Bandwidth" xml:"Bandwidth"`
 }

+ 1 - 1
services/ecs/struct_rule.go

@@ -17,6 +17,6 @@ package ecs
 
 // Rule is a nested struct in ecs response
 type Rule struct {
-	RuleId      int    `json:"RuleId" xml:"RuleId"`
+	RuleId      int64  `json:"RuleId" xml:"RuleId"`
 	Description string `json:"Description" xml:"Description"`
 }

+ 1 - 1
services/ecs/struct_snapshot_package.go

@@ -19,6 +19,6 @@ package ecs
 type SnapshotPackage struct {
 	StartTime    string `json:"StartTime" xml:"StartTime"`
 	EndTime      string `json:"EndTime" xml:"EndTime"`
-	InitCapacity int    `json:"InitCapacity" xml:"InitCapacity"`
+	InitCapacity int64  `json:"InitCapacity" xml:"InitCapacity"`
 	DisplayName  string `json:"DisplayName" xml:"DisplayName"`
 }

+ 1 - 1
services/ecs/struct_v_switch.go

@@ -22,7 +22,7 @@ type VSwitch struct {
 	Status                  string `json:"Status" xml:"Status"`
 	CidrBlock               string `json:"CidrBlock" xml:"CidrBlock"`
 	ZoneId                  string `json:"ZoneId" xml:"ZoneId"`
-	AvailableIpAddressCount int    `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"`
+	AvailableIpAddressCount int64  `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"`
 	Description             string `json:"Description" xml:"Description"`
 	VSwitchName             string `json:"VSwitchName" xml:"VSwitchName"`
 	CreationTime            string `json:"CreationTime" xml:"CreationTime"`

+ 1 - 1
services/ecs/struct_virtual_border_router_for_physical_connection_type.go

@@ -18,7 +18,7 @@ package ecs
 // VirtualBorderRouterForPhysicalConnectionType is a nested struct in ecs response
 type VirtualBorderRouterForPhysicalConnectionType struct {
 	VbrId           string `json:"VbrId" xml:"VbrId"`
-	VbrOwnerUid     int    `json:"VbrOwnerUid" xml:"VbrOwnerUid"`
+	VbrOwnerUid     int64  `json:"VbrOwnerUid" xml:"VbrOwnerUid"`
 	CreationTime    string `json:"CreationTime" xml:"CreationTime"`
 	ActivationTime  string `json:"ActivationTime" xml:"ActivationTime"`
 	TerminationTime string `json:"TerminationTime" xml:"TerminationTime"`