Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BandWidthObject ¶
BandWidthObject 带宽的结构体,用于创建和更新请求
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
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 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.