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

     1  package vpc
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 创建IP地址模版
     8  // https://cloud.tencent.com/document/api/215/16708
     9  
    10  type CreateAddressTemplateRequest struct {
    11  	// IP地址模版名称
    12  	AddressTemplateName string `name:"AddressTemplateName"`
    13  	// 地址信息,支持 IP、CIDR、IP 范围。
    14  	Addresses []*string `name:"Addresses"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *CreateAddressTemplateRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateAddressTemplateResponse, error) {
    20  	resp := &CreateAddressTemplateResponse{}
    21  	err := client.Request("vpc", "CreateAddressTemplate", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type CreateAddressTemplateResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// IP地址模板对象。
    28  	AddressTemplate AddressTemplate `json:"AddressTemplate"`
    29  }