quotas

package
v1.0.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResult

type GetResult struct {
	gophercloud.Result
}

func Get

func Get(client *gophercloud.ServiceClient) (r GetResult)

func (GetResult) Extract

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

type Quota

type Quota struct {
	Quotas Quotas `json:"quotas"`
}

This is a auto create Response Object

type Quotas

type Quotas struct {
	Resources []Resource `json:"resources"`
}

type Resource

type Resource struct {
	// 配额总数。
	Quota int `json:"quota"`
	// 配额类型。  枚举值说明:  alarm,告警规则
	Type string `json:"type"`
	// 单位。
	Unit string `json:"unit"`
	// 已使用配额数。
	Used int `json:"used"`
}

Jump to

Keyboard shortcuts

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