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

     1  package mariadb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查看数据库参数
     8  // https://cloud.tencent.com/document/api/237/16154
     9  
    10  type DescribeDbParametersRequest struct {
    11  	// 实例 ID,形如:tdsql-ow728lmc。
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DescribeDbParametersRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDbParametersResponse, error) {
    18  	resp := &DescribeDbParametersResponse{}
    19  	err := client.Request("mariadb", "DescribeDBParameters", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeDbParametersResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 实例 ID,形如:tdsql-ow728lmc。
    26  	InstanceId string `json:"InstanceId"`
    27  	// 请求DB的当前参数值
    28  	Params []*ParamDesc `json:"Params"`
    29  }