quotas

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListURL

func ListURL(c *gophercloud.ServiceClient) string

func ListWithInstancesURL

func ListWithInstancesURL(c *gophercloud.ServiceClient, scalingGroupId string) string

Types

type ListResult

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

func List

func List(client *gophercloud.ServiceClient) (r ListResult)

func (ListResult) Extract

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

type ListWithInstancesResult

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

func ListWithInstances

func ListWithInstances(client *gophercloud.ServiceClient, scalingGroupId string) (r ListWithInstancesResult)

func (ListWithInstancesResult) Extract

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

type Quota

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

type Resource

type Resource struct {
	// Specifies the quota type.
	Type string `json:"type"`

	// Specifies the used amount of the quota.When type is set to
	// scaling_Policy or scaling_Instance, this parameter is reserved, and the system
	// returns -1 as the parameter value. You can query the used quota amount of AS policies
	// and AS instances in a specified AS group. For details, see Querying Quotas for AS
	// Policies and AS Instances.
	Used int `json:"used"`

	// Specifies the total amount of the quota.
	Quota int `json:"quota"`

	// Specifies the quota upper limit.
	Max int `json:"max"`
}

Jump to

Keyboard shortcuts

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