github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cdb/isolate_db_instance.go (about)

     1  package cdb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 隔离云数据库实例
     8  // https://cloud.tencent.com/document/api/236/15869
     9  
    10  type IsolateDbInstanceRequest struct {
    11  	// 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用查询实例列表 接口获取,其值为输出参数中字段 InstanceId 的值
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *IsolateDbInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*IsolateDbInstanceResponse, error) {
    18  	resp := &IsolateDbInstanceResponse{}
    19  	err := client.Request("cdb", "IsolateDBInstance", "2017-03-20").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type IsolateDbInstanceResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 异步任务的请求ID,可使用此ID查询异步任务的执行结果
    26  	AsyncRequestId string `json:"AsyncRequestId"`
    27  }