From 8d4d28dcb0bb5c5d25cdb924359ff15ced4a6318 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 30 Oct 2024 02:28:13 +0000 Subject: [PATCH] Generated 2014-05-26 for Ecs. --- ChangeLog.txt | 4 ++++ services/ecs/create_command.go | 1 + services/ecs/modify_command.go | 1 + services/ecs/modify_instance_attribute.go | 6 +++++ services/ecs/struct_allocated_resource.go | 1 + services/ecs/struct_command.go | 1 + .../ecs/struct_elasticity_assurance_item.go | 1 + .../ecs/struct_elasticity_assurance_usage.go | 23 +++++++++++++++++++ .../ecs/struct_elasticity_assurance_usages.go | 21 +++++++++++++++++ services/ecs/struct_image_options.go | 3 ++- services/ecs/struct_instance.go | 2 +- 11 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 services/ecs/struct_elasticity_assurance_usage.go create mode 100644 services/ecs/struct_elasticity_assurance_usages.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 86ca29e009..191139aaa0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-10-30 Version: v1.63.41 +- Generated 2014-05-26 for `Ecs`. +- Support describe and modify NVMe on instance. + 2024-10-28 Version: v1.63.40 - Generated 2019-05-31 for `mse`. - Support config content from data. diff --git a/services/ecs/create_command.go b/services/ecs/create_command.go index f20bb6e9cb..4dc2259b8f 100644 --- a/services/ecs/create_command.go +++ b/services/ecs/create_command.go @@ -86,6 +86,7 @@ type CreateCommandRequest struct { OwnerId requests.Integer `position:"Query" name:"OwnerId"` Name string `position:"Query" name:"Name"` EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` + Launcher string `position:"Query" name:"Launcher"` } // CreateCommandSystemTag is a repeated param struct in CreateCommandRequest diff --git a/services/ecs/modify_command.go b/services/ecs/modify_command.go index ab8b536fe5..1fbd2e81e5 100644 --- a/services/ecs/modify_command.go +++ b/services/ecs/modify_command.go @@ -81,6 +81,7 @@ type ModifyCommandRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Name string `position:"Query" name:"Name"` + Launcher string `position:"Query" name:"Launcher"` } // ModifyCommandResponse is the response struct for api ModifyCommand diff --git a/services/ecs/modify_instance_attribute.go b/services/ecs/modify_instance_attribute.go index 9339035275..1c0a6ab81d 100644 --- a/services/ecs/modify_instance_attribute.go +++ b/services/ecs/modify_instance_attribute.go @@ -81,6 +81,7 @@ type ModifyInstanceAttributeRequest struct { HostName string `position:"Query" name:"HostName"` PrivateDnsNameOptions ModifyInstanceAttributePrivateDnsNameOptions `position:"Query" name:"PrivateDnsNameOptions" type:"Struct"` CpuOptionsTopologyType string `position:"Query" name:"CpuOptions.TopologyType"` + ImageOptions ModifyInstanceAttributeImageOptions `position:"Query" name:"ImageOptions" type:"Struct"` OSNameEn string `position:"Query" name:"OSNameEn"` EnableJumboFrame requests.Boolean `position:"Query" name:"EnableJumboFrame"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -103,6 +104,11 @@ type ModifyInstanceAttributePrivateDnsNameOptions struct { EnableIpDnsPtrRecord string `name:"EnableIpDnsPtrRecord"` } +// ModifyInstanceAttributeImageOptions is a repeated param struct in ModifyInstanceAttributeRequest +type ModifyInstanceAttributeImageOptions struct { + CurrentOSNVMeSupported string `name:"CurrentOSNVMeSupported"` +} + // ModifyInstanceAttributeAdditionalInfo is a repeated param struct in ModifyInstanceAttributeRequest type ModifyInstanceAttributeAdditionalInfo struct { PvdConfig string `name:"PvdConfig"` diff --git a/services/ecs/struct_allocated_resource.go b/services/ecs/struct_allocated_resource.go index 915d22bc53..7ab0478a17 100644 --- a/services/ecs/struct_allocated_resource.go +++ b/services/ecs/struct_allocated_resource.go @@ -23,4 +23,5 @@ type AllocatedResource struct { InstanceType string `json:"InstanceType" xml:"InstanceType"` ZoneId string `json:"zoneId" xml:"zoneId"` CapacityReservationUsages CapacityReservationUsages `json:"CapacityReservationUsages" xml:"CapacityReservationUsages"` + ElasticityAssuranceUsages ElasticityAssuranceUsages `json:"ElasticityAssuranceUsages" xml:"ElasticityAssuranceUsages"` } diff --git a/services/ecs/struct_command.go b/services/ecs/struct_command.go index 0bef56df27..a4d1e9e284 100644 --- a/services/ecs/struct_command.go +++ b/services/ecs/struct_command.go @@ -32,6 +32,7 @@ type Command struct { Name string `json:"Name" xml:"Name"` EnableParameter bool `json:"EnableParameter" xml:"EnableParameter"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Launcher string `json:"Launcher" xml:"Launcher"` ParameterNames ParameterNames `json:"ParameterNames" xml:"ParameterNames"` ParameterDefinitions ParameterDefinitions `json:"ParameterDefinitions" xml:"ParameterDefinitions"` Tags TagsInDescribeCommands `json:"Tags" xml:"Tags"` diff --git a/services/ecs/struct_elasticity_assurance_item.go b/services/ecs/struct_elasticity_assurance_item.go index 42f5903eaf..aa2f2fe5cb 100644 --- a/services/ecs/struct_elasticity_assurance_item.go +++ b/services/ecs/struct_elasticity_assurance_item.go @@ -20,6 +20,7 @@ type ElasticityAssuranceItem struct { PrivatePoolOptionsName string `json:"PrivatePoolOptionsName" xml:"PrivatePoolOptionsName"` PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` LatestStartTime string `json:"LatestStartTime" xml:"LatestStartTime"` + ElasticityAssuranceOwnerId string `json:"ElasticityAssuranceOwnerId" xml:"ElasticityAssuranceOwnerId"` UsedAssuranceTimes int `json:"UsedAssuranceTimes" xml:"UsedAssuranceTimes"` RegionId string `json:"RegionId" xml:"RegionId"` StartTime string `json:"StartTime" xml:"StartTime"` diff --git a/services/ecs/struct_elasticity_assurance_usage.go b/services/ecs/struct_elasticity_assurance_usage.go new file mode 100644 index 0000000000..fca616e952 --- /dev/null +++ b/services/ecs/struct_elasticity_assurance_usage.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ElasticityAssuranceUsage is a nested struct in ecs response +type ElasticityAssuranceUsage struct { + AccountId string `json:"AccountId" xml:"AccountId"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` +} diff --git a/services/ecs/struct_elasticity_assurance_usages.go b/services/ecs/struct_elasticity_assurance_usages.go new file mode 100644 index 0000000000..60c02c0806 --- /dev/null +++ b/services/ecs/struct_elasticity_assurance_usages.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ElasticityAssuranceUsages is a nested struct in ecs response +type ElasticityAssuranceUsages struct { + ElasticityAssuranceUsage []ElasticityAssuranceUsage `json:"ElasticityAssuranceUsage" xml:"ElasticityAssuranceUsage"` +} diff --git a/services/ecs/struct_image_options.go b/services/ecs/struct_image_options.go index d346336ef6..685d27b0b7 100644 --- a/services/ecs/struct_image_options.go +++ b/services/ecs/struct_image_options.go @@ -17,5 +17,6 @@ package ecs // ImageOptions is a nested struct in ecs response type ImageOptions struct { - LoginAsNonRoot bool `json:"LoginAsNonRoot" xml:"LoginAsNonRoot"` + LoginAsNonRoot bool `json:"LoginAsNonRoot" xml:"LoginAsNonRoot"` + CurrentOSNVMeSupported bool `json:"CurrentOSNVMeSupported" xml:"CurrentOSNVMeSupported"` } diff --git a/services/ecs/struct_instance.go b/services/ecs/struct_instance.go index b6b3d44115..3452b44489 100644 --- a/services/ecs/struct_instance.go +++ b/services/ecs/struct_instance.go @@ -88,13 +88,13 @@ type Instance struct { InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` RdmaIpAddress RdmaIpAddress `json:"RdmaIpAddress" xml:"RdmaIpAddress"` - ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` EcsCapacityReservationAttr EcsCapacityReservationAttr `json:"EcsCapacityReservationAttr" xml:"EcsCapacityReservationAttr"` CpuOptions CpuOptions `json:"CpuOptions" xml:"CpuOptions"` HibernationOptions HibernationOptions `json:"HibernationOptions" xml:"HibernationOptions"` DedicatedInstanceAttribute DedicatedInstanceAttribute `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"` PrivateDnsNameOptions PrivateDnsNameOptions `json:"PrivateDnsNameOptions" xml:"PrivateDnsNameOptions"` + ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` EipAddress EipAddressInDescribeInstances `json:"EipAddress" xml:"EipAddress"` MetadataOptions MetadataOptions `json:"MetadataOptions" xml:"MetadataOptions"` VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"`