bandwidths

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(c *gophercloud.ServiceClient, bandwidthID string, opts UpdateOpts) (interface{}, error)

func UpdateURL

func UpdateURL(c *gophercloud.ServiceClient, ID string) string

Types

type Bandwidth

type Bandwidth struct {
	Name string `json:"name,omitempty"`
	Size int    `json:"size,omitempty"`
}

type ExtendParam

type ExtendParam struct {
	IsAutoPay string `json:"is_auto_pay,omitempty"`
}

type PostPaid

type PostPaid struct {
	Name          string         `json:"name"`
	Size          int            `json:"size"`
	ID            string         `json:"id"`
	ShareType     string         `json:"share_type"`
	ChargeMode    string         `json:"charge_mode"`
	BandwidthType string         `json:"bandwidth_type"`
	TenantID      string         `json:"tenant_id"`
	PublicipInfo  []PublicipInfo `json:"publicip_info"`
}

type PrePaid

type PrePaid struct {
	OrderID string `json:"order_id"`
}

type PublicipInfo

type PublicipInfo struct {
	PublicipID        string `json:"publicip_id"`
	PublicIPAddress   string `json:"publicip_address"`
	Publicipv6Address string `json:"publicipv_6_address"`
	IpVersion         int    `json:"ip_version"`
	PublicipType      string `json:"publicip_type"`
}

type UpdateOpts

type UpdateOpts struct {
	Bandwidth   Bandwidth    `json:"bandwidth" required:"true"`
	ExtendParam *ExtendParam `json:"extendParam,omitempty"`
}

func (UpdateOpts) ToBandWidthUpdateMap

func (opts UpdateOpts) ToBandWidthUpdateMap() (map[string]interface{}, error)

type UpdateResult

type UpdateResult struct {
	gophercloud.Result
}

func (UpdateResult) Extract

func (r UpdateResult) Extract() (PostPaid, error)

func (UpdateResult) ExtractOrderID

func (r UpdateResult) ExtractOrderID() (PrePaid, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL