github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/modify_auto_open_pro_version_config.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/19863
     9  
    10  type ModifyAutoOpenProVersionConfigRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 设置自动开通状态。CLOSE:关闭OPEN:打开
    14  	Status string `name:"Status"`
    15  }
    16  
    17  func (req *ModifyAutoOpenProVersionConfigRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyAutoOpenProVersionConfigResponse, error) {
    18  	resp := &ModifyAutoOpenProVersionConfigResponse{}
    19  	err := client.Request("yunjing", "ModifyAutoOpenProVersionConfig", "2018-02-28").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type ModifyAutoOpenProVersionConfigResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  }