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

     1  package vpc
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询HAVIP列表
     8  // https://cloud.tencent.com/document/api/215/30650
     9  
    10  type DescribeHaVipsRequest struct {
    11  	// 过滤条件,参数不支持同时指定HaVipIds和Filters。havip-id - String - HAVIP唯一ID,形如:havip-9o233uri。havip-name - String - HAVIP名称。vpc-id - String - HAVIP所在私有网络ID。subnet-id - String - HAVIP所在子网ID。address-ip - String - HAVIP绑定的弹性公网IP。
    12  	Filters []*Filter `name:"Filters,omitempty"`
    13  	// HAVIP唯一ID,形如:havip-9o233uri。
    14  	HaVipIds []*string `name:"HaVipIds,omitempty"`
    15  	// 返回数量
    16  	Limit *int64 `name:"Limit,omitempty"`
    17  	// 偏移量
    18  	Offset *int64 `name:"Offset,omitempty"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  }
    22  
    23  func (req *DescribeHaVipsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeHaVipsResponse, error) {
    24  	resp := &DescribeHaVipsResponse{}
    25  	err := client.Request("vpc", "DescribeHaVips", "2017-03-12").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type DescribeHaVipsResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// HAVIP对象数组。
    32  	HaVipSet []*HaVip `json:"HaVipSet"`
    33  	// 符合条件的对象数。
    34  	TotalCount int64 `json:"TotalCount"`
    35  }