bandwidths

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURL

func GetURL(c *golangsdk.ServiceClient, bandwidthId string) string

func UpdateURL

func UpdateURL(c *golangsdk.ServiceClient, bandwidthId string) string

Types

type BandWidthObject

type BandWidthObject struct {
	BandWidth common.Bandwidth `json:"bandwidth"`
}

BandWidthObject 带宽的结构体,用于创建和更新请求

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(client *golangsdk.ServiceClient, bandwidthId string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*BandWidthObject, error)

type UpdateOpts

type UpdateOpts struct {
	// Specifies the bandwidth name. The value is a string of 1 to 64
	// characters that can contain letters, digits, underscores (_), and hyphens (-).
	Name string `json:"name,omitempty"`

	// Specifies the bandwidth size. The value ranges from 1 Mbit/s to
	// 300 Mbit/s.
	Size int `json:"size,omitempty"`
}

func (UpdateOpts) ToBandwidthsUpdateMap

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

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToBandwidthsUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

func Update

func Update(client *golangsdk.ServiceClient, bandwidthId string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*BandWidthObject, error)

Jump to

Keyboard shortcuts

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