quotas

package
v0.5.47 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedQuota

type CombinedQuota struct {
	GlobalQuotas   Quota   `json:"global_quotas"`
	RegionalQuotas []Quota `json:"regional_quotas"`
}

type CombinedResult

type CombinedResult struct {
	gcorecloud.Result
}

func ListCombined

ListCombined retrieves list of combined quota.

func (CombinedResult) Extract

func (r CombinedResult) Extract() (*CombinedQuota, error)

Extract is a function that accepts a result and extracts a combined quota resource.

func (CombinedResult) ExtractInto

func (r CombinedResult) ExtractInto(v interface{}) error

type CommonResult

type CommonResult struct {
	gcorecloud.Result
}

func ListGlobal

func ListGlobal(c *gcorecloud.ServiceClient, clientID int) (r CommonResult)

ListGlobal retrieves list of global quota.

func ListRegional

func ListRegional(c *gcorecloud.ServiceClient, clientID, regionID int) (r CommonResult)

ListRegional retrieves list of regional quota.

func (CommonResult) Extract

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

Extract is a function that accepts a result and extracts a quotas resource.

func (CommonResult) ExtractInto

func (r CommonResult) ExtractInto(v interface{}) error

type ListCombinedOpts

type ListCombinedOpts struct {
	ClientID int `q:"client_id"`
}

ListCombinedOpts allows the filtering and sorting List API response.

func (ListCombinedOpts) ToCombinedListQuery

func (opts ListCombinedOpts) ToCombinedListQuery() (string, error)

ToCombinedListQuery formats a ListCombinedOpts into a query string.

type ListCombinedOptsBuilder

type ListCombinedOptsBuilder interface {
	ToCombinedListQuery() (string, error)
}

ListCombinedOptsBuilder allows extensions to add additional parameters to the List request.

type Quota

type Quota map[string]int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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