Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandWidth ¶
type BandWidth struct { ID string `json:"id"` Name string `json:"name"` Size int `json:"size"` //PublicIPInfo string `json:"publicip_info"` TenantID string `json:"tenant_id"` BandwidthType string `json:"bandwidth_type"` ChargeMode string `json:"charge_mode"` PublicipInfo []PublicIpinfo `json:"publicip_info"` // Specifies the billing information. BillingInfo string `json:"billing_info"` // Enterprise project id EnterpriseProjectID string `json:"enterprise_project_id"` // Status Status string `json:"status"` }
BandWidth is a struct that represents a bandwidth
type GetResult ¶
type GetResult struct {
golangsdk.Result
}
GetResult is a return struct of get method
type PublicIpinfo ¶
type PublicIpinfo struct { // Specifies the tenant ID of the user. PublicipId string `json:"publicip_id"` // Specifies the elastic IP address. PublicipAddress string `json:"publicip_address"` // Specifies the elastic IP v6 address. Publicipv6Address string `json:"publicipv6_address"` // Specifies the elastic IP version. IPVersion int `json:"ip_version"` // Specifies the elastic IP address type. The value can be // 5_telcom, 5_union, or 5_bgp. PublicipType string `json:"publicip_type"` }
type UpdateOpts ¶
UpdateOpts is a struct which represents the request body of update method
func (UpdateOpts) ToBWUpdateMap ¶
func (opts UpdateOpts) ToBWUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
UpdateOptsBuilder is an interface by which can be able to build the request body
type UpdateResult ¶
type UpdateResult struct {
golangsdk.Result
}
UpdateResult is a struct which contains the result of update method
func Update ¶
func Update(client *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)
Update is a method which can be able to update the port of public ip
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (BandWidth, error)
Click to show internal directories.
Click to hide internal directories.