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

     1  package sqlserver
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 拉取实例账户列表
     8  // https://cloud.tencent.com/document/api/238/19970
     9  
    10  type DescribeAccountsRequest struct {
    11  	// 实例ID
    12  	InstanceId string `name:"InstanceId"`
    13  	// 分页返回,每页返回的数目,取值为1-100,默认值为20
    14  	Limit *int64 `name:"Limit,omitempty"`
    15  	// 分页返回,从第几页开始返回。从第0页开始,默认第0页
    16  	Offset *int64 `name:"Offset,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  }
    20  
    21  func (req *DescribeAccountsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeAccountsResponse, error) {
    22  	resp := &DescribeAccountsResponse{}
    23  	err := client.Request("sqlserver", "DescribeAccounts", "2018-03-28").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type DescribeAccountsResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  	// 账户信息列表
    30  	Accounts []*AccountDetail `json:"Accounts"`
    31  	// 实例ID
    32  	InstanceId string `json:"InstanceId"`
    33  }