Bläddra i källkod

ESS SDK Auto Released By wujin.lhr,Version:1.53.88

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 år sedan
förälder
incheckning
fa20eadc76
100 ändrade filer med 127 tillägg och 44 borttagningar
  1. 4 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. 0 0
      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. 6 0
      services/ess/create_scaling_configuration.go
  12. 0 0
      services/ess/create_scaling_group.go
  13. 22 14
      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. 0 0
      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. 6 0
      services/ess/modify_scaling_configuration.go
  55. 0 0
      services/ess/modify_scaling_group.go
  56. 22 14
      services/ess/modify_scaling_rule.go
  57. 0 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. 4 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. 0 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. 2 0
      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. 17 16
      services/ess/struct_scaling_rule.go
  93. 0 0
      services/ess/struct_scaling_rules.go
  94. 0 0
      services/ess/struct_scheduled_task.go
  95. 0 0
      services/ess/struct_scheduled_tasks.go
  96. 0 0
      services/ess/struct_spot_price_limit.go
  97. 0 0
      services/ess/struct_spot_price_model.go
  98. 23 0
      services/ess/struct_step_adjustment.go
  99. 21 0
      services/ess/struct_step_adjustments.go
  100. 0 0
      services/ess/struct_tag.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2019-04-04 Version: 1.53.88
+1, ScalingConf systemDisk add DiskName and Description  parameters.
+2, ScalingConf dataDisk add DiskName & Description & Encrypted & KMSKeyId  parameters.
+
 2019-04-03 Version: 1.53.87
 1, Support DNAT/ENI/Online user count features.
 

+ 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


+ 0 - 0
services/ess/client.go


+ 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


+ 6 - 0
services/ess/create_scaling_configuration.go

@@ -98,6 +98,7 @@ type CreateScalingConfigurationRequest struct {
 	ResourceOwnerAccount        string                                      `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount                string                                      `position:"Query" name:"OwnerAccount"`
 	Cpu                         requests.Integer                            `position:"Query" name:"Cpu"`
+	SystemDiskDiskName          string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName                 string                                      `position:"Query" name:"RamRoleName"`
 	OwnerId                     requests.Integer                            `position:"Query" name:"OwnerId"`
 	DataDisk                    *[]CreateScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
@@ -109,6 +110,7 @@ type CreateScalingConfigurationRequest struct {
 	SystemDiskSize              requests.Integer                            `position:"Query" name:"SystemDisk.Size"`
 	InternetChargeType          string                                      `position:"Query" name:"InternetChargeType"`
 	InternetMaxBandwidthIn      requests.Integer                            `position:"Query" name:"InternetMaxBandwidthIn"`
+	SystemDiskDescription       string                                      `position:"Query" name:"SystemDisk.Description"`
 }
 
 // CreateScalingConfigurationSpotPriceLimit is a repeated param struct in CreateScalingConfigurationRequest
@@ -119,9 +121,13 @@ type CreateScalingConfigurationSpotPriceLimit struct {
 
 // CreateScalingConfigurationDataDisk is a repeated param struct in CreateScalingConfigurationRequest
 type CreateScalingConfigurationDataDisk struct {
+	DiskName           string `name:"DiskName"`
 	SnapshotId         string `name:"SnapshotId"`
 	Size               string `name:"Size"`
+	Encrypted          string `name:"Encrypted"`
+	Description        string `name:"Description"`
 	Category           string `name:"Category"`
+	KMSKeyId           string `name:"KMSKeyId"`
 	Device             string `name:"Device"`
 	DeleteWithInstance string `name:"DeleteWithInstance"`
 }

+ 0 - 0
services/ess/create_scaling_group.go


+ 22 - 14
services/ess/create_scaling_rule.go

@@ -76,20 +76,28 @@ func (client *Client) CreateScalingRuleWithCallback(request *CreateScalingRuleRe
 // CreateScalingRuleRequest is the request struct for api CreateScalingRule
 type CreateScalingRuleRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerAccount    string           `position:"Query" name:"ResourceOwnerAccount"`
-	AdjustmentValue         requests.Integer `position:"Query" name:"AdjustmentValue"`
-	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"`
+	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"`
+}
+
+// CreateScalingRuleStepAdjustment is a repeated param struct in CreateScalingRuleRequest
+type CreateScalingRuleStepAdjustment struct {
+	MetricIntervalLowerBound string `name:"MetricIntervalLowerBound"`
+	MetricIntervalUpperBound string `name:"MetricIntervalUpperBound"`
+	ScalingAdjustment        string `name:"ScalingAdjustment"`
 }
 
 // CreateScalingRuleResponse is the response struct for api CreateScalingRule

+ 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


+ 0 - 0
services/ess/describe_regions.go


+ 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


+ 6 - 0
services/ess/modify_scaling_configuration.go

@@ -95,6 +95,7 @@ type ModifyScalingConfigurationRequest struct {
 	ResourceOwnerAccount     string                                      `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount             string                                      `position:"Query" name:"OwnerAccount"`
 	Cpu                      requests.Integer                            `position:"Query" name:"Cpu"`
+	SystemDiskDiskName       string                                      `position:"Query" name:"SystemDisk.DiskName"`
 	RamRoleName              string                                      `position:"Query" name:"RamRoleName"`
 	OwnerId                  requests.Integer                            `position:"Query" name:"OwnerId"`
 	DataDisk                 *[]ModifyScalingConfigurationDataDisk       `position:"Query" name:"DataDisk"  type:"Repeated"`
@@ -106,6 +107,7 @@ type ModifyScalingConfigurationRequest struct {
 	LoadBalancerWeight       requests.Integer                            `position:"Query" name:"LoadBalancerWeight"`
 	SystemDiskSize           requests.Integer                            `position:"Query" name:"SystemDisk.Size"`
 	InternetChargeType       string                                      `position:"Query" name:"InternetChargeType"`
+	SystemDiskDescription    string                                      `position:"Query" name:"SystemDisk.Description"`
 }
 
 // ModifyScalingConfigurationSpotPriceLimit is a repeated param struct in ModifyScalingConfigurationRequest
@@ -116,9 +118,13 @@ type ModifyScalingConfigurationSpotPriceLimit struct {
 
 // ModifyScalingConfigurationDataDisk is a repeated param struct in ModifyScalingConfigurationRequest
 type ModifyScalingConfigurationDataDisk struct {
+	DiskName           string `name:"DiskName"`
 	SnapshotId         string `name:"SnapshotId"`
 	Size               string `name:"Size"`
+	Encrypted          string `name:"Encrypted"`
+	Description        string `name:"Description"`
 	Category           string `name:"Category"`
+	KMSKeyId           string `name:"KMSKeyId"`
 	Device             string `name:"Device"`
 	DeleteWithInstance string `name:"DeleteWithInstance"`
 }

+ 0 - 0
services/ess/modify_scaling_group.go


+ 22 - 14
services/ess/modify_scaling_rule.go

@@ -76,20 +76,28 @@ func (client *Client) ModifyScalingRuleWithCallback(request *ModifyScalingRuleRe
 // ModifyScalingRuleRequest is the request struct for api ModifyScalingRule
 type ModifyScalingRuleRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId         requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount    string           `position:"Query" name:"ResourceOwnerAccount"`
-	AdjustmentValue         requests.Integer `position:"Query" name:"AdjustmentValue"`
-	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"`
+	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"`
+}
+
+// ModifyScalingRuleStepAdjustment is a repeated param struct in ModifyScalingRuleRequest
+type ModifyScalingRuleStepAdjustment struct {
+	MetricIntervalLowerBound string `name:"MetricIntervalLowerBound"`
+	MetricIntervalUpperBound string `name:"MetricIntervalUpperBound"`
+	ScalingAdjustment        string `name:"ScalingAdjustment"`
 }
 
 // ModifyScalingRuleResponse is the response struct for api ModifyScalingRule

+ 0 - 0
services/ess/modify_scheduled_task.go


+ 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


+ 4 - 0
services/ess/struct_data_disk.go

@@ -22,4 +22,8 @@ type DataDisk struct {
 	SnapshotId         string `json:"SnapshotId" xml:"SnapshotId"`
 	Device             string `json:"Device" xml:"Device"`
 	DeleteWithInstance bool   `json:"DeleteWithInstance" xml:"DeleteWithInstance"`
+	Encrypted          string `json:"Encrypted" xml:"Encrypted"`
+	KMSKeyId           string `json:"KMSKeyId" xml:"KMSKeyId"`
+	DiskName           string `json:"DiskName" xml:"DiskName"`
+	Description        string `json:"Description" xml:"Description"`
 }

+ 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


+ 0 - 0
services/ess/struct_region.go


+ 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


+ 2 - 0
services/ess/struct_scaling_configuration.go

@@ -35,6 +35,8 @@ type ScalingConfiguration struct {
 	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"`

+ 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


+ 17 - 16
services/ess/struct_scaling_rule.go

@@ -17,20 +17,21 @@ package ess
 
 // ScalingRule is a nested struct in ess response
 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"`
+	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"`
 }

+ 0 - 0
services/ess/struct_scaling_rules.go


+ 0 - 0
services/ess/struct_scheduled_task.go


+ 0 - 0
services/ess/struct_scheduled_tasks.go


+ 0 - 0
services/ess/struct_spot_price_limit.go


+ 0 - 0
services/ess/struct_spot_price_model.go


+ 23 - 0
services/ess/struct_step_adjustment.go

@@ -0,0 +1,23 @@
+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.
+
+// StepAdjustment is a nested struct in ess response
+type StepAdjustment struct {
+	MetricIntervalLowerBound float64 `json:"MetricIntervalLowerBound" xml:"MetricIntervalLowerBound"`
+	MetricIntervalUpperBound float64 `json:"MetricIntervalUpperBound" xml:"MetricIntervalUpperBound"`
+	ScalingAdjustment        int     `json:"ScalingAdjustment" xml:"ScalingAdjustment"`
+}

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

+ 0 - 0
services/ess/struct_tag.go


Vissa filer visades inte eftersom för många filer har ändrats