From a07893c9e3ee1388ea256840d32bb95e8c9b2fc9 Mon Sep 17 00:00:00 2001 From: Alibaba Cloud SDK Date: Thu, 16 May 2019 19:37:08 +0800 Subject: [PATCH] Generated 2014-05-26, 2016-03-14 for Ecs --- ChangeLog.txt | 3 + services/ecs/create_capacity_reservation.go | 128 ++++++++++++++ .../ecs/create_config_log_subscriptions.go | 117 +++++++++++++ services/ecs/create_disks.go | 128 ++++++++++++++ services/ecs/create_disks__gated_launch.go | 125 ++++++++++++++ services/ecs/create_eni_qos_group.go | 116 +++++++++++++ services/ecs/create_order.go | 124 ++++++++++++++ services/ecs/create_volumes.go | 127 ++++++++++++++ services/ecs/create_volumes__gated_launch.go | 125 ++++++++++++++ .../ecs/delete_config_log_subscriptions.go | 111 ++++++++++++ services/ecs/delete_eni_qos_group.go | 110 ++++++++++++ services/ecs/describe_account_limits.go | 117 +++++++++++++ services/ecs/describe_bandwidth_price.go | 113 +++++++++++++ .../ecs/describe_capacity_reservations.go | 126 ++++++++++++++ services/ecs/describe_config_log_history.go | 121 +++++++++++++ .../ecs/describe_config_log_subscription.go | 118 +++++++++++++ services/ecs/describe_eni_qos_group_info.go | 111 ++++++++++++ .../ecs/describe_instance_auto_reboot_time.go | 113 +++++++++++++ services/ecs/describe_instance_need_reboot.go | 116 +++++++++++++ services/ecs/describe_kms_key_attribute.go | 121 +++++++++++++ services/ecs/describe_kms_keys.go | 121 +++++++++++++ services/ecs/describe_linked_kms_keys.go | 116 +++++++++++++ .../ecs/describe_reserved_instance_price.go | 120 +++++++++++++ .../describe_resource_filter_attributes.go | 119 +++++++++++++ .../describe_resource_recommend_filters.go | 124 ++++++++++++++ services/ecs/describe_resources.go | 134 +++++++++++++++ services/ecs/get_launch_template_data.go | 111 ++++++++++++ services/ecs/join_eni_qos_group.go | 111 ++++++++++++ services/ecs/leave_eni_qos_group.go | 110 ++++++++++++ services/ecs/modify_capacity_reservation.go | 113 +++++++++++++ services/ecs/modify_eni_qos_group.go | 114 +++++++++++++ .../ecs/modify_instance_auto_reboot_time.go | 111 ++++++++++++ ...nstance_capacity_reservation_attributes.go | 113 +++++++++++++ services/ecs/query_eni_qos_group_by_eni.go | 111 ++++++++++++ .../ecs/query_eni_qos_group_by_instance.go | 111 ++++++++++++ services/ecs/release_capacity_reservation.go | 112 ++++++++++++ services/ecs/run_instances__gated_launch.go | 159 ++++++++++++++++++ .../ecs/set_instance_auto_release_time.go | 112 ++++++++++++ services/ecs/struct_account_limit.go | 23 +++ services/ecs/struct_account_limit_type_set.go | 22 +++ services/ecs/struct_auto_reboot_info.go | 25 +++ services/ecs/struct_auto_reboot_infos.go | 22 +++ services/ecs/struct_capacity_reservation.go | 35 ++++ services/ecs/struct_capacity_reservations.go | 22 +++ services/ecs/struct_configuration_item.go | 31 ++++ services/ecs/struct_configuration_item_set.go | 22 +++ services/ecs/struct_coupon.go | 26 +++ services/ecs/struct_coupons.go | 22 +++ ...ost_id_sets_in_allocate_dedicated_hosts.go | 22 +++ ...d_host_id_sets_in_renew_dedicated_hosts.go | 22 +++ .../ecs/struct_disk_id_in_create_disks.go | 22 +++ ...ct_disk_id_in_create_disks_gated_launch.go | 22 +++ services/ecs/struct_filter_attribute.go | 25 +++ services/ecs/struct_filter_attributes.go | 22 +++ services/ecs/struct_instance.go | 8 +- services/ecs/struct_instance_id_set.go | 22 +++ ...truct_instance_id_sets_in_run_instances.go | 22 +++ ...e_id_sets_in_run_instances_gated_launch.go | 22 +++ services/ecs/struct_instance_info.go | 22 +++ services/ecs/struct_instance_type.go | 4 +- services/ecs/struct_instances.go | 22 +++ services/ecs/struct_kms_key.go | 23 +++ services/ecs/struct_kms_key_ids.go | 22 +++ services/ecs/struct_kms_keys.go | 22 +++ services/ecs/struct_limit_value_set.go | 22 +++ services/ecs/struct_network_interface_ids.go | 22 +++ services/ecs/struct_network_interfaces.go | 22 +++ services/ecs/struct_order.go | 30 ++++ .../struct_order_params_in_create_order.go | 22 +++ .../struct_order_params_in_describe_price.go | 22 +++ services/ecs/struct_price.go | 2 +- services/ecs/struct_price_info.go | 2 +- services/ecs/struct_price_warning.go | 23 +++ services/ecs/struct_qos_group.go | 29 ++++ services/ecs/struct_qos_group_info.go | 24 +++ services/ecs/struct_recommend_filter.go | 25 +++ services/ecs/struct_recommend_filters.go | 22 +++ services/ecs/struct_related_order_ids.go | 22 +++ services/ecs/struct_related_order_item_set.go | 23 +++ .../ecs/struct_related_order_item_sets.go | 22 +++ services/ecs/struct_resource_price_model.go | 2 +- ...rule_id_set_in_describe_bandwidth_price.go | 22 +++ .../struct_rule_id_set_in_describe_price.go | 22 +++ ...truct_rules_in_describe_bandwidth_price.go | 22 +++ services/ecs/struct_subscription.go | 24 +++ services/ecs/struct_subscription_set.go | 22 +++ ...milies_in_describe_dedicated_host_types.go | 22 +++ ...pe_families_in_describe_dedicated_hosts.go | 22 +++ ...s_list_in_describe_dedicated_host_types.go | 22 +++ ..._types_list_in_describe_dedicated_hosts.go | 22 +++ services/ecs/struct_support_operations.go | 22 +++ ...uct_tags_in_describe_reserved_instances.go | 22 +++ ...struct_tags_in_get_launch_template_data.go | 22 +++ services/ecs/struct_values.go | 22 +++ .../struct_volume_ids_in_create_volumes.go | 22 +++ ...lume_ids_in_create_volumes_gated_launch.go | 22 +++ 96 files changed, 5625 insertions(+), 9 deletions(-) create mode 100644 services/ecs/create_capacity_reservation.go create mode 100644 services/ecs/create_config_log_subscriptions.go create mode 100644 services/ecs/create_disks.go create mode 100644 services/ecs/create_disks__gated_launch.go create mode 100644 services/ecs/create_eni_qos_group.go create mode 100644 services/ecs/create_order.go create mode 100644 services/ecs/create_volumes.go create mode 100644 services/ecs/create_volumes__gated_launch.go create mode 100644 services/ecs/delete_config_log_subscriptions.go create mode 100644 services/ecs/delete_eni_qos_group.go create mode 100644 services/ecs/describe_account_limits.go create mode 100644 services/ecs/describe_bandwidth_price.go create mode 100644 services/ecs/describe_capacity_reservations.go create mode 100644 services/ecs/describe_config_log_history.go create mode 100644 services/ecs/describe_config_log_subscription.go create mode 100644 services/ecs/describe_eni_qos_group_info.go create mode 100644 services/ecs/describe_instance_auto_reboot_time.go create mode 100644 services/ecs/describe_instance_need_reboot.go create mode 100644 services/ecs/describe_kms_key_attribute.go create mode 100644 services/ecs/describe_kms_keys.go create mode 100644 services/ecs/describe_linked_kms_keys.go create mode 100644 services/ecs/describe_reserved_instance_price.go create mode 100644 services/ecs/describe_resource_filter_attributes.go create mode 100644 services/ecs/describe_resource_recommend_filters.go create mode 100644 services/ecs/describe_resources.go create mode 100644 services/ecs/get_launch_template_data.go create mode 100644 services/ecs/join_eni_qos_group.go create mode 100644 services/ecs/leave_eni_qos_group.go create mode 100644 services/ecs/modify_capacity_reservation.go create mode 100644 services/ecs/modify_eni_qos_group.go create mode 100644 services/ecs/modify_instance_auto_reboot_time.go create mode 100644 services/ecs/modify_instance_capacity_reservation_attributes.go create mode 100644 services/ecs/query_eni_qos_group_by_eni.go create mode 100644 services/ecs/query_eni_qos_group_by_instance.go create mode 100644 services/ecs/release_capacity_reservation.go create mode 100644 services/ecs/run_instances__gated_launch.go create mode 100644 services/ecs/set_instance_auto_release_time.go create mode 100644 services/ecs/struct_account_limit.go create mode 100644 services/ecs/struct_account_limit_type_set.go create mode 100644 services/ecs/struct_auto_reboot_info.go create mode 100644 services/ecs/struct_auto_reboot_infos.go create mode 100644 services/ecs/struct_capacity_reservation.go create mode 100644 services/ecs/struct_capacity_reservations.go create mode 100644 services/ecs/struct_configuration_item.go create mode 100644 services/ecs/struct_configuration_item_set.go create mode 100644 services/ecs/struct_coupon.go create mode 100644 services/ecs/struct_coupons.go create mode 100644 services/ecs/struct_dedicated_host_id_sets_in_allocate_dedicated_hosts.go create mode 100644 services/ecs/struct_dedicated_host_id_sets_in_renew_dedicated_hosts.go create mode 100644 services/ecs/struct_disk_id_in_create_disks.go create mode 100644 services/ecs/struct_disk_id_in_create_disks_gated_launch.go create mode 100644 services/ecs/struct_filter_attribute.go create mode 100644 services/ecs/struct_filter_attributes.go create mode 100644 services/ecs/struct_instance_id_set.go create mode 100644 services/ecs/struct_instance_id_sets_in_run_instances.go create mode 100644 services/ecs/struct_instance_id_sets_in_run_instances_gated_launch.go create mode 100644 services/ecs/struct_instance_info.go create mode 100644 services/ecs/struct_instances.go create mode 100644 services/ecs/struct_kms_key.go create mode 100644 services/ecs/struct_kms_key_ids.go create mode 100644 services/ecs/struct_kms_keys.go create mode 100644 services/ecs/struct_limit_value_set.go create mode 100644 services/ecs/struct_network_interface_ids.go create mode 100644 services/ecs/struct_network_interfaces.go create mode 100644 services/ecs/struct_order.go create mode 100644 services/ecs/struct_order_params_in_create_order.go create mode 100644 services/ecs/struct_order_params_in_describe_price.go create mode 100644 services/ecs/struct_price_warning.go create mode 100644 services/ecs/struct_qos_group.go create mode 100644 services/ecs/struct_qos_group_info.go create mode 100644 services/ecs/struct_recommend_filter.go create mode 100644 services/ecs/struct_recommend_filters.go create mode 100644 services/ecs/struct_related_order_ids.go create mode 100644 services/ecs/struct_related_order_item_set.go create mode 100644 services/ecs/struct_related_order_item_sets.go create mode 100644 services/ecs/struct_rule_id_set_in_describe_bandwidth_price.go create mode 100644 services/ecs/struct_rule_id_set_in_describe_price.go create mode 100644 services/ecs/struct_rules_in_describe_bandwidth_price.go create mode 100644 services/ecs/struct_subscription.go create mode 100644 services/ecs/struct_subscription_set.go create mode 100644 services/ecs/struct_support_instance_type_families_in_describe_dedicated_host_types.go create mode 100644 services/ecs/struct_support_instance_type_families_in_describe_dedicated_hosts.go create mode 100644 services/ecs/struct_support_instance_types_list_in_describe_dedicated_host_types.go create mode 100644 services/ecs/struct_support_instance_types_list_in_describe_dedicated_hosts.go create mode 100644 services/ecs/struct_support_operations.go create mode 100644 services/ecs/struct_tags_in_describe_reserved_instances.go create mode 100644 services/ecs/struct_tags_in_get_launch_template_data.go create mode 100644 services/ecs/struct_values.go create mode 100644 services/ecs/struct_volume_ids_in_create_volumes.go create mode 100644 services/ecs/struct_volume_ids_in_create_volumes_gated_launch.go diff --git a/ChangeLog.txt b/ChangeLog.txt index ea2caea86e..e2bc49221a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,6 @@ +2019-05-16 Version: 1.58.16 +- Generated 2014-05-26, 2016-03-14 for `Ecs` + 2019-05-16 Version: 1.58.15 - Generated 2017-12-14 for `BssOpenApi` diff --git a/services/ecs/create_capacity_reservation.go b/services/ecs/create_capacity_reservation.go new file mode 100644 index 0000000000..518df316a2 --- /dev/null +++ b/services/ecs/create_capacity_reservation.go @@ -0,0 +1,128 @@ + +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" +) + +// CreateCapacityReservation invokes the ecs.CreateCapacityReservation API synchronously +// api document: https://help.aliyun.com/api/ecs/createcapacityreservation.html +func (client *Client) CreateCapacityReservation(request *CreateCapacityReservationRequest) (response *CreateCapacityReservationResponse, err error) { +response = CreateCreateCapacityReservationResponse() +err = client.DoAction(request, response) +return +} + +// CreateCapacityReservationWithChan invokes the ecs.CreateCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/createcapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCapacityReservationWithChan(request *CreateCapacityReservationRequest) (<-chan *CreateCapacityReservationResponse, <-chan error) { +responseChan := make(chan *CreateCapacityReservationResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateCapacityReservation(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateCapacityReservationWithCallback invokes the ecs.CreateCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/createcapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateCapacityReservationWithCallback(request *CreateCapacityReservationRequest, callback func(response *CreateCapacityReservationResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateCapacityReservationResponse +var err error +defer close(result) +response, err = client.CreateCapacityReservation(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateCapacityReservationRequest is the request struct for api CreateCapacityReservation +type CreateCapacityReservationRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + NetworkType string `position:"Query" name:"NetworkType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + InstanceCount string `position:"Query" name:"InstanceCount"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]CreateCapacityReservationTag `position:"Query" name:"Tag" type:"Repeated"` + InstancePlatform string `position:"Query" name:"InstancePlatform"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EndDateType string `position:"Query" name:"EndDateType"` + InstanceMatchCriteria string `position:"Query" name:"InstanceMatchCriteria"` + TimeSlot string `position:"Query" name:"TimeSlot"` + CapacityReservationName string `position:"Query" name:"CapacityReservationName"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// CreateCapacityReservationTag is a repeated param struct in CreateCapacityReservationRequest +type CreateCapacityReservationTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateCapacityReservationResponse is the response struct for api CreateCapacityReservation +type CreateCapacityReservationResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CapacityReservationId string `json:"CapacityReservationId" xml:"CapacityReservationId"` +} + +// CreateCreateCapacityReservationRequest creates a request to invoke CreateCapacityReservation API +func CreateCreateCapacityReservationRequest() (request *CreateCapacityReservationRequest) { +request = &CreateCapacityReservationRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateCapacityReservation", "", "") +return +} + +// CreateCreateCapacityReservationResponse creates a response to parse from CreateCapacityReservation response +func CreateCreateCapacityReservationResponse() (response *CreateCapacityReservationResponse) { +response = &CreateCapacityReservationResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_config_log_subscriptions.go b/services/ecs/create_config_log_subscriptions.go new file mode 100644 index 0000000000..07ee115546 --- /dev/null +++ b/services/ecs/create_config_log_subscriptions.go @@ -0,0 +1,117 @@ + +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" +) + +// CreateConfigLogSubscriptions invokes the ecs.CreateConfigLogSubscriptions API synchronously +// api document: https://help.aliyun.com/api/ecs/createconfiglogsubscriptions.html +func (client *Client) CreateConfigLogSubscriptions(request *CreateConfigLogSubscriptionsRequest) (response *CreateConfigLogSubscriptionsResponse, err error) { +response = CreateCreateConfigLogSubscriptionsResponse() +err = client.DoAction(request, response) +return +} + +// CreateConfigLogSubscriptionsWithChan invokes the ecs.CreateConfigLogSubscriptions API asynchronously +// api document: https://help.aliyun.com/api/ecs/createconfiglogsubscriptions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateConfigLogSubscriptionsWithChan(request *CreateConfigLogSubscriptionsRequest) (<-chan *CreateConfigLogSubscriptionsResponse, <-chan error) { +responseChan := make(chan *CreateConfigLogSubscriptionsResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateConfigLogSubscriptions(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateConfigLogSubscriptionsWithCallback invokes the ecs.CreateConfigLogSubscriptions API asynchronously +// api document: https://help.aliyun.com/api/ecs/createconfiglogsubscriptions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateConfigLogSubscriptionsWithCallback(request *CreateConfigLogSubscriptionsRequest, callback func(response *CreateConfigLogSubscriptionsResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateConfigLogSubscriptionsResponse +var err error +defer close(result) +response, err = client.CreateConfigLogSubscriptions(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateConfigLogSubscriptionsRequest is the request struct for api CreateConfigLogSubscriptions +type CreateConfigLogSubscriptionsRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Subscription *[]CreateConfigLogSubscriptionsSubscription `position:"Query" name:"Subscription" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CreateConfigLogSubscriptionsSubscription is a repeated param struct in CreateConfigLogSubscriptionsRequest +type CreateConfigLogSubscriptionsSubscription struct{ + Name string `name:"Name"` + ResourceType string `name:"ResourceType"` + MnsQueueArn string `name:"MnsQueueArn"` +} + +// CreateConfigLogSubscriptionsResponse is the response struct for api CreateConfigLogSubscriptions +type CreateConfigLogSubscriptionsResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateConfigLogSubscriptionsRequest creates a request to invoke CreateConfigLogSubscriptions API +func CreateCreateConfigLogSubscriptionsRequest() (request *CreateConfigLogSubscriptionsRequest) { +request = &CreateConfigLogSubscriptionsRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateConfigLogSubscriptions", "", "") +return +} + +// CreateCreateConfigLogSubscriptionsResponse creates a response to parse from CreateConfigLogSubscriptions response +func CreateCreateConfigLogSubscriptionsResponse() (response *CreateConfigLogSubscriptionsResponse) { +response = &CreateConfigLogSubscriptionsResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_disks.go b/services/ecs/create_disks.go new file mode 100644 index 0000000000..cd6728017d --- /dev/null +++ b/services/ecs/create_disks.go @@ -0,0 +1,128 @@ + +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" +) + +// CreateDisks invokes the ecs.CreateDisks API synchronously +// api document: https://help.aliyun.com/api/ecs/createdisks.html +func (client *Client) CreateDisks(request *CreateDisksRequest) (response *CreateDisksResponse, err error) { +response = CreateCreateDisksResponse() +err = client.DoAction(request, response) +return +} + +// CreateDisksWithChan invokes the ecs.CreateDisks API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDisksWithChan(request *CreateDisksRequest) (<-chan *CreateDisksResponse, <-chan error) { +responseChan := make(chan *CreateDisksResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateDisks(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateDisksWithCallback invokes the ecs.CreateDisks API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisks.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDisksWithCallback(request *CreateDisksRequest, callback func(response *CreateDisksResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateDisksResponse +var err error +defer close(result) +response, err = client.CreateDisks(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateDisksRequest is the request struct for api CreateDisks +type CreateDisksRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + DiskName string `position:"Query" name:"DiskName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateDisksTag `position:"Query" name:"Tag" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Size requests.Integer `position:"Query" name:"Size"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + ZoneId string `position:"Query" name:"ZoneId"` + Category string `position:"Query" name:"Category"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` +} + +// CreateDisksTag is a repeated param struct in CreateDisksRequest +type CreateDisksTag struct{ + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateDisksResponse is the response struct for api CreateDisks +type CreateDisksResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DiskId DiskIdInCreateDisks `json:"DiskId" xml:"DiskId"` +} + +// CreateCreateDisksRequest creates a request to invoke CreateDisks API +func CreateCreateDisksRequest() (request *CreateDisksRequest) { +request = &CreateDisksRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateDisks", "", "") +return +} + +// CreateCreateDisksResponse creates a response to parse from CreateDisks response +func CreateCreateDisksResponse() (response *CreateDisksResponse) { +response = &CreateDisksResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_disks__gated_launch.go b/services/ecs/create_disks__gated_launch.go new file mode 100644 index 0000000000..2426236d6e --- /dev/null +++ b/services/ecs/create_disks__gated_launch.go @@ -0,0 +1,125 @@ + +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" +) + +// CreateDisks_GatedLaunch invokes the ecs.CreateDisks_GatedLaunch API synchronously +// api document: https://help.aliyun.com/api/ecs/createdisks_gatedlaunch.html +func (client *Client) CreateDisks_GatedLaunch(request *CreateDisks_GatedLaunchRequest) (response *CreateDisks_GatedLaunchResponse, err error) { +response = CreateCreateDisks_GatedLaunchResponse() +err = client.DoAction(request, response) +return +} + +// CreateDisks_GatedLaunchWithChan invokes the ecs.CreateDisks_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisks_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDisks_GatedLaunchWithChan(request *CreateDisks_GatedLaunchRequest) (<-chan *CreateDisks_GatedLaunchResponse, <-chan error) { +responseChan := make(chan *CreateDisks_GatedLaunchResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateDisks_GatedLaunch(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateDisks_GatedLaunchWithCallback invokes the ecs.CreateDisks_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createdisks_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateDisks_GatedLaunchWithCallback(request *CreateDisks_GatedLaunchRequest, callback func(response *CreateDisks_GatedLaunchResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateDisks_GatedLaunchResponse +var err error +defer close(result) +response, err = client.CreateDisks_GatedLaunch(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateDisks_GatedLaunchRequest is the request struct for api CreateDisks_GatedLaunch +type CreateDisks_GatedLaunchRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + DiskName string `position:"Query" name:"DiskName"` + Tag *[]CreateDisks_GatedLaunchTag `position:"Query" name:"Tag" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Size requests.Integer `position:"Query" name:"Size"` + ZoneId string `position:"Query" name:"ZoneId"` + Category string `position:"Query" name:"Category"` +} + +// CreateDisks_GatedLaunchTag is a repeated param struct in CreateDisks_GatedLaunchRequest +type CreateDisks_GatedLaunchTag struct{ + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateDisks_GatedLaunchResponse is the response struct for api CreateDisks_GatedLaunch +type CreateDisks_GatedLaunchResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DiskId DiskIdInCreateDisksGatedLaunch `json:"DiskId" xml:"DiskId"` +} + +// CreateCreateDisks_GatedLaunchRequest creates a request to invoke CreateDisks_GatedLaunch API +func CreateCreateDisks_GatedLaunchRequest() (request *CreateDisks_GatedLaunchRequest) { +request = &CreateDisks_GatedLaunchRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateDisks_GatedLaunch", "", "") +return +} + +// CreateCreateDisks_GatedLaunchResponse creates a response to parse from CreateDisks_GatedLaunch response +func CreateCreateDisks_GatedLaunchResponse() (response *CreateDisks_GatedLaunchResponse) { +response = &CreateDisks_GatedLaunchResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_eni_qos_group.go b/services/ecs/create_eni_qos_group.go new file mode 100644 index 0000000000..17bf21c551 --- /dev/null +++ b/services/ecs/create_eni_qos_group.go @@ -0,0 +1,116 @@ + +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" +) + +// CreateEniQosGroup invokes the ecs.CreateEniQosGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/createeniqosgroup.html +func (client *Client) CreateEniQosGroup(request *CreateEniQosGroupRequest) (response *CreateEniQosGroupResponse, err error) { +response = CreateCreateEniQosGroupResponse() +err = client.DoAction(request, response) +return +} + +// CreateEniQosGroupWithChan invokes the ecs.CreateEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/createeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateEniQosGroupWithChan(request *CreateEniQosGroupRequest) (<-chan *CreateEniQosGroupResponse, <-chan error) { +responseChan := make(chan *CreateEniQosGroupResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateEniQosGroup(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateEniQosGroupWithCallback invokes the ecs.CreateEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/createeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateEniQosGroupWithCallback(request *CreateEniQosGroupRequest, callback func(response *CreateEniQosGroupResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateEniQosGroupResponse +var err error +defer close(result) +response, err = client.CreateEniQosGroup(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateEniQosGroupRequest is the request struct for api CreateEniQosGroup +type CreateEniQosGroupRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tx requests.Integer `position:"Query" name:"Tx"` + Rx requests.Integer `position:"Query" name:"Rx"` + RxPps requests.Integer `position:"Query" name:"RxPps"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosGroupName string `position:"Query" name:"QosGroupName"` + InstanceId string `position:"Query" name:"InstanceId"` + TxPps requests.Integer `position:"Query" name:"TxPps"` +} + + +// CreateEniQosGroupResponse is the response struct for api CreateEniQosGroup +type CreateEniQosGroupResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosGroupName string `json:"QosGroupName" xml:"QosGroupName"` +} + +// CreateCreateEniQosGroupRequest creates a request to invoke CreateEniQosGroup API +func CreateCreateEniQosGroupRequest() (request *CreateEniQosGroupRequest) { +request = &CreateEniQosGroupRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateEniQosGroup", "", "") +return +} + +// CreateCreateEniQosGroupResponse creates a response to parse from CreateEniQosGroup response +func CreateCreateEniQosGroupResponse() (response *CreateEniQosGroupResponse) { +response = &CreateEniQosGroupResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_order.go b/services/ecs/create_order.go new file mode 100644 index 0000000000..502eb61131 --- /dev/null +++ b/services/ecs/create_order.go @@ -0,0 +1,124 @@ + +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" +) + +// CreateOrder invokes the ecs.CreateOrder API synchronously +// api document: https://help.aliyun.com/api/ecs/createorder.html +func (client *Client) CreateOrder(request *CreateOrderRequest) (response *CreateOrderResponse, err error) { +response = CreateCreateOrderResponse() +err = client.DoAction(request, response) +return +} + +// CreateOrderWithChan invokes the ecs.CreateOrder API asynchronously +// api document: https://help.aliyun.com/api/ecs/createorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOrderWithChan(request *CreateOrderRequest) (<-chan *CreateOrderResponse, <-chan error) { +responseChan := make(chan *CreateOrderResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateOrder(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateOrderWithCallback invokes the ecs.CreateOrder API asynchronously +// api document: https://help.aliyun.com/api/ecs/createorder.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateOrderWithCallback(request *CreateOrderRequest, callback func(response *CreateOrderResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateOrderResponse +var err error +defer close(result) +response, err = client.CreateOrder(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateOrderRequest is the request struct for api CreateOrder +type CreateOrderRequest struct { +*requests.RpcRequest + Commodity string `position:"Query" name:"Commodity"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AsyncPattern requests.Boolean `position:"Query" name:"AsyncPattern"` + ClientToken string `position:"Query" name:"ClientToken"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` + FromApp string `position:"Query" name:"FromApp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Tenancy string `position:"Query" name:"Tenancy"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ChargeType string `position:"Query" name:"ChargeType"` + OrderType string `position:"Query" name:"OrderType"` + Affinity string `position:"Query" name:"Affinity"` +} + + +// CreateOrderResponse is the response struct for api CreateOrder +type CreateOrderResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` + TaskId string `json:"TaskId" xml:"TaskId"` + OrderParams OrderParamsInCreateOrder `json:"OrderParams" xml:"OrderParams"` + RelatedOrderItemSets RelatedOrderItemSets `json:"RelatedOrderItemSets" xml:"RelatedOrderItemSets"` +} + +// CreateCreateOrderRequest creates a request to invoke CreateOrder API +func CreateCreateOrderRequest() (request *CreateOrderRequest) { +request = &CreateOrderRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateOrder", "", "") +return +} + +// CreateCreateOrderResponse creates a response to parse from CreateOrder response +func CreateCreateOrderResponse() (response *CreateOrderResponse) { +response = &CreateOrderResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_volumes.go b/services/ecs/create_volumes.go new file mode 100644 index 0000000000..1fc45499e6 --- /dev/null +++ b/services/ecs/create_volumes.go @@ -0,0 +1,127 @@ + +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" +) + +// CreateVolumes invokes the ecs.CreateVolumes API synchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes.html +func (client *Client) CreateVolumes(request *CreateVolumesRequest) (response *CreateVolumesResponse, err error) { +response = CreateCreateVolumesResponse() +err = client.DoAction(request, response) +return +} + +// CreateVolumesWithChan invokes the ecs.CreateVolumes API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVolumesWithChan(request *CreateVolumesRequest) (<-chan *CreateVolumesResponse, <-chan error) { +responseChan := make(chan *CreateVolumesResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateVolumes(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateVolumesWithCallback invokes the ecs.CreateVolumes API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVolumesWithCallback(request *CreateVolumesRequest, callback func(response *CreateVolumesResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateVolumesResponse +var err error +defer close(result) +response, err = client.CreateVolumes(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateVolumesRequest is the request struct for api CreateVolumes +type CreateVolumesRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + VolumeCategory string `position:"Query" name:"VolumeCategory"` + Tag *[]CreateVolumesTag `position:"Query" name:"Tag" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + VolumeName string `position:"Query" name:"VolumeName"` + VolumeEncrypted requests.Boolean `position:"Query" name:"VolumeEncrypted"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Size requests.Integer `position:"Query" name:"Size"` + ZoneId string `position:"Query" name:"ZoneId"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` +} + +// CreateVolumesTag is a repeated param struct in CreateVolumesRequest +type CreateVolumesTag struct{ + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateVolumesResponse is the response struct for api CreateVolumes +type CreateVolumesResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VolumeIds VolumeIdsInCreateVolumes `json:"VolumeIds" xml:"VolumeIds"` +} + +// CreateCreateVolumesRequest creates a request to invoke CreateVolumes API +func CreateCreateVolumesRequest() (request *CreateVolumesRequest) { +request = &CreateVolumesRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateVolumes", "", "") +return +} + +// CreateCreateVolumesResponse creates a response to parse from CreateVolumes response +func CreateCreateVolumesResponse() (response *CreateVolumesResponse) { +response = &CreateVolumesResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/create_volumes__gated_launch.go b/services/ecs/create_volumes__gated_launch.go new file mode 100644 index 0000000000..23ef268459 --- /dev/null +++ b/services/ecs/create_volumes__gated_launch.go @@ -0,0 +1,125 @@ + +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" +) + +// CreateVolumes_GatedLaunch invokes the ecs.CreateVolumes_GatedLaunch API synchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes_gatedlaunch.html +func (client *Client) CreateVolumes_GatedLaunch(request *CreateVolumes_GatedLaunchRequest) (response *CreateVolumes_GatedLaunchResponse, err error) { +response = CreateCreateVolumes_GatedLaunchResponse() +err = client.DoAction(request, response) +return +} + +// CreateVolumes_GatedLaunchWithChan invokes the ecs.CreateVolumes_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVolumes_GatedLaunchWithChan(request *CreateVolumes_GatedLaunchRequest) (<-chan *CreateVolumes_GatedLaunchResponse, <-chan error) { +responseChan := make(chan *CreateVolumes_GatedLaunchResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.CreateVolumes_GatedLaunch(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// CreateVolumes_GatedLaunchWithCallback invokes the ecs.CreateVolumes_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/createvolumes_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) CreateVolumes_GatedLaunchWithCallback(request *CreateVolumes_GatedLaunchRequest, callback func(response *CreateVolumes_GatedLaunchResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *CreateVolumes_GatedLaunchResponse +var err error +defer close(result) +response, err = client.CreateVolumes_GatedLaunch(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// CreateVolumes_GatedLaunchRequest is the request struct for api CreateVolumes_GatedLaunch +type CreateVolumes_GatedLaunchRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + VolumeCategory string `position:"Query" name:"VolumeCategory"` + Tag *[]CreateVolumes_GatedLaunchTag `position:"Query" name:"Tag" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + VolumeName string `position:"Query" name:"VolumeName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Size requests.Integer `position:"Query" name:"Size"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// CreateVolumes_GatedLaunchTag is a repeated param struct in CreateVolumes_GatedLaunchRequest +type CreateVolumes_GatedLaunchTag struct{ + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateVolumes_GatedLaunchResponse is the response struct for api CreateVolumes_GatedLaunch +type CreateVolumes_GatedLaunchResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + VolumeIds VolumeIdsInCreateVolumesGatedLaunch `json:"VolumeIds" xml:"VolumeIds"` +} + +// CreateCreateVolumes_GatedLaunchRequest creates a request to invoke CreateVolumes_GatedLaunch API +func CreateCreateVolumes_GatedLaunchRequest() (request *CreateVolumes_GatedLaunchRequest) { +request = &CreateVolumes_GatedLaunchRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "CreateVolumes_GatedLaunch", "", "") +return +} + +// CreateCreateVolumes_GatedLaunchResponse creates a response to parse from CreateVolumes_GatedLaunch response +func CreateCreateVolumes_GatedLaunchResponse() (response *CreateVolumes_GatedLaunchResponse) { +response = &CreateVolumes_GatedLaunchResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/delete_config_log_subscriptions.go b/services/ecs/delete_config_log_subscriptions.go new file mode 100644 index 0000000000..a705b618fe --- /dev/null +++ b/services/ecs/delete_config_log_subscriptions.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" +) + +// DeleteConfigLogSubscriptions invokes the ecs.DeleteConfigLogSubscriptions API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteconfiglogsubscriptions.html +func (client *Client) DeleteConfigLogSubscriptions(request *DeleteConfigLogSubscriptionsRequest) (response *DeleteConfigLogSubscriptionsResponse, err error) { +response = CreateDeleteConfigLogSubscriptionsResponse() +err = client.DoAction(request, response) +return +} + +// DeleteConfigLogSubscriptionsWithChan invokes the ecs.DeleteConfigLogSubscriptions API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteconfiglogsubscriptions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteConfigLogSubscriptionsWithChan(request *DeleteConfigLogSubscriptionsRequest) (<-chan *DeleteConfigLogSubscriptionsResponse, <-chan error) { +responseChan := make(chan *DeleteConfigLogSubscriptionsResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DeleteConfigLogSubscriptions(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DeleteConfigLogSubscriptionsWithCallback invokes the ecs.DeleteConfigLogSubscriptions API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteconfiglogsubscriptions.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteConfigLogSubscriptionsWithCallback(request *DeleteConfigLogSubscriptionsRequest, callback func(response *DeleteConfigLogSubscriptionsResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DeleteConfigLogSubscriptionsResponse +var err error +defer close(result) +response, err = client.DeleteConfigLogSubscriptions(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DeleteConfigLogSubscriptionsRequest is the request struct for api DeleteConfigLogSubscriptions +type DeleteConfigLogSubscriptionsRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name *[]string `position:"Query" name:"Name" type:"Repeated"` +} + + +// DeleteConfigLogSubscriptionsResponse is the response struct for api DeleteConfigLogSubscriptions +type DeleteConfigLogSubscriptionsResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteConfigLogSubscriptionsRequest creates a request to invoke DeleteConfigLogSubscriptions API +func CreateDeleteConfigLogSubscriptionsRequest() (request *DeleteConfigLogSubscriptionsRequest) { +request = &DeleteConfigLogSubscriptionsRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DeleteConfigLogSubscriptions", "", "") +return +} + +// CreateDeleteConfigLogSubscriptionsResponse creates a response to parse from DeleteConfigLogSubscriptions response +func CreateDeleteConfigLogSubscriptionsResponse() (response *DeleteConfigLogSubscriptionsResponse) { +response = &DeleteConfigLogSubscriptionsResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/delete_eni_qos_group.go b/services/ecs/delete_eni_qos_group.go new file mode 100644 index 0000000000..187f23be7a --- /dev/null +++ b/services/ecs/delete_eni_qos_group.go @@ -0,0 +1,110 @@ + +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" +) + +// DeleteEniQosGroup invokes the ecs.DeleteEniQosGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/deleteeniqosgroup.html +func (client *Client) DeleteEniQosGroup(request *DeleteEniQosGroupRequest) (response *DeleteEniQosGroupResponse, err error) { +response = CreateDeleteEniQosGroupResponse() +err = client.DoAction(request, response) +return +} + +// DeleteEniQosGroupWithChan invokes the ecs.DeleteEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEniQosGroupWithChan(request *DeleteEniQosGroupRequest) (<-chan *DeleteEniQosGroupResponse, <-chan error) { +responseChan := make(chan *DeleteEniQosGroupResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DeleteEniQosGroup(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DeleteEniQosGroupWithCallback invokes the ecs.DeleteEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/deleteeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteEniQosGroupWithCallback(request *DeleteEniQosGroupRequest, callback func(response *DeleteEniQosGroupResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DeleteEniQosGroupResponse +var err error +defer close(result) +response, err = client.DeleteEniQosGroup(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DeleteEniQosGroupRequest is the request struct for api DeleteEniQosGroup +type DeleteEniQosGroupRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosGroupName string `position:"Query" name:"QosGroupName"` +} + + +// DeleteEniQosGroupResponse is the response struct for api DeleteEniQosGroup +type DeleteEniQosGroupResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteEniQosGroupRequest creates a request to invoke DeleteEniQosGroup API +func CreateDeleteEniQosGroupRequest() (request *DeleteEniQosGroupRequest) { +request = &DeleteEniQosGroupRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DeleteEniQosGroup", "", "") +return +} + +// CreateDeleteEniQosGroupResponse creates a response to parse from DeleteEniQosGroup response +func CreateDeleteEniQosGroupResponse() (response *DeleteEniQosGroupResponse) { +response = &DeleteEniQosGroupResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_account_limits.go b/services/ecs/describe_account_limits.go new file mode 100644 index 0000000000..eed9f82664 --- /dev/null +++ b/services/ecs/describe_account_limits.go @@ -0,0 +1,117 @@ + +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" +) + +// DescribeAccountLimits invokes the ecs.DescribeAccountLimits API synchronously +// api document: https://help.aliyun.com/api/ecs/describeaccountlimits.html +func (client *Client) DescribeAccountLimits(request *DescribeAccountLimitsRequest) (response *DescribeAccountLimitsResponse, err error) { +response = CreateDescribeAccountLimitsResponse() +err = client.DoAction(request, response) +return +} + +// DescribeAccountLimitsWithChan invokes the ecs.DescribeAccountLimits API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeaccountlimits.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountLimitsWithChan(request *DescribeAccountLimitsRequest) (<-chan *DescribeAccountLimitsResponse, <-chan error) { +responseChan := make(chan *DescribeAccountLimitsResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeAccountLimits(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeAccountLimitsWithCallback invokes the ecs.DescribeAccountLimits API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeaccountlimits.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeAccountLimitsWithCallback(request *DescribeAccountLimitsRequest, callback func(response *DescribeAccountLimitsResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeAccountLimitsResponse +var err error +defer close(result) +response, err = client.DescribeAccountLimits(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeAccountLimitsRequest is the request struct for api DescribeAccountLimits +type DescribeAccountLimitsRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]DescribeAccountLimitsFilter `position:"Query" name:"Filter" type:"Repeated"` +} + +// DescribeAccountLimitsFilter is a repeated param struct in DescribeAccountLimitsRequest +type DescribeAccountLimitsFilter struct{ + Value *[] string `name:"Value" type:"Repeated"` + Key string `name:"Key"` +} + +// DescribeAccountLimitsResponse is the response struct for api DescribeAccountLimits +type DescribeAccountLimitsResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AccountLimitTypeSet AccountLimitTypeSet `json:"AccountLimitTypeSet" xml:"AccountLimitTypeSet"` +} + +// CreateDescribeAccountLimitsRequest creates a request to invoke DescribeAccountLimits API +func CreateDescribeAccountLimitsRequest() (request *DescribeAccountLimitsRequest) { +request = &DescribeAccountLimitsRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeAccountLimits", "", "") +return +} + +// CreateDescribeAccountLimitsResponse creates a response to parse from DescribeAccountLimits response +func CreateDescribeAccountLimitsResponse() (response *DescribeAccountLimitsResponse) { +response = &DescribeAccountLimitsResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_bandwidth_price.go b/services/ecs/describe_bandwidth_price.go new file mode 100644 index 0000000000..0577d3c2b5 --- /dev/null +++ b/services/ecs/describe_bandwidth_price.go @@ -0,0 +1,113 @@ + +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" +) + +// DescribeBandwidthPrice invokes the ecs.DescribeBandwidthPrice API synchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthprice.html +func (client *Client) DescribeBandwidthPrice(request *DescribeBandwidthPriceRequest) (response *DescribeBandwidthPriceResponse, err error) { +response = CreateDescribeBandwidthPriceResponse() +err = client.DoAction(request, response) +return +} + +// DescribeBandwidthPriceWithChan invokes the ecs.DescribeBandwidthPrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPriceWithChan(request *DescribeBandwidthPriceRequest) (<-chan *DescribeBandwidthPriceResponse, <-chan error) { +responseChan := make(chan *DescribeBandwidthPriceResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeBandwidthPrice(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeBandwidthPriceWithCallback invokes the ecs.DescribeBandwidthPrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describebandwidthprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeBandwidthPriceWithCallback(request *DescribeBandwidthPriceRequest, callback func(response *DescribeBandwidthPriceResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeBandwidthPriceResponse +var err error +defer close(result) +response, err = client.DescribeBandwidthPrice(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeBandwidthPriceRequest is the request struct for api DescribeBandwidthPrice +type DescribeBandwidthPriceRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PriceUnit string `position:"Query" name:"PriceUnit"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Verbose requests.Boolean `position:"Query" name:"Verbose"` +} + + +// DescribeBandwidthPriceResponse is the response struct for api DescribeBandwidthPrice +type DescribeBandwidthPriceResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribeBandwidthPriceRequest creates a request to invoke DescribeBandwidthPrice API +func CreateDescribeBandwidthPriceRequest() (request *DescribeBandwidthPriceRequest) { +request = &DescribeBandwidthPriceRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeBandwidthPrice", "", "") +return +} + +// CreateDescribeBandwidthPriceResponse creates a response to parse from DescribeBandwidthPrice response +func CreateDescribeBandwidthPriceResponse() (response *DescribeBandwidthPriceResponse) { +response = &DescribeBandwidthPriceResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_capacity_reservations.go b/services/ecs/describe_capacity_reservations.go new file mode 100644 index 0000000000..67407b623e --- /dev/null +++ b/services/ecs/describe_capacity_reservations.go @@ -0,0 +1,126 @@ + +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" +) + +// DescribeCapacityReservations invokes the ecs.DescribeCapacityReservations API synchronously +// api document: https://help.aliyun.com/api/ecs/describecapacityreservations.html +func (client *Client) DescribeCapacityReservations(request *DescribeCapacityReservationsRequest) (response *DescribeCapacityReservationsResponse, err error) { +response = CreateDescribeCapacityReservationsResponse() +err = client.DoAction(request, response) +return +} + +// DescribeCapacityReservationsWithChan invokes the ecs.DescribeCapacityReservations API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecapacityreservations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCapacityReservationsWithChan(request *DescribeCapacityReservationsRequest) (<-chan *DescribeCapacityReservationsResponse, <-chan error) { +responseChan := make(chan *DescribeCapacityReservationsResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeCapacityReservations(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeCapacityReservationsWithCallback invokes the ecs.DescribeCapacityReservations API asynchronously +// api document: https://help.aliyun.com/api/ecs/describecapacityreservations.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeCapacityReservationsWithCallback(request *DescribeCapacityReservationsRequest, callback func(response *DescribeCapacityReservationsResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeCapacityReservationsResponse +var err error +defer close(result) +response, err = client.DescribeCapacityReservations(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeCapacityReservationsRequest is the request struct for api DescribeCapacityReservations +type DescribeCapacityReservationsRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeCapacityReservationsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CapacityReservationIds string `position:"Query" name:"CapacityReservationIds"` + CapacityReservationName string `position:"Query" name:"CapacityReservationName"` + ZoneId string `position:"Query" name:"ZoneId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeCapacityReservationsTag is a repeated param struct in DescribeCapacityReservationsRequest +type DescribeCapacityReservationsTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeCapacityReservationsResponse is the response struct for api DescribeCapacityReservations +type DescribeCapacityReservationsResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + CapacityReservations CapacityReservations `json:"CapacityReservations" xml:"CapacityReservations"` +} + +// CreateDescribeCapacityReservationsRequest creates a request to invoke DescribeCapacityReservations API +func CreateDescribeCapacityReservationsRequest() (request *DescribeCapacityReservationsRequest) { +request = &DescribeCapacityReservationsRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeCapacityReservations", "", "") +return +} + +// CreateDescribeCapacityReservationsResponse creates a response to parse from DescribeCapacityReservations response +func CreateDescribeCapacityReservationsResponse() (response *DescribeCapacityReservationsResponse) { +response = &DescribeCapacityReservationsResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_config_log_history.go b/services/ecs/describe_config_log_history.go new file mode 100644 index 0000000000..2b4445cf53 --- /dev/null +++ b/services/ecs/describe_config_log_history.go @@ -0,0 +1,121 @@ + +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" +) + +// DescribeConfigLogHistory invokes the ecs.DescribeConfigLogHistory API synchronously +// api document: https://help.aliyun.com/api/ecs/describeconfigloghistory.html +func (client *Client) DescribeConfigLogHistory(request *DescribeConfigLogHistoryRequest) (response *DescribeConfigLogHistoryResponse, err error) { +response = CreateDescribeConfigLogHistoryResponse() +err = client.DoAction(request, response) +return +} + +// DescribeConfigLogHistoryWithChan invokes the ecs.DescribeConfigLogHistory API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeconfigloghistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConfigLogHistoryWithChan(request *DescribeConfigLogHistoryRequest) (<-chan *DescribeConfigLogHistoryResponse, <-chan error) { +responseChan := make(chan *DescribeConfigLogHistoryResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeConfigLogHistory(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeConfigLogHistoryWithCallback invokes the ecs.DescribeConfigLogHistory API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeconfigloghistory.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConfigLogHistoryWithCallback(request *DescribeConfigLogHistoryRequest, callback func(response *DescribeConfigLogHistoryResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeConfigLogHistoryResponse +var err error +defer close(result) +response, err = client.DescribeConfigLogHistory(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeConfigLogHistoryRequest is the request struct for api DescribeConfigLogHistory +type DescribeConfigLogHistoryRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ChronologicalOrder string `position:"Query" name:"ChronologicalOrder"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + + +// DescribeConfigLogHistoryResponse is the response struct for api DescribeConfigLogHistory +type DescribeConfigLogHistoryResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + ConfigurationItemSet ConfigurationItemSet `json:"ConfigurationItemSet" xml:"ConfigurationItemSet"` +} + +// CreateDescribeConfigLogHistoryRequest creates a request to invoke DescribeConfigLogHistory API +func CreateDescribeConfigLogHistoryRequest() (request *DescribeConfigLogHistoryRequest) { +request = &DescribeConfigLogHistoryRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeConfigLogHistory", "", "") +return +} + +// CreateDescribeConfigLogHistoryResponse creates a response to parse from DescribeConfigLogHistory response +func CreateDescribeConfigLogHistoryResponse() (response *DescribeConfigLogHistoryResponse) { +response = &DescribeConfigLogHistoryResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_config_log_subscription.go b/services/ecs/describe_config_log_subscription.go new file mode 100644 index 0000000000..e9cfb5f90f --- /dev/null +++ b/services/ecs/describe_config_log_subscription.go @@ -0,0 +1,118 @@ + +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" +) + +// DescribeConfigLogSubscription invokes the ecs.DescribeConfigLogSubscription API synchronously +// api document: https://help.aliyun.com/api/ecs/describeconfiglogsubscription.html +func (client *Client) DescribeConfigLogSubscription(request *DescribeConfigLogSubscriptionRequest) (response *DescribeConfigLogSubscriptionResponse, err error) { +response = CreateDescribeConfigLogSubscriptionResponse() +err = client.DoAction(request, response) +return +} + +// DescribeConfigLogSubscriptionWithChan invokes the ecs.DescribeConfigLogSubscription API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeconfiglogsubscription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConfigLogSubscriptionWithChan(request *DescribeConfigLogSubscriptionRequest) (<-chan *DescribeConfigLogSubscriptionResponse, <-chan error) { +responseChan := make(chan *DescribeConfigLogSubscriptionResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeConfigLogSubscription(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeConfigLogSubscriptionWithCallback invokes the ecs.DescribeConfigLogSubscription API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeconfiglogsubscription.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeConfigLogSubscriptionWithCallback(request *DescribeConfigLogSubscriptionRequest, callback func(response *DescribeConfigLogSubscriptionResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeConfigLogSubscriptionResponse +var err error +defer close(result) +response, err = client.DescribeConfigLogSubscription(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeConfigLogSubscriptionRequest is the request struct for api DescribeConfigLogSubscription +type DescribeConfigLogSubscriptionRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + 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" type:"Repeated"` + Name *[]string `position:"Query" name:"Name" type:"Repeated"` +} + + +// DescribeConfigLogSubscriptionResponse is the response struct for api DescribeConfigLogSubscription +type DescribeConfigLogSubscriptionResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + SubscriptionSet SubscriptionSet `json:"SubscriptionSet" xml:"SubscriptionSet"` +} + +// CreateDescribeConfigLogSubscriptionRequest creates a request to invoke DescribeConfigLogSubscription API +func CreateDescribeConfigLogSubscriptionRequest() (request *DescribeConfigLogSubscriptionRequest) { +request = &DescribeConfigLogSubscriptionRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeConfigLogSubscription", "", "") +return +} + +// CreateDescribeConfigLogSubscriptionResponse creates a response to parse from DescribeConfigLogSubscription response +func CreateDescribeConfigLogSubscriptionResponse() (response *DescribeConfigLogSubscriptionResponse) { +response = &DescribeConfigLogSubscriptionResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_eni_qos_group_info.go b/services/ecs/describe_eni_qos_group_info.go new file mode 100644 index 0000000000..5f4992b68e --- /dev/null +++ b/services/ecs/describe_eni_qos_group_info.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" +) + +// DescribeEniQosGroupInfo invokes the ecs.DescribeEniQosGroupInfo API synchronously +// api document: https://help.aliyun.com/api/ecs/describeeniqosgroupinfo.html +func (client *Client) DescribeEniQosGroupInfo(request *DescribeEniQosGroupInfoRequest) (response *DescribeEniQosGroupInfoResponse, err error) { +response = CreateDescribeEniQosGroupInfoResponse() +err = client.DoAction(request, response) +return +} + +// DescribeEniQosGroupInfoWithChan invokes the ecs.DescribeEniQosGroupInfo API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeniqosgroupinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEniQosGroupInfoWithChan(request *DescribeEniQosGroupInfoRequest) (<-chan *DescribeEniQosGroupInfoResponse, <-chan error) { +responseChan := make(chan *DescribeEniQosGroupInfoResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeEniQosGroupInfo(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeEniQosGroupInfoWithCallback invokes the ecs.DescribeEniQosGroupInfo API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeeniqosgroupinfo.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeEniQosGroupInfoWithCallback(request *DescribeEniQosGroupInfoRequest, callback func(response *DescribeEniQosGroupInfoResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeEniQosGroupInfoResponse +var err error +defer close(result) +response, err = client.DescribeEniQosGroupInfo(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeEniQosGroupInfoRequest is the request struct for api DescribeEniQosGroupInfo +type DescribeEniQosGroupInfoRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosGroupName string `position:"Query" name:"QosGroupName"` +} + + +// DescribeEniQosGroupInfoResponse is the response struct for api DescribeEniQosGroupInfo +type DescribeEniQosGroupInfoResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosGroupInfo QosGroupInfo `json:"QosGroupInfo" xml:"QosGroupInfo"` +} + +// CreateDescribeEniQosGroupInfoRequest creates a request to invoke DescribeEniQosGroupInfo API +func CreateDescribeEniQosGroupInfoRequest() (request *DescribeEniQosGroupInfoRequest) { +request = &DescribeEniQosGroupInfoRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeEniQosGroupInfo", "", "") +return +} + +// CreateDescribeEniQosGroupInfoResponse creates a response to parse from DescribeEniQosGroupInfo response +func CreateDescribeEniQosGroupInfoResponse() (response *DescribeEniQosGroupInfoResponse) { +response = &DescribeEniQosGroupInfoResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_instance_auto_reboot_time.go b/services/ecs/describe_instance_auto_reboot_time.go new file mode 100644 index 0000000000..46cc138a9f --- /dev/null +++ b/services/ecs/describe_instance_auto_reboot_time.go @@ -0,0 +1,113 @@ + +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" +) + +// DescribeInstanceAutoRebootTime invokes the ecs.DescribeInstanceAutoRebootTime API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautoreboottime.html +func (client *Client) DescribeInstanceAutoRebootTime(request *DescribeInstanceAutoRebootTimeRequest) (response *DescribeInstanceAutoRebootTimeResponse, err error) { +response = CreateDescribeInstanceAutoRebootTimeResponse() +err = client.DoAction(request, response) +return +} + +// DescribeInstanceAutoRebootTimeWithChan invokes the ecs.DescribeInstanceAutoRebootTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautoreboottime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRebootTimeWithChan(request *DescribeInstanceAutoRebootTimeRequest) (<-chan *DescribeInstanceAutoRebootTimeResponse, <-chan error) { +responseChan := make(chan *DescribeInstanceAutoRebootTimeResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeInstanceAutoRebootTime(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeInstanceAutoRebootTimeWithCallback invokes the ecs.DescribeInstanceAutoRebootTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceautoreboottime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceAutoRebootTimeWithCallback(request *DescribeInstanceAutoRebootTimeRequest, callback func(response *DescribeInstanceAutoRebootTimeResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeInstanceAutoRebootTimeResponse +var err error +defer close(result) +response, err = client.DescribeInstanceAutoRebootTime(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeInstanceAutoRebootTimeRequest is the request struct for api DescribeInstanceAutoRebootTime +type DescribeInstanceAutoRebootTimeRequest struct { +*requests.RpcRequest + AutoRebootTimeTo string `position:"Query" name:"AutoRebootTimeTo"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AutoRebootTimeFrom string `position:"Query" name:"AutoRebootTimeFrom"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds *[]string `position:"Query" name:"InstanceIds" type:"Repeated"` +} + + +// DescribeInstanceAutoRebootTimeResponse is the response struct for api DescribeInstanceAutoRebootTime +type DescribeInstanceAutoRebootTimeResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + AutoRebootInfos AutoRebootInfos `json:"AutoRebootInfos" xml:"AutoRebootInfos"` +} + +// CreateDescribeInstanceAutoRebootTimeRequest creates a request to invoke DescribeInstanceAutoRebootTime API +func CreateDescribeInstanceAutoRebootTimeRequest() (request *DescribeInstanceAutoRebootTimeRequest) { +request = &DescribeInstanceAutoRebootTimeRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeInstanceAutoRebootTime", "", "") +return +} + +// CreateDescribeInstanceAutoRebootTimeResponse creates a response to parse from DescribeInstanceAutoRebootTime response +func CreateDescribeInstanceAutoRebootTimeResponse() (response *DescribeInstanceAutoRebootTimeResponse) { +response = &DescribeInstanceAutoRebootTimeResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_instance_need_reboot.go b/services/ecs/describe_instance_need_reboot.go new file mode 100644 index 0000000000..81d4e7d4ef --- /dev/null +++ b/services/ecs/describe_instance_need_reboot.go @@ -0,0 +1,116 @@ + +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" +) + +// DescribeInstanceNeedReboot invokes the ecs.DescribeInstanceNeedReboot API synchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceneedreboot.html +func (client *Client) DescribeInstanceNeedReboot(request *DescribeInstanceNeedRebootRequest) (response *DescribeInstanceNeedRebootResponse, err error) { +response = CreateDescribeInstanceNeedRebootResponse() +err = client.DoAction(request, response) +return +} + +// DescribeInstanceNeedRebootWithChan invokes the ecs.DescribeInstanceNeedReboot API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceneedreboot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceNeedRebootWithChan(request *DescribeInstanceNeedRebootRequest) (<-chan *DescribeInstanceNeedRebootResponse, <-chan error) { +responseChan := make(chan *DescribeInstanceNeedRebootResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeInstanceNeedReboot(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeInstanceNeedRebootWithCallback invokes the ecs.DescribeInstanceNeedReboot API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeinstanceneedreboot.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeInstanceNeedRebootWithCallback(request *DescribeInstanceNeedRebootRequest, callback func(response *DescribeInstanceNeedRebootResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeInstanceNeedRebootResponse +var err error +defer close(result) +response, err = client.DescribeInstanceNeedReboot(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeInstanceNeedRebootRequest is the request struct for api DescribeInstanceNeedReboot +type DescribeInstanceNeedRebootRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds *[]string `position:"Query" name:"InstanceIds" type:"Repeated"` +} + + +// DescribeInstanceNeedRebootResponse is the response struct for api DescribeInstanceNeedReboot +type DescribeInstanceNeedRebootResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + InstanceInfo InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"` +} + +// CreateDescribeInstanceNeedRebootRequest creates a request to invoke DescribeInstanceNeedReboot API +func CreateDescribeInstanceNeedRebootRequest() (request *DescribeInstanceNeedRebootRequest) { +request = &DescribeInstanceNeedRebootRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeInstanceNeedReboot", "", "") +return +} + +// CreateDescribeInstanceNeedRebootResponse creates a response to parse from DescribeInstanceNeedReboot response +func CreateDescribeInstanceNeedRebootResponse() (response *DescribeInstanceNeedRebootResponse) { +response = &DescribeInstanceNeedRebootResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_kms_key_attribute.go b/services/ecs/describe_kms_key_attribute.go new file mode 100644 index 0000000000..59f74b3b59 --- /dev/null +++ b/services/ecs/describe_kms_key_attribute.go @@ -0,0 +1,121 @@ + +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" +) + +// DescribeKMSKeyAttribute invokes the ecs.DescribeKMSKeyAttribute API synchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeyattribute.html +func (client *Client) DescribeKMSKeyAttribute(request *DescribeKMSKeyAttributeRequest) (response *DescribeKMSKeyAttributeResponse, err error) { +response = CreateDescribeKMSKeyAttributeResponse() +err = client.DoAction(request, response) +return +} + +// DescribeKMSKeyAttributeWithChan invokes the ecs.DescribeKMSKeyAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeyattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKMSKeyAttributeWithChan(request *DescribeKMSKeyAttributeRequest) (<-chan *DescribeKMSKeyAttributeResponse, <-chan error) { +responseChan := make(chan *DescribeKMSKeyAttributeResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeKMSKeyAttribute(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeKMSKeyAttributeWithCallback invokes the ecs.DescribeKMSKeyAttribute API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeyattribute.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKMSKeyAttributeWithCallback(request *DescribeKMSKeyAttributeRequest, callback func(response *DescribeKMSKeyAttributeResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeKMSKeyAttributeResponse +var err error +defer close(result) +response, err = client.DescribeKMSKeyAttribute(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeKMSKeyAttributeRequest is the request struct for api DescribeKMSKeyAttribute +type DescribeKMSKeyAttributeRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Channel string `position:"Query" name:"channel"` + Operator string `position:"Query" name:"operator"` + ProxyId string `position:"Query" name:"proxyId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"token"` + AppKey string `position:"Query" name:"appKey"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` +} + + +// DescribeKMSKeyAttributeResponse is the response struct for api DescribeKMSKeyAttribute +type DescribeKMSKeyAttributeResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` + Status string `json:"Status" xml:"Status"` + EcsTagged bool `json:"EcsTagged" xml:"EcsTagged"` + Creator string `json:"Creator" xml:"Creator"` + Alias string `json:"Alias" xml:"Alias"` +} + +// CreateDescribeKMSKeyAttributeRequest creates a request to invoke DescribeKMSKeyAttribute API +func CreateDescribeKMSKeyAttributeRequest() (request *DescribeKMSKeyAttributeRequest) { +request = &DescribeKMSKeyAttributeRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeKMSKeyAttribute", "", "") +return +} + +// CreateDescribeKMSKeyAttributeResponse creates a response to parse from DescribeKMSKeyAttribute response +func CreateDescribeKMSKeyAttributeResponse() (response *DescribeKMSKeyAttributeResponse) { +response = &DescribeKMSKeyAttributeResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_kms_keys.go b/services/ecs/describe_kms_keys.go new file mode 100644 index 0000000000..8dd54177fe --- /dev/null +++ b/services/ecs/describe_kms_keys.go @@ -0,0 +1,121 @@ + +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" +) + +// DescribeKMSKeys invokes the ecs.DescribeKMSKeys API synchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeys.html +func (client *Client) DescribeKMSKeys(request *DescribeKMSKeysRequest) (response *DescribeKMSKeysResponse, err error) { +response = CreateDescribeKMSKeysResponse() +err = client.DoAction(request, response) +return +} + +// DescribeKMSKeysWithChan invokes the ecs.DescribeKMSKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKMSKeysWithChan(request *DescribeKMSKeysRequest) (<-chan *DescribeKMSKeysResponse, <-chan error) { +responseChan := make(chan *DescribeKMSKeysResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeKMSKeys(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeKMSKeysWithCallback invokes the ecs.DescribeKMSKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describekmskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeKMSKeysWithCallback(request *DescribeKMSKeysRequest, callback func(response *DescribeKMSKeysResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeKMSKeysResponse +var err error +defer close(result) +response, err = client.DescribeKMSKeys(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeKMSKeysRequest is the request struct for api DescribeKMSKeys +type DescribeKMSKeysRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Channel string `position:"Query" name:"channel"` + Operator string `position:"Query" name:"operator"` + PageNumber string `position:"Query" name:"PageNumber"` + PageSize string `position:"Query" name:"PageSize"` + ProxyId string `position:"Query" name:"proxyId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"token"` + AppKey string `position:"Query" name:"appKey"` +} + + +// DescribeKMSKeysResponse is the response struct for api DescribeKMSKeys +type DescribeKMSKeysResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + KMSKeyIds KMSKeyIds `json:"KMSKeyIds" xml:"KMSKeyIds"` +} + +// CreateDescribeKMSKeysRequest creates a request to invoke DescribeKMSKeys API +func CreateDescribeKMSKeysRequest() (request *DescribeKMSKeysRequest) { +request = &DescribeKMSKeysRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeKMSKeys", "", "") +return +} + +// CreateDescribeKMSKeysResponse creates a response to parse from DescribeKMSKeys response +func CreateDescribeKMSKeysResponse() (response *DescribeKMSKeysResponse) { +response = &DescribeKMSKeysResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_linked_kms_keys.go b/services/ecs/describe_linked_kms_keys.go new file mode 100644 index 0000000000..c53c1b87aa --- /dev/null +++ b/services/ecs/describe_linked_kms_keys.go @@ -0,0 +1,116 @@ + +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" +) + +// DescribeLinkedKMSKeys invokes the ecs.DescribeLinkedKMSKeys API synchronously +// api document: https://help.aliyun.com/api/ecs/describelinkedkmskeys.html +func (client *Client) DescribeLinkedKMSKeys(request *DescribeLinkedKMSKeysRequest) (response *DescribeLinkedKMSKeysResponse, err error) { +response = CreateDescribeLinkedKMSKeysResponse() +err = client.DoAction(request, response) +return +} + +// DescribeLinkedKMSKeysWithChan invokes the ecs.DescribeLinkedKMSKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelinkedkmskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLinkedKMSKeysWithChan(request *DescribeLinkedKMSKeysRequest) (<-chan *DescribeLinkedKMSKeysResponse, <-chan error) { +responseChan := make(chan *DescribeLinkedKMSKeysResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeLinkedKMSKeys(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeLinkedKMSKeysWithCallback invokes the ecs.DescribeLinkedKMSKeys API asynchronously +// api document: https://help.aliyun.com/api/ecs/describelinkedkmskeys.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLinkedKMSKeysWithCallback(request *DescribeLinkedKMSKeysRequest, callback func(response *DescribeLinkedKMSKeysResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeLinkedKMSKeysResponse +var err error +defer close(result) +response, err = client.DescribeLinkedKMSKeys(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeLinkedKMSKeysRequest is the request struct for api DescribeLinkedKMSKeys +type DescribeLinkedKMSKeysRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Channel string `position:"Query" name:"channel"` + Operator string `position:"Query" name:"operator"` + ProxyId string `position:"Query" name:"proxyId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"token"` + AppKey string `position:"Query" name:"appKey"` +} + + +// DescribeLinkedKMSKeysResponse is the response struct for api DescribeLinkedKMSKeys +type DescribeLinkedKMSKeysResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + KMSKeys KMSKeys `json:"KMSKeys" xml:"KMSKeys"` +} + +// CreateDescribeLinkedKMSKeysRequest creates a request to invoke DescribeLinkedKMSKeys API +func CreateDescribeLinkedKMSKeysRequest() (request *DescribeLinkedKMSKeysRequest) { +request = &DescribeLinkedKMSKeysRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeLinkedKMSKeys", "", "") +return +} + +// CreateDescribeLinkedKMSKeysResponse creates a response to parse from DescribeLinkedKMSKeys response +func CreateDescribeLinkedKMSKeysResponse() (response *DescribeLinkedKMSKeysResponse) { +response = &DescribeLinkedKMSKeysResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_reserved_instance_price.go b/services/ecs/describe_reserved_instance_price.go new file mode 100644 index 0000000000..ab93e9c1e9 --- /dev/null +++ b/services/ecs/describe_reserved_instance_price.go @@ -0,0 +1,120 @@ + +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" +) + +// DescribeReservedInstancePrice invokes the ecs.DescribeReservedInstancePrice API synchronously +// api document: https://help.aliyun.com/api/ecs/describereservedinstanceprice.html +func (client *Client) DescribeReservedInstancePrice(request *DescribeReservedInstancePriceRequest) (response *DescribeReservedInstancePriceResponse, err error) { +response = CreateDescribeReservedInstancePriceResponse() +err = client.DoAction(request, response) +return +} + +// DescribeReservedInstancePriceWithChan invokes the ecs.DescribeReservedInstancePrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describereservedinstanceprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReservedInstancePriceWithChan(request *DescribeReservedInstancePriceRequest) (<-chan *DescribeReservedInstancePriceResponse, <-chan error) { +responseChan := make(chan *DescribeReservedInstancePriceResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeReservedInstancePrice(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeReservedInstancePriceWithCallback invokes the ecs.DescribeReservedInstancePrice API asynchronously +// api document: https://help.aliyun.com/api/ecs/describereservedinstanceprice.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeReservedInstancePriceWithCallback(request *DescribeReservedInstancePriceRequest, callback func(response *DescribeReservedInstancePriceResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeReservedInstancePriceResponse +var err error +defer close(result) +response, err = client.DescribeReservedInstancePrice(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeReservedInstancePriceRequest is the request struct for api DescribeReservedInstancePrice +type DescribeReservedInstancePriceRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeReservedInstancePriceTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` +} + +// DescribeReservedInstancePriceTag is a repeated param struct in DescribeReservedInstancePriceRequest +type DescribeReservedInstancePriceTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeReservedInstancePriceResponse is the response struct for api DescribeReservedInstancePrice +type DescribeReservedInstancePriceResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribeReservedInstancePriceRequest creates a request to invoke DescribeReservedInstancePrice API +func CreateDescribeReservedInstancePriceRequest() (request *DescribeReservedInstancePriceRequest) { +request = &DescribeReservedInstancePriceRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeReservedInstancePrice", "", "") +return +} + +// CreateDescribeReservedInstancePriceResponse creates a response to parse from DescribeReservedInstancePrice response +func CreateDescribeReservedInstancePriceResponse() (response *DescribeReservedInstancePriceResponse) { +response = &DescribeReservedInstancePriceResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_resource_filter_attributes.go b/services/ecs/describe_resource_filter_attributes.go new file mode 100644 index 0000000000..c566817f5e --- /dev/null +++ b/services/ecs/describe_resource_filter_attributes.go @@ -0,0 +1,119 @@ + +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" +) + +// DescribeResourceFilterAttributes invokes the ecs.DescribeResourceFilterAttributes API synchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcefilterattributes.html +func (client *Client) DescribeResourceFilterAttributes(request *DescribeResourceFilterAttributesRequest) (response *DescribeResourceFilterAttributesResponse, err error) { +response = CreateDescribeResourceFilterAttributesResponse() +err = client.DoAction(request, response) +return +} + +// DescribeResourceFilterAttributesWithChan invokes the ecs.DescribeResourceFilterAttributes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcefilterattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceFilterAttributesWithChan(request *DescribeResourceFilterAttributesRequest) (<-chan *DescribeResourceFilterAttributesResponse, <-chan error) { +responseChan := make(chan *DescribeResourceFilterAttributesResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeResourceFilterAttributes(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeResourceFilterAttributesWithCallback invokes the ecs.DescribeResourceFilterAttributes API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcefilterattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceFilterAttributesWithCallback(request *DescribeResourceFilterAttributesRequest, callback func(response *DescribeResourceFilterAttributesResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeResourceFilterAttributesResponse +var err error +defer close(result) +response, err = client.DescribeResourceFilterAttributes(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeResourceFilterAttributesRequest is the request struct for api DescribeResourceFilterAttributes +type DescribeResourceFilterAttributesRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TemplateTag *[]DescribeResourceFilterAttributesTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + Product string `position:"Query" name:"Product"` + 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"` +} + +// DescribeResourceFilterAttributesTemplateTag is a repeated param struct in DescribeResourceFilterAttributesRequest +type DescribeResourceFilterAttributesTemplateTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeResourceFilterAttributesResponse is the response struct for api DescribeResourceFilterAttributes +type DescribeResourceFilterAttributesResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FilterAttributes FilterAttributes `json:"FilterAttributes" xml:"FilterAttributes"` +} + +// CreateDescribeResourceFilterAttributesRequest creates a request to invoke DescribeResourceFilterAttributes API +func CreateDescribeResourceFilterAttributesRequest() (request *DescribeResourceFilterAttributesRequest) { +request = &DescribeResourceFilterAttributesRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeResourceFilterAttributes", "", "") +return +} + +// CreateDescribeResourceFilterAttributesResponse creates a response to parse from DescribeResourceFilterAttributes response +func CreateDescribeResourceFilterAttributesResponse() (response *DescribeResourceFilterAttributesResponse) { +response = &DescribeResourceFilterAttributesResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_resource_recommend_filters.go b/services/ecs/describe_resource_recommend_filters.go new file mode 100644 index 0000000000..8d9860db44 --- /dev/null +++ b/services/ecs/describe_resource_recommend_filters.go @@ -0,0 +1,124 @@ + +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" +) + +// DescribeResourceRecommendFilters invokes the ecs.DescribeResourceRecommendFilters API synchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcerecommendfilters.html +func (client *Client) DescribeResourceRecommendFilters(request *DescribeResourceRecommendFiltersRequest) (response *DescribeResourceRecommendFiltersResponse, err error) { +response = CreateDescribeResourceRecommendFiltersResponse() +err = client.DoAction(request, response) +return +} + +// DescribeResourceRecommendFiltersWithChan invokes the ecs.DescribeResourceRecommendFilters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcerecommendfilters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceRecommendFiltersWithChan(request *DescribeResourceRecommendFiltersRequest) (<-chan *DescribeResourceRecommendFiltersResponse, <-chan error) { +responseChan := make(chan *DescribeResourceRecommendFiltersResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeResourceRecommendFilters(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeResourceRecommendFiltersWithCallback invokes the ecs.DescribeResourceRecommendFilters API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresourcerecommendfilters.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourceRecommendFiltersWithCallback(request *DescribeResourceRecommendFiltersRequest, callback func(response *DescribeResourceRecommendFiltersResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeResourceRecommendFiltersResponse +var err error +defer close(result) +response, err = client.DescribeResourceRecommendFilters(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeResourceRecommendFiltersRequest is the request struct for api DescribeResourceRecommendFilters +type DescribeResourceRecommendFiltersRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AttributeValue string `position:"Query" name:"AttributeValue"` + Global string `position:"Query" name:"Global"` + AttributeName string `position:"Query" name:"AttributeName"` + TemplateTag *[]DescribeResourceRecommendFiltersTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + Product string `position:"Query" name:"Product"` + 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"` + RegionNo string `position:"Query" name:"RegionNo"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// DescribeResourceRecommendFiltersTemplateTag is a repeated param struct in DescribeResourceRecommendFiltersRequest +type DescribeResourceRecommendFiltersTemplateTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeResourceRecommendFiltersResponse is the response struct for api DescribeResourceRecommendFilters +type DescribeResourceRecommendFiltersResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RecommendFilters RecommendFilters `json:"RecommendFilters" xml:"RecommendFilters"` +} + +// CreateDescribeResourceRecommendFiltersRequest creates a request to invoke DescribeResourceRecommendFilters API +func CreateDescribeResourceRecommendFiltersRequest() (request *DescribeResourceRecommendFiltersRequest) { +request = &DescribeResourceRecommendFiltersRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeResourceRecommendFilters", "", "") +return +} + +// CreateDescribeResourceRecommendFiltersResponse creates a response to parse from DescribeResourceRecommendFilters response +func CreateDescribeResourceRecommendFiltersResponse() (response *DescribeResourceRecommendFiltersResponse) { +response = &DescribeResourceRecommendFiltersResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/describe_resources.go b/services/ecs/describe_resources.go new file mode 100644 index 0000000000..00c6999aea --- /dev/null +++ b/services/ecs/describe_resources.go @@ -0,0 +1,134 @@ + +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" +) + +// DescribeResources invokes the ecs.DescribeResources API synchronously +// api document: https://help.aliyun.com/api/ecs/describeresources.html +func (client *Client) DescribeResources(request *DescribeResourcesRequest) (response *DescribeResourcesResponse, err error) { +response = CreateDescribeResourcesResponse() +err = client.DoAction(request, response) +return +} + +// DescribeResourcesWithChan invokes the ecs.DescribeResources API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourcesWithChan(request *DescribeResourcesRequest) (<-chan *DescribeResourcesResponse, <-chan error) { +responseChan := make(chan *DescribeResourcesResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.DescribeResources(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// DescribeResourcesWithCallback invokes the ecs.DescribeResources API asynchronously +// api document: https://help.aliyun.com/api/ecs/describeresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeResourcesWithCallback(request *DescribeResourcesRequest, callback func(response *DescribeResourcesResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *DescribeResourcesResponse +var err error +defer close(result) +response, err = client.DescribeResources(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// DescribeResourcesRequest is the request struct for api DescribeResources +type DescribeResourcesRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Global string `position:"Query" name:"Global"` + TemplateTag *[]DescribeResourcesTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + Keyword string `position:"Query" name:"Keyword"` + Product string `position:"Query" name:"Product"` + 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"` + RegionNo string `position:"Query" name:"RegionNo"` + Filter *[]DescribeResourcesFilter `position:"Query" name:"Filter" type:"Repeated"` + Marker string `position:"Query" name:"Marker"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// DescribeResourcesTemplateTag is a repeated param struct in DescribeResourcesRequest +type DescribeResourcesTemplateTag struct{ + Key string `name:"Key"` + Value string `name:"Value"` +} +// DescribeResourcesFilter is a repeated param struct in DescribeResourcesRequest +type DescribeResourcesFilter struct{ + AttributeName string `name:"AttributeName"` + Operation string `name:"Operation"` + AttributeValue string `name:"AttributeValue"` +} + +// DescribeResourcesResponse is the response struct for api DescribeResources +type DescribeResourcesResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Marker string `json:"Marker" xml:"Marker"` + Truncated bool `json:"Truncated" xml:"Truncated"` + EstimatedTotal int `json:"EstimatedTotal" xml:"EstimatedTotal"` + Resources Resources `json:"Resources" xml:"Resources"` +} + +// CreateDescribeResourcesRequest creates a request to invoke DescribeResources API +func CreateDescribeResourcesRequest() (request *DescribeResourcesRequest) { +request = &DescribeResourcesRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "DescribeResources", "", "") +return +} + +// CreateDescribeResourcesResponse creates a response to parse from DescribeResources response +func CreateDescribeResourcesResponse() (response *DescribeResourcesResponse) { +response = &DescribeResourcesResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/get_launch_template_data.go b/services/ecs/get_launch_template_data.go new file mode 100644 index 0000000000..663fe1a7db --- /dev/null +++ b/services/ecs/get_launch_template_data.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" +) + +// GetLaunchTemplateData invokes the ecs.GetLaunchTemplateData API synchronously +// api document: https://help.aliyun.com/api/ecs/getlaunchtemplatedata.html +func (client *Client) GetLaunchTemplateData(request *GetLaunchTemplateDataRequest) (response *GetLaunchTemplateDataResponse, err error) { +response = CreateGetLaunchTemplateDataResponse() +err = client.DoAction(request, response) +return +} + +// GetLaunchTemplateDataWithChan invokes the ecs.GetLaunchTemplateData API asynchronously +// api document: https://help.aliyun.com/api/ecs/getlaunchtemplatedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLaunchTemplateDataWithChan(request *GetLaunchTemplateDataRequest) (<-chan *GetLaunchTemplateDataResponse, <-chan error) { +responseChan := make(chan *GetLaunchTemplateDataResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.GetLaunchTemplateData(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// GetLaunchTemplateDataWithCallback invokes the ecs.GetLaunchTemplateData API asynchronously +// api document: https://help.aliyun.com/api/ecs/getlaunchtemplatedata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) GetLaunchTemplateDataWithCallback(request *GetLaunchTemplateDataRequest, callback func(response *GetLaunchTemplateDataResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *GetLaunchTemplateDataResponse +var err error +defer close(result) +response, err = client.GetLaunchTemplateData(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// GetLaunchTemplateDataRequest is the request struct for api GetLaunchTemplateData +type GetLaunchTemplateDataRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + + +// GetLaunchTemplateDataResponse is the response struct for api GetLaunchTemplateData +type GetLaunchTemplateDataResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateData LaunchTemplateData `json:"LaunchTemplateData" xml:"LaunchTemplateData"` +} + +// CreateGetLaunchTemplateDataRequest creates a request to invoke GetLaunchTemplateData API +func CreateGetLaunchTemplateDataRequest() (request *GetLaunchTemplateDataRequest) { +request = &GetLaunchTemplateDataRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "GetLaunchTemplateData", "", "") +return +} + +// CreateGetLaunchTemplateDataResponse creates a response to parse from GetLaunchTemplateData response +func CreateGetLaunchTemplateDataResponse() (response *GetLaunchTemplateDataResponse) { +response = &GetLaunchTemplateDataResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/join_eni_qos_group.go b/services/ecs/join_eni_qos_group.go new file mode 100644 index 0000000000..6856226a91 --- /dev/null +++ b/services/ecs/join_eni_qos_group.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" +) + +// JoinEniQosGroup invokes the ecs.JoinEniQosGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/joineniqosgroup.html +func (client *Client) JoinEniQosGroup(request *JoinEniQosGroupRequest) (response *JoinEniQosGroupResponse, err error) { +response = CreateJoinEniQosGroupResponse() +err = client.DoAction(request, response) +return +} + +// JoinEniQosGroupWithChan invokes the ecs.JoinEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joineniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinEniQosGroupWithChan(request *JoinEniQosGroupRequest) (<-chan *JoinEniQosGroupResponse, <-chan error) { +responseChan := make(chan *JoinEniQosGroupResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.JoinEniQosGroup(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// JoinEniQosGroupWithCallback invokes the ecs.JoinEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/joineniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) JoinEniQosGroupWithCallback(request *JoinEniQosGroupRequest, callback func(response *JoinEniQosGroupResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *JoinEniQosGroupResponse +var err error +defer close(result) +response, err = client.JoinEniQosGroup(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// JoinEniQosGroupRequest is the request struct for api JoinEniQosGroup +type JoinEniQosGroupRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosGroupName string `position:"Query" name:"QosGroupName"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + + +// JoinEniQosGroupResponse is the response struct for api JoinEniQosGroup +type JoinEniQosGroupResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateJoinEniQosGroupRequest creates a request to invoke JoinEniQosGroup API +func CreateJoinEniQosGroupRequest() (request *JoinEniQosGroupRequest) { +request = &JoinEniQosGroupRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "JoinEniQosGroup", "", "") +return +} + +// CreateJoinEniQosGroupResponse creates a response to parse from JoinEniQosGroup response +func CreateJoinEniQosGroupResponse() (response *JoinEniQosGroupResponse) { +response = &JoinEniQosGroupResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/leave_eni_qos_group.go b/services/ecs/leave_eni_qos_group.go new file mode 100644 index 0000000000..1d206b00f9 --- /dev/null +++ b/services/ecs/leave_eni_qos_group.go @@ -0,0 +1,110 @@ + +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" +) + +// LeaveEniQosGroup invokes the ecs.LeaveEniQosGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/leaveeniqosgroup.html +func (client *Client) LeaveEniQosGroup(request *LeaveEniQosGroupRequest) (response *LeaveEniQosGroupResponse, err error) { +response = CreateLeaveEniQosGroupResponse() +err = client.DoAction(request, response) +return +} + +// LeaveEniQosGroupWithChan invokes the ecs.LeaveEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/leaveeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LeaveEniQosGroupWithChan(request *LeaveEniQosGroupRequest) (<-chan *LeaveEniQosGroupResponse, <-chan error) { +responseChan := make(chan *LeaveEniQosGroupResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.LeaveEniQosGroup(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// LeaveEniQosGroupWithCallback invokes the ecs.LeaveEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/leaveeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) LeaveEniQosGroupWithCallback(request *LeaveEniQosGroupRequest, callback func(response *LeaveEniQosGroupResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *LeaveEniQosGroupResponse +var err error +defer close(result) +response, err = client.LeaveEniQosGroup(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// LeaveEniQosGroupRequest is the request struct for api LeaveEniQosGroup +type LeaveEniQosGroupRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + + +// LeaveEniQosGroupResponse is the response struct for api LeaveEniQosGroup +type LeaveEniQosGroupResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateLeaveEniQosGroupRequest creates a request to invoke LeaveEniQosGroup API +func CreateLeaveEniQosGroupRequest() (request *LeaveEniQosGroupRequest) { +request = &LeaveEniQosGroupRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "LeaveEniQosGroup", "", "") +return +} + +// CreateLeaveEniQosGroupResponse creates a response to parse from LeaveEniQosGroup response +func CreateLeaveEniQosGroupResponse() (response *LeaveEniQosGroupResponse) { +response = &LeaveEniQosGroupResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/modify_capacity_reservation.go b/services/ecs/modify_capacity_reservation.go new file mode 100644 index 0000000000..920c0fc0f8 --- /dev/null +++ b/services/ecs/modify_capacity_reservation.go @@ -0,0 +1,113 @@ + +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" +) + +// ModifyCapacityReservation invokes the ecs.ModifyCapacityReservation API synchronously +// api document: https://help.aliyun.com/api/ecs/modifycapacityreservation.html +func (client *Client) ModifyCapacityReservation(request *ModifyCapacityReservationRequest) (response *ModifyCapacityReservationResponse, err error) { +response = CreateModifyCapacityReservationResponse() +err = client.DoAction(request, response) +return +} + +// ModifyCapacityReservationWithChan invokes the ecs.ModifyCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifycapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCapacityReservationWithChan(request *ModifyCapacityReservationRequest) (<-chan *ModifyCapacityReservationResponse, <-chan error) { +responseChan := make(chan *ModifyCapacityReservationResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.ModifyCapacityReservation(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// ModifyCapacityReservationWithCallback invokes the ecs.ModifyCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifycapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyCapacityReservationWithCallback(request *ModifyCapacityReservationRequest, callback func(response *ModifyCapacityReservationResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *ModifyCapacityReservationResponse +var err error +defer close(result) +response, err = client.ModifyCapacityReservation(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// ModifyCapacityReservationRequest is the request struct for api ModifyCapacityReservation +type ModifyCapacityReservationRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CapacityReservationId string `position:"Query" name:"CapacityReservationId"` + InstanceCount requests.Integer `position:"Query" name:"InstanceCount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"Token"` +} + + +// ModifyCapacityReservationResponse is the response struct for api ModifyCapacityReservation +type ModifyCapacityReservationResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCapacityReservationRequest creates a request to invoke ModifyCapacityReservation API +func CreateModifyCapacityReservationRequest() (request *ModifyCapacityReservationRequest) { +request = &ModifyCapacityReservationRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "ModifyCapacityReservation", "", "") +return +} + +// CreateModifyCapacityReservationResponse creates a response to parse from ModifyCapacityReservation response +func CreateModifyCapacityReservationResponse() (response *ModifyCapacityReservationResponse) { +response = &ModifyCapacityReservationResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/modify_eni_qos_group.go b/services/ecs/modify_eni_qos_group.go new file mode 100644 index 0000000000..a5fd7ec15d --- /dev/null +++ b/services/ecs/modify_eni_qos_group.go @@ -0,0 +1,114 @@ + +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" +) + +// ModifyEniQosGroup invokes the ecs.ModifyEniQosGroup API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyeniqosgroup.html +func (client *Client) ModifyEniQosGroup(request *ModifyEniQosGroupRequest) (response *ModifyEniQosGroupResponse, err error) { +response = CreateModifyEniQosGroupResponse() +err = client.DoAction(request, response) +return +} + +// ModifyEniQosGroupWithChan invokes the ecs.ModifyEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEniQosGroupWithChan(request *ModifyEniQosGroupRequest) (<-chan *ModifyEniQosGroupResponse, <-chan error) { +responseChan := make(chan *ModifyEniQosGroupResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.ModifyEniQosGroup(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// ModifyEniQosGroupWithCallback invokes the ecs.ModifyEniQosGroup API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyeniqosgroup.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyEniQosGroupWithCallback(request *ModifyEniQosGroupRequest, callback func(response *ModifyEniQosGroupResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *ModifyEniQosGroupResponse +var err error +defer close(result) +response, err = client.ModifyEniQosGroup(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// ModifyEniQosGroupRequest is the request struct for api ModifyEniQosGroup +type ModifyEniQosGroupRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tx requests.Integer `position:"Query" name:"Tx"` + Rx requests.Integer `position:"Query" name:"Rx"` + RxPps requests.Integer `position:"Query" name:"RxPps"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosGroupName string `position:"Query" name:"QosGroupName"` + TxPps requests.Integer `position:"Query" name:"TxPps"` +} + + +// ModifyEniQosGroupResponse is the response struct for api ModifyEniQosGroup +type ModifyEniQosGroupResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyEniQosGroupRequest creates a request to invoke ModifyEniQosGroup API +func CreateModifyEniQosGroupRequest() (request *ModifyEniQosGroupRequest) { +request = &ModifyEniQosGroupRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "ModifyEniQosGroup", "", "") +return +} + +// CreateModifyEniQosGroupResponse creates a response to parse from ModifyEniQosGroup response +func CreateModifyEniQosGroupResponse() (response *ModifyEniQosGroupResponse) { +response = &ModifyEniQosGroupResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/modify_instance_auto_reboot_time.go b/services/ecs/modify_instance_auto_reboot_time.go new file mode 100644 index 0000000000..1d95b9b3a8 --- /dev/null +++ b/services/ecs/modify_instance_auto_reboot_time.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" +) + +// ModifyInstanceAutoRebootTime invokes the ecs.ModifyInstanceAutoRebootTime API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreboottime.html +func (client *Client) ModifyInstanceAutoRebootTime(request *ModifyInstanceAutoRebootTimeRequest) (response *ModifyInstanceAutoRebootTimeResponse, err error) { +response = CreateModifyInstanceAutoRebootTimeResponse() +err = client.DoAction(request, response) +return +} + +// ModifyInstanceAutoRebootTimeWithChan invokes the ecs.ModifyInstanceAutoRebootTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreboottime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRebootTimeWithChan(request *ModifyInstanceAutoRebootTimeRequest) (<-chan *ModifyInstanceAutoRebootTimeResponse, <-chan error) { +responseChan := make(chan *ModifyInstanceAutoRebootTimeResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.ModifyInstanceAutoRebootTime(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// ModifyInstanceAutoRebootTimeWithCallback invokes the ecs.ModifyInstanceAutoRebootTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreboottime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceAutoRebootTimeWithCallback(request *ModifyInstanceAutoRebootTimeRequest, callback func(response *ModifyInstanceAutoRebootTimeResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *ModifyInstanceAutoRebootTimeResponse +var err error +defer close(result) +response, err = client.ModifyInstanceAutoRebootTime(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// ModifyInstanceAutoRebootTimeRequest is the request struct for api ModifyInstanceAutoRebootTime +type ModifyInstanceAutoRebootTimeRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AutoRebootTime string `position:"Query" name:"AutoRebootTime"` + InstanceIds *[]string `position:"Query" name:"InstanceIds" type:"Repeated"` +} + + +// ModifyInstanceAutoRebootTimeResponse is the response struct for api ModifyInstanceAutoRebootTime +type ModifyInstanceAutoRebootTimeResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAutoRebootTimeRequest creates a request to invoke ModifyInstanceAutoRebootTime API +func CreateModifyInstanceAutoRebootTimeRequest() (request *ModifyInstanceAutoRebootTimeRequest) { +request = &ModifyInstanceAutoRebootTimeRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "ModifyInstanceAutoRebootTime", "", "") +return +} + +// CreateModifyInstanceAutoRebootTimeResponse creates a response to parse from ModifyInstanceAutoRebootTime response +func CreateModifyInstanceAutoRebootTimeResponse() (response *ModifyInstanceAutoRebootTimeResponse) { +response = &ModifyInstanceAutoRebootTimeResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/modify_instance_capacity_reservation_attributes.go b/services/ecs/modify_instance_capacity_reservation_attributes.go new file mode 100644 index 0000000000..e8403f6aa2 --- /dev/null +++ b/services/ecs/modify_instance_capacity_reservation_attributes.go @@ -0,0 +1,113 @@ + +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" +) + +// ModifyInstanceCapacityReservationAttributes invokes the ecs.ModifyInstanceCapacityReservationAttributes API synchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancecapacityreservationattributes.html +func (client *Client) ModifyInstanceCapacityReservationAttributes(request *ModifyInstanceCapacityReservationAttributesRequest) (response *ModifyInstanceCapacityReservationAttributesResponse, err error) { +response = CreateModifyInstanceCapacityReservationAttributesResponse() +err = client.DoAction(request, response) +return +} + +// ModifyInstanceCapacityReservationAttributesWithChan invokes the ecs.ModifyInstanceCapacityReservationAttributes API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancecapacityreservationattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceCapacityReservationAttributesWithChan(request *ModifyInstanceCapacityReservationAttributesRequest) (<-chan *ModifyInstanceCapacityReservationAttributesResponse, <-chan error) { +responseChan := make(chan *ModifyInstanceCapacityReservationAttributesResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.ModifyInstanceCapacityReservationAttributes(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// ModifyInstanceCapacityReservationAttributesWithCallback invokes the ecs.ModifyInstanceCapacityReservationAttributes API asynchronously +// api document: https://help.aliyun.com/api/ecs/modifyinstancecapacityreservationattributes.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ModifyInstanceCapacityReservationAttributesWithCallback(request *ModifyInstanceCapacityReservationAttributesRequest, callback func(response *ModifyInstanceCapacityReservationAttributesResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *ModifyInstanceCapacityReservationAttributesResponse +var err error +defer close(result) +response, err = client.ModifyInstanceCapacityReservationAttributes(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// ModifyInstanceCapacityReservationAttributesRequest is the request struct for api ModifyInstanceCapacityReservationAttributes +type ModifyInstanceCapacityReservationAttributesRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CapacityReservationId string `position:"Query" name:"CapacityReservationId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` + InstanceId string `position:"Query" name:"InstanceId"` +} + + +// ModifyInstanceCapacityReservationAttributesResponse is the response struct for api ModifyInstanceCapacityReservationAttributes +type ModifyInstanceCapacityReservationAttributesResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceCapacityReservationAttributesRequest creates a request to invoke ModifyInstanceCapacityReservationAttributes API +func CreateModifyInstanceCapacityReservationAttributesRequest() (request *ModifyInstanceCapacityReservationAttributesRequest) { +request = &ModifyInstanceCapacityReservationAttributesRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "ModifyInstanceCapacityReservationAttributes", "", "") +return +} + +// CreateModifyInstanceCapacityReservationAttributesResponse creates a response to parse from ModifyInstanceCapacityReservationAttributes response +func CreateModifyInstanceCapacityReservationAttributesResponse() (response *ModifyInstanceCapacityReservationAttributesResponse) { +response = &ModifyInstanceCapacityReservationAttributesResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/query_eni_qos_group_by_eni.go b/services/ecs/query_eni_qos_group_by_eni.go new file mode 100644 index 0000000000..7e1ddcdb3c --- /dev/null +++ b/services/ecs/query_eni_qos_group_by_eni.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" +) + +// QueryEniQosGroupByEni invokes the ecs.QueryEniQosGroupByEni API synchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyeni.html +func (client *Client) QueryEniQosGroupByEni(request *QueryEniQosGroupByEniRequest) (response *QueryEniQosGroupByEniResponse, err error) { +response = CreateQueryEniQosGroupByEniResponse() +err = client.DoAction(request, response) +return +} + +// QueryEniQosGroupByEniWithChan invokes the ecs.QueryEniQosGroupByEni API asynchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyeni.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEniQosGroupByEniWithChan(request *QueryEniQosGroupByEniRequest) (<-chan *QueryEniQosGroupByEniResponse, <-chan error) { +responseChan := make(chan *QueryEniQosGroupByEniResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.QueryEniQosGroupByEni(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// QueryEniQosGroupByEniWithCallback invokes the ecs.QueryEniQosGroupByEni API asynchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyeni.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEniQosGroupByEniWithCallback(request *QueryEniQosGroupByEniRequest, callback func(response *QueryEniQosGroupByEniResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *QueryEniQosGroupByEniResponse +var err error +defer close(result) +response, err = client.QueryEniQosGroupByEni(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// QueryEniQosGroupByEniRequest is the request struct for api QueryEniQosGroupByEni +type QueryEniQosGroupByEniRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + + +// QueryEniQosGroupByEniResponse is the response struct for api QueryEniQosGroupByEni +type QueryEniQosGroupByEniResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosGroupName string `json:"QosGroupName" xml:"QosGroupName"` +} + +// CreateQueryEniQosGroupByEniRequest creates a request to invoke QueryEniQosGroupByEni API +func CreateQueryEniQosGroupByEniRequest() (request *QueryEniQosGroupByEniRequest) { +request = &QueryEniQosGroupByEniRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "QueryEniQosGroupByEni", "", "") +return +} + +// CreateQueryEniQosGroupByEniResponse creates a response to parse from QueryEniQosGroupByEni response +func CreateQueryEniQosGroupByEniResponse() (response *QueryEniQosGroupByEniResponse) { +response = &QueryEniQosGroupByEniResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/query_eni_qos_group_by_instance.go b/services/ecs/query_eni_qos_group_by_instance.go new file mode 100644 index 0000000000..d2a210edea --- /dev/null +++ b/services/ecs/query_eni_qos_group_by_instance.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" +) + +// QueryEniQosGroupByInstance invokes the ecs.QueryEniQosGroupByInstance API synchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyinstance.html +func (client *Client) QueryEniQosGroupByInstance(request *QueryEniQosGroupByInstanceRequest) (response *QueryEniQosGroupByInstanceResponse, err error) { +response = CreateQueryEniQosGroupByInstanceResponse() +err = client.DoAction(request, response) +return +} + +// QueryEniQosGroupByInstanceWithChan invokes the ecs.QueryEniQosGroupByInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEniQosGroupByInstanceWithChan(request *QueryEniQosGroupByInstanceRequest) (<-chan *QueryEniQosGroupByInstanceResponse, <-chan error) { +responseChan := make(chan *QueryEniQosGroupByInstanceResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.QueryEniQosGroupByInstance(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// QueryEniQosGroupByInstanceWithCallback invokes the ecs.QueryEniQosGroupByInstance API asynchronously +// api document: https://help.aliyun.com/api/ecs/queryeniqosgroupbyinstance.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) QueryEniQosGroupByInstanceWithCallback(request *QueryEniQosGroupByInstanceRequest, callback func(response *QueryEniQosGroupByInstanceResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *QueryEniQosGroupByInstanceResponse +var err error +defer close(result) +response, err = client.QueryEniQosGroupByInstance(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// QueryEniQosGroupByInstanceRequest is the request struct for api QueryEniQosGroupByInstance +type QueryEniQosGroupByInstanceRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + + +// QueryEniQosGroupByInstanceResponse is the response struct for api QueryEniQosGroupByInstance +type QueryEniQosGroupByInstanceResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateQueryEniQosGroupByInstanceRequest creates a request to invoke QueryEniQosGroupByInstance API +func CreateQueryEniQosGroupByInstanceRequest() (request *QueryEniQosGroupByInstanceRequest) { +request = &QueryEniQosGroupByInstanceRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "QueryEniQosGroupByInstance", "", "") +return +} + +// CreateQueryEniQosGroupByInstanceResponse creates a response to parse from QueryEniQosGroupByInstance response +func CreateQueryEniQosGroupByInstanceResponse() (response *QueryEniQosGroupByInstanceResponse) { +response = &QueryEniQosGroupByInstanceResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/release_capacity_reservation.go b/services/ecs/release_capacity_reservation.go new file mode 100644 index 0000000000..c9dec5bf70 --- /dev/null +++ b/services/ecs/release_capacity_reservation.go @@ -0,0 +1,112 @@ + +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" +) + +// ReleaseCapacityReservation invokes the ecs.ReleaseCapacityReservation API synchronously +// api document: https://help.aliyun.com/api/ecs/releasecapacityreservation.html +func (client *Client) ReleaseCapacityReservation(request *ReleaseCapacityReservationRequest) (response *ReleaseCapacityReservationResponse, err error) { +response = CreateReleaseCapacityReservationResponse() +err = client.DoAction(request, response) +return +} + +// ReleaseCapacityReservationWithChan invokes the ecs.ReleaseCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/releasecapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseCapacityReservationWithChan(request *ReleaseCapacityReservationRequest) (<-chan *ReleaseCapacityReservationResponse, <-chan error) { +responseChan := make(chan *ReleaseCapacityReservationResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.ReleaseCapacityReservation(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// ReleaseCapacityReservationWithCallback invokes the ecs.ReleaseCapacityReservation API asynchronously +// api document: https://help.aliyun.com/api/ecs/releasecapacityreservation.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ReleaseCapacityReservationWithCallback(request *ReleaseCapacityReservationRequest, callback func(response *ReleaseCapacityReservationResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *ReleaseCapacityReservationResponse +var err error +defer close(result) +response, err = client.ReleaseCapacityReservation(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// ReleaseCapacityReservationRequest is the request struct for api ReleaseCapacityReservation +type ReleaseCapacityReservationRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CapacityReservationId string `position:"Query" name:"CapacityReservationId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Token string `position:"Query" name:"Token"` +} + + +// ReleaseCapacityReservationResponse is the response struct for api ReleaseCapacityReservation +type ReleaseCapacityReservationResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseCapacityReservationRequest creates a request to invoke ReleaseCapacityReservation API +func CreateReleaseCapacityReservationRequest() (request *ReleaseCapacityReservationRequest) { +request = &ReleaseCapacityReservationRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "ReleaseCapacityReservation", "", "") +return +} + +// CreateReleaseCapacityReservationResponse creates a response to parse from ReleaseCapacityReservation response +func CreateReleaseCapacityReservationResponse() (response *ReleaseCapacityReservationResponse) { +response = &ReleaseCapacityReservationResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/run_instances__gated_launch.go b/services/ecs/run_instances__gated_launch.go new file mode 100644 index 0000000000..6e08ed56d3 --- /dev/null +++ b/services/ecs/run_instances__gated_launch.go @@ -0,0 +1,159 @@ + +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" +) + +// RunInstances_GatedLaunch invokes the ecs.RunInstances_GatedLaunch API synchronously +// api document: https://help.aliyun.com/api/ecs/runinstances_gatedlaunch.html +func (client *Client) RunInstances_GatedLaunch(request *RunInstances_GatedLaunchRequest) (response *RunInstances_GatedLaunchResponse, err error) { +response = CreateRunInstances_GatedLaunchResponse() +err = client.DoAction(request, response) +return +} + +// RunInstances_GatedLaunchWithChan invokes the ecs.RunInstances_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/runinstances_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RunInstances_GatedLaunchWithChan(request *RunInstances_GatedLaunchRequest) (<-chan *RunInstances_GatedLaunchResponse, <-chan error) { +responseChan := make(chan *RunInstances_GatedLaunchResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.RunInstances_GatedLaunch(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// RunInstances_GatedLaunchWithCallback invokes the ecs.RunInstances_GatedLaunch API asynchronously +// api document: https://help.aliyun.com/api/ecs/runinstances_gatedlaunch.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) RunInstances_GatedLaunchWithCallback(request *RunInstances_GatedLaunchRequest, callback func(response *RunInstances_GatedLaunchResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *RunInstances_GatedLaunchResponse +var err error +defer close(result) +response, err = client.RunInstances_GatedLaunch(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// RunInstances_GatedLaunchRequest is the request struct for api RunInstances_GatedLaunch +type RunInstances_GatedLaunchRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NetworkType string `position:"Query" name:"NetworkType"` + MinAmount requests.Integer `position:"Query" name:"MinAmount"` + HostName string `position:"Query" name:"HostName"` + Password string `position:"Query" name:"Password"` + Tag *[]RunInstances_GatedLaunchTag `position:"Query" name:"Tag" type:"Repeated"` + BusinessInfo string `position:"Query" name:"BusinessInfo"` + NodeControllerId string `position:"Query" name:"NodeControllerId"` + FromApp string `position:"Query" name:"FromApp"` + MaxAmount requests.Integer `position:"Query" name:"MaxAmount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + InstanceName string `position:"Query" name:"InstanceName"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + ImageId string `position:"Query" name:"ImageId"` + ClientToken string `position:"Query" name:"ClientToken"` + IoOptimized string `position:"Query" name:"IoOptimized"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + UserData string `position:"Query" name:"UserData"` + InstanceType string `position:"Query" name:"InstanceType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + RelationOrderId string `position:"Query" name:"RelationOrderId"` + ClusterId string `position:"Query" name:"ClusterId"` + DataDisk *[]RunInstances_GatedLaunchDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + SystemDiskSize string `position:"Query" name:"SystemDisk.Size"` + DefaultVpc string `position:"Query" name:"DefaultVpc"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// RunInstances_GatedLaunchTag is a repeated param struct in RunInstances_GatedLaunchRequest +type RunInstances_GatedLaunchTag struct{ + Value string `name:"Value"` + Key string `name:"Key"` +} +// RunInstances_GatedLaunchDataDisk is a repeated param struct in RunInstances_GatedLaunchRequest +type RunInstances_GatedLaunchDataDisk struct{ + DiskName string `name:"DiskName"` + SnapshotId string `name:"SnapshotId"` + Size string `name:"Size"` + Description string `name:"Description"` + Category string `name:"Category"` + Device string `name:"Device"` + DeleteWithInstance string `name:"DeleteWithInstance"` +} + +// RunInstances_GatedLaunchResponse is the response struct for api RunInstances_GatedLaunch +type RunInstances_GatedLaunchResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + InstanceIdSets InstanceIdSetsInRunInstancesGatedLaunch `json:"InstanceIdSets" xml:"InstanceIdSets"` +} + +// CreateRunInstances_GatedLaunchRequest creates a request to invoke RunInstances_GatedLaunch API +func CreateRunInstances_GatedLaunchRequest() (request *RunInstances_GatedLaunchRequest) { +request = &RunInstances_GatedLaunchRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "RunInstances_GatedLaunch", "", "") +return +} + +// CreateRunInstances_GatedLaunchResponse creates a response to parse from RunInstances_GatedLaunch response +func CreateRunInstances_GatedLaunchResponse() (response *RunInstances_GatedLaunchResponse) { +response = &RunInstances_GatedLaunchResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/set_instance_auto_release_time.go b/services/ecs/set_instance_auto_release_time.go new file mode 100644 index 0000000000..9579375ff2 --- /dev/null +++ b/services/ecs/set_instance_auto_release_time.go @@ -0,0 +1,112 @@ + +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" +) + +// SetInstanceAutoReleaseTime invokes the ecs.SetInstanceAutoReleaseTime API synchronously +// api document: https://help.aliyun.com/api/ecs/setinstanceautoreleasetime.html +func (client *Client) SetInstanceAutoReleaseTime(request *SetInstanceAutoReleaseTimeRequest) (response *SetInstanceAutoReleaseTimeResponse, err error) { +response = CreateSetInstanceAutoReleaseTimeResponse() +err = client.DoAction(request, response) +return +} + +// SetInstanceAutoReleaseTimeWithChan invokes the ecs.SetInstanceAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/setinstanceautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetInstanceAutoReleaseTimeWithChan(request *SetInstanceAutoReleaseTimeRequest) (<-chan *SetInstanceAutoReleaseTimeResponse, <-chan error) { +responseChan := make(chan *SetInstanceAutoReleaseTimeResponse, 1) +errChan := make(chan error, 1) +err := client.AddAsyncTask(func() { +defer close(responseChan) +defer close(errChan) +response, err := client.SetInstanceAutoReleaseTime(request) +if err != nil { +errChan <- err +} else { +responseChan <- response +} +}) +if err != nil { +errChan <- err +close(responseChan) +close(errChan) +} +return responseChan, errChan +} + +// SetInstanceAutoReleaseTimeWithCallback invokes the ecs.SetInstanceAutoReleaseTime API asynchronously +// api document: https://help.aliyun.com/api/ecs/setinstanceautoreleasetime.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) SetInstanceAutoReleaseTimeWithCallback(request *SetInstanceAutoReleaseTimeRequest, callback func(response *SetInstanceAutoReleaseTimeResponse, err error)) (<-chan int) { +result := make(chan int, 1) +err := client.AddAsyncTask(func() { +var response *SetInstanceAutoReleaseTimeResponse +var err error +defer close(result) +response, err = client.SetInstanceAutoReleaseTime(request) +callback(response, err) +result <- 1 +}) +if err != nil { +defer close(result) +callback(nil, err) +result <- 0 +} +return result +} + +// SetInstanceAutoReleaseTimeRequest is the request struct for api SetInstanceAutoReleaseTime +type SetInstanceAutoReleaseTimeRequest struct { +*requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + + +// SetInstanceAutoReleaseTimeResponse is the response struct for api SetInstanceAutoReleaseTime +type SetInstanceAutoReleaseTimeResponse struct { +*responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetInstanceAutoReleaseTimeRequest creates a request to invoke SetInstanceAutoReleaseTime API +func CreateSetInstanceAutoReleaseTimeRequest() (request *SetInstanceAutoReleaseTimeRequest) { +request = &SetInstanceAutoReleaseTimeRequest{ +RpcRequest: &requests.RpcRequest{}, +} +request.InitWithApiInfo("Ecs", "2016-03-14", "SetInstanceAutoReleaseTime", "", "") +return +} + +// CreateSetInstanceAutoReleaseTimeResponse creates a response to parse from SetInstanceAutoReleaseTime response +func CreateSetInstanceAutoReleaseTimeResponse() (response *SetInstanceAutoReleaseTimeResponse) { +response = &SetInstanceAutoReleaseTimeResponse{ +BaseResponse: &responses.BaseResponse{}, +} +return +} + + diff --git a/services/ecs/struct_account_limit.go b/services/ecs/struct_account_limit.go new file mode 100644 index 0000000000..6cf760bea0 --- /dev/null +++ b/services/ecs/struct_account_limit.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. + +// AccountLimit is a nested struct in ecs response +type AccountLimit struct { + LimitName string `json:"LimitName" xml:"LimitName"` + LimitValueSet LimitValueSet `json:"LimitValueSet" xml:"LimitValueSet"` +} diff --git a/services/ecs/struct_account_limit_type_set.go b/services/ecs/struct_account_limit_type_set.go new file mode 100644 index 0000000000..8676ee33d0 --- /dev/null +++ b/services/ecs/struct_account_limit_type_set.go @@ -0,0 +1,22 @@ + +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. + +// AccountLimitTypeSet is a nested struct in ecs response +type AccountLimitTypeSet struct { +AccountLimit []AccountLimit `json:"AccountLimit" xml:"AccountLimit"` +} diff --git a/services/ecs/struct_auto_reboot_info.go b/services/ecs/struct_auto_reboot_info.go new file mode 100644 index 0000000000..4ab5f51d0e --- /dev/null +++ b/services/ecs/struct_auto_reboot_info.go @@ -0,0 +1,25 @@ + +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. + +// AutoRebootInfo is a nested struct in ecs response +type AutoRebootInfo struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RebootTime string `json:"RebootTime" xml:"RebootTime"` + OrderType string `json:"OrderType" xml:"OrderType"` + LimitRebootTime string `json:"LimitRebootTime" xml:"LimitRebootTime"` +} diff --git a/services/ecs/struct_auto_reboot_infos.go b/services/ecs/struct_auto_reboot_infos.go new file mode 100644 index 0000000000..898711cd66 --- /dev/null +++ b/services/ecs/struct_auto_reboot_infos.go @@ -0,0 +1,22 @@ + +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. + +// AutoRebootInfos is a nested struct in ecs response +type AutoRebootInfos struct { +AutoRebootInfo []AutoRebootInfo `json:"AutoRebootInfo" xml:"AutoRebootInfo"` +} diff --git a/services/ecs/struct_capacity_reservation.go b/services/ecs/struct_capacity_reservation.go new file mode 100644 index 0000000000..3c120bab87 --- /dev/null +++ b/services/ecs/struct_capacity_reservation.go @@ -0,0 +1,35 @@ + +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. + +// CapacityReservation is a nested struct in ecs response +type CapacityReservation struct { + CapacityReservationId string `json:"CapacityReservationId" xml:"CapacityReservationId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + CapacityReservationName string `json:"CapacityReservationName" xml:"CapacityReservationName"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + InstancePlatform string `json:"InstancePlatform" xml:"InstancePlatform"` + TotalInstanceCount int `json:"TotalInstanceCount" xml:"TotalInstanceCount"` + AvailableInstanceCount int `json:"AvailableInstanceCount" xml:"AvailableInstanceCount"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + EndDateType string `json:"EndDateType" xml:"EndDateType"` + InstanceMatchCriteria string `json:"InstanceMatchCriteria" xml:"InstanceMatchCriteria"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + TimeSlot string `json:"TimeSlot" xml:"TimeSlot"` +} diff --git a/services/ecs/struct_capacity_reservations.go b/services/ecs/struct_capacity_reservations.go new file mode 100644 index 0000000000..66281b14cc --- /dev/null +++ b/services/ecs/struct_capacity_reservations.go @@ -0,0 +1,22 @@ + +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. + +// CapacityReservations is a nested struct in ecs response +type CapacityReservations struct { +CapacityReservation []CapacityReservation `json:"CapacityReservation" xml:"CapacityReservation"` +} diff --git a/services/ecs/struct_configuration_item.go b/services/ecs/struct_configuration_item.go new file mode 100644 index 0000000000..8e854ce2d0 --- /dev/null +++ b/services/ecs/struct_configuration_item.go @@ -0,0 +1,31 @@ + +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. + +// ConfigurationItem is a nested struct in ecs response +type ConfigurationItem struct { + ConfigurationItemVersion string `json:"ConfigurationItemVersion" xml:"ConfigurationItemVersion"` + ConfigurationCaptureTime string `json:"ConfigurationCaptureTime" xml:"ConfigurationCaptureTime"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + AliUid int `json:"AliUid" xml:"AliUid"` + Arn string `json:"Arn" xml:"Arn"` + ResourceCreationTime string `json:"ResourceCreationTime" xml:"ResourceCreationTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Configuration string `json:"Configuration" xml:"Configuration"` +} diff --git a/services/ecs/struct_configuration_item_set.go b/services/ecs/struct_configuration_item_set.go new file mode 100644 index 0000000000..e129b44ea2 --- /dev/null +++ b/services/ecs/struct_configuration_item_set.go @@ -0,0 +1,22 @@ + +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. + +// ConfigurationItemSet is a nested struct in ecs response +type ConfigurationItemSet struct { +ConfigurationItem []ConfigurationItem `json:"ConfigurationItem" xml:"ConfigurationItem"` +} diff --git a/services/ecs/struct_coupon.go b/services/ecs/struct_coupon.go new file mode 100644 index 0000000000..242d5673a1 --- /dev/null +++ b/services/ecs/struct_coupon.go @@ -0,0 +1,26 @@ + +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. + +// Coupon is a nested struct in ecs response +type Coupon struct { + CouponNo string `json:"CouponNo" xml:"CouponNo"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + DiscountOff float64 `json:"DiscountOff" xml:"DiscountOff"` + IsSelected bool `json:"IsSelected" xml:"IsSelected"` +} diff --git a/services/ecs/struct_coupons.go b/services/ecs/struct_coupons.go new file mode 100644 index 0000000000..14db074da7 --- /dev/null +++ b/services/ecs/struct_coupons.go @@ -0,0 +1,22 @@ + +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. + +// Coupons is a nested struct in ecs response +type Coupons struct { +Coupon []Coupon `json:"Coupon" xml:"Coupon"` +} diff --git a/services/ecs/struct_dedicated_host_id_sets_in_allocate_dedicated_hosts.go b/services/ecs/struct_dedicated_host_id_sets_in_allocate_dedicated_hosts.go new file mode 100644 index 0000000000..3986d1e3ed --- /dev/null +++ b/services/ecs/struct_dedicated_host_id_sets_in_allocate_dedicated_hosts.go @@ -0,0 +1,22 @@ + +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. + +// DedicatedHostIdSetsInAllocateDedicatedHosts is a nested struct in ecs response +type DedicatedHostIdSetsInAllocateDedicatedHosts struct { +DedicatedHostId [] string `json:"DedicatedHostId" xml:"DedicatedHostId"` +} diff --git a/services/ecs/struct_dedicated_host_id_sets_in_renew_dedicated_hosts.go b/services/ecs/struct_dedicated_host_id_sets_in_renew_dedicated_hosts.go new file mode 100644 index 0000000000..f78354fc9b --- /dev/null +++ b/services/ecs/struct_dedicated_host_id_sets_in_renew_dedicated_hosts.go @@ -0,0 +1,22 @@ + +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. + +// DedicatedHostIdSetsInRenewDedicatedHosts is a nested struct in ecs response +type DedicatedHostIdSetsInRenewDedicatedHosts struct { +DedicatedHostId [] string `json:"DedicatedHostId" xml:"DedicatedHostId"` +} diff --git a/services/ecs/struct_disk_id_in_create_disks.go b/services/ecs/struct_disk_id_in_create_disks.go new file mode 100644 index 0000000000..3a33e20256 --- /dev/null +++ b/services/ecs/struct_disk_id_in_create_disks.go @@ -0,0 +1,22 @@ + +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. + +// DiskIdInCreateDisks is a nested struct in ecs response +type DiskIdInCreateDisks struct { +DiskIds [] string `json:"DiskIds" xml:"DiskIds"` +} diff --git a/services/ecs/struct_disk_id_in_create_disks_gated_launch.go b/services/ecs/struct_disk_id_in_create_disks_gated_launch.go new file mode 100644 index 0000000000..beb878afc2 --- /dev/null +++ b/services/ecs/struct_disk_id_in_create_disks_gated_launch.go @@ -0,0 +1,22 @@ + +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. + +// DiskIdInCreateDisksGatedLaunch is a nested struct in ecs response +type DiskIdInCreateDisksGatedLaunch struct { +DiskIds [] string `json:"DiskIds" xml:"DiskIds"` +} diff --git a/services/ecs/struct_filter_attribute.go b/services/ecs/struct_filter_attribute.go new file mode 100644 index 0000000000..57831b3423 --- /dev/null +++ b/services/ecs/struct_filter_attribute.go @@ -0,0 +1,25 @@ + +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. + +// FilterAttribute is a nested struct in ecs response +type FilterAttribute struct { + Name string `json:"Name" xml:"Name"` + Type string `json:"Type" xml:"Type"` + Values Values `json:"Values" xml:"Values"` + SupportOperations SupportOperations `json:"SupportOperations" xml:"SupportOperations"` +} diff --git a/services/ecs/struct_filter_attributes.go b/services/ecs/struct_filter_attributes.go new file mode 100644 index 0000000000..eca7c133f3 --- /dev/null +++ b/services/ecs/struct_filter_attributes.go @@ -0,0 +1,22 @@ + +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. + +// FilterAttributes is a nested struct in ecs response +type FilterAttributes struct { +FilterAttribute []FilterAttribute `json:"FilterAttribute" xml:"FilterAttribute"` +} diff --git a/services/ecs/struct_instance.go b/services/ecs/struct_instance.go index 37d0f5fccd..4b36ecaf0b 100644 --- a/services/ecs/struct_instance.go +++ b/services/ecs/struct_instance.go @@ -37,23 +37,23 @@ type Instance struct { InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` HostName string `json:"HostName" xml:"HostName"` - Status string `json:"Status" xml:"Status"` Cpu int `json:"Cpu" xml:"Cpu"` + Status string `json:"Status" xml:"Status"` SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` OSName string `json:"OSName" xml:"OSName"` OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` RegionId string `json:"RegionId" xml:"RegionId"` - IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` InstanceId string `json:"InstanceId" xml:"InstanceId"` DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` Description string `json:"Description" xml:"Description"` - IzNo string `json:"IzNo" xml:"IzNo"` Recyclable bool `json:"Recyclable" xml:"Recyclable"` + IzNo string `json:"IzNo" xml:"IzNo"` SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` OSType string `json:"OSType" xml:"OSType"` @@ -66,8 +66,8 @@ type Instance struct { VlanId string `json:"VlanId" xml:"VlanId"` StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - OsType bool `json:"OsType" xml:"OsType"` DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` + OsType bool `json:"OsType" xml:"OsType"` SecurityGroupIds SecurityGroupIdsInDescribeInstances `json:"SecurityGroupIds" xml:"SecurityGroupIds"` InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` diff --git a/services/ecs/struct_instance_id_set.go b/services/ecs/struct_instance_id_set.go new file mode 100644 index 0000000000..097f9a3d7b --- /dev/null +++ b/services/ecs/struct_instance_id_set.go @@ -0,0 +1,22 @@ + +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. + +// InstanceIdSet is a nested struct in ecs response +type InstanceIdSet struct { +InstanceIds [] string `json:"InstanceIds" xml:"InstanceIds"` +} diff --git a/services/ecs/struct_instance_id_sets_in_run_instances.go b/services/ecs/struct_instance_id_sets_in_run_instances.go new file mode 100644 index 0000000000..a9ca2e428c --- /dev/null +++ b/services/ecs/struct_instance_id_sets_in_run_instances.go @@ -0,0 +1,22 @@ + +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. + +// InstanceIdSetsInRunInstances is a nested struct in ecs response +type InstanceIdSetsInRunInstances struct { +InstanceIdSet [] string `json:"InstanceIdSet" xml:"InstanceIdSet"` +} diff --git a/services/ecs/struct_instance_id_sets_in_run_instances_gated_launch.go b/services/ecs/struct_instance_id_sets_in_run_instances_gated_launch.go new file mode 100644 index 0000000000..0471432031 --- /dev/null +++ b/services/ecs/struct_instance_id_sets_in_run_instances_gated_launch.go @@ -0,0 +1,22 @@ + +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. + +// InstanceIdSetsInRunInstancesGatedLaunch is a nested struct in ecs response +type InstanceIdSetsInRunInstancesGatedLaunch struct { +InstanceIdSet [] string `json:"InstanceIdSet" xml:"InstanceIdSet"` +} diff --git a/services/ecs/struct_instance_info.go b/services/ecs/struct_instance_info.go new file mode 100644 index 0000000000..6a74f46d9e --- /dev/null +++ b/services/ecs/struct_instance_info.go @@ -0,0 +1,22 @@ + +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. + +// InstanceInfo is a nested struct in ecs response +type InstanceInfo struct { +InstanceInfo [] string `json:"InstanceInfo" xml:"InstanceInfo"` +} diff --git a/services/ecs/struct_instance_type.go b/services/ecs/struct_instance_type.go index 32cc8c3438..294d5f8baf 100644 --- a/services/ecs/struct_instance_type.go +++ b/services/ecs/struct_instance_type.go @@ -26,11 +26,11 @@ type InstanceType struct { Memory int `json:"Memory" xml:"Memory"` InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` BaselineCredit int `json:"BaselineCredit" xml:"BaselineCredit"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` - Generation string `json:"Generation" xml:"Generation"` GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + Generation string `json:"Generation" xml:"Generation"` SupportIoOptimized string `json:"SupportIoOptimized" xml:"SupportIoOptimized"` InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` InitialCredit int `json:"InitialCredit" xml:"InitialCredit"` diff --git a/services/ecs/struct_instances.go b/services/ecs/struct_instances.go new file mode 100644 index 0000000000..cd03bfe2cd --- /dev/null +++ b/services/ecs/struct_instances.go @@ -0,0 +1,22 @@ + +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. + +// Instances is a nested struct in ecs response +type Instances struct { +Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/services/ecs/struct_kms_key.go b/services/ecs/struct_kms_key.go new file mode 100644 index 0000000000..c0660b59a2 --- /dev/null +++ b/services/ecs/struct_kms_key.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. + +// KMSKey is a nested struct in ecs response +type KMSKey struct { + KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` + Alias string `json:"Alias" xml:"Alias"` +} diff --git a/services/ecs/struct_kms_key_ids.go b/services/ecs/struct_kms_key_ids.go new file mode 100644 index 0000000000..bc840e53da --- /dev/null +++ b/services/ecs/struct_kms_key_ids.go @@ -0,0 +1,22 @@ + +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. + +// KMSKeyIds is a nested struct in ecs response +type KMSKeyIds struct { +KmsKeyId [] string `json:"kmsKeyId" xml:"kmsKeyId"` +} diff --git a/services/ecs/struct_kms_keys.go b/services/ecs/struct_kms_keys.go new file mode 100644 index 0000000000..2764433d68 --- /dev/null +++ b/services/ecs/struct_kms_keys.go @@ -0,0 +1,22 @@ + +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. + +// KMSKeys is a nested struct in ecs response +type KMSKeys struct { +KMSKey []KMSKey `json:"KMSKey" xml:"KMSKey"` +} diff --git a/services/ecs/struct_limit_value_set.go b/services/ecs/struct_limit_value_set.go new file mode 100644 index 0000000000..ad96ee6a2b --- /dev/null +++ b/services/ecs/struct_limit_value_set.go @@ -0,0 +1,22 @@ + +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. + +// LimitValueSet is a nested struct in ecs response +type LimitValueSet struct { +LimitValue [] string `json:"LimitValue" xml:"LimitValue"` +} diff --git a/services/ecs/struct_network_interface_ids.go b/services/ecs/struct_network_interface_ids.go new file mode 100644 index 0000000000..e709b961c5 --- /dev/null +++ b/services/ecs/struct_network_interface_ids.go @@ -0,0 +1,22 @@ + +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. + +// NetworkInterfaceIds is a nested struct in ecs response +type NetworkInterfaceIds struct { +NetworkInterfaceId [] string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` +} diff --git a/services/ecs/struct_network_interfaces.go b/services/ecs/struct_network_interfaces.go new file mode 100644 index 0000000000..e739920d63 --- /dev/null +++ b/services/ecs/struct_network_interfaces.go @@ -0,0 +1,22 @@ + +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. + +// NetworkInterfaces is a nested struct in ecs response +type NetworkInterfaces struct { +NetworkInterface []NetworkInterface `json:"NetworkInterface" xml:"NetworkInterface"` +} diff --git a/services/ecs/struct_order.go b/services/ecs/struct_order.go new file mode 100644 index 0000000000..493f76a886 --- /dev/null +++ b/services/ecs/struct_order.go @@ -0,0 +1,30 @@ + +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. + +// Order is a nested struct in ecs response +type Order struct { + SpotInstanceTypeOriginalPrice float64 `json:"SpotInstanceTypeOriginalPrice" xml:"SpotInstanceTypeOriginalPrice"` + SpotInstanceTypePrice float64 `json:"SpotInstanceTypePrice" xml:"SpotInstanceTypePrice"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + Currency string `json:"Currency" xml:"Currency"` + ReservedInstanceHourPrice float64 `json:"ReservedInstanceHourPrice" xml:"ReservedInstanceHourPrice"` + RuleIdSet RuleIdSetInDescribeBandwidthPrice `json:"RuleIdSet" xml:"RuleIdSet"` + Coupons Coupons `json:"Coupons" xml:"Coupons"` +} diff --git a/services/ecs/struct_order_params_in_create_order.go b/services/ecs/struct_order_params_in_create_order.go new file mode 100644 index 0000000000..f44fe691db --- /dev/null +++ b/services/ecs/struct_order_params_in_create_order.go @@ -0,0 +1,22 @@ + +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. + +// OrderParamsInCreateOrder is a nested struct in ecs response +type OrderParamsInCreateOrder struct { +OrderParam [] string `json:"OrderParam" xml:"OrderParam"` +} diff --git a/services/ecs/struct_order_params_in_describe_price.go b/services/ecs/struct_order_params_in_describe_price.go new file mode 100644 index 0000000000..3c6ef76274 --- /dev/null +++ b/services/ecs/struct_order_params_in_describe_price.go @@ -0,0 +1,22 @@ + +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. + +// OrderParamsInDescribePrice is a nested struct in ecs response +type OrderParamsInDescribePrice struct { +OrderParam [] string `json:"OrderParam" xml:"OrderParam"` +} diff --git a/services/ecs/struct_price.go b/services/ecs/struct_price.go index fa421fbf59..8e1fad492c 100644 --- a/services/ecs/struct_price.go +++ b/services/ecs/struct_price.go @@ -22,5 +22,5 @@ type Price struct { TradePrice float64 `json:"TradePrice" xml:"TradePrice"` OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` Currency string `json:"Currency" xml:"Currency"` - DetailInfos DetailInfosInDescribeRenewalPrice `json:"DetailInfos" xml:"DetailInfos"` + DetailInfos DetailInfosInDescribePrice `json:"DetailInfos" xml:"DetailInfos"` } diff --git a/services/ecs/struct_price_info.go b/services/ecs/struct_price_info.go index 7d8c6f813f..71386e6f03 100644 --- a/services/ecs/struct_price_info.go +++ b/services/ecs/struct_price_info.go @@ -19,5 +19,5 @@ package ecs // PriceInfo is a nested struct in ecs response type PriceInfo struct { Price Price `json:"Price" xml:"Price"` - Rules RulesInDescribeRenewalPrice `json:"Rules" xml:"Rules"` + Rules RulesInDescribePrice `json:"Rules" xml:"Rules"` } diff --git a/services/ecs/struct_price_warning.go b/services/ecs/struct_price_warning.go new file mode 100644 index 0000000000..471c731544 --- /dev/null +++ b/services/ecs/struct_price_warning.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. + +// PriceWarning is a nested struct in ecs response +type PriceWarning struct { + Code string `json:"Code" xml:"Code"` + Msg string `json:"Msg" xml:"Msg"` +} diff --git a/services/ecs/struct_qos_group.go b/services/ecs/struct_qos_group.go new file mode 100644 index 0000000000..0db7a20932 --- /dev/null +++ b/services/ecs/struct_qos_group.go @@ -0,0 +1,29 @@ + +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. + +// QosGroup is a nested struct in ecs response +type QosGroup struct { + QosGroupName string `json:"QosGroupName" xml:"QosGroupName"` + Rx string `json:"Rx" xml:"Rx"` + Tx string `json:"Tx" xml:"Tx"` + RxPps string `json:"RxPps" xml:"RxPps"` + TxPps string `json:"TxPps" xml:"TxPps"` + Type string `json:"Type" xml:"Type"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModify string `json:"GmtModify" xml:"GmtModify"` +} diff --git a/services/ecs/struct_qos_group_info.go b/services/ecs/struct_qos_group_info.go new file mode 100644 index 0000000000..d15a09d948 --- /dev/null +++ b/services/ecs/struct_qos_group_info.go @@ -0,0 +1,24 @@ + +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. + +// QosGroupInfo is a nested struct in ecs response +type QosGroupInfo struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NetworkInterfaceIds NetworkInterfaceIds `json:"NetworkInterfaceIds" xml:"NetworkInterfaceIds"` + QosGroup QosGroup `json:"QosGroup" xml:"QosGroup"` +} diff --git a/services/ecs/struct_recommend_filter.go b/services/ecs/struct_recommend_filter.go new file mode 100644 index 0000000000..cde10bec1b --- /dev/null +++ b/services/ecs/struct_recommend_filter.go @@ -0,0 +1,25 @@ + +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. + +// RecommendFilter is a nested struct in ecs response +type RecommendFilter struct { + Product string `json:"Product" xml:"Product"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + AttributeName string `json:"AttributeName" xml:"AttributeName"` + AttributeValue string `json:"AttributeValue" xml:"AttributeValue"` +} diff --git a/services/ecs/struct_recommend_filters.go b/services/ecs/struct_recommend_filters.go new file mode 100644 index 0000000000..4d2aab80d5 --- /dev/null +++ b/services/ecs/struct_recommend_filters.go @@ -0,0 +1,22 @@ + +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. + +// RecommendFilters is a nested struct in ecs response +type RecommendFilters struct { +RecommendFilter []RecommendFilter `json:"RecommendFilter" xml:"RecommendFilter"` +} diff --git a/services/ecs/struct_related_order_ids.go b/services/ecs/struct_related_order_ids.go new file mode 100644 index 0000000000..d2917edc91 --- /dev/null +++ b/services/ecs/struct_related_order_ids.go @@ -0,0 +1,22 @@ + +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. + +// RelatedOrderIds is a nested struct in ecs response +type RelatedOrderIds struct { +RelatedOrderId [] string `json:"RelatedOrderId" xml:"RelatedOrderId"` +} diff --git a/services/ecs/struct_related_order_item_set.go b/services/ecs/struct_related_order_item_set.go new file mode 100644 index 0000000000..fe4d21190f --- /dev/null +++ b/services/ecs/struct_related_order_item_set.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. + +// RelatedOrderItemSet is a nested struct in ecs response +type RelatedOrderItemSet struct { + InstanceIdSet InstanceIdSet `json:"InstanceIdSet" xml:"InstanceIdSet"` + RelatedOrderIds RelatedOrderIds `json:"RelatedOrderIds" xml:"RelatedOrderIds"` +} diff --git a/services/ecs/struct_related_order_item_sets.go b/services/ecs/struct_related_order_item_sets.go new file mode 100644 index 0000000000..729e1bd156 --- /dev/null +++ b/services/ecs/struct_related_order_item_sets.go @@ -0,0 +1,22 @@ + +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. + +// RelatedOrderItemSets is a nested struct in ecs response +type RelatedOrderItemSets struct { +RelatedOrderItemSet []RelatedOrderItemSet `json:"RelatedOrderItemSet" xml:"RelatedOrderItemSet"` +} diff --git a/services/ecs/struct_resource_price_model.go b/services/ecs/struct_resource_price_model.go index a6586e6933..7548c75150 100644 --- a/services/ecs/struct_resource_price_model.go +++ b/services/ecs/struct_resource_price_model.go @@ -22,5 +22,5 @@ type ResourcePriceModel struct { TradePrice float64 `json:"TradePrice" xml:"TradePrice"` OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` Resource string `json:"Resource" xml:"Resource"` - SubRules SubRulesInDescribeRenewalPrice `json:"SubRules" xml:"SubRules"` + SubRules SubRulesInDescribePrice `json:"SubRules" xml:"SubRules"` } diff --git a/services/ecs/struct_rule_id_set_in_describe_bandwidth_price.go b/services/ecs/struct_rule_id_set_in_describe_bandwidth_price.go new file mode 100644 index 0000000000..9a6b4d08a1 --- /dev/null +++ b/services/ecs/struct_rule_id_set_in_describe_bandwidth_price.go @@ -0,0 +1,22 @@ + +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. + +// RuleIdSetInDescribeBandwidthPrice is a nested struct in ecs response +type RuleIdSetInDescribeBandwidthPrice struct { +RuleId [] string `json:"RuleId" xml:"RuleId"` +} diff --git a/services/ecs/struct_rule_id_set_in_describe_price.go b/services/ecs/struct_rule_id_set_in_describe_price.go new file mode 100644 index 0000000000..93e54e181a --- /dev/null +++ b/services/ecs/struct_rule_id_set_in_describe_price.go @@ -0,0 +1,22 @@ + +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. + +// RuleIdSetInDescribePrice is a nested struct in ecs response +type RuleIdSetInDescribePrice struct { +RuleId [] string `json:"RuleId" xml:"RuleId"` +} diff --git a/services/ecs/struct_rules_in_describe_bandwidth_price.go b/services/ecs/struct_rules_in_describe_bandwidth_price.go new file mode 100644 index 0000000000..b95c721bf5 --- /dev/null +++ b/services/ecs/struct_rules_in_describe_bandwidth_price.go @@ -0,0 +1,22 @@ + +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. + +// RulesInDescribeBandwidthPrice is a nested struct in ecs response +type RulesInDescribeBandwidthPrice struct { +Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/services/ecs/struct_subscription.go b/services/ecs/struct_subscription.go new file mode 100644 index 0000000000..b58ce66665 --- /dev/null +++ b/services/ecs/struct_subscription.go @@ -0,0 +1,24 @@ + +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. + +// Subscription is a nested struct in ecs response +type Subscription struct { + Name string `json:"Name" xml:"Name"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + MnsQueueArn string `json:"MnsQueueArn" xml:"MnsQueueArn"` +} diff --git a/services/ecs/struct_subscription_set.go b/services/ecs/struct_subscription_set.go new file mode 100644 index 0000000000..3a702d4e9d --- /dev/null +++ b/services/ecs/struct_subscription_set.go @@ -0,0 +1,22 @@ + +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. + +// SubscriptionSet is a nested struct in ecs response +type SubscriptionSet struct { +Subscription []Subscription `json:"Subscription" xml:"Subscription"` +} diff --git a/services/ecs/struct_support_instance_type_families_in_describe_dedicated_host_types.go b/services/ecs/struct_support_instance_type_families_in_describe_dedicated_host_types.go new file mode 100644 index 0000000000..8ecb59660b --- /dev/null +++ b/services/ecs/struct_support_instance_type_families_in_describe_dedicated_host_types.go @@ -0,0 +1,22 @@ + +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. + +// SupportInstanceTypeFamiliesInDescribeDedicatedHostTypes is a nested struct in ecs response +type SupportInstanceTypeFamiliesInDescribeDedicatedHostTypes struct { +SupportInstanceTypeFamily [] string `json:"SupportInstanceTypeFamily" xml:"SupportInstanceTypeFamily"` +} diff --git a/services/ecs/struct_support_instance_type_families_in_describe_dedicated_hosts.go b/services/ecs/struct_support_instance_type_families_in_describe_dedicated_hosts.go new file mode 100644 index 0000000000..3cae90e7ed --- /dev/null +++ b/services/ecs/struct_support_instance_type_families_in_describe_dedicated_hosts.go @@ -0,0 +1,22 @@ + +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. + +// SupportInstanceTypeFamiliesInDescribeDedicatedHosts is a nested struct in ecs response +type SupportInstanceTypeFamiliesInDescribeDedicatedHosts struct { +SupportInstanceTypeFamily [] string `json:"SupportInstanceTypeFamily" xml:"SupportInstanceTypeFamily"` +} diff --git a/services/ecs/struct_support_instance_types_list_in_describe_dedicated_host_types.go b/services/ecs/struct_support_instance_types_list_in_describe_dedicated_host_types.go new file mode 100644 index 0000000000..f4647acd51 --- /dev/null +++ b/services/ecs/struct_support_instance_types_list_in_describe_dedicated_host_types.go @@ -0,0 +1,22 @@ + +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. + +// SupportInstanceTypesListInDescribeDedicatedHostTypes is a nested struct in ecs response +type SupportInstanceTypesListInDescribeDedicatedHostTypes struct { +SupportInstanceTypesList [] string `json:"SupportInstanceTypesList" xml:"SupportInstanceTypesList"` +} diff --git a/services/ecs/struct_support_instance_types_list_in_describe_dedicated_hosts.go b/services/ecs/struct_support_instance_types_list_in_describe_dedicated_hosts.go new file mode 100644 index 0000000000..d1d43024f3 --- /dev/null +++ b/services/ecs/struct_support_instance_types_list_in_describe_dedicated_hosts.go @@ -0,0 +1,22 @@ + +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. + +// SupportInstanceTypesListInDescribeDedicatedHosts is a nested struct in ecs response +type SupportInstanceTypesListInDescribeDedicatedHosts struct { +SupportInstanceTypesList [] string `json:"SupportInstanceTypesList" xml:"SupportInstanceTypesList"` +} diff --git a/services/ecs/struct_support_operations.go b/services/ecs/struct_support_operations.go new file mode 100644 index 0000000000..832fbc5a93 --- /dev/null +++ b/services/ecs/struct_support_operations.go @@ -0,0 +1,22 @@ + +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. + +// SupportOperations is a nested struct in ecs response +type SupportOperations struct { +SupportOperation [] string `json:"SupportOperation" xml:"SupportOperation"` +} diff --git a/services/ecs/struct_tags_in_describe_reserved_instances.go b/services/ecs/struct_tags_in_describe_reserved_instances.go new file mode 100644 index 0000000000..3087ae4ab3 --- /dev/null +++ b/services/ecs/struct_tags_in_describe_reserved_instances.go @@ -0,0 +1,22 @@ + +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. + +// TagsInDescribeReservedInstances is a nested struct in ecs response +type TagsInDescribeReservedInstances struct { +Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/services/ecs/struct_tags_in_get_launch_template_data.go b/services/ecs/struct_tags_in_get_launch_template_data.go new file mode 100644 index 0000000000..1bb99069e3 --- /dev/null +++ b/services/ecs/struct_tags_in_get_launch_template_data.go @@ -0,0 +1,22 @@ + +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. + +// TagsInGetLaunchTemplateData is a nested struct in ecs response +type TagsInGetLaunchTemplateData struct { +InstanceTag []InstanceTag `json:"InstanceTag" xml:"InstanceTag"` +} diff --git a/services/ecs/struct_values.go b/services/ecs/struct_values.go new file mode 100644 index 0000000000..50f934caf3 --- /dev/null +++ b/services/ecs/struct_values.go @@ -0,0 +1,22 @@ + +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. + +// Values is a nested struct in ecs response +type Values struct { +Value [] string `json:"Value" xml:"Value"` +} diff --git a/services/ecs/struct_volume_ids_in_create_volumes.go b/services/ecs/struct_volume_ids_in_create_volumes.go new file mode 100644 index 0000000000..d0e278fac8 --- /dev/null +++ b/services/ecs/struct_volume_ids_in_create_volumes.go @@ -0,0 +1,22 @@ + +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. + +// VolumeIdsInCreateVolumes is a nested struct in ecs response +type VolumeIdsInCreateVolumes struct { +VolumeId [] string `json:"VolumeId" xml:"VolumeId"` +} diff --git a/services/ecs/struct_volume_ids_in_create_volumes_gated_launch.go b/services/ecs/struct_volume_ids_in_create_volumes_gated_launch.go new file mode 100644 index 0000000000..894a470d72 --- /dev/null +++ b/services/ecs/struct_volume_ids_in_create_volumes_gated_launch.go @@ -0,0 +1,22 @@ + +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. + +// VolumeIdsInCreateVolumesGatedLaunch is a nested struct in ecs response +type VolumeIdsInCreateVolumesGatedLaunch struct { +VolumeId [] string `json:"VolumeId" xml:"VolumeId"` +}