From 6125757a567ae45d5266091ffa68c93b82015563 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 28 May 2021 03:55:02 +0000 Subject: [PATCH] Generated 2017-06-01 for hitsdb. --- ChangeLog.txt | 4 + services/hitsdb/create_hi_tsdb_instance.go | 124 ++++++++++++++++ ...ite_list.go => delete_hi_tsdb_instance.go} | 50 +++---- services/hitsdb/describe_hi_tsdb_instance.go | 137 ++++++++++++++++++ .../hitsdb/describe_hi_tsdb_instance_list.go | 113 +++++++++++++++ ...cribe_hi_tsdb_instance_security_ip_list.go | 106 ++++++++++++++ services/hitsdb/describe_regions.go | 6 +- services/hitsdb/describe_zones.go | 105 ++++++++++++++ services/hitsdb/get_lindorm_instance.go | 129 ----------------- .../get_lindorm_instance_engine_list.go | 106 -------------- services/hitsdb/get_lindorm_instance_list.go | 112 -------------- .../hitsdb/modify_hi_tsdb_instance_class.go | 107 ++++++++++++++ ...odify_hi_tsdb_instance_security_ip_list.go | 106 ++++++++++++++ ...st.go => rename_hi_tsdb_instance_alias.go} | 48 +++--- services/hitsdb/renew_tsdb_instance.go | 107 ++++++++++++++ services/hitsdb/restart_hi_tsdb_instance.go | 104 +++++++++++++ services/hitsdb/struct_engine.go | 26 ---- services/hitsdb/struct_instance.go | 43 ++++++ services/hitsdb/struct_instance_list.go | 2 +- .../hitsdb/struct_lindorm_instance_summary.go | 34 ----- services/hitsdb/struct_net_info.go | 24 --- ...truct_ip_list.go => struct_security_ip.go} | 6 +- ...y_ip_list_in_describe_hi_tsdb_instance.go} | 6 +- ...ribe_hi_tsdb_instance_security_ip_list.go} | 7 +- ...t_net_info_list.go => struct_zone_list.go} | 6 +- ...ndorm_instance.go => struct_zone_model.go} | 7 +- .../switch_hi_tsdb_instance_public_net.go | 105 ++++++++++++++ 27 files changed, 1229 insertions(+), 501 deletions(-) create mode 100644 services/hitsdb/create_hi_tsdb_instance.go rename services/hitsdb/{get_instance_ip_white_list.go => delete_hi_tsdb_instance.go} (50%) create mode 100644 services/hitsdb/describe_hi_tsdb_instance.go create mode 100644 services/hitsdb/describe_hi_tsdb_instance_list.go create mode 100644 services/hitsdb/describe_hi_tsdb_instance_security_ip_list.go create mode 100644 services/hitsdb/describe_zones.go delete mode 100644 services/hitsdb/get_lindorm_instance.go delete mode 100644 services/hitsdb/get_lindorm_instance_engine_list.go delete mode 100644 services/hitsdb/get_lindorm_instance_list.go create mode 100644 services/hitsdb/modify_hi_tsdb_instance_class.go create mode 100644 services/hitsdb/modify_hi_tsdb_instance_security_ip_list.go rename services/hitsdb/{update_instance_ip_white_list.go => rename_hi_tsdb_instance_alias.go} (51%) create mode 100644 services/hitsdb/renew_tsdb_instance.go create mode 100644 services/hitsdb/restart_hi_tsdb_instance.go delete mode 100644 services/hitsdb/struct_engine.go create mode 100644 services/hitsdb/struct_instance.go delete mode 100644 services/hitsdb/struct_lindorm_instance_summary.go delete mode 100644 services/hitsdb/struct_net_info.go rename services/hitsdb/{struct_ip_list.go => struct_security_ip.go} (85%) rename services/hitsdb/{struct_engine_list_in_get_lindorm_instance_engine_list.go => struct_security_ip_list_in_describe_hi_tsdb_instance.go} (77%) rename services/hitsdb/{struct_engine_info.go => struct_security_ip_list_in_describe_hi_tsdb_instance_security_ip_list.go} (75%) rename services/hitsdb/{struct_net_info_list.go => struct_zone_list.go} (84%) rename services/hitsdb/{struct_engine_list_in_get_lindorm_instance.go => struct_zone_model.go} (80%) create mode 100644 services/hitsdb/switch_hi_tsdb_instance_public_net.go diff --git a/ChangeLog.txt b/ChangeLog.txt index b5551a47c4..3e1c9aaa7c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2021-05-28 Version: v1.61.1115 +- Generated 2017-06-01 for `hitsdb`. +- Create Lindorm Open api. + 2021-05-28 Version: v1.61.1114 - Generated 2020-06-15 for `hitsdb`. - Create Lindorm Open api. diff --git a/services/hitsdb/create_hi_tsdb_instance.go b/services/hitsdb/create_hi_tsdb_instance.go new file mode 100644 index 0000000000..75fe753557 --- /dev/null +++ b/services/hitsdb/create_hi_tsdb_instance.go @@ -0,0 +1,124 @@ +package hitsdb + +//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" +) + +// CreateHiTSDBInstance invokes the hitsdb.CreateHiTSDBInstance API synchronously +func (client *Client) CreateHiTSDBInstance(request *CreateHiTSDBInstanceRequest) (response *CreateHiTSDBInstanceResponse, err error) { + response = CreateCreateHiTSDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateHiTSDBInstanceWithChan invokes the hitsdb.CreateHiTSDBInstance API asynchronously +func (client *Client) CreateHiTSDBInstanceWithChan(request *CreateHiTSDBInstanceRequest) (<-chan *CreateHiTSDBInstanceResponse, <-chan error) { + responseChan := make(chan *CreateHiTSDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHiTSDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHiTSDBInstanceWithCallback invokes the hitsdb.CreateHiTSDBInstance API asynchronously +func (client *Client) CreateHiTSDBInstanceWithCallback(request *CreateHiTSDBInstanceRequest, callback func(response *CreateHiTSDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHiTSDBInstanceResponse + var err error + defer close(result) + response, err = client.CreateHiTSDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHiTSDBInstanceRequest is the request struct for api CreateHiTSDBInstance +type CreateHiTSDBInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + InstanceClass string `position:"Query" name:"InstanceClass"` + Duration string `position:"Query" name:"Duration"` + SecurityToken string `position:"Query" name:"SecurityToken"` + MaxSeriesPerDatabase string `position:"Query" name:"MaxSeriesPerDatabase"` + DiskCategory string `position:"Query" name:"DiskCategory"` + MaxTimelineLimit string `position:"Query" name:"MaxTimelineLimit"` + InstanceStorage string `position:"Query" name:"InstanceStorage"` + EngineType string `position:"Query" name:"EngineType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceAlias string `position:"Query" name:"InstanceAlias"` + MaxDatabaseLimit string `position:"Query" name:"MaxDatabaseLimit"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceName string `position:"Query" name:"InstanceName"` + InstanceTps string `position:"Query" name:"InstanceTps"` + VPCId string `position:"Query" name:"VPCId"` + ZoneId string `position:"Query" name:"ZoneId"` + TSDBVersion string `position:"Query" name:"TSDBVersion"` + AppKey string `position:"Query" name:"AppKey"` + PayType string `position:"Query" name:"PayType"` + PricingCycle string `position:"Query" name:"PricingCycle"` +} + +// CreateHiTSDBInstanceResponse is the response struct for api CreateHiTSDBInstance +type CreateHiTSDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + OrderId int64 `json:"OrderId" xml:"OrderId"` +} + +// CreateCreateHiTSDBInstanceRequest creates a request to invoke CreateHiTSDBInstance API +func CreateCreateHiTSDBInstanceRequest() (request *CreateHiTSDBInstanceRequest) { + request = &CreateHiTSDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "CreateHiTSDBInstance", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateHiTSDBInstanceResponse creates a response to parse from CreateHiTSDBInstance response +func CreateCreateHiTSDBInstanceResponse() (response *CreateHiTSDBInstanceResponse) { + response = &CreateHiTSDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/get_instance_ip_white_list.go b/services/hitsdb/delete_hi_tsdb_instance.go similarity index 50% rename from services/hitsdb/get_instance_ip_white_list.go rename to services/hitsdb/delete_hi_tsdb_instance.go index e9b3ea1fb2..2b5be243fa 100644 --- a/services/hitsdb/get_instance_ip_white_list.go +++ b/services/hitsdb/delete_hi_tsdb_instance.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// GetInstanceIpWhiteList invokes the hitsdb.GetInstanceIpWhiteList API synchronously -func (client *Client) GetInstanceIpWhiteList(request *GetInstanceIpWhiteListRequest) (response *GetInstanceIpWhiteListResponse, err error) { - response = CreateGetInstanceIpWhiteListResponse() +// DeleteHiTSDBInstance invokes the hitsdb.DeleteHiTSDBInstance API synchronously +func (client *Client) DeleteHiTSDBInstance(request *DeleteHiTSDBInstanceRequest) (response *DeleteHiTSDBInstanceResponse, err error) { + response = CreateDeleteHiTSDBInstanceResponse() err = client.DoAction(request, response) return } -// GetInstanceIpWhiteListWithChan invokes the hitsdb.GetInstanceIpWhiteList API asynchronously -func (client *Client) GetInstanceIpWhiteListWithChan(request *GetInstanceIpWhiteListRequest) (<-chan *GetInstanceIpWhiteListResponse, <-chan error) { - responseChan := make(chan *GetInstanceIpWhiteListResponse, 1) +// DeleteHiTSDBInstanceWithChan invokes the hitsdb.DeleteHiTSDBInstance API asynchronously +func (client *Client) DeleteHiTSDBInstanceWithChan(request *DeleteHiTSDBInstanceRequest) (<-chan *DeleteHiTSDBInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteHiTSDBInstanceResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.GetInstanceIpWhiteList(request) + response, err := client.DeleteHiTSDBInstance(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) GetInstanceIpWhiteListWithChan(request *GetInstanceIpWhite return responseChan, errChan } -// GetInstanceIpWhiteListWithCallback invokes the hitsdb.GetInstanceIpWhiteList API asynchronously -func (client *Client) GetInstanceIpWhiteListWithCallback(request *GetInstanceIpWhiteListRequest, callback func(response *GetInstanceIpWhiteListResponse, err error)) <-chan int { +// DeleteHiTSDBInstanceWithCallback invokes the hitsdb.DeleteHiTSDBInstance API asynchronously +func (client *Client) DeleteHiTSDBInstanceWithCallback(request *DeleteHiTSDBInstanceRequest, callback func(response *DeleteHiTSDBInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *GetInstanceIpWhiteListResponse + var response *DeleteHiTSDBInstanceResponse var err error defer close(result) - response, err = client.GetInstanceIpWhiteList(request) + response, err = client.DeleteHiTSDBInstance(request) callback(response, err) result <- 1 }) @@ -68,39 +68,37 @@ func (client *Client) GetInstanceIpWhiteListWithCallback(request *GetInstanceIpW return result } -// GetInstanceIpWhiteListRequest is the request struct for api GetInstanceIpWhiteList -type GetInstanceIpWhiteListRequest struct { +// DeleteHiTSDBInstanceRequest is the request struct for api DeleteHiTSDBInstance +type DeleteHiTSDBInstanceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SecurityToken string `position:"Query" name:"SecurityToken"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - GroupName string `position:"Query" name:"GroupName"` InstanceId string `position:"Query" name:"InstanceId"` + AppKey string `position:"Query" name:"AppKey"` } -// GetInstanceIpWhiteListResponse is the response struct for api GetInstanceIpWhiteList -type GetInstanceIpWhiteListResponse struct { +// DeleteHiTSDBInstanceResponse is the response struct for api DeleteHiTSDBInstance +type DeleteHiTSDBInstanceResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - IpList []string `json:"IpList" xml:"IpList"` + RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateGetInstanceIpWhiteListRequest creates a request to invoke GetInstanceIpWhiteList API -func CreateGetInstanceIpWhiteListRequest() (request *GetInstanceIpWhiteListRequest) { - request = &GetInstanceIpWhiteListRequest{ +// CreateDeleteHiTSDBInstanceRequest creates a request to invoke DeleteHiTSDBInstance API +func CreateDeleteHiTSDBInstanceRequest() (request *DeleteHiTSDBInstanceRequest) { + request = &DeleteHiTSDBInstanceRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("hitsdb", "2020-06-15", "GetInstanceIpWhiteList", "hitsdb", "openAPI") + request.InitWithApiInfo("hitsdb", "2017-06-01", "DeleteHiTSDBInstance", "hitsdb", "openAPI") request.Method = requests.POST return } -// CreateGetInstanceIpWhiteListResponse creates a response to parse from GetInstanceIpWhiteList response -func CreateGetInstanceIpWhiteListResponse() (response *GetInstanceIpWhiteListResponse) { - response = &GetInstanceIpWhiteListResponse{ +// CreateDeleteHiTSDBInstanceResponse creates a response to parse from DeleteHiTSDBInstance response +func CreateDeleteHiTSDBInstanceResponse() (response *DeleteHiTSDBInstanceResponse) { + response = &DeleteHiTSDBInstanceResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/hitsdb/describe_hi_tsdb_instance.go b/services/hitsdb/describe_hi_tsdb_instance.go new file mode 100644 index 0000000000..9fe6942216 --- /dev/null +++ b/services/hitsdb/describe_hi_tsdb_instance.go @@ -0,0 +1,137 @@ +package hitsdb + +//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" +) + +// DescribeHiTSDBInstance invokes the hitsdb.DescribeHiTSDBInstance API synchronously +func (client *Client) DescribeHiTSDBInstance(request *DescribeHiTSDBInstanceRequest) (response *DescribeHiTSDBInstanceResponse, err error) { + response = CreateDescribeHiTSDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHiTSDBInstanceWithChan invokes the hitsdb.DescribeHiTSDBInstance API asynchronously +func (client *Client) DescribeHiTSDBInstanceWithChan(request *DescribeHiTSDBInstanceRequest) (<-chan *DescribeHiTSDBInstanceResponse, <-chan error) { + responseChan := make(chan *DescribeHiTSDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHiTSDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHiTSDBInstanceWithCallback invokes the hitsdb.DescribeHiTSDBInstance API asynchronously +func (client *Client) DescribeHiTSDBInstanceWithCallback(request *DescribeHiTSDBInstanceRequest, callback func(response *DescribeHiTSDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHiTSDBInstanceResponse + var err error + defer close(result) + response, err = client.DescribeHiTSDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHiTSDBInstanceRequest is the request struct for api DescribeHiTSDBInstance +type DescribeHiTSDBInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + AppKey string `position:"Query" name:"AppKey"` +} + +// DescribeHiTSDBInstanceResponse is the response struct for api DescribeHiTSDBInstance +type DescribeHiTSDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceAlias string `json:"InstanceAlias" xml:"InstanceAlias"` + InstanceDescription string `json:"InstanceDescription" xml:"InstanceDescription"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtExpire string `json:"GmtExpire" xml:"GmtExpire"` + InstanceClass string `json:"InstanceClass" xml:"InstanceClass"` + MaxTimelineLimit string `json:"MaxTimelineLimit" xml:"MaxTimelineLimit"` + InstanceStorage string `json:"InstanceStorage" xml:"InstanceStorage"` + InstanceTps string `json:"InstanceTps" xml:"InstanceTps"` + ReverseVpcIp string `json:"ReverseVpcIp" xml:"ReverseVpcIp"` + ReverseVpcPort string `json:"ReverseVpcPort" xml:"ReverseVpcPort"` + VpcId string `json:"VpcId" xml:"VpcId"` + VswitchId string `json:"VswitchId" xml:"VswitchId"` + ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` + PublicConnectionString string `json:"PublicConnectionString" xml:"PublicConnectionString"` + AutoRenew string `json:"AutoRenew" xml:"AutoRenew"` + EngineType string `json:"EngineType" xml:"EngineType"` + CpuNumber string `json:"CpuNumber" xml:"CpuNumber"` + MemSize string `json:"MemSize" xml:"MemSize"` + Series int `json:"Series" xml:"Series"` + RDSStatus string `json:"RDSStatus" xml:"RDSStatus"` + DiskCategory string `json:"DiskCategory" xml:"DiskCategory"` + Status string `json:"Status" xml:"Status"` + PaymentType string `json:"PaymentType" xml:"PaymentType"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + ExpiredTime int64 `json:"ExpiredTime" xml:"ExpiredTime"` + SecurityIpList []SecurityIp `json:"SecurityIpList" xml:"SecurityIpList"` +} + +// CreateDescribeHiTSDBInstanceRequest creates a request to invoke DescribeHiTSDBInstance API +func CreateDescribeHiTSDBInstanceRequest() (request *DescribeHiTSDBInstanceRequest) { + request = &DescribeHiTSDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "DescribeHiTSDBInstance", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeHiTSDBInstanceResponse creates a response to parse from DescribeHiTSDBInstance response +func CreateDescribeHiTSDBInstanceResponse() (response *DescribeHiTSDBInstanceResponse) { + response = &DescribeHiTSDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/describe_hi_tsdb_instance_list.go b/services/hitsdb/describe_hi_tsdb_instance_list.go new file mode 100644 index 0000000000..6a89645830 --- /dev/null +++ b/services/hitsdb/describe_hi_tsdb_instance_list.go @@ -0,0 +1,113 @@ +package hitsdb + +//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" +) + +// DescribeHiTSDBInstanceList invokes the hitsdb.DescribeHiTSDBInstanceList API synchronously +func (client *Client) DescribeHiTSDBInstanceList(request *DescribeHiTSDBInstanceListRequest) (response *DescribeHiTSDBInstanceListResponse, err error) { + response = CreateDescribeHiTSDBInstanceListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHiTSDBInstanceListWithChan invokes the hitsdb.DescribeHiTSDBInstanceList API asynchronously +func (client *Client) DescribeHiTSDBInstanceListWithChan(request *DescribeHiTSDBInstanceListRequest) (<-chan *DescribeHiTSDBInstanceListResponse, <-chan error) { + responseChan := make(chan *DescribeHiTSDBInstanceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHiTSDBInstanceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHiTSDBInstanceListWithCallback invokes the hitsdb.DescribeHiTSDBInstanceList API asynchronously +func (client *Client) DescribeHiTSDBInstanceListWithCallback(request *DescribeHiTSDBInstanceListRequest, callback func(response *DescribeHiTSDBInstanceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHiTSDBInstanceListResponse + var err error + defer close(result) + response, err = client.DescribeHiTSDBInstanceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHiTSDBInstanceListRequest is the request struct for api DescribeHiTSDBInstanceList +type DescribeHiTSDBInstanceListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StatusList string `position:"Query" name:"StatusList"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + SecurityToken string `position:"Query" name:"SecurityToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + QueryStr string `position:"Query" name:"QueryStr"` + EngineType string `position:"Query" name:"EngineType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AppKey string `position:"Query" name:"AppKey"` +} + +// DescribeHiTSDBInstanceListResponse is the response struct for api DescribeHiTSDBInstanceList +type DescribeHiTSDBInstanceListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Total int `json:"Total" xml:"Total"` + InstanceList []Instance `json:"InstanceList" xml:"InstanceList"` +} + +// CreateDescribeHiTSDBInstanceListRequest creates a request to invoke DescribeHiTSDBInstanceList API +func CreateDescribeHiTSDBInstanceListRequest() (request *DescribeHiTSDBInstanceListRequest) { + request = &DescribeHiTSDBInstanceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "DescribeHiTSDBInstanceList", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeHiTSDBInstanceListResponse creates a response to parse from DescribeHiTSDBInstanceList response +func CreateDescribeHiTSDBInstanceListResponse() (response *DescribeHiTSDBInstanceListResponse) { + response = &DescribeHiTSDBInstanceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/describe_hi_tsdb_instance_security_ip_list.go b/services/hitsdb/describe_hi_tsdb_instance_security_ip_list.go new file mode 100644 index 0000000000..f6a7a2115c --- /dev/null +++ b/services/hitsdb/describe_hi_tsdb_instance_security_ip_list.go @@ -0,0 +1,106 @@ +package hitsdb + +//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" +) + +// DescribeHiTSDBInstanceSecurityIpList invokes the hitsdb.DescribeHiTSDBInstanceSecurityIpList API synchronously +func (client *Client) DescribeHiTSDBInstanceSecurityIpList(request *DescribeHiTSDBInstanceSecurityIpListRequest) (response *DescribeHiTSDBInstanceSecurityIpListResponse, err error) { + response = CreateDescribeHiTSDBInstanceSecurityIpListResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHiTSDBInstanceSecurityIpListWithChan invokes the hitsdb.DescribeHiTSDBInstanceSecurityIpList API asynchronously +func (client *Client) DescribeHiTSDBInstanceSecurityIpListWithChan(request *DescribeHiTSDBInstanceSecurityIpListRequest) (<-chan *DescribeHiTSDBInstanceSecurityIpListResponse, <-chan error) { + responseChan := make(chan *DescribeHiTSDBInstanceSecurityIpListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHiTSDBInstanceSecurityIpList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHiTSDBInstanceSecurityIpListWithCallback invokes the hitsdb.DescribeHiTSDBInstanceSecurityIpList API asynchronously +func (client *Client) DescribeHiTSDBInstanceSecurityIpListWithCallback(request *DescribeHiTSDBInstanceSecurityIpListRequest, callback func(response *DescribeHiTSDBInstanceSecurityIpListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHiTSDBInstanceSecurityIpListResponse + var err error + defer close(result) + response, err = client.DescribeHiTSDBInstanceSecurityIpList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHiTSDBInstanceSecurityIpListRequest is the request struct for api DescribeHiTSDBInstanceSecurityIpList +type DescribeHiTSDBInstanceSecurityIpListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + GroupName string `position:"Query" name:"GroupName"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeHiTSDBInstanceSecurityIpListResponse is the response struct for api DescribeHiTSDBInstanceSecurityIpList +type DescribeHiTSDBInstanceSecurityIpListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityIpList []SecurityIp `json:"SecurityIpList" xml:"SecurityIpList"` +} + +// CreateDescribeHiTSDBInstanceSecurityIpListRequest creates a request to invoke DescribeHiTSDBInstanceSecurityIpList API +func CreateDescribeHiTSDBInstanceSecurityIpListRequest() (request *DescribeHiTSDBInstanceSecurityIpListRequest) { + request = &DescribeHiTSDBInstanceSecurityIpListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "DescribeHiTSDBInstanceSecurityIpList", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeHiTSDBInstanceSecurityIpListResponse creates a response to parse from DescribeHiTSDBInstanceSecurityIpList response +func CreateDescribeHiTSDBInstanceSecurityIpListResponse() (response *DescribeHiTSDBInstanceSecurityIpListResponse) { + response = &DescribeHiTSDBInstanceSecurityIpListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/describe_regions.go b/services/hitsdb/describe_regions.go index ab304c4b17..7bf6a6d656 100644 --- a/services/hitsdb/describe_regions.go +++ b/services/hitsdb/describe_regions.go @@ -82,8 +82,8 @@ type DescribeRegionsRequest struct { // DescribeRegionsResponse is the response struct for api DescribeRegions type DescribeRegionsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Regions []Region `json:"Regions" xml:"Regions"` + RequestId string `json:"RequestId" xml:"RequestId"` + Regions Regions `json:"Regions" xml:"Regions"` } // CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API @@ -91,7 +91,7 @@ func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { request = &DescribeRegionsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("hitsdb", "2020-06-15", "DescribeRegions", "hitsdb", "openAPI") + request.InitWithApiInfo("hitsdb", "2017-06-01", "DescribeRegions", "hitsdb", "openAPI") request.Method = requests.POST return } diff --git a/services/hitsdb/describe_zones.go b/services/hitsdb/describe_zones.go new file mode 100644 index 0000000000..1d2cebbf41 --- /dev/null +++ b/services/hitsdb/describe_zones.go @@ -0,0 +1,105 @@ +package hitsdb + +//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" +) + +// DescribeZones invokes the hitsdb.DescribeZones API synchronously +func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { + response = CreateDescribeZonesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeZonesWithChan invokes the hitsdb.DescribeZones API asynchronously +func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-chan *DescribeZonesResponse, <-chan error) { + responseChan := make(chan *DescribeZonesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeZones(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeZonesWithCallback invokes the hitsdb.DescribeZones API asynchronously +func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, callback func(response *DescribeZonesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeZonesResponse + var err error + defer close(result) + response, err = client.DescribeZones(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeZonesRequest is the request struct for api DescribeZones +type DescribeZonesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Language string `position:"Query" name:"Language"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeZonesResponse is the response struct for api DescribeZones +type DescribeZonesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ZoneList ZoneList `json:"ZoneList" xml:"ZoneList"` +} + +// CreateDescribeZonesRequest creates a request to invoke DescribeZones API +func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { + request = &DescribeZonesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "DescribeZones", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeZonesResponse creates a response to parse from DescribeZones response +func CreateDescribeZonesResponse() (response *DescribeZonesResponse) { + response = &DescribeZonesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/get_lindorm_instance.go b/services/hitsdb/get_lindorm_instance.go deleted file mode 100644 index fc7eb21ecf..0000000000 --- a/services/hitsdb/get_lindorm_instance.go +++ /dev/null @@ -1,129 +0,0 @@ -package hitsdb - -//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" -) - -// GetLindormInstance invokes the hitsdb.GetLindormInstance API synchronously -func (client *Client) GetLindormInstance(request *GetLindormInstanceRequest) (response *GetLindormInstanceResponse, err error) { - response = CreateGetLindormInstanceResponse() - err = client.DoAction(request, response) - return -} - -// GetLindormInstanceWithChan invokes the hitsdb.GetLindormInstance API asynchronously -func (client *Client) GetLindormInstanceWithChan(request *GetLindormInstanceRequest) (<-chan *GetLindormInstanceResponse, <-chan error) { - responseChan := make(chan *GetLindormInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetLindormInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetLindormInstanceWithCallback invokes the hitsdb.GetLindormInstance API asynchronously -func (client *Client) GetLindormInstanceWithCallback(request *GetLindormInstanceRequest, callback func(response *GetLindormInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetLindormInstanceResponse - var err error - defer close(result) - response, err = client.GetLindormInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetLindormInstanceRequest is the request struct for api GetLindormInstance -type GetLindormInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// GetLindormInstanceResponse is the response struct for api GetLindormInstance -type GetLindormInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InstanceAlias string `json:"InstanceAlias" xml:"InstanceAlias"` - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` - PayType string `json:"PayType" xml:"PayType"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - InstanceStorage string `json:"InstanceStorage" xml:"InstanceStorage"` - VpcId string `json:"VpcId" xml:"VpcId"` - VswitchId string `json:"VswitchId" xml:"VswitchId"` - AutoRenew bool `json:"AutoRenew" xml:"AutoRenew"` - EngineType int `json:"EngineType" xml:"EngineType"` - ServiceType string `json:"ServiceType" xml:"ServiceType"` - DeletionProtection string `json:"DeletionProtection" xml:"DeletionProtection"` - DiskCategory string `json:"DiskCategory" xml:"DiskCategory"` - ColdStorage int `json:"ColdStorage" xml:"ColdStorage"` - EnableBDS bool `json:"EnableBDS" xml:"EnableBDS"` - AliUid int64 `json:"AliUid" xml:"AliUid"` - EnableFS bool `json:"EnableFS" xml:"EnableFS"` - EnablePhoenix bool `json:"EnablePhoenix" xml:"EnablePhoenix"` - DiskUsage string `json:"DiskUsage" xml:"DiskUsage"` - DiskThreshold string `json:"DiskThreshold" xml:"DiskThreshold"` - EngineList []Engine `json:"EngineList" xml:"EngineList"` -} - -// CreateGetLindormInstanceRequest creates a request to invoke GetLindormInstance API -func CreateGetLindormInstanceRequest() (request *GetLindormInstanceRequest) { - request = &GetLindormInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("hitsdb", "2020-06-15", "GetLindormInstance", "hitsdb", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetLindormInstanceResponse creates a response to parse from GetLindormInstance response -func CreateGetLindormInstanceResponse() (response *GetLindormInstanceResponse) { - response = &GetLindormInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/hitsdb/get_lindorm_instance_engine_list.go b/services/hitsdb/get_lindorm_instance_engine_list.go deleted file mode 100644 index 2decd98f59..0000000000 --- a/services/hitsdb/get_lindorm_instance_engine_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package hitsdb - -//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" -) - -// GetLindormInstanceEngineList invokes the hitsdb.GetLindormInstanceEngineList API synchronously -func (client *Client) GetLindormInstanceEngineList(request *GetLindormInstanceEngineListRequest) (response *GetLindormInstanceEngineListResponse, err error) { - response = CreateGetLindormInstanceEngineListResponse() - err = client.DoAction(request, response) - return -} - -// GetLindormInstanceEngineListWithChan invokes the hitsdb.GetLindormInstanceEngineList API asynchronously -func (client *Client) GetLindormInstanceEngineListWithChan(request *GetLindormInstanceEngineListRequest) (<-chan *GetLindormInstanceEngineListResponse, <-chan error) { - responseChan := make(chan *GetLindormInstanceEngineListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetLindormInstanceEngineList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetLindormInstanceEngineListWithCallback invokes the hitsdb.GetLindormInstanceEngineList API asynchronously -func (client *Client) GetLindormInstanceEngineListWithCallback(request *GetLindormInstanceEngineListRequest, callback func(response *GetLindormInstanceEngineListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetLindormInstanceEngineListResponse - var err error - defer close(result) - response, err = client.GetLindormInstanceEngineList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetLindormInstanceEngineListRequest is the request struct for api GetLindormInstanceEngineList -type GetLindormInstanceEngineListRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` -} - -// GetLindormInstanceEngineListResponse is the response struct for api GetLindormInstanceEngineList -type GetLindormInstanceEngineListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - EngineList []EngineInfo `json:"EngineList" xml:"EngineList"` -} - -// CreateGetLindormInstanceEngineListRequest creates a request to invoke GetLindormInstanceEngineList API -func CreateGetLindormInstanceEngineListRequest() (request *GetLindormInstanceEngineListRequest) { - request = &GetLindormInstanceEngineListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("hitsdb", "2020-06-15", "GetLindormInstanceEngineList", "hitsdb", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetLindormInstanceEngineListResponse creates a response to parse from GetLindormInstanceEngineList response -func CreateGetLindormInstanceEngineListResponse() (response *GetLindormInstanceEngineListResponse) { - response = &GetLindormInstanceEngineListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/hitsdb/get_lindorm_instance_list.go b/services/hitsdb/get_lindorm_instance_list.go deleted file mode 100644 index c2c5657da6..0000000000 --- a/services/hitsdb/get_lindorm_instance_list.go +++ /dev/null @@ -1,112 +0,0 @@ -package hitsdb - -//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" -) - -// GetLindormInstanceList invokes the hitsdb.GetLindormInstanceList API synchronously -func (client *Client) GetLindormInstanceList(request *GetLindormInstanceListRequest) (response *GetLindormInstanceListResponse, err error) { - response = CreateGetLindormInstanceListResponse() - err = client.DoAction(request, response) - return -} - -// GetLindormInstanceListWithChan invokes the hitsdb.GetLindormInstanceList API asynchronously -func (client *Client) GetLindormInstanceListWithChan(request *GetLindormInstanceListRequest) (<-chan *GetLindormInstanceListResponse, <-chan error) { - responseChan := make(chan *GetLindormInstanceListResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetLindormInstanceList(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetLindormInstanceListWithCallback invokes the hitsdb.GetLindormInstanceList API asynchronously -func (client *Client) GetLindormInstanceListWithCallback(request *GetLindormInstanceListRequest, callback func(response *GetLindormInstanceListResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetLindormInstanceListResponse - var err error - defer close(result) - response, err = client.GetLindormInstanceList(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetLindormInstanceListRequest is the request struct for api GetLindormInstanceList -type GetLindormInstanceListRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SupportEngine requests.Integer `position:"Query" name:"SupportEngine"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - SecurityToken string `position:"Query" name:"SecurityToken"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - QueryStr string `position:"Query" name:"QueryStr"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServiceType string `position:"Query" name:"ServiceType"` -} - -// GetLindormInstanceListResponse is the response struct for api GetLindormInstanceList -type GetLindormInstanceListResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Total int `json:"Total" xml:"Total"` - InstanceList []LindormInstanceSummary `json:"InstanceList" xml:"InstanceList"` -} - -// CreateGetLindormInstanceListRequest creates a request to invoke GetLindormInstanceList API -func CreateGetLindormInstanceListRequest() (request *GetLindormInstanceListRequest) { - request = &GetLindormInstanceListRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("hitsdb", "2020-06-15", "GetLindormInstanceList", "hitsdb", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetLindormInstanceListResponse creates a response to parse from GetLindormInstanceList response -func CreateGetLindormInstanceListResponse() (response *GetLindormInstanceListResponse) { - response = &GetLindormInstanceListResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/hitsdb/modify_hi_tsdb_instance_class.go b/services/hitsdb/modify_hi_tsdb_instance_class.go new file mode 100644 index 0000000000..776c7393a4 --- /dev/null +++ b/services/hitsdb/modify_hi_tsdb_instance_class.go @@ -0,0 +1,107 @@ +package hitsdb + +//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" +) + +// ModifyHiTSDBInstanceClass invokes the hitsdb.ModifyHiTSDBInstanceClass API synchronously +func (client *Client) ModifyHiTSDBInstanceClass(request *ModifyHiTSDBInstanceClassRequest) (response *ModifyHiTSDBInstanceClassResponse, err error) { + response = CreateModifyHiTSDBInstanceClassResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHiTSDBInstanceClassWithChan invokes the hitsdb.ModifyHiTSDBInstanceClass API asynchronously +func (client *Client) ModifyHiTSDBInstanceClassWithChan(request *ModifyHiTSDBInstanceClassRequest) (<-chan *ModifyHiTSDBInstanceClassResponse, <-chan error) { + responseChan := make(chan *ModifyHiTSDBInstanceClassResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHiTSDBInstanceClass(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHiTSDBInstanceClassWithCallback invokes the hitsdb.ModifyHiTSDBInstanceClass API asynchronously +func (client *Client) ModifyHiTSDBInstanceClassWithCallback(request *ModifyHiTSDBInstanceClassRequest, callback func(response *ModifyHiTSDBInstanceClassResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHiTSDBInstanceClassResponse + var err error + defer close(result) + response, err = client.ModifyHiTSDBInstanceClass(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHiTSDBInstanceClassRequest is the request struct for api ModifyHiTSDBInstanceClass +type ModifyHiTSDBInstanceClassRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceClass string `position:"Query" name:"InstanceClass"` + SecurityToken string `position:"Query" name:"SecurityToken"` + InstanceStorage string `position:"Query" name:"InstanceStorage"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + AppKey string `position:"Query" name:"AppKey"` +} + +// ModifyHiTSDBInstanceClassResponse is the response struct for api ModifyHiTSDBInstanceClass +type ModifyHiTSDBInstanceClassResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHiTSDBInstanceClassRequest creates a request to invoke ModifyHiTSDBInstanceClass API +func CreateModifyHiTSDBInstanceClassRequest() (request *ModifyHiTSDBInstanceClassRequest) { + request = &ModifyHiTSDBInstanceClassRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "ModifyHiTSDBInstanceClass", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyHiTSDBInstanceClassResponse creates a response to parse from ModifyHiTSDBInstanceClass response +func CreateModifyHiTSDBInstanceClassResponse() (response *ModifyHiTSDBInstanceClassResponse) { + response = &ModifyHiTSDBInstanceClassResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/modify_hi_tsdb_instance_security_ip_list.go b/services/hitsdb/modify_hi_tsdb_instance_security_ip_list.go new file mode 100644 index 0000000000..9bd98a31fc --- /dev/null +++ b/services/hitsdb/modify_hi_tsdb_instance_security_ip_list.go @@ -0,0 +1,106 @@ +package hitsdb + +//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" +) + +// ModifyHiTSDBInstanceSecurityIpList invokes the hitsdb.ModifyHiTSDBInstanceSecurityIpList API synchronously +func (client *Client) ModifyHiTSDBInstanceSecurityIpList(request *ModifyHiTSDBInstanceSecurityIpListRequest) (response *ModifyHiTSDBInstanceSecurityIpListResponse, err error) { + response = CreateModifyHiTSDBInstanceSecurityIpListResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHiTSDBInstanceSecurityIpListWithChan invokes the hitsdb.ModifyHiTSDBInstanceSecurityIpList API asynchronously +func (client *Client) ModifyHiTSDBInstanceSecurityIpListWithChan(request *ModifyHiTSDBInstanceSecurityIpListRequest) (<-chan *ModifyHiTSDBInstanceSecurityIpListResponse, <-chan error) { + responseChan := make(chan *ModifyHiTSDBInstanceSecurityIpListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHiTSDBInstanceSecurityIpList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHiTSDBInstanceSecurityIpListWithCallback invokes the hitsdb.ModifyHiTSDBInstanceSecurityIpList API asynchronously +func (client *Client) ModifyHiTSDBInstanceSecurityIpListWithCallback(request *ModifyHiTSDBInstanceSecurityIpListRequest, callback func(response *ModifyHiTSDBInstanceSecurityIpListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHiTSDBInstanceSecurityIpListResponse + var err error + defer close(result) + response, err = client.ModifyHiTSDBInstanceSecurityIpList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHiTSDBInstanceSecurityIpListRequest is the request struct for api ModifyHiTSDBInstanceSecurityIpList +type ModifyHiTSDBInstanceSecurityIpListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + GroupName string `position:"Query" name:"GroupName"` + SecurityIpList string `position:"Query" name:"SecurityIpList"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ModifyHiTSDBInstanceSecurityIpListResponse is the response struct for api ModifyHiTSDBInstanceSecurityIpList +type ModifyHiTSDBInstanceSecurityIpListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHiTSDBInstanceSecurityIpListRequest creates a request to invoke ModifyHiTSDBInstanceSecurityIpList API +func CreateModifyHiTSDBInstanceSecurityIpListRequest() (request *ModifyHiTSDBInstanceSecurityIpListRequest) { + request = &ModifyHiTSDBInstanceSecurityIpListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "ModifyHiTSDBInstanceSecurityIpList", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyHiTSDBInstanceSecurityIpListResponse creates a response to parse from ModifyHiTSDBInstanceSecurityIpList response +func CreateModifyHiTSDBInstanceSecurityIpListResponse() (response *ModifyHiTSDBInstanceSecurityIpListResponse) { + response = &ModifyHiTSDBInstanceSecurityIpListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/update_instance_ip_white_list.go b/services/hitsdb/rename_hi_tsdb_instance_alias.go similarity index 51% rename from services/hitsdb/update_instance_ip_white_list.go rename to services/hitsdb/rename_hi_tsdb_instance_alias.go index 8bb543d1da..c20a03b41b 100644 --- a/services/hitsdb/update_instance_ip_white_list.go +++ b/services/hitsdb/rename_hi_tsdb_instance_alias.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// UpdateInstanceIpWhiteList invokes the hitsdb.UpdateInstanceIpWhiteList API synchronously -func (client *Client) UpdateInstanceIpWhiteList(request *UpdateInstanceIpWhiteListRequest) (response *UpdateInstanceIpWhiteListResponse, err error) { - response = CreateUpdateInstanceIpWhiteListResponse() +// RenameHiTSDBInstanceAlias invokes the hitsdb.RenameHiTSDBInstanceAlias API synchronously +func (client *Client) RenameHiTSDBInstanceAlias(request *RenameHiTSDBInstanceAliasRequest) (response *RenameHiTSDBInstanceAliasResponse, err error) { + response = CreateRenameHiTSDBInstanceAliasResponse() err = client.DoAction(request, response) return } -// UpdateInstanceIpWhiteListWithChan invokes the hitsdb.UpdateInstanceIpWhiteList API asynchronously -func (client *Client) UpdateInstanceIpWhiteListWithChan(request *UpdateInstanceIpWhiteListRequest) (<-chan *UpdateInstanceIpWhiteListResponse, <-chan error) { - responseChan := make(chan *UpdateInstanceIpWhiteListResponse, 1) +// RenameHiTSDBInstanceAliasWithChan invokes the hitsdb.RenameHiTSDBInstanceAlias API asynchronously +func (client *Client) RenameHiTSDBInstanceAliasWithChan(request *RenameHiTSDBInstanceAliasRequest) (<-chan *RenameHiTSDBInstanceAliasResponse, <-chan error) { + responseChan := make(chan *RenameHiTSDBInstanceAliasResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.UpdateInstanceIpWhiteList(request) + response, err := client.RenameHiTSDBInstanceAlias(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) UpdateInstanceIpWhiteListWithChan(request *UpdateInstanceI return responseChan, errChan } -// UpdateInstanceIpWhiteListWithCallback invokes the hitsdb.UpdateInstanceIpWhiteList API asynchronously -func (client *Client) UpdateInstanceIpWhiteListWithCallback(request *UpdateInstanceIpWhiteListRequest, callback func(response *UpdateInstanceIpWhiteListResponse, err error)) <-chan int { +// RenameHiTSDBInstanceAliasWithCallback invokes the hitsdb.RenameHiTSDBInstanceAlias API asynchronously +func (client *Client) RenameHiTSDBInstanceAliasWithCallback(request *RenameHiTSDBInstanceAliasRequest, callback func(response *RenameHiTSDBInstanceAliasResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *UpdateInstanceIpWhiteListResponse + var response *RenameHiTSDBInstanceAliasResponse var err error defer close(result) - response, err = client.UpdateInstanceIpWhiteList(request) + response, err = client.RenameHiTSDBInstanceAlias(request) callback(response, err) result <- 1 }) @@ -68,38 +68,38 @@ func (client *Client) UpdateInstanceIpWhiteListWithCallback(request *UpdateInsta return result } -// UpdateInstanceIpWhiteListRequest is the request struct for api UpdateInstanceIpWhiteList -type UpdateInstanceIpWhiteListRequest struct { +// RenameHiTSDBInstanceAliasRequest is the request struct for api RenameHiTSDBInstanceAlias +type RenameHiTSDBInstanceAliasRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SecurityToken string `position:"Query" name:"SecurityToken"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceAlias string `position:"Query" name:"InstanceAlias"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - GroupName string `position:"Query" name:"GroupName"` - SecurityIpList string `position:"Query" name:"SecurityIpList"` InstanceId string `position:"Query" name:"InstanceId"` + AppKey string `position:"Query" name:"AppKey"` } -// UpdateInstanceIpWhiteListResponse is the response struct for api UpdateInstanceIpWhiteList -type UpdateInstanceIpWhiteListResponse struct { +// RenameHiTSDBInstanceAliasResponse is the response struct for api RenameHiTSDBInstanceAlias +type RenameHiTSDBInstanceAliasResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateUpdateInstanceIpWhiteListRequest creates a request to invoke UpdateInstanceIpWhiteList API -func CreateUpdateInstanceIpWhiteListRequest() (request *UpdateInstanceIpWhiteListRequest) { - request = &UpdateInstanceIpWhiteListRequest{ +// CreateRenameHiTSDBInstanceAliasRequest creates a request to invoke RenameHiTSDBInstanceAlias API +func CreateRenameHiTSDBInstanceAliasRequest() (request *RenameHiTSDBInstanceAliasRequest) { + request = &RenameHiTSDBInstanceAliasRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("hitsdb", "2020-06-15", "UpdateInstanceIpWhiteList", "hitsdb", "openAPI") + request.InitWithApiInfo("hitsdb", "2017-06-01", "RenameHiTSDBInstanceAlias", "hitsdb", "openAPI") request.Method = requests.POST return } -// CreateUpdateInstanceIpWhiteListResponse creates a response to parse from UpdateInstanceIpWhiteList response -func CreateUpdateInstanceIpWhiteListResponse() (response *UpdateInstanceIpWhiteListResponse) { - response = &UpdateInstanceIpWhiteListResponse{ +// CreateRenameHiTSDBInstanceAliasResponse creates a response to parse from RenameHiTSDBInstanceAlias response +func CreateRenameHiTSDBInstanceAliasResponse() (response *RenameHiTSDBInstanceAliasResponse) { + response = &RenameHiTSDBInstanceAliasResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/hitsdb/renew_tsdb_instance.go b/services/hitsdb/renew_tsdb_instance.go new file mode 100644 index 0000000000..7678d34167 --- /dev/null +++ b/services/hitsdb/renew_tsdb_instance.go @@ -0,0 +1,107 @@ +package hitsdb + +//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" +) + +// RenewTSDBInstance invokes the hitsdb.RenewTSDBInstance API synchronously +func (client *Client) RenewTSDBInstance(request *RenewTSDBInstanceRequest) (response *RenewTSDBInstanceResponse, err error) { + response = CreateRenewTSDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RenewTSDBInstanceWithChan invokes the hitsdb.RenewTSDBInstance API asynchronously +func (client *Client) RenewTSDBInstanceWithChan(request *RenewTSDBInstanceRequest) (<-chan *RenewTSDBInstanceResponse, <-chan error) { + responseChan := make(chan *RenewTSDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewTSDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewTSDBInstanceWithCallback invokes the hitsdb.RenewTSDBInstance API asynchronously +func (client *Client) RenewTSDBInstanceWithCallback(request *RenewTSDBInstanceRequest, callback func(response *RenewTSDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewTSDBInstanceResponse + var err error + defer close(result) + response, err = client.RenewTSDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewTSDBInstanceRequest is the request struct for api RenewTSDBInstance +type RenewTSDBInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Duration requests.Integer `position:"Query" name:"Duration"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + PricingCycle string `position:"Query" name:"PricingCycle"` +} + +// RenewTSDBInstanceResponse is the response struct for api RenewTSDBInstance +type RenewTSDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int64 `json:"OrderId" xml:"OrderId"` +} + +// CreateRenewTSDBInstanceRequest creates a request to invoke RenewTSDBInstance API +func CreateRenewTSDBInstanceRequest() (request *RenewTSDBInstanceRequest) { + request = &RenewTSDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "RenewTSDBInstance", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateRenewTSDBInstanceResponse creates a response to parse from RenewTSDBInstance response +func CreateRenewTSDBInstanceResponse() (response *RenewTSDBInstanceResponse) { + response = &RenewTSDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/restart_hi_tsdb_instance.go b/services/hitsdb/restart_hi_tsdb_instance.go new file mode 100644 index 0000000000..7abb177360 --- /dev/null +++ b/services/hitsdb/restart_hi_tsdb_instance.go @@ -0,0 +1,104 @@ +package hitsdb + +//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" +) + +// RestartHiTSDBInstance invokes the hitsdb.RestartHiTSDBInstance API synchronously +func (client *Client) RestartHiTSDBInstance(request *RestartHiTSDBInstanceRequest) (response *RestartHiTSDBInstanceResponse, err error) { + response = CreateRestartHiTSDBInstanceResponse() + err = client.DoAction(request, response) + return +} + +// RestartHiTSDBInstanceWithChan invokes the hitsdb.RestartHiTSDBInstance API asynchronously +func (client *Client) RestartHiTSDBInstanceWithChan(request *RestartHiTSDBInstanceRequest) (<-chan *RestartHiTSDBInstanceResponse, <-chan error) { + responseChan := make(chan *RestartHiTSDBInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RestartHiTSDBInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RestartHiTSDBInstanceWithCallback invokes the hitsdb.RestartHiTSDBInstance API asynchronously +func (client *Client) RestartHiTSDBInstanceWithCallback(request *RestartHiTSDBInstanceRequest, callback func(response *RestartHiTSDBInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RestartHiTSDBInstanceResponse + var err error + defer close(result) + response, err = client.RestartHiTSDBInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RestartHiTSDBInstanceRequest is the request struct for api RestartHiTSDBInstance +type RestartHiTSDBInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// RestartHiTSDBInstanceResponse is the response struct for api RestartHiTSDBInstance +type RestartHiTSDBInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRestartHiTSDBInstanceRequest creates a request to invoke RestartHiTSDBInstance API +func CreateRestartHiTSDBInstanceRequest() (request *RestartHiTSDBInstanceRequest) { + request = &RestartHiTSDBInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "RestartHiTSDBInstance", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateRestartHiTSDBInstanceResponse creates a response to parse from RestartHiTSDBInstance response +func CreateRestartHiTSDBInstanceResponse() (response *RestartHiTSDBInstanceResponse) { + response = &RestartHiTSDBInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/hitsdb/struct_engine.go b/services/hitsdb/struct_engine.go deleted file mode 100644 index 470cf2583a..0000000000 --- a/services/hitsdb/struct_engine.go +++ /dev/null @@ -1,26 +0,0 @@ -package hitsdb - -//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. - -// Engine is a nested struct in hitsdb response -type Engine struct { - Engine string `json:"Engine" xml:"Engine"` - Version string `json:"Version" xml:"Version"` - CpuCount string `json:"CpuCount" xml:"CpuCount"` - MemorySize string `json:"MemorySize" xml:"MemorySize"` - CoreCount string `json:"CoreCount" xml:"CoreCount"` - IsLastVersion bool `json:"IsLastVersion" xml:"IsLastVersion"` -} diff --git a/services/hitsdb/struct_instance.go b/services/hitsdb/struct_instance.go new file mode 100644 index 0000000000..09f32d7b0c --- /dev/null +++ b/services/hitsdb/struct_instance.go @@ -0,0 +1,43 @@ +package hitsdb + +//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. + +// Instance is a nested struct in hitsdb response +type Instance struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceAlias string `json:"InstanceAlias" xml:"InstanceAlias"` + InstanceDescription string `json:"InstanceDescription" xml:"InstanceDescription"` + UserId string `json:"UserId" xml:"UserId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + GmtCreated string `json:"GmtCreated" xml:"GmtCreated"` + GmtExpire string `json:"GmtExpire" xml:"GmtExpire"` + InstanceClass string `json:"InstanceClass" xml:"InstanceClass"` + InstanceStorage string `json:"InstanceStorage" xml:"InstanceStorage"` + InstanceTps string `json:"InstanceTps" xml:"InstanceTps"` + LockMode string `json:"LockMode" xml:"LockMode"` + EngineType string `json:"EngineType" xml:"EngineType"` + MaxSeriesPerDatabase string `json:"MaxSeriesPerDatabase" xml:"MaxSeriesPerDatabase"` + VpcId string `json:"VpcId" xml:"VpcId"` + VswitchId string `json:"VswitchId" xml:"VswitchId"` + Status string `json:"Status" xml:"Status"` + PaymentType string `json:"PaymentType" xml:"PaymentType"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + ExpiredTime int64 `json:"ExpiredTime" xml:"ExpiredTime"` +} diff --git a/services/hitsdb/struct_instance_list.go b/services/hitsdb/struct_instance_list.go index 14d8d4e491..05b0137933 100644 --- a/services/hitsdb/struct_instance_list.go +++ b/services/hitsdb/struct_instance_list.go @@ -17,5 +17,5 @@ package hitsdb // InstanceList is a nested struct in hitsdb response type InstanceList struct { - LindormInstanceSummary []LindormInstanceSummary `json:"LindormInstanceSummary" xml:"LindormInstanceSummary"` + Instance []Instance `json:"Instance" xml:"Instance"` } diff --git a/services/hitsdb/struct_lindorm_instance_summary.go b/services/hitsdb/struct_lindorm_instance_summary.go deleted file mode 100644 index 5575d903da..0000000000 --- a/services/hitsdb/struct_lindorm_instance_summary.go +++ /dev/null @@ -1,34 +0,0 @@ -package hitsdb - -//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. - -// LindormInstanceSummary is a nested struct in hitsdb response -type LindormInstanceSummary struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InstanceAlias string `json:"InstanceAlias" xml:"InstanceAlias"` - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` - PayType string `json:"PayType" xml:"PayType"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - InstanceStorage string `json:"InstanceStorage" xml:"InstanceStorage"` - ServiceType string `json:"ServiceType" xml:"ServiceType"` - EngineType string `json:"EngineType" xml:"EngineType"` - AliUid int64 `json:"AliUid" xml:"AliUid"` - VpcId string `json:"VpcId" xml:"VpcId"` -} diff --git a/services/hitsdb/struct_net_info.go b/services/hitsdb/struct_net_info.go deleted file mode 100644 index 34ed158618..0000000000 --- a/services/hitsdb/struct_net_info.go +++ /dev/null @@ -1,24 +0,0 @@ -package hitsdb - -//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. - -// NetInfo is a nested struct in hitsdb response -type NetInfo struct { - NetType string `json:"NetType" xml:"NetType"` - ConnectionString string `json:"ConnectionString" xml:"ConnectionString"` - Port int `json:"Port" xml:"Port"` - AccessType int `json:"AccessType" xml:"AccessType"` -} diff --git a/services/hitsdb/struct_ip_list.go b/services/hitsdb/struct_security_ip.go similarity index 85% rename from services/hitsdb/struct_ip_list.go rename to services/hitsdb/struct_security_ip.go index 0820cfa091..931d720c25 100644 --- a/services/hitsdb/struct_ip_list.go +++ b/services/hitsdb/struct_security_ip.go @@ -15,7 +15,7 @@ package hitsdb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// IpList is a nested struct in hitsdb response -type IpList struct { - IpList []string `json:"IpList" xml:"IpList"` +// SecurityIp is a nested struct in hitsdb response +type SecurityIp struct { + Ip string `json:"Ip" xml:"Ip"` } diff --git a/services/hitsdb/struct_engine_list_in_get_lindorm_instance_engine_list.go b/services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance.go similarity index 77% rename from services/hitsdb/struct_engine_list_in_get_lindorm_instance_engine_list.go rename to services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance.go index 639e2455e9..0d00c851f9 100644 --- a/services/hitsdb/struct_engine_list_in_get_lindorm_instance_engine_list.go +++ b/services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance.go @@ -15,7 +15,7 @@ package hitsdb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// EngineListInGetLindormInstanceEngineList is a nested struct in hitsdb response -type EngineListInGetLindormInstanceEngineList struct { - EngineInfo []EngineInfo `json:"EngineInfo" xml:"EngineInfo"` +// SecurityIpListInDescribeHiTSDBInstance is a nested struct in hitsdb response +type SecurityIpListInDescribeHiTSDBInstance struct { + SecurityIp []SecurityIp `json:"SecurityIp" xml:"SecurityIp"` } diff --git a/services/hitsdb/struct_engine_info.go b/services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance_security_ip_list.go similarity index 75% rename from services/hitsdb/struct_engine_info.go rename to services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance_security_ip_list.go index 31200eb2de..70777111e7 100644 --- a/services/hitsdb/struct_engine_info.go +++ b/services/hitsdb/struct_security_ip_list_in_describe_hi_tsdb_instance_security_ip_list.go @@ -15,8 +15,7 @@ package hitsdb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// EngineInfo is a nested struct in hitsdb response -type EngineInfo struct { - EngineType string `json:"EngineType" xml:"EngineType"` - NetInfoList []NetInfo `json:"NetInfoList" xml:"NetInfoList"` +// SecurityIpListInDescribeHiTSDBInstanceSecurityIpList is a nested struct in hitsdb response +type SecurityIpListInDescribeHiTSDBInstanceSecurityIpList struct { + SecurityIp []SecurityIp `json:"SecurityIp" xml:"SecurityIp"` } diff --git a/services/hitsdb/struct_net_info_list.go b/services/hitsdb/struct_zone_list.go similarity index 84% rename from services/hitsdb/struct_net_info_list.go rename to services/hitsdb/struct_zone_list.go index 838fece99f..7f5623319e 100644 --- a/services/hitsdb/struct_net_info_list.go +++ b/services/hitsdb/struct_zone_list.go @@ -15,7 +15,7 @@ package hitsdb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// NetInfoList is a nested struct in hitsdb response -type NetInfoList struct { - NetInfo []NetInfo `json:"NetInfo" xml:"NetInfo"` +// ZoneList is a nested struct in hitsdb response +type ZoneList struct { + ZoneModel []ZoneModel `json:"ZoneModel" xml:"ZoneModel"` } diff --git a/services/hitsdb/struct_engine_list_in_get_lindorm_instance.go b/services/hitsdb/struct_zone_model.go similarity index 80% rename from services/hitsdb/struct_engine_list_in_get_lindorm_instance.go rename to services/hitsdb/struct_zone_model.go index 8af76a42c9..d1ec528d59 100644 --- a/services/hitsdb/struct_engine_list_in_get_lindorm_instance.go +++ b/services/hitsdb/struct_zone_model.go @@ -15,7 +15,8 @@ package hitsdb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// EngineListInGetLindormInstance is a nested struct in hitsdb response -type EngineListInGetLindormInstance struct { - Engine []Engine `json:"Engine" xml:"Engine"` +// ZoneModel is a nested struct in hitsdb response +type ZoneModel struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + LocalName string `json:"LocalName" xml:"LocalName"` } diff --git a/services/hitsdb/switch_hi_tsdb_instance_public_net.go b/services/hitsdb/switch_hi_tsdb_instance_public_net.go new file mode 100644 index 0000000000..62a583d112 --- /dev/null +++ b/services/hitsdb/switch_hi_tsdb_instance_public_net.go @@ -0,0 +1,105 @@ +package hitsdb + +//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" +) + +// SwitchHiTSDBInstancePublicNet invokes the hitsdb.SwitchHiTSDBInstancePublicNet API synchronously +func (client *Client) SwitchHiTSDBInstancePublicNet(request *SwitchHiTSDBInstancePublicNetRequest) (response *SwitchHiTSDBInstancePublicNetResponse, err error) { + response = CreateSwitchHiTSDBInstancePublicNetResponse() + err = client.DoAction(request, response) + return +} + +// SwitchHiTSDBInstancePublicNetWithChan invokes the hitsdb.SwitchHiTSDBInstancePublicNet API asynchronously +func (client *Client) SwitchHiTSDBInstancePublicNetWithChan(request *SwitchHiTSDBInstancePublicNetRequest) (<-chan *SwitchHiTSDBInstancePublicNetResponse, <-chan error) { + responseChan := make(chan *SwitchHiTSDBInstancePublicNetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SwitchHiTSDBInstancePublicNet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SwitchHiTSDBInstancePublicNetWithCallback invokes the hitsdb.SwitchHiTSDBInstancePublicNet API asynchronously +func (client *Client) SwitchHiTSDBInstancePublicNetWithCallback(request *SwitchHiTSDBInstancePublicNetRequest, callback func(response *SwitchHiTSDBInstancePublicNetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SwitchHiTSDBInstancePublicNetResponse + var err error + defer close(result) + response, err = client.SwitchHiTSDBInstancePublicNet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SwitchHiTSDBInstancePublicNetRequest is the request struct for api SwitchHiTSDBInstancePublicNet +type SwitchHiTSDBInstancePublicNetRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + SwitchAction requests.Integer `position:"Query" name:"SwitchAction"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// SwitchHiTSDBInstancePublicNetResponse is the response struct for api SwitchHiTSDBInstancePublicNet +type SwitchHiTSDBInstancePublicNetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSwitchHiTSDBInstancePublicNetRequest creates a request to invoke SwitchHiTSDBInstancePublicNet API +func CreateSwitchHiTSDBInstancePublicNetRequest() (request *SwitchHiTSDBInstancePublicNetRequest) { + request = &SwitchHiTSDBInstancePublicNetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("hitsdb", "2017-06-01", "SwitchHiTSDBInstancePublicNet", "hitsdb", "openAPI") + request.Method = requests.POST + return +} + +// CreateSwitchHiTSDBInstancePublicNetResponse creates a response to parse from SwitchHiTSDBInstancePublicNet response +func CreateSwitchHiTSDBInstancePublicNetResponse() (response *SwitchHiTSDBInstancePublicNetResponse) { + response = &SwitchHiTSDBInstancePublicNetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +}