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

     1  package tia
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 安装agent
     8  // https://cloud.tencent.com/document/api/851/18303
     9  
    10  type InstallAgentRequest struct {
    11  	// 集群名称
    12  	Cluster string `name:"Cluster"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// Agent版本, 用于私有集群的agent安装,默认为“private-training”
    16  	TiaVersion *string `name:"TiaVersion,omitempty"`
    17  	// 是否允许更新Agent
    18  	Update *bool `name:"Update,omitempty"`
    19  }
    20  
    21  func (req *InstallAgentRequest) Invoke(client github_com_morlay_goqcloud.Client) (*InstallAgentResponse, error) {
    22  	resp := &InstallAgentResponse{}
    23  	err := client.Request("tia", "InstallAgent", "2018-02-26").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type InstallAgentResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  	// Agent版本, 用于私有集群的agent安装
    30  	TiaVersion string `json:"TiaVersion"`
    31  }