usages

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 8 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 usages API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new usages API client.

func (*Client) Generate

func (a *Client) Generate(params *GenerateParams) error

Generate generates usages

Cloudbreak gives you an up to date overview of cluster usage based on different filtering criteria (start/end date, users, providers, region, etc)

func (*Client) GetAccount

func (a *Client) GetAccount(params *GetAccountParams) (*GetAccountOK, error)

GetAccount retrieves public and private owned usages by filter parameters

Cloudbreak gives you an up to date overview of cluster usage based on different filtering criteria (start/end date, users, providers, region, etc)

func (*Client) GetDeployer

func (a *Client) GetDeployer(params *GetDeployerParams) (*GetDeployerOK, error)

GetDeployer retrieves usages by filter parameters

Cloudbreak gives you an up to date overview of cluster usage based on different filtering criteria (start/end date, users, providers, region, etc)

func (*Client) GetUser

func (a *Client) GetUser(params *GetUserParams) (*GetUserOK, error)

GetUser retrieves private usages by filter parameters

Cloudbreak gives you an up to date overview of cluster usage based on different filtering criteria (start/end date, users, providers, region, etc)

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type GenerateDefault

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

GenerateDefault handles this case with default header values.

successful operation

func NewGenerateDefault

func NewGenerateDefault(code int) *GenerateDefault

NewGenerateDefault creates a GenerateDefault with default headers values

func (*GenerateDefault) Code

func (o *GenerateDefault) Code() int

Code gets the status code for the generate default response

func (*GenerateDefault) Error

func (o *GenerateDefault) Error() string

type GenerateParams

type GenerateParams struct {
}

GenerateParams contains all the parameters to send to the API endpoint for the generate operation typically these are written to a http.Request

func NewGenerateParams

func NewGenerateParams() *GenerateParams

NewGenerateParams creates a new GenerateParams object with the default values initialized.

func (*GenerateParams) WriteToRequest

func (o *GenerateParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GenerateReader

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

GenerateReader is a Reader for the Generate structure.

func (*GenerateReader) ReadResponse

func (o *GenerateReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetAccountOK

type GetAccountOK struct {
	Payload []*models.CloudbreakUsage
}

GetAccountOK handles this case with default header values.

successful operation

func NewGetAccountOK

func NewGetAccountOK() *GetAccountOK

NewGetAccountOK creates a GetAccountOK with default headers values

func (*GetAccountOK) Error

func (o *GetAccountOK) Error() string

type GetAccountParams

type GetAccountParams struct {

	/*Cloud*/
	Cloud *string
	/*Filterenddate*/
	Filterenddate *int64
	/*Since*/
	Since *int64
	/*User*/
	User *string
	/*Zone*/
	Zone *string
}

GetAccountParams contains all the parameters to send to the API endpoint for the get account operation typically these are written to a http.Request

func NewGetAccountParams

func NewGetAccountParams() *GetAccountParams

NewGetAccountParams creates a new GetAccountParams object with the default values initialized.

func (*GetAccountParams) WithCloud

func (o *GetAccountParams) WithCloud(cloud *string) *GetAccountParams

WithCloud adds the cloud to the get account params

func (*GetAccountParams) WithFilterenddate

func (o *GetAccountParams) WithFilterenddate(filterenddate *int64) *GetAccountParams

WithFilterenddate adds the filterenddate to the get account params

func (*GetAccountParams) WithSince

func (o *GetAccountParams) WithSince(since *int64) *GetAccountParams

WithSince adds the since to the get account params

func (*GetAccountParams) WithUser

func (o *GetAccountParams) WithUser(user *string) *GetAccountParams

WithUser adds the user to the get account params

func (*GetAccountParams) WithZone

func (o *GetAccountParams) WithZone(zone *string) *GetAccountParams

WithZone adds the zone to the get account params

func (*GetAccountParams) WriteToRequest

func (o *GetAccountParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAccountReader

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

GetAccountReader is a Reader for the GetAccount structure.

func (*GetAccountReader) ReadResponse

func (o *GetAccountReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetDeployerOK

type GetDeployerOK struct {
	Payload []*models.CloudbreakUsage
}

GetDeployerOK handles this case with default header values.

successful operation

func NewGetDeployerOK

func NewGetDeployerOK() *GetDeployerOK

NewGetDeployerOK creates a GetDeployerOK with default headers values

func (*GetDeployerOK) Error

func (o *GetDeployerOK) Error() string

type GetDeployerParams

type GetDeployerParams struct {

	/*Account*/
	Account *string
	/*Cloud*/
	Cloud *string
	/*Filterenddate*/
	Filterenddate *int64
	/*Since*/
	Since *int64
	/*User*/
	User *string
	/*Zone*/
	Zone *string
}

GetDeployerParams contains all the parameters to send to the API endpoint for the get deployer operation typically these are written to a http.Request

func NewGetDeployerParams

func NewGetDeployerParams() *GetDeployerParams

NewGetDeployerParams creates a new GetDeployerParams object with the default values initialized.

func (*GetDeployerParams) WithAccount

func (o *GetDeployerParams) WithAccount(account *string) *GetDeployerParams

WithAccount adds the account to the get deployer params

func (*GetDeployerParams) WithCloud

func (o *GetDeployerParams) WithCloud(cloud *string) *GetDeployerParams

WithCloud adds the cloud to the get deployer params

func (*GetDeployerParams) WithFilterenddate

func (o *GetDeployerParams) WithFilterenddate(filterenddate *int64) *GetDeployerParams

WithFilterenddate adds the filterenddate to the get deployer params

func (*GetDeployerParams) WithSince

func (o *GetDeployerParams) WithSince(since *int64) *GetDeployerParams

WithSince adds the since to the get deployer params

func (*GetDeployerParams) WithUser

func (o *GetDeployerParams) WithUser(user *string) *GetDeployerParams

WithUser adds the user to the get deployer params

func (*GetDeployerParams) WithZone

func (o *GetDeployerParams) WithZone(zone *string) *GetDeployerParams

WithZone adds the zone to the get deployer params

func (*GetDeployerParams) WriteToRequest

func (o *GetDeployerParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetDeployerReader

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

GetDeployerReader is a Reader for the GetDeployer structure.

func (*GetDeployerReader) ReadResponse

func (o *GetDeployerReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

type GetUserOK

type GetUserOK struct {
	Payload []*models.CloudbreakUsage
}

GetUserOK handles this case with default header values.

successful operation

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

type GetUserParams

type GetUserParams struct {

	/*Cloud*/
	Cloud *string
	/*Filterenddate*/
	Filterenddate *int64
	/*Since*/
	Since *int64
	/*Zone*/
	Zone *string
}

GetUserParams contains all the parameters to send to the API endpoint for the get user operation typically these are written to a http.Request

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams object with the default values initialized.

func (*GetUserParams) WithCloud

func (o *GetUserParams) WithCloud(cloud *string) *GetUserParams

WithCloud adds the cloud to the get user params

func (*GetUserParams) WithFilterenddate

func (o *GetUserParams) WithFilterenddate(filterenddate *int64) *GetUserParams

WithFilterenddate adds the filterenddate to the get user params

func (*GetUserParams) WithSince

func (o *GetUserParams) WithSince(since *int64) *GetUserParams

WithSince adds the since to the get user params

func (*GetUserParams) WithZone

func (o *GetUserParams) WithZone(zone *string) *GetUserParams

WithZone adds the zone to the get user params

func (*GetUserParams) WriteToRequest

func (o *GetUserParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

func (o *GetUserReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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