Browse Source

Support ListTagResources for tag fuzzy filter.

sdk-team 6 years ago
parent
commit
bb1088cc2a

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-10-31 Version: 1.60.222
+- Support ListTagResources for tag fuzzy filter.
+
 2019-10-30 Version: 1.60.221
 - Update interface params of the cloudauth.
 

+ 15 - 8
services/ecs/list_tag_resources.go

@@ -76,14 +76,15 @@ func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequ
 // ListTagResourcesRequest is the request struct for api ListTagResources
 type ListTagResourcesRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer       `position:"Query" name:"ResourceOwnerId"`
-	NextToken            string                 `position:"Query" name:"NextToken"`
-	Tag                  *[]ListTagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
-	ResourceId           *[]string              `position:"Query" name:"ResourceId"  type:"Repeated"`
-	ResourceOwnerAccount string                 `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string                 `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer       `position:"Query" name:"OwnerId"`
-	ResourceType         string                 `position:"Query" name:"ResourceType"`
+	ResourceOwnerId      requests.Integer             `position:"Query" name:"ResourceOwnerId"`
+	NextToken            string                       `position:"Query" name:"NextToken"`
+	Tag                  *[]ListTagResourcesTag       `position:"Query" name:"Tag"  type:"Repeated"`
+	ResourceId           *[]string                    `position:"Query" name:"ResourceId"  type:"Repeated"`
+	ResourceOwnerAccount string                       `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string                       `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer             `position:"Query" name:"OwnerId"`
+	TagFilter            *[]ListTagResourcesTagFilter `position:"Query" name:"TagFilter"  type:"Repeated"`
+	ResourceType         string                       `position:"Query" name:"ResourceType"`
 }
 
 // ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest
@@ -92,6 +93,12 @@ type ListTagResourcesTag struct {
 	Value string `name:"Value"`
 }
 
+// ListTagResourcesTagFilter is a repeated param struct in ListTagResourcesRequest
+type ListTagResourcesTagFilter struct {
+	TagKey    string    `name:"TagKey"`
+	TagValues *[]string `name:"TagValues" type:"Repeated"`
+}
+
 // ListTagResourcesResponse is the response struct for api ListTagResources
 type ListTagResourcesResponse struct {
 	*responses.BaseResponse

+ 3 - 0
services/ecs/run_instances.go

@@ -92,10 +92,12 @@ type RunInstancesRequest struct {
 	Tag                            *[]RunInstancesTag              `position:"Query" name:"Tag"  type:"Repeated"`
 	SystemDiskAutoSnapshotPolicyId string                          `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"`
 	AutoRenewPeriod                requests.Integer                `position:"Query" name:"AutoRenewPeriod"`
+	CpuOptionsCore                 requests.Integer                `position:"Query" name:"CpuOptions.Core"`
 	Period                         requests.Integer                `position:"Query" name:"Period"`
 	DryRun                         requests.Boolean                `position:"Query" name:"DryRun"`
 	LaunchTemplateId               string                          `position:"Query" name:"LaunchTemplateId"`
 	Ipv6AddressCount               requests.Integer                `position:"Query" name:"Ipv6AddressCount"`
+	CpuOptionsNuma                 string                          `position:"Query" name:"CpuOptions.Numa"`
 	OwnerId                        requests.Integer                `position:"Query" name:"OwnerId"`
 	CapacityReservationPreference  string                          `position:"Query" name:"CapacityReservationPreference"`
 	VSwitchId                      string                          `position:"Query" name:"VSwitchId"`
@@ -116,6 +118,7 @@ type RunInstancesRequest struct {
 	SecurityGroupId                string                          `position:"Query" name:"SecurityGroupId"`
 	InternetMaxBandwidthOut        requests.Integer                `position:"Query" name:"InternetMaxBandwidthOut"`
 	Description                    string                          `position:"Query" name:"Description"`
+	CpuOptionsThreadsPerCore       requests.Integer                `position:"Query" name:"CpuOptions.ThreadsPerCore"`
 	SystemDiskCategory             string                          `position:"Query" name:"SystemDisk.Category"`
 	CapacityReservationId          string                          `position:"Query" name:"CapacityReservationId"`
 	SystemDiskPerformanceLevel     string                          `position:"Query" name:"SystemDisk.PerformanceLevel"`

+ 23 - 0
services/ecs/struct_cpu_options.go

@@ -0,0 +1,23 @@
+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.
+
+// CpuOptions is a nested struct in ecs response
+type CpuOptions struct {
+	CoreCount      int    `json:"CoreCount" xml:"CoreCount"`
+	ThreadsPerCore int    `json:"ThreadsPerCore" xml:"ThreadsPerCore"`
+	Numa           string `json:"Numa" xml:"Numa"`
+}

+ 1 - 0
services/ecs/struct_instance.go

@@ -70,6 +70,7 @@ type Instance struct {
 	PublicIpAddress            PublicIpAddressInDescribeInstances   `json:"PublicIpAddress" xml:"PublicIpAddress"`
 	RdmaIpAddress              RdmaIpAddress                        `json:"RdmaIpAddress" xml:"RdmaIpAddress"`
 	EipAddress                 EipAddressInDescribeInstances        `json:"EipAddress" xml:"EipAddress"`
+	CpuOptions                 CpuOptions                           `json:"CpuOptions" xml:"CpuOptions"`
 	EcsCapacityReservationAttr EcsCapacityReservationAttr           `json:"EcsCapacityReservationAttr" xml:"EcsCapacityReservationAttr"`
 	DedicatedHostAttribute     DedicatedHostAttribute               `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"`
 	DedicatedInstanceAttribute DedicatedInstanceAttribute           `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"`

+ 3 - 2
services/ecs/struct_instance_cloud_assistant_status.go

@@ -17,6 +17,7 @@ package ecs
 
 // InstanceCloudAssistantStatus is a nested struct in ecs response
 type InstanceCloudAssistantStatus struct {
-	InstanceId           string `json:"InstanceId" xml:"InstanceId"`
-	CloudAssistantStatus string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"`
+	InstanceId            string `json:"InstanceId" xml:"InstanceId"`
+	CloudAssistantStatus  string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"`
+	CloudAssistantVersion string `json:"CloudAssistantVersion" xml:"CloudAssistantVersion"`
 }