diff --git a/ChangeLog.txt b/ChangeLog.txt index 791793353..5363c1906 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-12-12 Version: v1.63.68 +- Generated 2014-05-26 for `Ecs`. +- Savingsplan feature. + 2024-12-12 Version: v1.63.67 - Generated 2018-11-01 for `dms-enterprise`. - Supported Pageable of ListDataLakeDatabase API. diff --git a/services/ecs/create_auto_provisioning_group.go b/services/ecs/create_auto_provisioning_group.go index 86754d874..003a24dec 100644 --- a/services/ecs/create_auto_provisioning_group.go +++ b/services/ecs/create_auto_provisioning_group.go @@ -209,6 +209,7 @@ type CreateAutoProvisioningGroupLaunchTemplateConfig struct { Architectures *[]string `name:"Architectures" type:"Repeated"` BurstablePerformance string `name:"BurstablePerformance"` SecondaryNetworkInterface *[]CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface `name:"SecondaryNetworkInterface" type:"Repeated"` + ImageId string `name:"ImageId"` } // CreateAutoProvisioningGroupLaunchConfigurationTag is a repeated param struct in CreateAutoProvisioningGroupRequest diff --git a/services/ecs/create_image.go b/services/ecs/create_image.go index a690cefcd..485d12b8a 100644 --- a/services/ecs/create_image.go +++ b/services/ecs/create_image.go @@ -79,6 +79,7 @@ type CreateImageRequest struct { Description string `position:"Query" name:"Description"` Platform string `position:"Query" name:"Platform"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Features CreateImageFeatures `position:"Query" name:"Features" type:"Struct"` BootMode string `position:"Query" name:"BootMode"` ImageName string `position:"Query" name:"ImageName"` StorageLocationArn string `position:"Query" name:"StorageLocationArn"` @@ -108,6 +109,11 @@ type CreateImageSystemTag struct { Key string `name:"Key"` } +// CreateImageFeatures is a repeated param struct in CreateImageRequest +type CreateImageFeatures struct { + ImdsSupport string `name:"ImdsSupport"` +} + // CreateImageTag is a repeated param struct in CreateImageRequest type CreateImageTag struct { Value string `name:"Value"` diff --git a/services/ecs/create_network_interface.go b/services/ecs/create_network_interface.go index ebace0da8..3c8bc9352 100644 --- a/services/ecs/create_network_interface.go +++ b/services/ecs/create_network_interface.go @@ -93,6 +93,7 @@ type CreateNetworkInterfaceRequest struct { SecurityGroupId string `position:"Query" name:"SecurityGroupId"` Description string `position:"Query" name:"Description"` Ipv6PrefixCount requests.Integer `position:"Query" name:"Ipv6PrefixCount"` + SourceDestCheck requests.Boolean `position:"Query" name:"SourceDestCheck"` InstanceType string `position:"Query" name:"InstanceType"` TxQueueSize requests.Integer `position:"Query" name:"TxQueueSize"` DeleteOnRelease requests.Boolean `position:"Query" name:"DeleteOnRelease"` @@ -151,6 +152,7 @@ type CreateNetworkInterfaceResponse struct { ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` ZoneId string `json:"ZoneId" xml:"ZoneId"` PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + SourceDestCheck bool `json:"SourceDestCheck" xml:"SourceDestCheck"` SecurityGroupIds SecurityGroupIdsInCreateNetworkInterface `json:"SecurityGroupIds" xml:"SecurityGroupIds"` PrivateIpSets PrivateIpSetsInCreateNetworkInterface `json:"PrivateIpSets" xml:"PrivateIpSets"` Tags TagsInCreateNetworkInterface `json:"Tags" xml:"Tags"` diff --git a/services/ecs/create_savings_plan.go b/services/ecs/create_savings_plan.go index 7bf202a14..bd49ed7d6 100644 --- a/services/ecs/create_savings_plan.go +++ b/services/ecs/create_savings_plan.go @@ -71,14 +71,15 @@ func (client *Client) CreateSavingsPlanWithCallback(request *CreateSavingsPlanRe // CreateSavingsPlanRequest is the request struct for api CreateSavingsPlan type CreateSavingsPlanRequest struct { *requests.RpcRequest - Period string `position:"Query" name:"Period"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - PlanType string `position:"Query" name:"PlanType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - ChargeType string `position:"Query" name:"ChargeType"` - CommittedAmount string `position:"Query" name:"CommittedAmount"` + InstanceTypeFamilyGroup string `position:"Query" name:"InstanceTypeFamilyGroup"` + PlanType string `position:"Query" name:"PlanType"` + CommittedAmount string `position:"Query" name:"CommittedAmount"` + Period string `position:"Query" name:"Period"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + ChargeType string `position:"Query" name:"ChargeType"` } // CreateSavingsPlanResponse is the response struct for api CreateSavingsPlan diff --git a/services/ecs/delete_instances.go b/services/ecs/delete_instances.go index 2cab32531..70a44ee3c 100644 --- a/services/ecs/delete_instances.go +++ b/services/ecs/delete_instances.go @@ -85,7 +85,8 @@ type DeleteInstancesRequest struct { // DeleteInstancesResponse is the response struct for api DeleteInstances type DeleteInstancesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + TaskGroupId string `json:"TaskGroupId" xml:"TaskGroupId"` } // CreateDeleteInstancesRequest creates a request to invoke DeleteInstances API diff --git a/services/ecs/describe_instance_history_events.go b/services/ecs/describe_instance_history_events.go index 68731689f..8e89a5fe2 100644 --- a/services/ecs/describe_instance_history_events.go +++ b/services/ecs/describe_instance_history_events.go @@ -77,6 +77,7 @@ type DescribeInstanceHistoryEventsRequest struct { PageNumber requests.Integer `position:"Query" name:"PageNumber"` ImpactLevel string `position:"Query" name:"ImpactLevel"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` PageSize requests.Integer `position:"Query" name:"PageSize"` InstanceEventCycleStatus *[]string `position:"Query" name:"InstanceEventCycleStatus" type:"Repeated"` Tag *[]DescribeInstanceHistoryEventsTag `position:"Query" name:"Tag" type:"Repeated"` @@ -91,6 +92,7 @@ type DescribeInstanceHistoryEventsRequest struct { EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` InstanceId string `position:"Query" name:"InstanceId"` NotBeforeEnd string `position:"Query" name:"NotBefore.End"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` EventType string `position:"Query" name:"EventType"` } @@ -107,6 +109,7 @@ type DescribeInstanceHistoryEventsResponse struct { RequestId string `json:"RequestId" xml:"RequestId"` PageNumber int `json:"PageNumber" xml:"PageNumber"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` InstanceSystemEventSet InstanceSystemEventSet `json:"InstanceSystemEventSet" xml:"InstanceSystemEventSet"` } diff --git a/services/ecs/describe_savings_plan_estimation.go b/services/ecs/describe_savings_plan_estimation.go index 7c096ecda..1d6bb38f7 100644 --- a/services/ecs/describe_savings_plan_estimation.go +++ b/services/ecs/describe_savings_plan_estimation.go @@ -71,25 +71,28 @@ func (client *Client) DescribeSavingsPlanEstimationWithCallback(request *Describ // DescribeSavingsPlanEstimationRequest is the request struct for api DescribeSavingsPlanEstimation type DescribeSavingsPlanEstimationRequest struct { *requests.RpcRequest - ResourceId string `position:"Query" name:"ResourceId"` - Period string `position:"Query" name:"Period"` - PlanType string `position:"Query" name:"PlanType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` + ResourceId string `position:"Query" name:"ResourceId"` + Period string `position:"Query" name:"Period"` + PlanType string `position:"Query" name:"PlanType"` + InstanceTypeScope string `position:"Query" name:"InstanceTypeScope"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + EstimationResource string `position:"Query" name:"EstimationResource"` } // DescribeSavingsPlanEstimationResponse is the response struct for api DescribeSavingsPlanEstimation type DescribeSavingsPlanEstimationResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - CommittedAmount string `json:"CommittedAmount" xml:"CommittedAmount"` - Currency string `json:"Currency" xml:"Currency"` - OfferingType string `json:"OfferingType" xml:"OfferingType"` - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - Period int `json:"Period" xml:"Period"` - PlanType string `json:"PlanType" xml:"PlanType"` + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + CommittedAmount string `json:"CommittedAmount" xml:"CommittedAmount"` + Currency string `json:"Currency" xml:"Currency"` + OfferingType string `json:"OfferingType" xml:"OfferingType"` + PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + Period int `json:"Period" xml:"Period"` + PlanType string `json:"PlanType" xml:"PlanType"` + InstanceTypeFamilyGroup string `json:"InstanceTypeFamilyGroup" xml:"InstanceTypeFamilyGroup"` } // CreateDescribeSavingsPlanEstimationRequest creates a request to invoke DescribeSavingsPlanEstimation API diff --git a/services/ecs/describe_savings_plan_price.go b/services/ecs/describe_savings_plan_price.go index 5730e547c..bfb7506ca 100644 --- a/services/ecs/describe_savings_plan_price.go +++ b/services/ecs/describe_savings_plan_price.go @@ -71,13 +71,14 @@ func (client *Client) DescribeSavingsPlanPriceWithCallback(request *DescribeSavi // DescribeSavingsPlanPriceRequest is the request struct for api DescribeSavingsPlanPrice type DescribeSavingsPlanPriceRequest struct { *requests.RpcRequest - Period requests.Integer `position:"Query" name:"Period"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - PlanType string `position:"Query" name:"PlanType"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - CommittedAmount string `position:"Query" name:"CommittedAmount"` + InstanceTypeFamilyGroup string `position:"Query" name:"InstanceTypeFamilyGroup"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + PlanType string `position:"Query" name:"PlanType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + CommittedAmount string `position:"Query" name:"CommittedAmount"` } // DescribeSavingsPlanPriceResponse is the response struct for api DescribeSavingsPlanPrice diff --git a/services/ecs/describe_tasks.go b/services/ecs/describe_tasks.go index df7dfc2f8..5bf0b1b97 100644 --- a/services/ecs/describe_tasks.go +++ b/services/ecs/describe_tasks.go @@ -81,6 +81,7 @@ type DescribeTasksRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` EndTime string `position:"Query" name:"EndTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TaskGroupId string `position:"Query" name:"TaskGroupId"` TaskAction string `position:"Query" name:"TaskAction"` ResourceIds *[]string `position:"Query" name:"ResourceIds" type:"Repeated"` } diff --git a/services/ecs/import_image.go b/services/ecs/import_image.go index 9bca5bbd8..871531e3c 100644 --- a/services/ecs/import_image.go +++ b/services/ecs/import_image.go @@ -73,6 +73,7 @@ type ImportImageRequest struct { *requests.RpcRequest DiskDeviceMapping *[]ImportImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` Platform string `position:"Query" name:"Platform"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` @@ -104,6 +105,7 @@ type ImportImageDiskDeviceMapping struct { // ImportImageFeatures is a repeated param struct in ImportImageRequest type ImportImageFeatures struct { NvmeSupport string `name:"NvmeSupport"` + ImdsSupport string `name:"ImdsSupport"` } // ImportImageTag is a repeated param struct in ImportImageRequest diff --git a/services/ecs/modify_image_attribute.go b/services/ecs/modify_image_attribute.go index d386b9173..69836b77d 100644 --- a/services/ecs/modify_image_attribute.go +++ b/services/ecs/modify_image_attribute.go @@ -88,6 +88,7 @@ type ModifyImageAttributeRequest struct { // ModifyImageAttributeFeatures is a repeated param struct in ModifyImageAttributeRequest type ModifyImageAttributeFeatures struct { NvmeSupport string `name:"NvmeSupport"` + ImdsSupport string `name:"ImdsSupport"` } // ModifyImageAttributeResponse is the response struct for api ModifyImageAttribute diff --git a/services/ecs/redeploy_dedicated_host.go b/services/ecs/redeploy_dedicated_host.go index dfe152db6..d2b320b5f 100644 --- a/services/ecs/redeploy_dedicated_host.go +++ b/services/ecs/redeploy_dedicated_host.go @@ -76,6 +76,7 @@ type RedeployDedicatedHostRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` DedicatedHostId string `position:"Query" name:"DedicatedHostId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MigrationType string `position:"Query" name:"MigrationType"` } // RedeployDedicatedHostResponse is the response struct for api RedeployDedicatedHost diff --git a/services/ecs/run_instances.go b/services/ecs/run_instances.go index 6b92f5dbe..f9a6516db 100644 --- a/services/ecs/run_instances.go +++ b/services/ecs/run_instances.go @@ -240,6 +240,7 @@ type RunInstancesNetworkInterface struct { NetworkInterfaceId string `name:"NetworkInterfaceId"` RxQueueSize string `name:"RxQueueSize"` TxQueueSize string `name:"TxQueueSize"` + SourceDestCheck string `name:"SourceDestCheck"` } // RunInstancesDataDisk is a repeated param struct in RunInstancesRequest diff --git a/services/ecs/struct_additional_info.go b/services/ecs/struct_additional_info.go new file mode 100644 index 000000000..5fff1fab0 --- /dev/null +++ b/services/ecs/struct_additional_info.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. + +// AdditionalInfo is a nested struct in ecs response +type AdditionalInfo struct { + EnableHighDensityMode bool `json:"EnableHighDensityMode" xml:"EnableHighDensityMode"` +} diff --git a/services/ecs/struct_cpu_options.go b/services/ecs/struct_cpu_options.go index 650a59197..05baa6a9d 100644 --- a/services/ecs/struct_cpu_options.go +++ b/services/ecs/struct_cpu_options.go @@ -17,9 +17,12 @@ package ecs // CpuOptions is a nested struct in ecs response type CpuOptions struct { - CoreCount int `json:"CoreCount" xml:"CoreCount"` - Numa string `json:"Numa" xml:"Numa"` - TopologyType string `json:"TopologyType" xml:"TopologyType"` - ThreadsPerCore int `json:"ThreadsPerCore" xml:"ThreadsPerCore"` - SupportedTopologyTypes SupportedTopologyTypes `json:"SupportedTopologyTypes" xml:"SupportedTopologyTypes"` + Core int `json:"Core" xml:"Core"` + HyperThreadingAdjustable bool `json:"HyperThreadingAdjustable" xml:"HyperThreadingAdjustable"` + CoreCount int `json:"CoreCount" xml:"CoreCount"` + CoreFactor int `json:"CoreFactor" xml:"CoreFactor"` + Numa string `json:"Numa" xml:"Numa"` + TopologyType string `json:"TopologyType" xml:"TopologyType"` + ThreadsPerCore int `json:"ThreadsPerCore" xml:"ThreadsPerCore"` + SupportedTopologyTypes SupportedTopologyTypes `json:"SupportedTopologyTypes" xml:"SupportedTopologyTypes"` } diff --git a/services/ecs/struct_features.go b/services/ecs/struct_features.go index 8751dfb11..061283138 100644 --- a/services/ecs/struct_features.go +++ b/services/ecs/struct_features.go @@ -18,4 +18,5 @@ package ecs // Features is a nested struct in ecs response type Features struct { NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` + ImdsSupport string `json:"ImdsSupport" xml:"ImdsSupport"` } diff --git a/services/ecs/struct_instance.go b/services/ecs/struct_instance.go index 3452b4448..3b00c7056 100644 --- a/services/ecs/struct_instance.go +++ b/services/ecs/struct_instance.go @@ -94,6 +94,7 @@ type Instance struct { HibernationOptions HibernationOptions `json:"HibernationOptions" xml:"HibernationOptions"` DedicatedInstanceAttribute DedicatedInstanceAttribute `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"` PrivateDnsNameOptions PrivateDnsNameOptions `json:"PrivateDnsNameOptions" xml:"PrivateDnsNameOptions"` + AdditionalInfo AdditionalInfo `json:"AdditionalInfo" xml:"AdditionalInfo"` ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` EipAddress EipAddressInDescribeInstances `json:"EipAddress" xml:"EipAddress"` MetadataOptions MetadataOptions `json:"MetadataOptions" xml:"MetadataOptions"` diff --git a/services/ecs/struct_instance_type.go b/services/ecs/struct_instance_type.go index 1dbc4ec36..e42fbcccb 100644 --- a/services/ecs/struct_instance_type.go +++ b/services/ecs/struct_instance_type.go @@ -26,6 +26,7 @@ type InstanceType struct { NetworkEncryptionSupport bool `json:"NetworkEncryptionSupport" xml:"NetworkEncryptionSupport"` Cores int `json:"Cores" xml:"Cores"` NetworkCardQuantity int `json:"NetworkCardQuantity" xml:"NetworkCardQuantity"` + JumboFrameSupport bool `json:"JumboFrameSupport" xml:"JumboFrameSupport"` InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` InstanceType string `json:"InstanceType" xml:"InstanceType"` diff --git a/services/ecs/struct_resource_ids.go b/services/ecs/struct_resource_ids.go new file mode 100644 index 000000000..61e70f410 --- /dev/null +++ b/services/ecs/struct_resource_ids.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. + +// ResourceIds is a nested struct in ecs response +type ResourceIds struct { + ResourceId []string `json:"resourceId" xml:"resourceId"` +} diff --git a/services/ecs/struct_task.go b/services/ecs/struct_task.go index 429d54d2a..a43fa7930 100644 --- a/services/ecs/struct_task.go +++ b/services/ecs/struct_task.go @@ -17,11 +17,15 @@ package ecs // Task is a nested struct in ecs response type Task struct { - CreationTime string `json:"CreationTime" xml:"CreationTime"` - TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` - TaskId string `json:"TaskId" xml:"TaskId"` - TaskAction string `json:"TaskAction" xml:"TaskAction"` - ResourceId string `json:"ResourceId" xml:"ResourceId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` + TaskId string `json:"TaskId" xml:"TaskId"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + Source string `json:"Source" xml:"Source"` + FailedReason string `json:"FailedReason" xml:"FailedReason"` + TaskGroupId string `json:"TaskGroupId" xml:"TaskGroupId"` + ResourceIds ResourceIds `json:"ResourceIds" xml:"ResourceIds"` }