فهرست منبع

ESS SDK Auto Released By zuochao,Version:1.60.8

Signed-off-by: sdk-team <sdk-team@alibabacloud.com>
sdk-team 6 سال پیش
والد
کامیت
c50d3629ac
100فایلهای تغییر یافته به همراه161 افزوده شده و 88 حذف شده
  1. 3 0
      ChangeLog.txt
  2. 0 0
      services/ess/attach_db_instances.go
  3. 0 0
      services/ess/attach_instances.go
  4. 0 0
      services/ess/attach_load_balancers.go
  5. 0 0
      services/ess/attach_v_server_groups.go
  6. 28 5
      services/ess/client.go
  7. 0 0
      services/ess/complete_lifecycle_action.go
  8. 0 0
      services/ess/create_alarm.go
  9. 0 0
      services/ess/create_lifecycle_hook.go
  10. 0 0
      services/ess/create_notification_configuration.go
  11. 1 0
      services/ess/create_scaling_configuration.go
  12. 0 0
      services/ess/create_scaling_group.go
  13. 20 15
      services/ess/create_scaling_rule.go
  14. 0 0
      services/ess/create_scheduled_task.go
  15. 0 0
      services/ess/deactivate_scaling_configuration.go
  16. 0 0
      services/ess/delete_alarm.go
  17. 0 0
      services/ess/delete_lifecycle_hook.go
  18. 0 0
      services/ess/delete_notification_configuration.go
  19. 0 0
      services/ess/delete_scaling_configuration.go
  20. 0 0
      services/ess/delete_scaling_group.go
  21. 0 0
      services/ess/delete_scaling_rule.go
  22. 0 0
      services/ess/delete_scheduled_task.go
  23. 0 0
      services/ess/describe_account_attributes.go
  24. 0 0
      services/ess/describe_alarms.go
  25. 0 0
      services/ess/describe_alert_config.go
  26. 0 0
      services/ess/describe_capacity_history.go
  27. 0 0
      services/ess/describe_lifecycle_hooks.go
  28. 0 0
      services/ess/describe_limitation.go
  29. 0 0
      services/ess/describe_notification_configurations.go
  30. 0 0
      services/ess/describe_notification_types.go
  31. 3 1
      services/ess/describe_regions.go
  32. 0 0
      services/ess/describe_scaling_activities.go
  33. 0 0
      services/ess/describe_scaling_activity_detail.go
  34. 0 0
      services/ess/describe_scaling_configurations.go
  35. 0 0
      services/ess/describe_scaling_groups.go
  36. 0 0
      services/ess/describe_scaling_instances.go
  37. 0 0
      services/ess/describe_scaling_rules.go
  38. 0 0
      services/ess/describe_scheduled_tasks.go
  39. 0 0
      services/ess/detach_db_instances.go
  40. 0 0
      services/ess/detach_instances.go
  41. 0 0
      services/ess/detach_load_balancers.go
  42. 0 0
      services/ess/detach_v_server_groups.go
  43. 0 0
      services/ess/disable_alarm.go
  44. 0 0
      services/ess/disable_scaling_group.go
  45. 0 0
      services/ess/enable_alarm.go
  46. 0 0
      services/ess/enable_scaling_group.go
  47. 0 0
      services/ess/enter_standby.go
  48. 0 0
      services/ess/execute_scaling_rule.go
  49. 0 0
      services/ess/exit_standby.go
  50. 0 0
      services/ess/modify_alarm.go
  51. 0 0
      services/ess/modify_alert_config.go
  52. 0 0
      services/ess/modify_lifecycle_hook.go
  53. 0 0
      services/ess/modify_notification_configuration.go
  54. 1 0
      services/ess/modify_scaling_configuration.go
  55. 0 0
      services/ess/modify_scaling_group.go
  56. 20 15
      services/ess/modify_scaling_rule.go
  57. 2 0
      services/ess/modify_scheduled_task.go
  58. 0 0
      services/ess/rebalance_instances.go
  59. 0 0
      services/ess/record_lifecycle_action_heartbeat.go
  60. 0 0
      services/ess/remove_instances.go
  61. 0 0
      services/ess/set_instances_protection.go
  62. 0 0
      services/ess/struct_alarm.go
  63. 0 0
      services/ess/struct_alarm_actions.go
  64. 0 0
      services/ess/struct_alarm_list.go
  65. 0 0
      services/ess/struct_alarms.go
  66. 0 0
      services/ess/struct_capacity_history_items.go
  67. 0 0
      services/ess/struct_capacity_history_model.go
  68. 0 0
      services/ess/struct_data_disk.go
  69. 0 0
      services/ess/struct_data_disks.go
  70. 0 0
      services/ess/struct_db_instance_ids.go
  71. 0 0
      services/ess/struct_dimension.go
  72. 0 0
      services/ess/struct_dimensions.go
  73. 0 0
      services/ess/struct_instance_types.go
  74. 0 0
      services/ess/struct_lifecycle_hook.go
  75. 0 0
      services/ess/struct_lifecycle_hooks.go
  76. 0 0
      services/ess/struct_load_balancer_ids.go
  77. 0 0
      services/ess/struct_notification_configuration_model.go
  78. 0 0
      services/ess/struct_notification_configuration_models.go
  79. 0 0
      services/ess/struct_notification_types_in_describe_notification_configurations.go
  80. 0 0
      services/ess/struct_notification_types_in_describe_notification_types.go
  81. 2 0
      services/ess/struct_region.go
  82. 0 0
      services/ess/struct_regions.go
  83. 0 0
      services/ess/struct_removal_policies.go
  84. 0 0
      services/ess/struct_scaling_activities.go
  85. 0 0
      services/ess/struct_scaling_activity.go
  86. 36 35
      services/ess/struct_scaling_configuration.go
  87. 0 0
      services/ess/struct_scaling_configurations.go
  88. 0 0
      services/ess/struct_scaling_group.go
  89. 0 0
      services/ess/struct_scaling_groups.go
  90. 0 0
      services/ess/struct_scaling_instance.go
  91. 0 0
      services/ess/struct_scaling_instances.go
  92. 22 17
      services/ess/struct_scaling_rule.go
  93. 0 0
      services/ess/struct_scaling_rules.go
  94. 2 0
      services/ess/struct_scheduled_task.go
  95. 0 0
      services/ess/struct_scheduled_tasks.go
  96. 21 0
      services/ess/struct_security_group_ids.go
  97. 0 0
      services/ess/struct_spot_price_limit.go
  98. 0 0
      services/ess/struct_spot_price_model.go
  99. 0 0
      services/ess/struct_step_adjustment.go
  100. 0 0
      services/ess/struct_step_adjustments.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-05-16 Version: 1.60.8
+1, Scaling configuration add security group ids 
+
 2019-05-15 Version: 1.60.7
 2019-05-15 Version: 1.60.7
 1, Add InstanceId parameter to api CreateDisk
 1, Add InstanceId parameter to api CreateDisk
 2, Add parameter Affinity and Tenancy in ECS instance DedicatedHost related apis.
 2, Add parameter Affinity and Tenancy in ECS instance DedicatedHost related apis.

+ 0 - 0
services/ess/attach_db_instances.go


+ 0 - 0
services/ess/attach_instances.go


+ 0 - 0
services/ess/attach_load_balancers.go


+ 0 - 0
services/ess/attach_v_server_groups.go


+ 28 - 5
services/ess/client.go

@@ -18,6 +18,7 @@ package ess
 import (
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
 )
 )
 
 
 // Client is the sdk client struct, each func corresponds to an OpenAPI
 // Client is the sdk client struct, each func corresponds to an OpenAPI
@@ -32,6 +33,20 @@ func NewClient() (client *Client, err error) {
 	return
 	return
 }
 }
 
 
+// NewClientWithProvider creates a sdk client with providers
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) {
+	client = &Client{}
+	var pc provider.Provider
+	if len(providers) == 0 {
+		pc = provider.DefaultChain
+	} else {
+		pc = provider.NewProviderChain(providers)
+	}
+	err = client.InitWithProviderChain(regionId, pc)
+	return
+}
+
 // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
 // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential
 // this is the common api to create a sdk client
 // this is the common api to create a sdk client
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
@@ -41,7 +56,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 }
 }
 
 
 // NewClientWithAccessKey is a shortcut to create sdk client with accesskey
 // NewClientWithAccessKey is a shortcut to create sdk client with accesskey
-// usage: https://help.aliyun.com/document_detail/66217.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
@@ -49,7 +64,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 }
 }
 
 
 // NewClientWithStsToken is a shortcut to create sdk client with sts token
 // NewClientWithStsToken is a shortcut to create sdk client with sts token
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
@@ -57,15 +72,23 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 }
 }
 
 
 // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
 // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn
-// usage: https://help.aliyun.com/document_detail/66222.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
 	return
 	return
 }
 }
 
 
+// NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
+func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
+	client = &Client{}
+	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	return
+}
+
 // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
 // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role
-// usage: https://help.aliyun.com/document_detail/66223.html
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
 	err = client.InitWithEcsRamRole(regionId, roleName)
@@ -73,7 +96,7 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 }
 }
 
 
 // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
 // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair
-// attention: rsa key pair auth is only Japan regions available
+// usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)

+ 0 - 0
services/ess/complete_lifecycle_action.go


+ 0 - 0
services/ess/create_alarm.go


+ 0 - 0
services/ess/create_lifecycle_hook.go


+ 0 - 0
services/ess/create_notification_configuration.go


+ 1 - 0
services/ess/create_scaling_configuration.go

@@ -101,6 +101,7 @@ type CreateScalingConfigurationRequest struct {
 	SystemDiskDiskName          string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	SystemDiskDiskName          string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName                 string                                      `position:"Query" name:"RamRoleName"`
 	RamRoleName                 string                                      `position:"Query" name:"RamRoleName"`
 	OwnerId                     requests.Integer                            `position:"Query" name:"OwnerId"`
 	OwnerId                     requests.Integer                            `position:"Query" name:"OwnerId"`
+	SecurityGroupIds            *[]string                                   `position:"Query" name:"SecurityGroupIds"  type:"Repeated"`
 	DataDisk                    *[]CreateScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
 	DataDisk                    *[]CreateScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
 	ScalingConfigurationName    string                                      `position:"Query" name:"ScalingConfigurationName"`
 	ScalingConfigurationName    string                                      `position:"Query" name:"ScalingConfigurationName"`
 	Tags                        string                                      `position:"Query" name:"Tags"`
 	Tags                        string                                      `position:"Query" name:"Tags"`

+ 0 - 0
services/ess/create_scaling_group.go


+ 20 - 15
services/ess/create_scaling_rule.go

@@ -76,21 +76,26 @@ func (client *Client) CreateScalingRuleWithCallback(request *CreateScalingRuleRe
 // CreateScalingRuleRequest is the request struct for api CreateScalingRule
 // CreateScalingRuleRequest is the request struct for api CreateScalingRule
 type CreateScalingRuleRequest struct {
 type CreateScalingRuleRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	ResourceOwnerAccount    string                             `position:"Query" name:"ResourceOwnerAccount"`
-	AdjustmentValue         requests.Integer                   `position:"Query" name:"AdjustmentValue"`
-	StepAdjustment          *[]CreateScalingRuleStepAdjustment `position:"Query" name:"StepAdjustment"  type:"Repeated"`
-	ScalingGroupId          string                             `position:"Query" name:"ScalingGroupId"`
-	EstimatedInstanceWarmup requests.Integer                   `position:"Query" name:"EstimatedInstanceWarmup"`
-	OwnerAccount            string                             `position:"Query" name:"OwnerAccount"`
-	AdjustmentType          string                             `position:"Query" name:"AdjustmentType"`
-	DisableScaleIn          requests.Boolean                   `position:"Query" name:"DisableScaleIn"`
-	OwnerId                 requests.Integer                   `position:"Query" name:"OwnerId"`
-	ScalingRuleName         string                             `position:"Query" name:"ScalingRuleName"`
-	Cooldown                requests.Integer                   `position:"Query" name:"Cooldown"`
-	MinAdjustmentMagnitude  requests.Integer                   `position:"Query" name:"MinAdjustmentMagnitude"`
-	TargetValue             requests.Float                     `position:"Query" name:"TargetValue"`
-	ScalingRuleType         string                             `position:"Query" name:"ScalingRuleType"`
-	MetricName              string                             `position:"Query" name:"MetricName"`
+	ResourceOwnerAccount     string                             `position:"Query" name:"ResourceOwnerAccount"`
+	AdjustmentValue          requests.Integer                   `position:"Query" name:"AdjustmentValue"`
+	StepAdjustment           *[]CreateScalingRuleStepAdjustment `position:"Query" name:"StepAdjustment"  type:"Repeated"`
+	ScalingGroupId           string                             `position:"Query" name:"ScalingGroupId"`
+	EstimatedInstanceWarmup  requests.Integer                   `position:"Query" name:"EstimatedInstanceWarmup"`
+	OwnerAccount             string                             `position:"Query" name:"OwnerAccount"`
+	PredictiveTaskBufferTime requests.Integer                   `position:"Query" name:"PredictiveTaskBufferTime"`
+	AdjustmentType           string                             `position:"Query" name:"AdjustmentType"`
+	DisableScaleIn           requests.Boolean                   `position:"Query" name:"DisableScaleIn"`
+	OwnerId                  requests.Integer                   `position:"Query" name:"OwnerId"`
+	InitialMaxSize           requests.Integer                   `position:"Query" name:"InitialMaxSize"`
+	PredictiveValueBuffer    requests.Integer                   `position:"Query" name:"PredictiveValueBuffer"`
+	ScalingRuleName          string                             `position:"Query" name:"ScalingRuleName"`
+	Cooldown                 requests.Integer                   `position:"Query" name:"Cooldown"`
+	MinAdjustmentMagnitude   requests.Integer                   `position:"Query" name:"MinAdjustmentMagnitude"`
+	PredictiveValueBehavior  string                             `position:"Query" name:"PredictiveValueBehavior"`
+	TargetValue              requests.Float                     `position:"Query" name:"TargetValue"`
+	ScalingRuleType          string                             `position:"Query" name:"ScalingRuleType"`
+	MetricName               string                             `position:"Query" name:"MetricName"`
+	PredictiveScalingMode    string                             `position:"Query" name:"PredictiveScalingMode"`
 }
 }
 
 
 // CreateScalingRuleStepAdjustment is a repeated param struct in CreateScalingRuleRequest
 // CreateScalingRuleStepAdjustment is a repeated param struct in CreateScalingRuleRequest

+ 0 - 0
services/ess/create_scheduled_task.go


+ 0 - 0
services/ess/deactivate_scaling_configuration.go


+ 0 - 0
services/ess/delete_alarm.go


+ 0 - 0
services/ess/delete_lifecycle_hook.go


+ 0 - 0
services/ess/delete_notification_configuration.go


+ 0 - 0
services/ess/delete_scaling_configuration.go


+ 0 - 0
services/ess/delete_scaling_group.go


+ 0 - 0
services/ess/delete_scaling_rule.go


+ 0 - 0
services/ess/delete_scheduled_task.go


+ 0 - 0
services/ess/describe_account_attributes.go


+ 0 - 0
services/ess/describe_alarms.go


+ 0 - 0
services/ess/describe_alert_config.go


+ 0 - 0
services/ess/describe_capacity_history.go


+ 0 - 0
services/ess/describe_lifecycle_hooks.go


+ 0 - 0
services/ess/describe_limitation.go


+ 0 - 0
services/ess/describe_notification_configurations.go


+ 0 - 0
services/ess/describe_notification_types.go


+ 3 - 1
services/ess/describe_regions.go

@@ -78,13 +78,15 @@ type DescribeRegionsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	AcceptLanguage       string           `position:"Query" name:"AcceptLanguage"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }
 }
 
 
 // DescribeRegionsResponse is the response struct for api DescribeRegions
 // DescribeRegionsResponse is the response struct for api DescribeRegions
 type DescribeRegionsResponse struct {
 type DescribeRegionsResponse struct {
 	*responses.BaseResponse
 	*responses.BaseResponse
-	Regions Regions `json:"Regions" xml:"Regions"`
+	RequestId string  `json:"RequestId" xml:"RequestId"`
+	Regions   Regions `json:"Regions" xml:"Regions"`
 }
 }
 
 
 // CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API
 // CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API

+ 0 - 0
services/ess/describe_scaling_activities.go


+ 0 - 0
services/ess/describe_scaling_activity_detail.go


+ 0 - 0
services/ess/describe_scaling_configurations.go


+ 0 - 0
services/ess/describe_scaling_groups.go


+ 0 - 0
services/ess/describe_scaling_instances.go


+ 0 - 0
services/ess/describe_scaling_rules.go


+ 0 - 0
services/ess/describe_scheduled_tasks.go


+ 0 - 0
services/ess/detach_db_instances.go


+ 0 - 0
services/ess/detach_instances.go


+ 0 - 0
services/ess/detach_load_balancers.go


+ 0 - 0
services/ess/detach_v_server_groups.go


+ 0 - 0
services/ess/disable_alarm.go


+ 0 - 0
services/ess/disable_scaling_group.go


+ 0 - 0
services/ess/enable_alarm.go


+ 0 - 0
services/ess/enable_scaling_group.go


+ 0 - 0
services/ess/enter_standby.go


+ 0 - 0
services/ess/execute_scaling_rule.go


+ 0 - 0
services/ess/exit_standby.go


+ 0 - 0
services/ess/modify_alarm.go


+ 0 - 0
services/ess/modify_alert_config.go


+ 0 - 0
services/ess/modify_lifecycle_hook.go


+ 0 - 0
services/ess/modify_notification_configuration.go


+ 1 - 0
services/ess/modify_scaling_configuration.go

@@ -98,6 +98,7 @@ type ModifyScalingConfigurationRequest struct {
 	SystemDiskDiskName       string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	SystemDiskDiskName       string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName              string                                      `position:"Query" name:"RamRoleName"`
 	RamRoleName              string                                      `position:"Query" name:"RamRoleName"`
 	OwnerId                  requests.Integer                            `position:"Query" name:"OwnerId"`
 	OwnerId                  requests.Integer                            `position:"Query" name:"OwnerId"`
+	SecurityGroupIds         *[]string                                   `position:"Query" name:"SecurityGroupIds"  type:"Repeated"`
 	DataDisk                 *[]ModifyScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
 	DataDisk                 *[]ModifyScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
 	ScalingConfigurationName string                                      `position:"Query" name:"ScalingConfigurationName"`
 	ScalingConfigurationName string                                      `position:"Query" name:"ScalingConfigurationName"`
 	Tags                     string                                      `position:"Query" name:"Tags"`
 	Tags                     string                                      `position:"Query" name:"Tags"`

+ 0 - 0
services/ess/modify_scaling_group.go


+ 20 - 15
services/ess/modify_scaling_rule.go

@@ -76,21 +76,26 @@ func (client *Client) ModifyScalingRuleWithCallback(request *ModifyScalingRuleRe
 // ModifyScalingRuleRequest is the request struct for api ModifyScalingRule
 // ModifyScalingRuleRequest is the request struct for api ModifyScalingRule
 type ModifyScalingRuleRequest struct {
 type ModifyScalingRuleRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	ResourceOwnerId         requests.Integer                   `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount    string                             `position:"Query" name:"ResourceOwnerAccount"`
-	AdjustmentValue         requests.Integer                   `position:"Query" name:"AdjustmentValue"`
-	StepAdjustment          *[]ModifyScalingRuleStepAdjustment `position:"Query" name:"StepAdjustment"  type:"Repeated"`
-	EstimatedInstanceWarmup requests.Integer                   `position:"Query" name:"EstimatedInstanceWarmup"`
-	OwnerAccount            string                             `position:"Query" name:"OwnerAccount"`
-	AdjustmentType          string                             `position:"Query" name:"AdjustmentType"`
-	DisableScaleIn          requests.Boolean                   `position:"Query" name:"DisableScaleIn"`
-	OwnerId                 requests.Integer                   `position:"Query" name:"OwnerId"`
-	ScalingRuleId           string                             `position:"Query" name:"ScalingRuleId"`
-	ScalingRuleName         string                             `position:"Query" name:"ScalingRuleName"`
-	Cooldown                requests.Integer                   `position:"Query" name:"Cooldown"`
-	MinAdjustmentMagnitude  requests.Integer                   `position:"Query" name:"MinAdjustmentMagnitude"`
-	TargetValue             requests.Float                     `position:"Query" name:"TargetValue"`
-	MetricName              string                             `position:"Query" name:"MetricName"`
+	ResourceOwnerId          requests.Integer                   `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount     string                             `position:"Query" name:"ResourceOwnerAccount"`
+	AdjustmentValue          requests.Integer                   `position:"Query" name:"AdjustmentValue"`
+	StepAdjustment           *[]ModifyScalingRuleStepAdjustment `position:"Query" name:"StepAdjustment"  type:"Repeated"`
+	EstimatedInstanceWarmup  requests.Integer                   `position:"Query" name:"EstimatedInstanceWarmup"`
+	OwnerAccount             string                             `position:"Query" name:"OwnerAccount"`
+	PredictiveTaskBufferTime requests.Integer                   `position:"Query" name:"PredictiveTaskBufferTime"`
+	AdjustmentType           string                             `position:"Query" name:"AdjustmentType"`
+	DisableScaleIn           requests.Boolean                   `position:"Query" name:"DisableScaleIn"`
+	OwnerId                  requests.Integer                   `position:"Query" name:"OwnerId"`
+	ScalingRuleId            string                             `position:"Query" name:"ScalingRuleId"`
+	InitialMaxSize           requests.Integer                   `position:"Query" name:"InitialMaxSize"`
+	PredictiveValueBuffer    requests.Integer                   `position:"Query" name:"PredictiveValueBuffer"`
+	ScalingRuleName          string                             `position:"Query" name:"ScalingRuleName"`
+	Cooldown                 requests.Integer                   `position:"Query" name:"Cooldown"`
+	MinAdjustmentMagnitude   requests.Integer                   `position:"Query" name:"MinAdjustmentMagnitude"`
+	PredictiveValueBehavior  string                             `position:"Query" name:"PredictiveValueBehavior"`
+	TargetValue              requests.Float                     `position:"Query" name:"TargetValue"`
+	MetricName               string                             `position:"Query" name:"MetricName"`
+	PredictiveScalingMode    string                             `position:"Query" name:"PredictiveScalingMode"`
 }
 }
 
 
 // ModifyScalingRuleStepAdjustment is a repeated param struct in ModifyScalingRuleRequest
 // ModifyScalingRuleStepAdjustment is a repeated param struct in ModifyScalingRuleRequest

+ 2 - 0
services/ess/modify_scheduled_task.go

@@ -79,6 +79,7 @@ type ModifyScheduledTaskRequest struct {
 	LaunchTime           string           `position:"Query" name:"LaunchTime"`
 	LaunchTime           string           `position:"Query" name:"LaunchTime"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ScheduledAction      string           `position:"Query" name:"ScheduledAction"`
 	ScheduledAction      string           `position:"Query" name:"ScheduledAction"`
+	MaxValue             requests.Integer `position:"Query" name:"MaxValue"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	Description          string           `position:"Query" name:"Description"`
 	Description          string           `position:"Query" name:"Description"`
@@ -86,6 +87,7 @@ type ModifyScheduledTaskRequest struct {
 	RecurrenceValue      string           `position:"Query" name:"RecurrenceValue"`
 	RecurrenceValue      string           `position:"Query" name:"RecurrenceValue"`
 	LaunchExpirationTime requests.Integer `position:"Query" name:"LaunchExpirationTime"`
 	LaunchExpirationTime requests.Integer `position:"Query" name:"LaunchExpirationTime"`
 	RecurrenceEndTime    string           `position:"Query" name:"RecurrenceEndTime"`
 	RecurrenceEndTime    string           `position:"Query" name:"RecurrenceEndTime"`
+	MinValue             requests.Integer `position:"Query" name:"MinValue"`
 	ScheduledTaskName    string           `position:"Query" name:"ScheduledTaskName"`
 	ScheduledTaskName    string           `position:"Query" name:"ScheduledTaskName"`
 	TaskEnabled          requests.Boolean `position:"Query" name:"TaskEnabled"`
 	TaskEnabled          requests.Boolean `position:"Query" name:"TaskEnabled"`
 	ScheduledTaskId      string           `position:"Query" name:"ScheduledTaskId"`
 	ScheduledTaskId      string           `position:"Query" name:"ScheduledTaskId"`

+ 0 - 0
services/ess/rebalance_instances.go


+ 0 - 0
services/ess/record_lifecycle_action_heartbeat.go


+ 0 - 0
services/ess/remove_instances.go


+ 0 - 0
services/ess/set_instances_protection.go


+ 0 - 0
services/ess/struct_alarm.go


+ 0 - 0
services/ess/struct_alarm_actions.go


+ 0 - 0
services/ess/struct_alarm_list.go


+ 0 - 0
services/ess/struct_alarms.go


+ 0 - 0
services/ess/struct_capacity_history_items.go


+ 0 - 0
services/ess/struct_capacity_history_model.go


+ 0 - 0
services/ess/struct_data_disk.go


+ 0 - 0
services/ess/struct_data_disks.go


+ 0 - 0
services/ess/struct_db_instance_ids.go


+ 0 - 0
services/ess/struct_dimension.go


+ 0 - 0
services/ess/struct_dimensions.go


+ 0 - 0
services/ess/struct_instance_types.go


+ 0 - 0
services/ess/struct_lifecycle_hook.go


+ 0 - 0
services/ess/struct_lifecycle_hooks.go


+ 0 - 0
services/ess/struct_load_balancer_ids.go


+ 0 - 0
services/ess/struct_notification_configuration_model.go


+ 0 - 0
services/ess/struct_notification_configuration_models.go


+ 0 - 0
services/ess/struct_notification_types_in_describe_notification_configurations.go


+ 0 - 0
services/ess/struct_notification_types_in_describe_notification_types.go


+ 2 - 0
services/ess/struct_region.go

@@ -20,4 +20,6 @@ type Region struct {
 	RegionId           string `json:"RegionId" xml:"RegionId"`
 	RegionId           string `json:"RegionId" xml:"RegionId"`
 	ClassicUnavailable bool   `json:"ClassicUnavailable" xml:"ClassicUnavailable"`
 	ClassicUnavailable bool   `json:"ClassicUnavailable" xml:"ClassicUnavailable"`
 	VpcUnavailable     bool   `json:"VpcUnavailable" xml:"VpcUnavailable"`
 	VpcUnavailable     bool   `json:"VpcUnavailable" xml:"VpcUnavailable"`
+	RegionEndpoint     string `json:"RegionEndpoint" xml:"RegionEndpoint"`
+	LocalName          string `json:"LocalName" xml:"LocalName"`
 }
 }

+ 0 - 0
services/ess/struct_regions.go


+ 0 - 0
services/ess/struct_removal_policies.go


+ 0 - 0
services/ess/struct_scaling_activities.go


+ 0 - 0
services/ess/struct_scaling_activity.go


+ 36 - 35
services/ess/struct_scaling_configuration.go

@@ -17,39 +17,40 @@ package ess
 
 
 // ScalingConfiguration is a nested struct in ess response
 // ScalingConfiguration is a nested struct in ess response
 type ScalingConfiguration struct {
 type ScalingConfiguration struct {
-	ScalingConfigurationId      string         `json:"ScalingConfigurationId" xml:"ScalingConfigurationId"`
-	ScalingConfigurationName    string         `json:"ScalingConfigurationName" xml:"ScalingConfigurationName"`
-	ScalingGroupId              string         `json:"ScalingGroupId" xml:"ScalingGroupId"`
-	InstanceName                string         `json:"InstanceName" xml:"InstanceName"`
-	ImageId                     string         `json:"ImageId" xml:"ImageId"`
-	ImageName                   string         `json:"ImageName" xml:"ImageName"`
-	HostName                    string         `json:"HostName" xml:"HostName"`
-	InstanceType                string         `json:"InstanceType" xml:"InstanceType"`
-	Cpu                         int            `json:"Cpu" xml:"Cpu"`
-	Memory                      int            `json:"Memory" xml:"Memory"`
-	InstanceGeneration          string         `json:"InstanceGeneration" xml:"InstanceGeneration"`
-	SecurityGroupId             string         `json:"SecurityGroupId" xml:"SecurityGroupId"`
-	IoOptimized                 string         `json:"IoOptimized" xml:"IoOptimized"`
-	InternetChargeType          string         `json:"InternetChargeType" xml:"InternetChargeType"`
-	InternetMaxBandwidthIn      int            `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"`
-	InternetMaxBandwidthOut     int            `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"`
-	SystemDiskCategory          string         `json:"SystemDiskCategory" xml:"SystemDiskCategory"`
-	SystemDiskSize              int            `json:"SystemDiskSize" xml:"SystemDiskSize"`
-	SystemDiskName              string         `json:"SystemDiskName" xml:"SystemDiskName"`
-	SystemDiskDescription       string         `json:"SystemDiskDescription" xml:"SystemDiskDescription"`
-	LifecycleState              string         `json:"LifecycleState" xml:"LifecycleState"`
-	CreationTime                string         `json:"CreationTime" xml:"CreationTime"`
-	LoadBalancerWeight          int            `json:"LoadBalancerWeight" xml:"LoadBalancerWeight"`
-	UserData                    string         `json:"UserData" xml:"UserData"`
-	KeyPairName                 string         `json:"KeyPairName" xml:"KeyPairName"`
-	RamRoleName                 string         `json:"RamRoleName" xml:"RamRoleName"`
-	DeploymentSetId             string         `json:"DeploymentSetId" xml:"DeploymentSetId"`
-	SecurityEnhancementStrategy string         `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"`
-	SpotStrategy                string         `json:"SpotStrategy" xml:"SpotStrategy"`
-	PasswordInherit             bool           `json:"PasswordInherit" xml:"PasswordInherit"`
-	ResourceGroupId             string         `json:"ResourceGroupId" xml:"ResourceGroupId"`
-	InstanceTypes               InstanceTypes  `json:"InstanceTypes" xml:"InstanceTypes"`
-	DataDisks                   DataDisks      `json:"DataDisks" xml:"DataDisks"`
-	Tags                        Tags           `json:"Tags" xml:"Tags"`
-	SpotPriceLimit              SpotPriceLimit `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
+	ScalingConfigurationId      string           `json:"ScalingConfigurationId" xml:"ScalingConfigurationId"`
+	ScalingConfigurationName    string           `json:"ScalingConfigurationName" xml:"ScalingConfigurationName"`
+	ScalingGroupId              string           `json:"ScalingGroupId" xml:"ScalingGroupId"`
+	InstanceName                string           `json:"InstanceName" xml:"InstanceName"`
+	ImageId                     string           `json:"ImageId" xml:"ImageId"`
+	ImageName                   string           `json:"ImageName" xml:"ImageName"`
+	HostName                    string           `json:"HostName" xml:"HostName"`
+	InstanceType                string           `json:"InstanceType" xml:"InstanceType"`
+	Cpu                         int              `json:"Cpu" xml:"Cpu"`
+	Memory                      int              `json:"Memory" xml:"Memory"`
+	InstanceGeneration          string           `json:"InstanceGeneration" xml:"InstanceGeneration"`
+	SecurityGroupId             string           `json:"SecurityGroupId" xml:"SecurityGroupId"`
+	IoOptimized                 string           `json:"IoOptimized" xml:"IoOptimized"`
+	InternetChargeType          string           `json:"InternetChargeType" xml:"InternetChargeType"`
+	InternetMaxBandwidthIn      int              `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"`
+	InternetMaxBandwidthOut     int              `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"`
+	SystemDiskCategory          string           `json:"SystemDiskCategory" xml:"SystemDiskCategory"`
+	SystemDiskSize              int              `json:"SystemDiskSize" xml:"SystemDiskSize"`
+	SystemDiskName              string           `json:"SystemDiskName" xml:"SystemDiskName"`
+	SystemDiskDescription       string           `json:"SystemDiskDescription" xml:"SystemDiskDescription"`
+	LifecycleState              string           `json:"LifecycleState" xml:"LifecycleState"`
+	CreationTime                string           `json:"CreationTime" xml:"CreationTime"`
+	LoadBalancerWeight          int              `json:"LoadBalancerWeight" xml:"LoadBalancerWeight"`
+	UserData                    string           `json:"UserData" xml:"UserData"`
+	KeyPairName                 string           `json:"KeyPairName" xml:"KeyPairName"`
+	RamRoleName                 string           `json:"RamRoleName" xml:"RamRoleName"`
+	DeploymentSetId             string           `json:"DeploymentSetId" xml:"DeploymentSetId"`
+	SecurityEnhancementStrategy string           `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"`
+	SpotStrategy                string           `json:"SpotStrategy" xml:"SpotStrategy"`
+	PasswordInherit             bool             `json:"PasswordInherit" xml:"PasswordInherit"`
+	ResourceGroupId             string           `json:"ResourceGroupId" xml:"ResourceGroupId"`
+	InstanceTypes               InstanceTypes    `json:"InstanceTypes" xml:"InstanceTypes"`
+	SecurityGroupIds            SecurityGroupIds `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
+	DataDisks                   DataDisks        `json:"DataDisks" xml:"DataDisks"`
+	Tags                        Tags             `json:"Tags" xml:"Tags"`
+	SpotPriceLimit              SpotPriceLimit   `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
 }
 }

+ 0 - 0
services/ess/struct_scaling_configurations.go


+ 0 - 0
services/ess/struct_scaling_group.go


+ 0 - 0
services/ess/struct_scaling_groups.go


+ 0 - 0
services/ess/struct_scaling_instance.go


+ 0 - 0
services/ess/struct_scaling_instances.go


+ 22 - 17
services/ess/struct_scaling_rule.go

@@ -17,21 +17,26 @@ package ess
 
 
 // ScalingRule is a nested struct in ess response
 // ScalingRule is a nested struct in ess response
 type ScalingRule struct {
 type ScalingRule struct {
-	ScalingRuleId           string          `json:"ScalingRuleId" xml:"ScalingRuleId"`
-	ScalingGroupId          string          `json:"ScalingGroupId" xml:"ScalingGroupId"`
-	ScalingRuleName         string          `json:"ScalingRuleName" xml:"ScalingRuleName"`
-	Cooldown                int             `json:"Cooldown" xml:"Cooldown"`
-	MinAdjustmentMagnitude  int             `json:"MinAdjustmentMagnitude" xml:"MinAdjustmentMagnitude"`
-	AdjustmentType          string          `json:"AdjustmentType" xml:"AdjustmentType"`
-	AdjustmentValue         int             `json:"AdjustmentValue" xml:"AdjustmentValue"`
-	MinSize                 int             `json:"MinSize" xml:"MinSize"`
-	MaxSize                 int             `json:"MaxSize" xml:"MaxSize"`
-	ScalingRuleAri          string          `json:"ScalingRuleAri" xml:"ScalingRuleAri"`
-	ScalingRuleType         string          `json:"ScalingRuleType" xml:"ScalingRuleType"`
-	EstimatedInstanceWarmup int             `json:"EstimatedInstanceWarmup" xml:"EstimatedInstanceWarmup"`
-	MetricName              string          `json:"MetricName" xml:"MetricName"`
-	TargetValue             float64         `json:"TargetValue" xml:"TargetValue"`
-	DisableScaleIn          bool            `json:"DisableScaleIn" xml:"DisableScaleIn"`
-	Alarms                  Alarms          `json:"Alarms" xml:"Alarms"`
-	StepAdjustments         StepAdjustments `json:"StepAdjustments" xml:"StepAdjustments"`
+	ScalingRuleId            string          `json:"ScalingRuleId" xml:"ScalingRuleId"`
+	ScalingGroupId           string          `json:"ScalingGroupId" xml:"ScalingGroupId"`
+	ScalingRuleName          string          `json:"ScalingRuleName" xml:"ScalingRuleName"`
+	Cooldown                 int             `json:"Cooldown" xml:"Cooldown"`
+	MinAdjustmentMagnitude   int             `json:"MinAdjustmentMagnitude" xml:"MinAdjustmentMagnitude"`
+	AdjustmentType           string          `json:"AdjustmentType" xml:"AdjustmentType"`
+	AdjustmentValue          int             `json:"AdjustmentValue" xml:"AdjustmentValue"`
+	MinSize                  int             `json:"MinSize" xml:"MinSize"`
+	MaxSize                  int             `json:"MaxSize" xml:"MaxSize"`
+	ScalingRuleAri           string          `json:"ScalingRuleAri" xml:"ScalingRuleAri"`
+	ScalingRuleType          string          `json:"ScalingRuleType" xml:"ScalingRuleType"`
+	EstimatedInstanceWarmup  int             `json:"EstimatedInstanceWarmup" xml:"EstimatedInstanceWarmup"`
+	MetricName               string          `json:"MetricName" xml:"MetricName"`
+	TargetValue              float64         `json:"TargetValue" xml:"TargetValue"`
+	DisableScaleIn           bool            `json:"DisableScaleIn" xml:"DisableScaleIn"`
+	PredictiveScalingMode    string          `json:"PredictiveScalingMode" xml:"PredictiveScalingMode"`
+	PredictiveValueBehavior  string          `json:"PredictiveValueBehavior" xml:"PredictiveValueBehavior"`
+	PredictiveValueBuffer    int             `json:"PredictiveValueBuffer" xml:"PredictiveValueBuffer"`
+	PredictiveTaskBufferTime int             `json:"PredictiveTaskBufferTime" xml:"PredictiveTaskBufferTime"`
+	InitialMaxSize           int             `json:"InitialMaxSize" xml:"InitialMaxSize"`
+	Alarms                   Alarms          `json:"Alarms" xml:"Alarms"`
+	StepAdjustments          StepAdjustments `json:"StepAdjustments" xml:"StepAdjustments"`
 }
 }

+ 0 - 0
services/ess/struct_scaling_rules.go


+ 2 - 0
services/ess/struct_scheduled_task.go

@@ -27,4 +27,6 @@ type ScheduledTask struct {
 	RecurrenceValue      string `json:"RecurrenceValue" xml:"RecurrenceValue"`
 	RecurrenceValue      string `json:"RecurrenceValue" xml:"RecurrenceValue"`
 	LaunchExpirationTime int    `json:"LaunchExpirationTime" xml:"LaunchExpirationTime"`
 	LaunchExpirationTime int    `json:"LaunchExpirationTime" xml:"LaunchExpirationTime"`
 	TaskEnabled          bool   `json:"TaskEnabled" xml:"TaskEnabled"`
 	TaskEnabled          bool   `json:"TaskEnabled" xml:"TaskEnabled"`
+	MaxValue             int    `json:"MaxValue" xml:"MaxValue"`
+	MinValue             int    `json:"MinValue" xml:"MinValue"`
 }
 }

+ 0 - 0
services/ess/struct_scheduled_tasks.go


+ 21 - 0
services/ess/struct_security_group_ids.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.
+
+// SecurityGroupIds is a nested struct in ess response
+type SecurityGroupIds struct {
+	SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"`
+}

+ 0 - 0
services/ess/struct_spot_price_limit.go


+ 0 - 0
services/ess/struct_spot_price_model.go


+ 0 - 0
services/ess/struct_step_adjustment.go


+ 0 - 0
services/ess/struct_step_adjustments.go


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است