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

     1  package batch
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查看计算环境的创建信息
     8  // https://cloud.tencent.com/document/api/599/15897
     9  
    10  type DescribeComputeEnvCreateInfoRequest struct {
    11  	// 计算环境ID
    12  	EnvId string `name:"EnvId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DescribeComputeEnvCreateInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeComputeEnvCreateInfoResponse, error) {
    18  	resp := &DescribeComputeEnvCreateInfoResponse{}
    19  	err := client.Request("batch", "DescribeComputeEnvCreateInfo", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeComputeEnvCreateInfoResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 授权信息
    26  	Authentications []*Authentication `json:"Authentications"`
    27  	// 计算节点期望个数
    28  	DesiredComputeNodeCount int64 `json:"DesiredComputeNodeCount"`
    29  	// 计算环境参数
    30  	EnvData EnvData `json:"EnvData"`
    31  	// 计算环境描述
    32  	EnvDescription string `json:"EnvDescription"`
    33  	// 计算环境 ID
    34  	EnvId string `json:"EnvId"`
    35  	// 计算环境名称
    36  	EnvName string `json:"EnvName"`
    37  	// 计算环境类型,仅支持“MANAGED”类型
    38  	EnvType string `json:"EnvType"`
    39  	// 输入映射
    40  	InputMappings []*InputMapping `json:"InputMappings"`
    41  	// 数据盘挂载选项
    42  	MountDataDisks []*MountDataDisk `json:"MountDataDisks"`
    43  	// 通知信息
    44  	Notifications []*Notification `json:"Notifications"`
    45  }