quota

package
v0.0.0-...-8be9c10 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHCL

func DecodeHCL(item *ast.ObjectItem) (interface{}, error)

DecodeHCL converts an HCL ast.ObjectItem into a Quota object.

Types

type Quota

type Quota struct {
	XMLName                   string `xml:"Quota" hcl:"-"`
	policy.Policy             `hcl:",squash"`
	Type                      string         `xml:"type,attr,omitempty" hcl:"type"`
	DisplayName               string         `xml:",omitempty" hcl:"display_name"`
	Allows                    []*allow       `xml:"Allow" hcl:"allow"`
	Interval                  *interval      `hcl:"interval"`
	TimeUnit                  *timeUnit      `hcl:"time_unit"`
	StartTime                 string         `xml:",omitempty" hcl:"start_time"`
	Distributed               bool           `xml:",omitempty" hcl:"distributed"`
	Synchronous               bool           `xml:",omitempty" hcl:"synchronous"`
	AsynchronousConfiguration *asyncConfig   `xml:",omitempty" hcl:"asynchronous_configuration"`
	Identifier                *identifier    `xml:",omitempty" hcl:"identifier"`
	MessageWeight             *messageWeight `xml:",omitempty" hcl:"message_weight"`
}

Quota represents a <Quota/> element.

Documentation: http://docs.apigee.com/api-services/reference/quota-policy

Jump to

Keyboard shortcuts

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