usage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for usage API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new usage API client.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UsageList

func (a *Client) UsageList(params *UsageListParams, authInfo runtime.ClientAuthInfoWriter) (*UsageListOK, error)

UsageList Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.

type UsageListOK

type UsageListOK struct {
	Payload *models.ListUsagesResult
}

UsageListOK handles this case with default header values.

OK

func NewUsageListOK

func NewUsageListOK() *UsageListOK

NewUsageListOK creates a UsageListOK with default headers values

func (*UsageListOK) Error

func (o *UsageListOK) Error() string

type UsageListParams

type UsageListParams struct {

	/*APIVersion
	  Client Api Version.

	*/
	APIVersion string
	/*Location
	  The location for which resource usage is queried.

	*/
	Location string
	/*SubscriptionID
	  Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

	*/
	SubscriptionID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UsageListParams contains all the parameters to send to the API endpoint for the usage list operation typically these are written to a http.Request

func NewUsageListParams

func NewUsageListParams() *UsageListParams

NewUsageListParams creates a new UsageListParams object with the default values initialized.

func NewUsageListParamsWithContext

func NewUsageListParamsWithContext(ctx context.Context) *UsageListParams

NewUsageListParamsWithContext creates a new UsageListParams object with the default values initialized, and the ability to set a context for a request

func NewUsageListParamsWithTimeout

func NewUsageListParamsWithTimeout(timeout time.Duration) *UsageListParams

NewUsageListParamsWithTimeout creates a new UsageListParams object with the default values initialized, and the ability to set a timeout on a request

func (*UsageListParams) SetAPIVersion

func (o *UsageListParams) SetAPIVersion(aPIVersion string)

SetAPIVersion adds the apiVersion to the usage list params

func (*UsageListParams) SetContext

func (o *UsageListParams) SetContext(ctx context.Context)

SetContext adds the context to the usage list params

func (*UsageListParams) SetLocation

func (o *UsageListParams) SetLocation(location string)

SetLocation adds the location to the usage list params

func (*UsageListParams) SetSubscriptionID

func (o *UsageListParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the usage list params

func (*UsageListParams) SetTimeout

func (o *UsageListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the usage list params

func (*UsageListParams) WithAPIVersion

func (o *UsageListParams) WithAPIVersion(aPIVersion string) *UsageListParams

WithAPIVersion adds the aPIVersion to the usage list params

func (*UsageListParams) WithContext

func (o *UsageListParams) WithContext(ctx context.Context) *UsageListParams

WithContext adds the context to the usage list params

func (*UsageListParams) WithLocation

func (o *UsageListParams) WithLocation(location string) *UsageListParams

WithLocation adds the location to the usage list params

func (*UsageListParams) WithSubscriptionID

func (o *UsageListParams) WithSubscriptionID(subscriptionID string) *UsageListParams

WithSubscriptionID adds the subscriptionID to the usage list params

func (*UsageListParams) WithTimeout

func (o *UsageListParams) WithTimeout(timeout time.Duration) *UsageListParams

WithTimeout adds the timeout to the usage list params

func (*UsageListParams) WriteToRequest

func (o *UsageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UsageListReader

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

UsageListReader is a Reader for the UsageList structure.

func (*UsageListReader) ReadResponse

func (o *UsageListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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