Documentation ¶
Index ¶
- func GetURL(c *golangsdk.ServiceClient, bandwidthID string) string
- func UpdateURL(c *golangsdk.ServiceClient, bandwidthID string) string
- type BandWidthObject
- type BandWidths
- type GetResult
- type ListBandwidthsOptsBuilder
- type ListOpts
- type ListResult
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BandWidthObject ¶
BandWidthObject 带宽的结构体,用于创建和更新请求
type BandWidths ¶
type BandWidths struct { BandWidth []common.Bandwidth `json:"bandwidths"` Count int `json:"count"` }
BandWidths 共享带宽列表对象
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*BandWidthObject, error)
type ListOpts ¶
func (ListOpts) ToListBandwidthsQuery ¶
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(client *golangsdk.ServiceClient, opts ListBandwidthsOptsBuilder) (r ListResult)
func (ListResult) Extract ¶
func (r ListResult) Extract() (*BandWidths, 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 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)
Click to show internal directories.
Click to hide internal directories.