From a0713bb40f43a637ae6922f2bf9e44de87f5dfd2 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 15 Oct 2024 07:23:58 +0000 Subject: [PATCH] Generated 2014-05-26 for Ecs. --- ChangeLog.txt | 4 + .../ecs/create_auto_provisioning_group.go | 7 ++ services/ecs/create_image_component.go | 1 + services/ecs/create_image_pipeline.go | 3 + services/ecs/create_launch_template.go | 3 + .../ecs/create_launch_template_version.go | 3 + services/ecs/describe_image_components.go | 3 + services/ecs/eip_fill_params.go | 109 ----------------- services/ecs/eip_fill_product.go | 109 ----------------- services/ecs/eip_notify_paid.go | 109 ----------------- services/ecs/import_image.go | 7 ++ services/ecs/modify_elasticity_assurance.go | 2 + services/ecs/purchase_elasticity_assurance.go | 111 ++++++++++++++++++ services/ecs/run_instances.go | 1 + services/ecs/struct_image_component_set.go | 2 + services/ecs/struct_image_pipeline_set.go | 3 + services/ecs/struct_launch_template_data.go | 3 + services/ecs/struct_parameter.go | 23 ++++ services/ecs/struct_parameters.go | 21 ++++ services/ecs/struct_security_group.go | 2 + 20 files changed, 199 insertions(+), 327 deletions(-) delete mode 100644 services/ecs/eip_fill_params.go delete mode 100644 services/ecs/eip_fill_product.go delete mode 100644 services/ecs/eip_notify_paid.go create mode 100644 services/ecs/purchase_elasticity_assurance.go create mode 100644 services/ecs/struct_parameter.go create mode 100644 services/ecs/struct_parameters.go diff --git a/ChangeLog.txt b/ChangeLog.txt index cb6f52cd63..69aeb4d347 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-10-15 Version: v1.63.28 +- Generated 2014-05-26 for `Ecs`. +- Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup. + 2024-10-11 Version: v1.63.27 - Generated 2017-03-21 for `vod`. - GetPlayInfo Add EncryptMode. diff --git a/services/ecs/create_auto_provisioning_group.go b/services/ecs/create_auto_provisioning_group.go index 2773d468b6..86754d8740 100644 --- a/services/ecs/create_auto_provisioning_group.go +++ b/services/ecs/create_auto_provisioning_group.go @@ -111,6 +111,7 @@ type CreateAutoProvisioningGroupRequest struct { LaunchConfigurationInstanceName string `position:"Query" name:"LaunchConfiguration.InstanceName"` LaunchConfigurationInstanceDescription string `position:"Query" name:"LaunchConfiguration.InstanceDescription"` SpotAllocationStrategy string `position:"Query" name:"SpotAllocationStrategy"` + ResourcePoolOptions CreateAutoProvisioningGroupResourcePoolOptions `position:"Query" name:"ResourcePoolOptions" type:"Struct"` TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` LaunchConfigurationSystemDiskName string `position:"Query" name:"LaunchConfiguration.SystemDiskName"` LaunchConfigurationSystemDiskDescription string `position:"Query" name:"LaunchConfiguration.SystemDiskDescription"` @@ -187,6 +188,12 @@ type CreateAutoProvisioningGroupLaunchConfigurationSystemDisk struct { BurstingEnabled string `name:"BurstingEnabled"` } +// CreateAutoProvisioningGroupResourcePoolOptions is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupResourcePoolOptions struct { + Strategy string `name:"Strategy"` + PrivatePoolIds *[]string `name:"PrivatePoolIds" type:"Repeated"` +} + // CreateAutoProvisioningGroupLaunchTemplateConfig is a repeated param struct in CreateAutoProvisioningGroupRequest type CreateAutoProvisioningGroupLaunchTemplateConfig struct { VSwitchId string `name:"VSwitchId"` diff --git a/services/ecs/create_image_component.go b/services/ecs/create_image_component.go index 9ed58462f7..9d90264273 100644 --- a/services/ecs/create_image_component.go +++ b/services/ecs/create_image_component.go @@ -75,6 +75,7 @@ type CreateImageComponentRequest struct { ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` SystemType string `position:"Query" name:"SystemType"` + ComponentVersion string `position:"Query" name:"ComponentVersion"` Content string `position:"Query" name:"Content"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` Tag *[]CreateImageComponentTag `position:"Query" name:"Tag" type:"Repeated"` diff --git a/services/ecs/create_image_pipeline.go b/services/ecs/create_image_pipeline.go index 46e0037a6d..bc3b33174f 100644 --- a/services/ecs/create_image_pipeline.go +++ b/services/ecs/create_image_pipeline.go @@ -84,13 +84,16 @@ type CreateImagePipelineRequest struct { Tag *[]CreateImagePipelineTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + RepairMode string `position:"Query" name:"RepairMode"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` BaseImage string `position:"Query" name:"BaseImage"` VSwitchId string `position:"Query" name:"VSwitchId"` AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` DeleteInstanceOnFailure requests.Boolean `position:"Query" name:"DeleteInstanceOnFailure"` Name string `position:"Query" name:"Name"` + ImageFamily string `position:"Query" name:"ImageFamily"` BuildContent string `position:"Query" name:"BuildContent"` + TestContent string `position:"Query" name:"TestContent"` } // CreateImagePipelineTag is a repeated param struct in CreateImagePipelineRequest diff --git a/services/ecs/create_launch_template.go b/services/ecs/create_launch_template.go index abbfbf6504..fb925ddb12 100644 --- a/services/ecs/create_launch_template.go +++ b/services/ecs/create_launch_template.go @@ -73,6 +73,7 @@ type CreateLaunchTemplateRequest struct { *requests.RpcRequest LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` NetworkType string `position:"Query" name:"NetworkType"` KeyPairName string `position:"Query" name:"KeyPairName"` @@ -111,6 +112,7 @@ type CreateLaunchTemplateRequest struct { SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` UserData string `position:"Query" name:"UserData"` PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` InstanceType string `position:"Query" name:"InstanceType"` InstanceChargeType string `position:"Query" name:"InstanceChargeType"` EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` @@ -128,6 +130,7 @@ type CreateLaunchTemplateRequest struct { SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` VpcId string `position:"Query" name:"VpcId"` + HttpTokens string `position:"Query" name:"HttpTokens"` SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` } diff --git a/services/ecs/create_launch_template_version.go b/services/ecs/create_launch_template_version.go index 932746ace2..fa8a074d8b 100644 --- a/services/ecs/create_launch_template_version.go +++ b/services/ecs/create_launch_template_version.go @@ -73,6 +73,7 @@ type CreateLaunchTemplateVersionRequest struct { *requests.RpcRequest LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` NetworkType string `position:"Query" name:"NetworkType"` KeyPairName string `position:"Query" name:"KeyPairName"` @@ -110,6 +111,7 @@ type CreateLaunchTemplateVersionRequest struct { SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` UserData string `position:"Query" name:"UserData"` PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` InstanceType string `position:"Query" name:"InstanceType"` InstanceChargeType string `position:"Query" name:"InstanceChargeType"` EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` @@ -127,6 +129,7 @@ type CreateLaunchTemplateVersionRequest struct { SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` VpcId string `position:"Query" name:"VpcId"` + HttpTokens string `position:"Query" name:"HttpTokens"` SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` } diff --git a/services/ecs/describe_image_components.go b/services/ecs/describe_image_components.go index 0350c30d3a..0cd624ef0a 100644 --- a/services/ecs/describe_image_components.go +++ b/services/ecs/describe_image_components.go @@ -72,6 +72,8 @@ func (client *Client) DescribeImageComponentsWithCallback(request *DescribeImage type DescribeImageComponentsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SystemType string `position:"Query" name:"SystemType"` + ComponentVersion string `position:"Query" name:"ComponentVersion"` ImageComponentId *[]string `position:"Query" name:"ImageComponentId" type:"Repeated"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` NextToken string `position:"Query" name:"NextToken"` @@ -80,6 +82,7 @@ type DescribeImageComponentsRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ComponentType string `position:"Query" name:"ComponentType"` Name string `position:"Query" name:"Name"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` } diff --git a/services/ecs/eip_fill_params.go b/services/ecs/eip_fill_params.go deleted file mode 100644 index a3d48aed34..0000000000 --- a/services/ecs/eip_fill_params.go +++ /dev/null @@ -1,109 +0,0 @@ -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. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EipFillParams invokes the ecs.EipFillParams API synchronously -func (client *Client) EipFillParams(request *EipFillParamsRequest) (response *EipFillParamsResponse, err error) { - response = CreateEipFillParamsResponse() - err = client.DoAction(request, response) - return -} - -// EipFillParamsWithChan invokes the ecs.EipFillParams API asynchronously -func (client *Client) EipFillParamsWithChan(request *EipFillParamsRequest) (<-chan *EipFillParamsResponse, <-chan error) { - responseChan := make(chan *EipFillParamsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EipFillParams(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EipFillParamsWithCallback invokes the ecs.EipFillParams API asynchronously -func (client *Client) EipFillParamsWithCallback(request *EipFillParamsRequest, callback func(response *EipFillParamsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EipFillParamsResponse - var err error - defer close(result) - response, err = client.EipFillParams(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EipFillParamsRequest is the request struct for api EipFillParams -type EipFillParamsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Data string `position:"Query" name:"data"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// EipFillParamsResponse is the response struct for api EipFillParams -type EipFillParamsResponse struct { - *responses.BaseResponse - Code string `json:"code" xml:"code"` - Success bool `json:"success" xml:"success"` - Message string `json:"message" xml:"message"` - Data string `json:"data" xml:"data"` - RequestId string `json:"requestId" xml:"requestId"` -} - -// CreateEipFillParamsRequest creates a request to invoke EipFillParams API -func CreateEipFillParamsRequest() (request *EipFillParamsRequest) { - request = &EipFillParamsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillParams", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEipFillParamsResponse creates a response to parse from EipFillParams response -func CreateEipFillParamsResponse() (response *EipFillParamsResponse) { - response = &EipFillParamsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/ecs/eip_fill_product.go b/services/ecs/eip_fill_product.go deleted file mode 100644 index 0e55e91016..0000000000 --- a/services/ecs/eip_fill_product.go +++ /dev/null @@ -1,109 +0,0 @@ -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. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EipFillProduct invokes the ecs.EipFillProduct API synchronously -func (client *Client) EipFillProduct(request *EipFillProductRequest) (response *EipFillProductResponse, err error) { - response = CreateEipFillProductResponse() - err = client.DoAction(request, response) - return -} - -// EipFillProductWithChan invokes the ecs.EipFillProduct API asynchronously -func (client *Client) EipFillProductWithChan(request *EipFillProductRequest) (<-chan *EipFillProductResponse, <-chan error) { - responseChan := make(chan *EipFillProductResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EipFillProduct(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EipFillProductWithCallback invokes the ecs.EipFillProduct API asynchronously -func (client *Client) EipFillProductWithCallback(request *EipFillProductRequest, callback func(response *EipFillProductResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EipFillProductResponse - var err error - defer close(result) - response, err = client.EipFillProduct(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EipFillProductRequest is the request struct for api EipFillProduct -type EipFillProductRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Data string `position:"Query" name:"data"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// EipFillProductResponse is the response struct for api EipFillProduct -type EipFillProductResponse struct { - *responses.BaseResponse - Code string `json:"code" xml:"code"` - Success bool `json:"success" xml:"success"` - Message string `json:"message" xml:"message"` - Data string `json:"data" xml:"data"` - RequestId string `json:"requestId" xml:"requestId"` -} - -// CreateEipFillProductRequest creates a request to invoke EipFillProduct API -func CreateEipFillProductRequest() (request *EipFillProductRequest) { - request = &EipFillProductRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillProduct", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEipFillProductResponse creates a response to parse from EipFillProduct response -func CreateEipFillProductResponse() (response *EipFillProductResponse) { - response = &EipFillProductResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/ecs/eip_notify_paid.go b/services/ecs/eip_notify_paid.go deleted file mode 100644 index 3d1dc3a866..0000000000 --- a/services/ecs/eip_notify_paid.go +++ /dev/null @@ -1,109 +0,0 @@ -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. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// EipNotifyPaid invokes the ecs.EipNotifyPaid API synchronously -func (client *Client) EipNotifyPaid(request *EipNotifyPaidRequest) (response *EipNotifyPaidResponse, err error) { - response = CreateEipNotifyPaidResponse() - err = client.DoAction(request, response) - return -} - -// EipNotifyPaidWithChan invokes the ecs.EipNotifyPaid API asynchronously -func (client *Client) EipNotifyPaidWithChan(request *EipNotifyPaidRequest) (<-chan *EipNotifyPaidResponse, <-chan error) { - responseChan := make(chan *EipNotifyPaidResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.EipNotifyPaid(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// EipNotifyPaidWithCallback invokes the ecs.EipNotifyPaid API asynchronously -func (client *Client) EipNotifyPaidWithCallback(request *EipNotifyPaidRequest, callback func(response *EipNotifyPaidResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *EipNotifyPaidResponse - var err error - defer close(result) - response, err = client.EipNotifyPaid(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// EipNotifyPaidRequest is the request struct for api EipNotifyPaid -type EipNotifyPaidRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Data string `position:"Query" name:"data"` - ClientToken string `position:"Query" name:"ClientToken"` - UserCidr string `position:"Query" name:"UserCidr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// EipNotifyPaidResponse is the response struct for api EipNotifyPaid -type EipNotifyPaidResponse struct { - *responses.BaseResponse - Code string `json:"code" xml:"code"` - Success bool `json:"success" xml:"success"` - Message string `json:"message" xml:"message"` - Data string `json:"data" xml:"data"` - RequestId string `json:"requestId" xml:"requestId"` -} - -// CreateEipNotifyPaidRequest creates a request to invoke EipNotifyPaid API -func CreateEipNotifyPaidRequest() (request *EipNotifyPaidRequest) { - request = &EipNotifyPaidRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "EipNotifyPaid", "ecs", "openAPI") - request.Method = requests.POST - return -} - -// CreateEipNotifyPaidResponse creates a response to parse from EipNotifyPaid response -func CreateEipNotifyPaidResponse() (response *EipNotifyPaidResponse) { - response = &EipNotifyPaidResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/ecs/import_image.go b/services/ecs/import_image.go index 53fa81dab8..9bca5bbd87 100644 --- a/services/ecs/import_image.go +++ b/services/ecs/import_image.go @@ -76,6 +76,7 @@ type ImportImageRequest struct { Description string `position:"Query" name:"Description"` Platform string `position:"Query" name:"Platform"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Features ImportImageFeatures `position:"Query" name:"Features" type:"Struct"` BootMode string `position:"Query" name:"BootMode"` ImageName string `position:"Query" name:"ImageName"` StorageLocationArn string `position:"Query" name:"StorageLocationArn"` @@ -83,6 +84,7 @@ type ImportImageRequest struct { Architecture string `position:"Query" name:"Architecture"` LicenseType string `position:"Query" name:"LicenseType"` DetectionStrategy string `position:"Query" name:"DetectionStrategy"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` RoleName string `position:"Query" name:"RoleName"` OSType string `position:"Query" name:"OSType"` @@ -99,6 +101,11 @@ type ImportImageDiskDeviceMapping struct { DiskImageSize string `name:"DiskImageSize"` } +// ImportImageFeatures is a repeated param struct in ImportImageRequest +type ImportImageFeatures struct { + NvmeSupport string `name:"NvmeSupport"` +} + // ImportImageTag is a repeated param struct in ImportImageRequest type ImportImageTag struct { Value string `name:"Value"` diff --git a/services/ecs/modify_elasticity_assurance.go b/services/ecs/modify_elasticity_assurance.go index e351c4032c..8ccd06a3fc 100644 --- a/services/ecs/modify_elasticity_assurance.go +++ b/services/ecs/modify_elasticity_assurance.go @@ -72,6 +72,7 @@ func (client *Client) ModifyElasticityAssuranceWithCallback(request *ModifyElast type ModifyElasticityAssuranceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -79,6 +80,7 @@ type ModifyElasticityAssuranceRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PackageType string `position:"Query" name:"PackageType"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` } // ModifyElasticityAssuranceResponse is the response struct for api ModifyElasticityAssurance diff --git a/services/ecs/purchase_elasticity_assurance.go b/services/ecs/purchase_elasticity_assurance.go new file mode 100644 index 0000000000..0e277cab29 --- /dev/null +++ b/services/ecs/purchase_elasticity_assurance.go @@ -0,0 +1,111 @@ +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. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PurchaseElasticityAssurance invokes the ecs.PurchaseElasticityAssurance API synchronously +func (client *Client) PurchaseElasticityAssurance(request *PurchaseElasticityAssuranceRequest) (response *PurchaseElasticityAssuranceResponse, err error) { + response = CreatePurchaseElasticityAssuranceResponse() + err = client.DoAction(request, response) + return +} + +// PurchaseElasticityAssuranceWithChan invokes the ecs.PurchaseElasticityAssurance API asynchronously +func (client *Client) PurchaseElasticityAssuranceWithChan(request *PurchaseElasticityAssuranceRequest) (<-chan *PurchaseElasticityAssuranceResponse, <-chan error) { + responseChan := make(chan *PurchaseElasticityAssuranceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PurchaseElasticityAssurance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PurchaseElasticityAssuranceWithCallback invokes the ecs.PurchaseElasticityAssurance API asynchronously +func (client *Client) PurchaseElasticityAssuranceWithCallback(request *PurchaseElasticityAssuranceRequest, callback func(response *PurchaseElasticityAssuranceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PurchaseElasticityAssuranceResponse + var err error + defer close(result) + response, err = client.PurchaseElasticityAssurance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PurchaseElasticityAssuranceRequest is the request struct for api PurchaseElasticityAssurance +type PurchaseElasticityAssuranceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + StartTime string `position:"Query" name:"StartTime"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + PackageType string `position:"Query" name:"PackageType"` +} + +// PurchaseElasticityAssuranceResponse is the response struct for api PurchaseElasticityAssurance +type PurchaseElasticityAssuranceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePurchaseElasticityAssuranceRequest creates a request to invoke PurchaseElasticityAssurance API +func CreatePurchaseElasticityAssuranceRequest() (request *PurchaseElasticityAssuranceRequest) { + request = &PurchaseElasticityAssuranceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseElasticityAssurance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreatePurchaseElasticityAssuranceResponse creates a response to parse from PurchaseElasticityAssurance response +func CreatePurchaseElasticityAssuranceResponse() (response *PurchaseElasticityAssuranceResponse) { + response = &PurchaseElasticityAssuranceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ecs/run_instances.go b/services/ecs/run_instances.go index f70c8907fe..6b92f5dbe9 100644 --- a/services/ecs/run_instances.go +++ b/services/ecs/run_instances.go @@ -136,6 +136,7 @@ type RunInstancesRequest struct { VSwitchId string `position:"Query" name:"VSwitchId"` InstanceName string `position:"Query" name:"InstanceName"` ZoneId string `position:"Query" name:"ZoneId"` + CpuOptionsAccelerators *[]string `position:"Query" name:"CpuOptions.Accelerators" type:"Repeated"` Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` SecurityOptionsConfidentialComputingMode string `position:"Query" name:"SecurityOptions.ConfidentialComputingMode"` ClientToken string `position:"Query" name:"ClientToken"` diff --git a/services/ecs/struct_image_component_set.go b/services/ecs/struct_image_component_set.go index fdf4e17707..1fd5ec0e84 100644 --- a/services/ecs/struct_image_component_set.go +++ b/services/ecs/struct_image_component_set.go @@ -26,5 +26,7 @@ type ImageComponentSet struct { Name string `json:"Name" xml:"Name"` Content string `json:"Content" xml:"Content"` Owner string `json:"Owner" xml:"Owner"` + ComponentVersion string `json:"ComponentVersion" xml:"ComponentVersion"` Tags TagsInDescribeImageComponents `json:"Tags" xml:"Tags"` + Parameters Parameters `json:"Parameters" xml:"Parameters"` } diff --git a/services/ecs/struct_image_pipeline_set.go b/services/ecs/struct_image_pipeline_set.go index 324dd701ec..2f1b39054a 100644 --- a/services/ecs/struct_image_pipeline_set.go +++ b/services/ecs/struct_image_pipeline_set.go @@ -31,6 +31,9 @@ type ImagePipelineSet struct { BaseImageType string `json:"BaseImageType" xml:"BaseImageType"` Name string `json:"Name" xml:"Name"` BuildContent string `json:"BuildContent" xml:"BuildContent"` + RepairMode string `json:"RepairMode" xml:"RepairMode"` + TestContent string `json:"TestContent" xml:"TestContent"` + ImageFamily string `json:"ImageFamily" xml:"ImageFamily"` ToRegionIds ToRegionIds `json:"ToRegionIds" xml:"ToRegionIds"` AddAccounts AddAccounts `json:"AddAccounts" xml:"AddAccounts"` Tags TagsInDescribeImagePipelines `json:"Tags" xml:"Tags"` diff --git a/services/ecs/struct_launch_template_data.go b/services/ecs/struct_launch_template_data.go index 2507f3fbfc..3bf15773bd 100644 --- a/services/ecs/struct_launch_template_data.go +++ b/services/ecs/struct_launch_template_data.go @@ -64,6 +64,9 @@ type LaunchTemplateData struct { AutoRenew bool `json:"AutoRenew" xml:"AutoRenew"` AutoRenewPeriod int `json:"AutoRenewPeriod" xml:"AutoRenewPeriod"` PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + HttpEndpoint string `json:"HttpEndpoint" xml:"HttpEndpoint"` + HttpTokens string `json:"HttpTokens" xml:"HttpTokens"` + HttpPutResponseHopLimit int `json:"HttpPutResponseHopLimit" xml:"HttpPutResponseHopLimit"` SecurityGroupIds SecurityGroupIdsInDescribeLaunchTemplateVersions `json:"SecurityGroupIds" xml:"SecurityGroupIds"` DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` NetworkInterfaces NetworkInterfacesInDescribeLaunchTemplateVersions `json:"NetworkInterfaces" xml:"NetworkInterfaces"` diff --git a/services/ecs/struct_parameter.go b/services/ecs/struct_parameter.go new file mode 100644 index 0000000000..a266b2d5ab --- /dev/null +++ b/services/ecs/struct_parameter.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. + +// Parameter is a nested struct in ecs response +type Parameter struct { + Name string `json:"Name" xml:"Name"` + Type string `json:"Type" xml:"Type"` + DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` +} diff --git a/services/ecs/struct_parameters.go b/services/ecs/struct_parameters.go new file mode 100644 index 0000000000..6310fcd221 --- /dev/null +++ b/services/ecs/struct_parameters.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. + +// Parameters is a nested struct in ecs response +type Parameters struct { + Parameter []Parameter `json:"Parameter" xml:"Parameter"` +} diff --git a/services/ecs/struct_security_group.go b/services/ecs/struct_security_group.go index ae22c50ecf..1a3f545ee4 100644 --- a/services/ecs/struct_security_group.go +++ b/services/ecs/struct_security_group.go @@ -28,5 +28,7 @@ type SecurityGroup struct { ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` ServiceID int64 `json:"ServiceID" xml:"ServiceID"` + RuleCount int `json:"RuleCount" xml:"RuleCount"` + GroupToGroupRuleCount int `json:"GroupToGroupRuleCount" xml:"GroupToGroupRuleCount"` Tags TagsInDescribeSecurityGroups `json:"Tags" xml:"Tags"` }