github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/batch/modify_compute_env.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/15890
     9  
    10  type ModifyComputeEnvRequest struct {
    11  	// 计算节点期望个数
    12  	DesiredComputeNodeCount *int64 `name:"DesiredComputeNodeCount,omitempty"`
    13  	// 计算环境属性数据
    14  	EnvData *ComputeEnvData `name:"EnvData,omitempty"`
    15  	// 计算环境描述
    16  	EnvDescription *string `name:"EnvDescription,omitempty"`
    17  	// 计算环境ID
    18  	EnvId string `name:"EnvId"`
    19  	// 计算环境名称
    20  	EnvName *string `name:"EnvName,omitempty"`
    21  	// 区域
    22  	Region string `name:"Region"`
    23  }
    24  
    25  func (req *ModifyComputeEnvRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyComputeEnvResponse, error) {
    26  	resp := &ModifyComputeEnvResponse{}
    27  	err := client.Request("batch", "ModifyComputeEnv", "2017-03-12").Do(req, resp)
    28  	return resp, err
    29  }
    30  
    31  type ModifyComputeEnvResponse struct {
    32  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    33  }