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

     1  package yunjing
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 获取异地登录事件
     8  // https://cloud.tencent.com/document/api/296/19836
     9  
    10  type DescribeNonlocalLoginPlacesRequest struct {
    11  	// 过滤条件。Keywords - String - 是否必填:否 -  查询关键字Status - String - 是否必填:否 -  登录状态(NON_LOCAL_LOGIN: 异地登录 | NORMAL_LOGIN : 正常登录)
    12  	Filters []*Filter `name:"Filters,omitempty"`
    13  	// 返回数量,默认为10,最大值为100。
    14  	Limit *int64 `name:"Limit,omitempty"`
    15  	// 偏移量,默认为0。
    16  	Offset *int64 `name:"Offset,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 客户端唯一Uuid。
    20  	Uuid *string `name:"Uuid,omitempty"`
    21  }
    22  
    23  func (req *DescribeNonlocalLoginPlacesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeNonlocalLoginPlacesResponse, error) {
    24  	resp := &DescribeNonlocalLoginPlacesResponse{}
    25  	err := client.Request("yunjing", "DescribeNonlocalLoginPlaces", "2018-02-28").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type DescribeNonlocalLoginPlacesResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 异地登录信息数组。
    32  	NonLocalLoginPlaces []*NonLocalLoginPlace `json:"NonLocalLoginPlaces"`
    33  	// 记录总数。
    34  	TotalCount int64 `json:"TotalCount"`
    35  }