Quellcode durchsuchen

Generated 2014-08-28 for Ess.

sdk-team vor 5 Jahren
Ursprung
Commit
4e4b72809d

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-03-12 Version: v1.61.53
+- Generated 2014-08-28 for `Ess`.
+- Add ListTagKeys, ListTagValues etc.
+
 2020-03-12 Version: v1.61.52
 - Generated 2019-06-25 for `ivpd`.
 - Add new Api SegmentBody.

+ 1 - 0
services/ess/attach_instances.go

@@ -114,6 +114,7 @@ type AttachInstancesRequest struct {
 	InstanceId20         string           `position:"Query" name:"InstanceId.20"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	Entrusted            requests.Boolean `position:"Query" name:"Entrusted"`
 	InstanceId18         string           `position:"Query" name:"InstanceId.18"`
 	InstanceId17         string           `position:"Query" name:"InstanceId.17"`
 	InstanceId19         string           `position:"Query" name:"InstanceId.19"`

+ 1 - 0
services/ess/create_scaling_configuration.go

@@ -85,6 +85,7 @@ type CreateScalingConfigurationRequest struct {
 	Password                       string                                      `position:"Query" name:"Password"`
 	InstanceDescription            string                                      `position:"Query" name:"InstanceDescription"`
 	SystemDiskAutoSnapshotPolicyId string                                      `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"`
+	Ipv6AddressCount               requests.Integer                            `position:"Query" name:"Ipv6AddressCount"`
 	Cpu                            requests.Integer                            `position:"Query" name:"Cpu"`
 	OwnerId                        requests.Integer                            `position:"Query" name:"OwnerId"`
 	ScalingConfigurationName       string                                      `position:"Query" name:"ScalingConfigurationName"`

+ 7 - 0
services/ess/create_scaling_group.go

@@ -78,6 +78,7 @@ type CreateScalingGroupRequest struct {
 	*requests.RpcRequest
 	VSwitchIds                          *[]string                          `position:"Query" name:"VSwitchIds"  type:"Repeated"`
 	SpotInstanceRemedy                  requests.Boolean                   `position:"Query" name:"SpotInstanceRemedy"`
+	Tag                                 *[]CreateScalingGroupTag           `position:"Query" name:"Tag"  type:"Repeated"`
 	DefaultCooldown                     requests.Integer                   `position:"Query" name:"DefaultCooldown"`
 	MultiAZPolicy                       string                             `position:"Query" name:"MultiAZPolicy"`
 	DBInstanceIds                       string                             `position:"Query" name:"DBInstanceIds"`
@@ -106,6 +107,12 @@ type CreateScalingGroupRequest struct {
 	VServerGroup                        *[]CreateScalingGroupVServerGroup  `position:"Query" name:"VServerGroup"  type:"Repeated"`
 }
 
+// CreateScalingGroupTag is a repeated param struct in CreateScalingGroupRequest
+type CreateScalingGroupTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
 // CreateScalingGroupLifecycleHook is a repeated param struct in CreateScalingGroupRequest
 type CreateScalingGroupLifecycleHook struct {
 	DefaultResult        string `name:"DefaultResult"`

+ 4 - 0
services/ess/create_scheduled_task.go

@@ -77,14 +77,18 @@ func (client *Client) CreateScheduledTaskWithCallback(request *CreateScheduledTa
 type CreateScheduledTaskRequest struct {
 	*requests.RpcRequest
 	ScheduledAction      string           `position:"Query" name:"ScheduledAction"`
+	MaxValue             requests.Integer `position:"Query" name:"MaxValue"`
+	ScalingGroupId       string           `position:"Query" name:"ScalingGroupId"`
 	Description          string           `position:"Query" name:"Description"`
 	RecurrenceEndTime    string           `position:"Query" name:"RecurrenceEndTime"`
 	LaunchTime           string           `position:"Query" name:"LaunchTime"`
+	DesiredCapacity      requests.Integer `position:"Query" name:"DesiredCapacity"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	RecurrenceValue      string           `position:"Query" name:"RecurrenceValue"`
 	LaunchExpirationTime requests.Integer `position:"Query" name:"LaunchExpirationTime"`
+	MinValue             requests.Integer `position:"Query" name:"MinValue"`
 	ScheduledTaskName    string           `position:"Query" name:"ScheduledTaskName"`
 	TaskEnabled          requests.Boolean `position:"Query" name:"TaskEnabled"`
 	RecurrenceType       string           `position:"Query" name:"RecurrenceType"`

+ 110 - 0
services/ess/list_tag_keys.go

@@ -0,0 +1,110 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListTagKeys invokes the ess.ListTagKeys API synchronously
+// api document: https://help.aliyun.com/api/ess/listtagkeys.html
+func (client *Client) ListTagKeys(request *ListTagKeysRequest) (response *ListTagKeysResponse, err error) {
+	response = CreateListTagKeysResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagKeysWithChan invokes the ess.ListTagKeys API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagkeys.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagKeysWithChan(request *ListTagKeysRequest) (<-chan *ListTagKeysResponse, <-chan error) {
+	responseChan := make(chan *ListTagKeysResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTagKeys(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagKeysWithCallback invokes the ess.ListTagKeys API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagkeys.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagKeysWithCallback(request *ListTagKeysRequest, callback func(response *ListTagKeysResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagKeysResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTagKeys(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagKeysRequest is the request struct for api ListTagKeys
+type ListTagKeysRequest struct {
+	*requests.RpcRequest
+	NextToken            string           `position:"Query" name:"NextToken"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	ResourceType         string           `position:"Query" name:"ResourceType"`
+}
+
+// ListTagKeysResponse is the response struct for api ListTagKeys
+type ListTagKeysResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	NextToken string `json:"NextToken" xml:"NextToken"`
+	PageSize  int    `json:"PageSize" xml:"PageSize"`
+	Keys      Keys   `json:"Keys" xml:"Keys"`
+}
+
+// CreateListTagKeysRequest creates a request to invoke ListTagKeys API
+func CreateListTagKeysRequest() (request *ListTagKeysRequest) {
+	request = &ListTagKeysRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "ListTagKeys", "ess", "openAPI")
+	return
+}
+
+// CreateListTagKeysResponse creates a response to parse from ListTagKeys response
+func CreateListTagKeysResponse() (response *ListTagKeysResponse) {
+	response = &ListTagKeysResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/ess/list_tag_resources.go

@@ -0,0 +1,116 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListTagResources invokes the ess.ListTagResources API synchronously
+// api document: https://help.aliyun.com/api/ess/listtagresources.html
+func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) {
+	response = CreateListTagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagResourcesWithChan invokes the ess.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) {
+	responseChan := make(chan *ListTagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagResourcesWithCallback invokes the ess.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagResourcesRequest is the request struct for api ListTagResources
+type ListTagResourcesRequest struct {
+	*requests.RpcRequest
+	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"`
+	OwnerId              requests.Integer       `position:"Query" name:"OwnerId"`
+	ResourceType         string                 `position:"Query" name:"ResourceType"`
+}
+
+// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest
+type ListTagResourcesTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
+// ListTagResourcesResponse is the response struct for api ListTagResources
+type ListTagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	NextToken    string       `json:"NextToken" xml:"NextToken"`
+	TagResources TagResources `json:"TagResources" xml:"TagResources"`
+}
+
+// CreateListTagResourcesRequest creates a request to invoke ListTagResources API
+func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) {
+	request = &ListTagResourcesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "ListTagResources", "ess", "openAPI")
+	return
+}
+
+// CreateListTagResourcesResponse creates a response to parse from ListTagResources response
+func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) {
+	response = &ListTagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/ess/list_tag_values.go

@@ -0,0 +1,111 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListTagValues invokes the ess.ListTagValues API synchronously
+// api document: https://help.aliyun.com/api/ess/listtagvalues.html
+func (client *Client) ListTagValues(request *ListTagValuesRequest) (response *ListTagValuesResponse, err error) {
+	response = CreateListTagValuesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagValuesWithChan invokes the ess.ListTagValues API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagvalues.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagValuesWithChan(request *ListTagValuesRequest) (<-chan *ListTagValuesResponse, <-chan error) {
+	responseChan := make(chan *ListTagValuesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTagValues(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagValuesWithCallback invokes the ess.ListTagValues API asynchronously
+// api document: https://help.aliyun.com/api/ess/listtagvalues.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagValuesWithCallback(request *ListTagValuesRequest, callback func(response *ListTagValuesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagValuesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTagValues(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagValuesRequest is the request struct for api ListTagValues
+type ListTagValuesRequest struct {
+	*requests.RpcRequest
+	NextToken            string           `position:"Query" name:"NextToken"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	Key                  string           `position:"Query" name:"Key"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	ResourceType         string           `position:"Query" name:"ResourceType"`
+}
+
+// ListTagValuesResponse is the response struct for api ListTagValues
+type ListTagValuesResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	NextToken string `json:"NextToken" xml:"NextToken"`
+	PageSize  int    `json:"PageSize" xml:"PageSize"`
+	Values    Values `json:"Values" xml:"Values"`
+}
+
+// CreateListTagValuesRequest creates a request to invoke ListTagValues API
+func CreateListTagValuesRequest() (request *ListTagValuesRequest) {
+	request = &ListTagValuesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "ListTagValues", "ess", "openAPI")
+	return
+}
+
+// CreateListTagValuesResponse creates a response to parse from ListTagValues response
+func CreateListTagValuesResponse() (response *ListTagValuesResponse) {
+	response = &ListTagValuesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/ess/modify_scaling_configuration.go

@@ -83,6 +83,7 @@ type ModifyScalingConfigurationRequest struct {
 	HostName                       string                                      `position:"Query" name:"HostName"`
 	InstanceDescription            string                                      `position:"Query" name:"InstanceDescription"`
 	SystemDiskAutoSnapshotPolicyId string                                      `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"`
+	Ipv6AddressCount               requests.Integer                            `position:"Query" name:"Ipv6AddressCount"`
 	Cpu                            requests.Integer                            `position:"Query" name:"Cpu"`
 	OwnerId                        requests.Integer                            `position:"Query" name:"OwnerId"`
 	ScalingConfigurationName       string                                      `position:"Query" name:"ScalingConfigurationName"`

+ 2 - 0
services/ess/modify_scheduled_task.go

@@ -79,9 +79,11 @@ type ModifyScheduledTaskRequest struct {
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ScheduledAction      string           `position:"Query" name:"ScheduledAction"`
 	MaxValue             requests.Integer `position:"Query" name:"MaxValue"`
+	ScalingGroupId       string           `position:"Query" name:"ScalingGroupId"`
 	Description          string           `position:"Query" name:"Description"`
 	RecurrenceEndTime    string           `position:"Query" name:"RecurrenceEndTime"`
 	LaunchTime           string           `position:"Query" name:"LaunchTime"`
+	DesiredCapacity      requests.Integer `position:"Query" name:"DesiredCapacity"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`

+ 106 - 0
services/ess/set_group_deletion_protection.go

@@ -0,0 +1,106 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SetGroupDeletionProtection invokes the ess.SetGroupDeletionProtection API synchronously
+// api document: https://help.aliyun.com/api/ess/setgroupdeletionprotection.html
+func (client *Client) SetGroupDeletionProtection(request *SetGroupDeletionProtectionRequest) (response *SetGroupDeletionProtectionResponse, err error) {
+	response = CreateSetGroupDeletionProtectionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetGroupDeletionProtectionWithChan invokes the ess.SetGroupDeletionProtection API asynchronously
+// api document: https://help.aliyun.com/api/ess/setgroupdeletionprotection.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetGroupDeletionProtectionWithChan(request *SetGroupDeletionProtectionRequest) (<-chan *SetGroupDeletionProtectionResponse, <-chan error) {
+	responseChan := make(chan *SetGroupDeletionProtectionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetGroupDeletionProtection(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetGroupDeletionProtectionWithCallback invokes the ess.SetGroupDeletionProtection API asynchronously
+// api document: https://help.aliyun.com/api/ess/setgroupdeletionprotection.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetGroupDeletionProtectionWithCallback(request *SetGroupDeletionProtectionRequest, callback func(response *SetGroupDeletionProtectionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetGroupDeletionProtectionResponse
+		var err error
+		defer close(result)
+		response, err = client.SetGroupDeletionProtection(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetGroupDeletionProtectionRequest is the request struct for api SetGroupDeletionProtection
+type SetGroupDeletionProtectionRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerAccount    string           `position:"Query" name:"ResourceOwnerAccount"`
+	ScalingGroupId          string           `position:"Query" name:"ScalingGroupId"`
+	GroupDeletionProtection requests.Boolean `position:"Query" name:"GroupDeletionProtection"`
+	OwnerId                 requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// SetGroupDeletionProtectionResponse is the response struct for api SetGroupDeletionProtection
+type SetGroupDeletionProtectionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetGroupDeletionProtectionRequest creates a request to invoke SetGroupDeletionProtection API
+func CreateSetGroupDeletionProtectionRequest() (request *SetGroupDeletionProtectionRequest) {
+	request = &SetGroupDeletionProtectionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "SetGroupDeletionProtection", "ess", "openAPI")
+	return
+}
+
+// CreateSetGroupDeletionProtectionResponse creates a response to parse from SetGroupDeletionProtection response
+func CreateSetGroupDeletionProtectionResponse() (response *SetGroupDeletionProtectionResponse) {
+	response = &SetGroupDeletionProtectionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/ess/struct_keys.go

@@ -0,0 +1,21 @@
+package ess
+
+//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.
+
+// Keys is a nested struct in ess response
+type Keys struct {
+	Key []string `json:"Key" xml:"Key"`
+}

+ 1 - 0
services/ess/struct_scaling_configuration.go

@@ -51,6 +51,7 @@ type ScalingConfiguration struct {
 	ResourceGroupId                string           `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	HpcClusterId                   string           `json:"HpcClusterId" xml:"HpcClusterId"`
 	InstanceDescription            string           `json:"InstanceDescription" xml:"InstanceDescription"`
+	Ipv6AddressCount               int              `json:"Ipv6AddressCount" xml:"Ipv6AddressCount"`
 	InstanceTypes                  InstanceTypes    `json:"InstanceTypes" xml:"InstanceTypes"`
 	SecurityGroupIds               SecurityGroupIds `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
 	DataDisks                      DataDisks        `json:"DataDisks" xml:"DataDisks"`

+ 1 - 0
services/ess/struct_scaling_instance.go

@@ -28,4 +28,5 @@ type ScalingInstance struct {
 	LaunchTemplateId       string `json:"LaunchTemplateId" xml:"LaunchTemplateId"`
 	LaunchTemplateVersion  string `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"`
 	WarmupState            string `json:"WarmupState" xml:"WarmupState"`
+	Entrusted              bool   `json:"Entrusted" xml:"Entrusted"`
 }

+ 2 - 0
services/ess/struct_scheduled_task.go

@@ -29,4 +29,6 @@ type ScheduledTask struct {
 	TaskEnabled          bool   `json:"TaskEnabled" xml:"TaskEnabled"`
 	MaxValue             int    `json:"MaxValue" xml:"MaxValue"`
 	MinValue             int    `json:"MinValue" xml:"MinValue"`
+	DesiredCapacity      int    `json:"DesiredCapacity" xml:"DesiredCapacity"`
+	ScalingGroupId       string `json:"ScalingGroupId" xml:"ScalingGroupId"`
 }

+ 24 - 0
services/ess/struct_tag_resource.go

@@ -0,0 +1,24 @@
+package ess
+
+//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.
+
+// TagResource is a nested struct in ess response
+type TagResource struct {
+	ResourceType string `json:"ResourceType" xml:"ResourceType"`
+	ResourceId   string `json:"ResourceId" xml:"ResourceId"`
+	TagKey       string `json:"TagKey" xml:"TagKey"`
+	TagValue     string `json:"TagValue" xml:"TagValue"`
+}

+ 21 - 0
services/ess/struct_tag_resources.go

@@ -0,0 +1,21 @@
+package ess
+
+//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.
+
+// TagResources is a nested struct in ess response
+type TagResources struct {
+	TagResource []TagResource `json:"TagResource" xml:"TagResource"`
+}

+ 21 - 0
services/ess/struct_values.go

@@ -0,0 +1,21 @@
+package ess
+
+//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.
+
+// Values is a nested struct in ess response
+type Values struct {
+	Value []string `json:"Value" xml:"Value"`
+}

+ 113 - 0
services/ess/tag_resources.go

@@ -0,0 +1,113 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// TagResources invokes the ess.TagResources API synchronously
+// api document: https://help.aliyun.com/api/ess/tagresources.html
+func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) {
+	response = CreateTagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// TagResourcesWithChan invokes the ess.TagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/tagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) {
+	responseChan := make(chan *TagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.TagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// TagResourcesWithCallback invokes the ess.TagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/tagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *TagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.TagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// TagResourcesRequest is the request struct for api TagResources
+type TagResourcesRequest struct {
+	*requests.RpcRequest
+	Tag                  *[]TagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
+	ResourceId           *[]string          `position:"Query" name:"ResourceId"  type:"Repeated"`
+	ResourceOwnerAccount string             `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer   `position:"Query" name:"OwnerId"`
+	ResourceType         string             `position:"Query" name:"ResourceType"`
+}
+
+// TagResourcesTag is a repeated param struct in TagResourcesRequest
+type TagResourcesTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
+// TagResourcesResponse is the response struct for api TagResources
+type TagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateTagResourcesRequest creates a request to invoke TagResources API
+func CreateTagResourcesRequest() (request *TagResourcesRequest) {
+	request = &TagResourcesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "TagResources", "ess", "openAPI")
+	return
+}
+
+// CreateTagResourcesResponse creates a response to parse from TagResources response
+func CreateTagResourcesResponse() (response *TagResourcesResponse) {
+	response = &TagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ess/untag_resources.go

@@ -0,0 +1,108 @@
+package ess
+
+//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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// UntagResources invokes the ess.UntagResources API synchronously
+// api document: https://help.aliyun.com/api/ess/untagresources.html
+func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) {
+	response = CreateUntagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// UntagResourcesWithChan invokes the ess.UntagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/untagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) {
+	responseChan := make(chan *UntagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.UntagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// UntagResourcesWithCallback invokes the ess.UntagResources API asynchronously
+// api document: https://help.aliyun.com/api/ess/untagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *UntagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.UntagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// UntagResourcesRequest is the request struct for api UntagResources
+type UntagResourcesRequest struct {
+	*requests.RpcRequest
+	All                  requests.Boolean `position:"Query" name:"All"`
+	ResourceId           *[]string        `position:"Query" name:"ResourceId"  type:"Repeated"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	ResourceType         string           `position:"Query" name:"ResourceType"`
+	TagKey               *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
+}
+
+// UntagResourcesResponse is the response struct for api UntagResources
+type UntagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateUntagResourcesRequest creates a request to invoke UntagResources API
+func CreateUntagResourcesRequest() (request *UntagResourcesRequest) {
+	request = &UntagResourcesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ess", "2014-08-28", "UntagResources", "ess", "openAPI")
+	return
+}
+
+// CreateUntagResourcesResponse creates a response to parse from UntagResources response
+func CreateUntagResourcesResponse() (response *UntagResourcesResponse) {
+	response = &UntagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}