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

     1  package vpc
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询基础网络互通列表
     8  // https://cloud.tencent.com/document/api/215/15776
     9  
    10  type DescribeClassicLinkInstancesRequest struct {
    11  	// 过滤条件。vpc-id - String - (过滤条件)VPC实例ID。vm-ip - String - (过滤条件)基础网络云主机IP。
    12  	Filters []*FilterObject `name:"Filters,omitempty"`
    13  	// 返回数量
    14  	Limit *string `name:"Limit,omitempty"`
    15  	// 偏移量
    16  	Offset *string `name:"Offset,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  }
    20  
    21  func (req *DescribeClassicLinkInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeClassicLinkInstancesResponse, error) {
    22  	resp := &DescribeClassicLinkInstancesResponse{}
    23  	err := client.Request("vpc", "DescribeClassicLinkInstances", "2017-03-12").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type DescribeClassicLinkInstancesResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  	// 私有网络和基础网络互通设备。
    30  	ClassicLinkInstanceSet []*ClassicLinkInstance `json:"ClassicLinkInstanceSet"`
    31  	// 符合条件的实例数量。
    32  	TotalCount int64 `json:"TotalCount"`
    33  }