From 8b475be51ec9401cfe395ca31953b270d4a29925 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 18 Dec 2024 09:35:50 +0000 Subject: [PATCH] Generated 2014-08-28 for Ess. --- ChangeLog.txt | 4 ++++ .../ess/create_eci_scaling_configuration.go | 1 + services/ess/create_scaling_group.go | 9 +++++++ .../ess/modify_eci_scaling_configuration.go | 1 + services/ess/modify_scaling_group.go | 9 +++++++ services/ess/struct_capacity_options.go | 24 +++++++++++++++++++ services/ess/struct_elastic_strength_model.go | 7 +++--- services/ess/struct_inventory_health.go | 24 +++++++++++++++++++ services/ess/struct_resource_pool.go | 14 ++++++----- services/ess/struct_scaling_configuration.go | 1 + services/ess/struct_scaling_group.go | 1 + 11 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 services/ess/struct_capacity_options.go create mode 100644 services/ess/struct_inventory_health.go diff --git a/ChangeLog.txt b/ChangeLog.txt index d9d3a2c6ca..349facd7ee 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-12-18 Version: v1.63.71 +- Generated 2014-08-28 for `Ess`. +- InstanceRefresh support SkipMatching. + 2024-12-18 Version: v1.63.70 - Generated 2023-06-21 for `PaiFeatureStore`. - Add Support Real time mock table. diff --git a/services/ess/create_eci_scaling_configuration.go b/services/ess/create_eci_scaling_configuration.go index bcd30c2e48..4a0c89c1ba 100644 --- a/services/ess/create_eci_scaling_configuration.go +++ b/services/ess/create_eci_scaling_configuration.go @@ -96,6 +96,7 @@ type CreateEciScalingConfigurationRequest struct { EphemeralStorage requests.Integer `position:"Query" name:"EphemeralStorage"` DataCacheProvisionedIops requests.Integer `position:"Query" name:"DataCacheProvisionedIops"` EipBandwidth requests.Integer `position:"Query" name:"EipBandwidth"` + GpuDriverVersion string `position:"Query" name:"GpuDriverVersion"` CostOptimization requests.Boolean `position:"Query" name:"CostOptimization"` DataCacheBurstingEnabled requests.Boolean `position:"Query" name:"DataCacheBurstingEnabled"` Memory requests.Float `position:"Query" name:"Memory"` diff --git a/services/ess/create_scaling_group.go b/services/ess/create_scaling_group.go index 4d2c937c7e..d97fbb8f4c 100644 --- a/services/ess/create_scaling_group.go +++ b/services/ess/create_scaling_group.go @@ -92,6 +92,7 @@ type CreateScalingGroupRequest struct { ServerGroup *[]CreateScalingGroupServerGroup `position:"Query" name:"ServerGroup" type:"Repeated"` LaunchTemplateOverride *[]CreateScalingGroupLaunchTemplateOverride `position:"Query" name:"LaunchTemplateOverride" type:"Repeated"` CompensateWithOnDemand requests.Boolean `position:"Query" name:"CompensateWithOnDemand"` + CapacityOptions CreateScalingGroupCapacityOptions `position:"Query" name:"CapacityOptions" type:"Struct"` MinSize requests.Integer `position:"Query" name:"MinSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` AlbServerGroup *[]CreateScalingGroupAlbServerGroup `position:"Query" name:"AlbServerGroup" type:"Repeated"` @@ -144,6 +145,14 @@ type CreateScalingGroupLaunchTemplateOverride struct { SpotPriceLimit string `name:"SpotPriceLimit"` } +// CreateScalingGroupCapacityOptions is a repeated param struct in CreateScalingGroupRequest +type CreateScalingGroupCapacityOptions struct { + CompensateWithOnDemand string `name:"CompensateWithOnDemand"` + OnDemandBaseCapacity string `name:"OnDemandBaseCapacity"` + SpotAutoReplaceOnDemand string `name:"SpotAutoReplaceOnDemand"` + OnDemandPercentageAboveBaseCapacity string `name:"OnDemandPercentageAboveBaseCapacity"` +} + // CreateScalingGroupAlbServerGroup is a repeated param struct in CreateScalingGroupRequest type CreateScalingGroupAlbServerGroup struct { AlbServerGroupId string `name:"AlbServerGroupId"` diff --git a/services/ess/modify_eci_scaling_configuration.go b/services/ess/modify_eci_scaling_configuration.go index 41cdaa52ae..d69658fa91 100644 --- a/services/ess/modify_eci_scaling_configuration.go +++ b/services/ess/modify_eci_scaling_configuration.go @@ -98,6 +98,7 @@ type ModifyEciScalingConfigurationRequest struct { EphemeralStorage requests.Integer `position:"Query" name:"EphemeralStorage"` DataCacheProvisionedIops requests.Integer `position:"Query" name:"DataCacheProvisionedIops"` EipBandwidth requests.Integer `position:"Query" name:"EipBandwidth"` + GpuDriverVersion string `position:"Query" name:"GpuDriverVersion"` CostOptimization requests.Boolean `position:"Query" name:"CostOptimization"` DataCacheBurstingEnabled requests.Boolean `position:"Query" name:"DataCacheBurstingEnabled"` Memory requests.Float `position:"Query" name:"Memory"` diff --git a/services/ess/modify_scaling_group.go b/services/ess/modify_scaling_group.go index f5d87a7b44..912b86edea 100644 --- a/services/ess/modify_scaling_group.go +++ b/services/ess/modify_scaling_group.go @@ -87,6 +87,7 @@ type ModifyScalingGroupRequest struct { DesiredCapacity requests.Integer `position:"Query" name:"DesiredCapacity"` LaunchTemplateOverride *[]ModifyScalingGroupLaunchTemplateOverride `position:"Query" name:"LaunchTemplateOverride" type:"Repeated"` CompensateWithOnDemand requests.Boolean `position:"Query" name:"CompensateWithOnDemand"` + CapacityOptions ModifyScalingGroupCapacityOptions `position:"Query" name:"CapacityOptions" type:"Struct"` MinSize requests.Integer `position:"Query" name:"MinSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` MaxSize requests.Integer `position:"Query" name:"MaxSize"` @@ -116,6 +117,14 @@ type ModifyScalingGroupLaunchTemplateOverride struct { SpotPriceLimit string `name:"SpotPriceLimit"` } +// ModifyScalingGroupCapacityOptions is a repeated param struct in ModifyScalingGroupRequest +type ModifyScalingGroupCapacityOptions struct { + CompensateWithOnDemand string `name:"CompensateWithOnDemand"` + OnDemandBaseCapacity string `name:"OnDemandBaseCapacity"` + SpotAutoReplaceOnDemand string `name:"SpotAutoReplaceOnDemand"` + OnDemandPercentageAboveBaseCapacity string `name:"OnDemandPercentageAboveBaseCapacity"` +} + // ModifyScalingGroupResponse is the response struct for api ModifyScalingGroup type ModifyScalingGroupResponse struct { *responses.BaseResponse diff --git a/services/ess/struct_capacity_options.go b/services/ess/struct_capacity_options.go new file mode 100644 index 0000000000..577ad767c0 --- /dev/null +++ b/services/ess/struct_capacity_options.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. + +// CapacityOptions is a nested struct in ess response +type CapacityOptions struct { + OnDemandBaseCapacity int `json:"OnDemandBaseCapacity" xml:"OnDemandBaseCapacity"` + OnDemandPercentageAboveBaseCapacity int `json:"OnDemandPercentageAboveBaseCapacity" xml:"OnDemandPercentageAboveBaseCapacity"` + CompensateWithOnDemand bool `json:"CompensateWithOnDemand" xml:"CompensateWithOnDemand"` + SpotAutoReplaceOnDemand bool `json:"SpotAutoReplaceOnDemand" xml:"SpotAutoReplaceOnDemand"` +} diff --git a/services/ess/struct_elastic_strength_model.go b/services/ess/struct_elastic_strength_model.go index 351f11c7c0..23a4f3d85e 100644 --- a/services/ess/struct_elastic_strength_model.go +++ b/services/ess/struct_elastic_strength_model.go @@ -17,7 +17,8 @@ package ess // ElasticStrengthModel is a nested struct in ess response type ElasticStrengthModel struct { - ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` - TotalStrength string `json:"TotalStrength" xml:"TotalStrength"` - ResourcePools []ResourcePool `json:"ResourcePools" xml:"ResourcePools"` + ScalingGroupId string `json:"ScalingGroupId" xml:"ScalingGroupId"` + ElasticStrength string `json:"ElasticStrength" xml:"ElasticStrength"` + TotalStrength string `json:"TotalStrength" xml:"TotalStrength"` + ResourcePools []ResourcePool `json:"ResourcePools" xml:"ResourcePools"` } diff --git a/services/ess/struct_inventory_health.go b/services/ess/struct_inventory_health.go new file mode 100644 index 0000000000..0b5b42b738 --- /dev/null +++ b/services/ess/struct_inventory_health.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. + +// InventoryHealth is a nested struct in ess response +type InventoryHealth struct { + HealthScore int `json:"HealthScore" xml:"HealthScore"` + AdequacyScore int `json:"AdequacyScore" xml:"AdequacyScore"` + SupplyScore int `json:"SupplyScore" xml:"SupplyScore"` + HotScore int `json:"HotScore" xml:"HotScore"` +} diff --git a/services/ess/struct_resource_pool.go b/services/ess/struct_resource_pool.go index 712a5234b8..c7a567581c 100644 --- a/services/ess/struct_resource_pool.go +++ b/services/ess/struct_resource_pool.go @@ -17,10 +17,12 @@ package ess // ResourcePool is a nested struct in ess response type ResourcePool struct { - ZoneId string `json:"ZoneId" xml:"ZoneId"` - Code string `json:"Code" xml:"Code"` - Msg string `json:"Msg" xml:"Msg"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - Strength string `json:"Strength" xml:"Strength"` - VSwitchIds []string `json:"VSwitchIds" xml:"VSwitchIds"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Code string `json:"Code" xml:"Code"` + Msg string `json:"Msg" xml:"Msg"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Status string `json:"Status" xml:"Status"` + Strength string `json:"Strength" xml:"Strength"` + VSwitchIds []string `json:"VSwitchIds" xml:"VSwitchIds"` + InventoryHealth InventoryHealth `json:"InventoryHealth" xml:"InventoryHealth"` } diff --git a/services/ess/struct_scaling_configuration.go b/services/ess/struct_scaling_configuration.go index c3d6605a7a..555941907e 100644 --- a/services/ess/struct_scaling_configuration.go +++ b/services/ess/struct_scaling_configuration.go @@ -54,6 +54,7 @@ type ScalingConfiguration struct { IngressBandwidth int64 `json:"IngressBandwidth" xml:"IngressBandwidth"` SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` Cpu float64 `json:"Cpu" xml:"Cpu"` + GpuDriverVersion string `json:"GpuDriverVersion" xml:"GpuDriverVersion"` ImageSnapshotId string `json:"ImageSnapshotId" xml:"ImageSnapshotId"` DnsConfigNameServers []string `json:"DnsConfigNameServers" xml:"DnsConfigNameServers"` InstanceTypes []string `json:"InstanceTypes" xml:"InstanceTypes"` diff --git a/services/ess/struct_scaling_group.go b/services/ess/struct_scaling_group.go index b6e745f77f..d5e140d804 100644 --- a/services/ess/struct_scaling_group.go +++ b/services/ess/struct_scaling_group.go @@ -74,6 +74,7 @@ type ScalingGroup struct { VSwitchIds VSwitchIdsInDescribeScalingGroups `json:"VSwitchIds" xml:"VSwitchIds"` SuspendedProcesses SuspendedProcesses `json:"SuspendedProcesses" xml:"SuspendedProcesses"` HealthCheckTypes HealthCheckTypes `json:"HealthCheckTypes" xml:"HealthCheckTypes"` + CapacityOptions CapacityOptions `json:"CapacityOptions" xml:"CapacityOptions"` VServerGroups VServerGroups `json:"VServerGroups" xml:"VServerGroups"` LaunchTemplateOverrides LaunchTemplateOverrides `json:"LaunchTemplateOverrides" xml:"LaunchTemplateOverrides"` AlbServerGroups AlbServerGroups `json:"AlbServerGroups" xml:"AlbServerGroups"`