quota

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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 quota API

func (*Client) DeleteQuotasProjectID

func (a *Client) DeleteQuotasProjectID(params *DeleteQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteQuotasProjectIDNoContent, error)

DeleteQuotasProjectID resets all quota of a project

func (*Client) GetQuotas

func (a *Client) GetQuotas(params *GetQuotasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasOK, error)

GetQuotas lists quotas

func (*Client) GetQuotasDefaults

func (a *Client) GetQuotasDefaults(params *GetQuotasDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasDefaultsOK, error)

GetQuotasDefaults shows quota defaults

func (*Client) GetQuotasProjectID

func (a *Client) GetQuotasProjectID(params *GetQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasProjectIDOK, error)

GetQuotasProjectID shows quota detail

func (*Client) PutQuotasProjectID

func (a *Client) PutQuotasProjectID(params *PutQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutQuotasProjectIDOK, error)

PutQuotasProjectID updates quota

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteQuotasProjectID(params *DeleteQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteQuotasProjectIDNoContent, error)

	GetQuotas(params *GetQuotasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasOK, error)

	GetQuotasDefaults(params *GetQuotasDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasDefaultsOK, error)

	GetQuotasProjectID(params *GetQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetQuotasProjectIDOK, error)

	PutQuotasProjectID(params *PutQuotasProjectIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutQuotasProjectIDOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new quota API client.

type DeleteQuotasProjectIDForbidden

type DeleteQuotasProjectIDForbidden struct {
}

DeleteQuotasProjectIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteQuotasProjectIDForbidden

func NewDeleteQuotasProjectIDForbidden() *DeleteQuotasProjectIDForbidden

NewDeleteQuotasProjectIDForbidden creates a DeleteQuotasProjectIDForbidden with default headers values

func (*DeleteQuotasProjectIDForbidden) Code

Code gets the status code for the delete quotas project Id forbidden response

func (*DeleteQuotasProjectIDForbidden) Error

func (*DeleteQuotasProjectIDForbidden) IsClientError

func (o *DeleteQuotasProjectIDForbidden) IsClientError() bool

IsClientError returns true when this delete quotas project Id forbidden response has a 4xx status code

func (*DeleteQuotasProjectIDForbidden) IsCode

func (o *DeleteQuotasProjectIDForbidden) IsCode(code int) bool

IsCode returns true when this delete quotas project Id forbidden response a status code equal to that given

func (*DeleteQuotasProjectIDForbidden) IsRedirect

func (o *DeleteQuotasProjectIDForbidden) IsRedirect() bool

IsRedirect returns true when this delete quotas project Id forbidden response has a 3xx status code

func (*DeleteQuotasProjectIDForbidden) IsServerError

func (o *DeleteQuotasProjectIDForbidden) IsServerError() bool

IsServerError returns true when this delete quotas project Id forbidden response has a 5xx status code

func (*DeleteQuotasProjectIDForbidden) IsSuccess

func (o *DeleteQuotasProjectIDForbidden) IsSuccess() bool

IsSuccess returns true when this delete quotas project Id forbidden response has a 2xx status code

func (*DeleteQuotasProjectIDForbidden) String

type DeleteQuotasProjectIDNoContent

type DeleteQuotasProjectIDNoContent struct {
}

DeleteQuotasProjectIDNoContent describes a response with status code 204, with default header values.

Resource successfully reset

func NewDeleteQuotasProjectIDNoContent

func NewDeleteQuotasProjectIDNoContent() *DeleteQuotasProjectIDNoContent

NewDeleteQuotasProjectIDNoContent creates a DeleteQuotasProjectIDNoContent with default headers values

func (*DeleteQuotasProjectIDNoContent) Code

Code gets the status code for the delete quotas project Id no content response

func (*DeleteQuotasProjectIDNoContent) Error

func (*DeleteQuotasProjectIDNoContent) IsClientError

func (o *DeleteQuotasProjectIDNoContent) IsClientError() bool

IsClientError returns true when this delete quotas project Id no content response has a 4xx status code

func (*DeleteQuotasProjectIDNoContent) IsCode

func (o *DeleteQuotasProjectIDNoContent) IsCode(code int) bool

IsCode returns true when this delete quotas project Id no content response a status code equal to that given

func (*DeleteQuotasProjectIDNoContent) IsRedirect

func (o *DeleteQuotasProjectIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete quotas project Id no content response has a 3xx status code

func (*DeleteQuotasProjectIDNoContent) IsServerError

func (o *DeleteQuotasProjectIDNoContent) IsServerError() bool

IsServerError returns true when this delete quotas project Id no content response has a 5xx status code

func (*DeleteQuotasProjectIDNoContent) IsSuccess

func (o *DeleteQuotasProjectIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete quotas project Id no content response has a 2xx status code

func (*DeleteQuotasProjectIDNoContent) String

type DeleteQuotasProjectIDNotFound

type DeleteQuotasProjectIDNotFound struct {
	Payload *models.Error
}

DeleteQuotasProjectIDNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteQuotasProjectIDNotFound

func NewDeleteQuotasProjectIDNotFound() *DeleteQuotasProjectIDNotFound

NewDeleteQuotasProjectIDNotFound creates a DeleteQuotasProjectIDNotFound with default headers values

func (*DeleteQuotasProjectIDNotFound) Code

Code gets the status code for the delete quotas project Id not found response

func (*DeleteQuotasProjectIDNotFound) Error

func (*DeleteQuotasProjectIDNotFound) GetPayload

func (o *DeleteQuotasProjectIDNotFound) GetPayload() *models.Error

func (*DeleteQuotasProjectIDNotFound) IsClientError

func (o *DeleteQuotasProjectIDNotFound) IsClientError() bool

IsClientError returns true when this delete quotas project Id not found response has a 4xx status code

func (*DeleteQuotasProjectIDNotFound) IsCode

func (o *DeleteQuotasProjectIDNotFound) IsCode(code int) bool

IsCode returns true when this delete quotas project Id not found response a status code equal to that given

func (*DeleteQuotasProjectIDNotFound) IsRedirect

func (o *DeleteQuotasProjectIDNotFound) IsRedirect() bool

IsRedirect returns true when this delete quotas project Id not found response has a 3xx status code

func (*DeleteQuotasProjectIDNotFound) IsServerError

func (o *DeleteQuotasProjectIDNotFound) IsServerError() bool

IsServerError returns true when this delete quotas project Id not found response has a 5xx status code

func (*DeleteQuotasProjectIDNotFound) IsSuccess

func (o *DeleteQuotasProjectIDNotFound) IsSuccess() bool

IsSuccess returns true when this delete quotas project Id not found response has a 2xx status code

func (*DeleteQuotasProjectIDNotFound) String

type DeleteQuotasProjectIDParams

type DeleteQuotasProjectIDParams struct {

	/* ProjectID.

	   The ID of the project to query.
	*/
	ProjectID string

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

DeleteQuotasProjectIDParams contains all the parameters to send to the API endpoint

for the delete quotas project ID operation.

Typically these are written to a http.Request.

func NewDeleteQuotasProjectIDParams

func NewDeleteQuotasProjectIDParams() *DeleteQuotasProjectIDParams

NewDeleteQuotasProjectIDParams creates a new DeleteQuotasProjectIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteQuotasProjectIDParamsWithContext

func NewDeleteQuotasProjectIDParamsWithContext(ctx context.Context) *DeleteQuotasProjectIDParams

NewDeleteQuotasProjectIDParamsWithContext creates a new DeleteQuotasProjectIDParams object with the ability to set a context for a request.

func NewDeleteQuotasProjectIDParamsWithHTTPClient

func NewDeleteQuotasProjectIDParamsWithHTTPClient(client *http.Client) *DeleteQuotasProjectIDParams

NewDeleteQuotasProjectIDParamsWithHTTPClient creates a new DeleteQuotasProjectIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteQuotasProjectIDParamsWithTimeout

func NewDeleteQuotasProjectIDParamsWithTimeout(timeout time.Duration) *DeleteQuotasProjectIDParams

NewDeleteQuotasProjectIDParamsWithTimeout creates a new DeleteQuotasProjectIDParams object with the ability to set a timeout on a request.

func (*DeleteQuotasProjectIDParams) SetContext

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

SetContext adds the context to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) SetDefaults

func (o *DeleteQuotasProjectIDParams) SetDefaults()

SetDefaults hydrates default values in the delete quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteQuotasProjectIDParams) SetHTTPClient

func (o *DeleteQuotasProjectIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) SetProjectID

func (o *DeleteQuotasProjectIDParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) WithContext

WithContext adds the context to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) WithDefaults

WithDefaults hydrates default values in the delete quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteQuotasProjectIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) WithProjectID

func (o *DeleteQuotasProjectIDParams) WithProjectID(projectID string) *DeleteQuotasProjectIDParams

WithProjectID adds the projectID to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) WithTimeout

WithTimeout adds the timeout to the delete quotas project ID params

func (*DeleteQuotasProjectIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteQuotasProjectIDReader

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

DeleteQuotasProjectIDReader is a Reader for the DeleteQuotasProjectID structure.

func (*DeleteQuotasProjectIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteQuotasProjectIDUnauthorized

type DeleteQuotasProjectIDUnauthorized struct {
	Payload *models.Error
}

DeleteQuotasProjectIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteQuotasProjectIDUnauthorized

func NewDeleteQuotasProjectIDUnauthorized() *DeleteQuotasProjectIDUnauthorized

NewDeleteQuotasProjectIDUnauthorized creates a DeleteQuotasProjectIDUnauthorized with default headers values

func (*DeleteQuotasProjectIDUnauthorized) Code

Code gets the status code for the delete quotas project Id unauthorized response

func (*DeleteQuotasProjectIDUnauthorized) Error

func (*DeleteQuotasProjectIDUnauthorized) GetPayload

func (*DeleteQuotasProjectIDUnauthorized) IsClientError

func (o *DeleteQuotasProjectIDUnauthorized) IsClientError() bool

IsClientError returns true when this delete quotas project Id unauthorized response has a 4xx status code

func (*DeleteQuotasProjectIDUnauthorized) IsCode

func (o *DeleteQuotasProjectIDUnauthorized) IsCode(code int) bool

IsCode returns true when this delete quotas project Id unauthorized response a status code equal to that given

func (*DeleteQuotasProjectIDUnauthorized) IsRedirect

func (o *DeleteQuotasProjectIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete quotas project Id unauthorized response has a 3xx status code

func (*DeleteQuotasProjectIDUnauthorized) IsServerError

func (o *DeleteQuotasProjectIDUnauthorized) IsServerError() bool

IsServerError returns true when this delete quotas project Id unauthorized response has a 5xx status code

func (*DeleteQuotasProjectIDUnauthorized) IsSuccess

func (o *DeleteQuotasProjectIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete quotas project Id unauthorized response has a 2xx status code

func (*DeleteQuotasProjectIDUnauthorized) String

type DeleteQuotasProjectIDUnprocessableEntity

type DeleteQuotasProjectIDUnprocessableEntity struct {
	Payload *models.Error
}

DeleteQuotasProjectIDUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewDeleteQuotasProjectIDUnprocessableEntity

func NewDeleteQuotasProjectIDUnprocessableEntity() *DeleteQuotasProjectIDUnprocessableEntity

NewDeleteQuotasProjectIDUnprocessableEntity creates a DeleteQuotasProjectIDUnprocessableEntity with default headers values

func (*DeleteQuotasProjectIDUnprocessableEntity) Code

Code gets the status code for the delete quotas project Id unprocessable entity response

func (*DeleteQuotasProjectIDUnprocessableEntity) Error

func (*DeleteQuotasProjectIDUnprocessableEntity) GetPayload

func (*DeleteQuotasProjectIDUnprocessableEntity) IsClientError

IsClientError returns true when this delete quotas project Id unprocessable entity response has a 4xx status code

func (*DeleteQuotasProjectIDUnprocessableEntity) IsCode

IsCode returns true when this delete quotas project Id unprocessable entity response a status code equal to that given

func (*DeleteQuotasProjectIDUnprocessableEntity) IsRedirect

IsRedirect returns true when this delete quotas project Id unprocessable entity response has a 3xx status code

func (*DeleteQuotasProjectIDUnprocessableEntity) IsServerError

IsServerError returns true when this delete quotas project Id unprocessable entity response has a 5xx status code

func (*DeleteQuotasProjectIDUnprocessableEntity) IsSuccess

IsSuccess returns true when this delete quotas project Id unprocessable entity response has a 2xx status code

func (*DeleteQuotasProjectIDUnprocessableEntity) String

type GetQuotasDefaultsForbidden

type GetQuotasDefaultsForbidden struct {
}

GetQuotasDefaultsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetQuotasDefaultsForbidden

func NewGetQuotasDefaultsForbidden() *GetQuotasDefaultsForbidden

NewGetQuotasDefaultsForbidden creates a GetQuotasDefaultsForbidden with default headers values

func (*GetQuotasDefaultsForbidden) Code

func (o *GetQuotasDefaultsForbidden) Code() int

Code gets the status code for the get quotas defaults forbidden response

func (*GetQuotasDefaultsForbidden) Error

func (*GetQuotasDefaultsForbidden) IsClientError

func (o *GetQuotasDefaultsForbidden) IsClientError() bool

IsClientError returns true when this get quotas defaults forbidden response has a 4xx status code

func (*GetQuotasDefaultsForbidden) IsCode

func (o *GetQuotasDefaultsForbidden) IsCode(code int) bool

IsCode returns true when this get quotas defaults forbidden response a status code equal to that given

func (*GetQuotasDefaultsForbidden) IsRedirect

func (o *GetQuotasDefaultsForbidden) IsRedirect() bool

IsRedirect returns true when this get quotas defaults forbidden response has a 3xx status code

func (*GetQuotasDefaultsForbidden) IsServerError

func (o *GetQuotasDefaultsForbidden) IsServerError() bool

IsServerError returns true when this get quotas defaults forbidden response has a 5xx status code

func (*GetQuotasDefaultsForbidden) IsSuccess

func (o *GetQuotasDefaultsForbidden) IsSuccess() bool

IsSuccess returns true when this get quotas defaults forbidden response has a 2xx status code

func (*GetQuotasDefaultsForbidden) String

func (o *GetQuotasDefaultsForbidden) String() string

type GetQuotasDefaultsOK

type GetQuotasDefaultsOK struct {
	Payload *GetQuotasDefaultsOKBody
}

GetQuotasDefaultsOK describes a response with status code 200, with default header values.

Show the quota defaults configured for new projects.

func NewGetQuotasDefaultsOK

func NewGetQuotasDefaultsOK() *GetQuotasDefaultsOK

NewGetQuotasDefaultsOK creates a GetQuotasDefaultsOK with default headers values

func (*GetQuotasDefaultsOK) Code

func (o *GetQuotasDefaultsOK) Code() int

Code gets the status code for the get quotas defaults o k response

func (*GetQuotasDefaultsOK) Error

func (o *GetQuotasDefaultsOK) Error() string

func (*GetQuotasDefaultsOK) GetPayload

func (*GetQuotasDefaultsOK) IsClientError

func (o *GetQuotasDefaultsOK) IsClientError() bool

IsClientError returns true when this get quotas defaults o k response has a 4xx status code

func (*GetQuotasDefaultsOK) IsCode

func (o *GetQuotasDefaultsOK) IsCode(code int) bool

IsCode returns true when this get quotas defaults o k response a status code equal to that given

func (*GetQuotasDefaultsOK) IsRedirect

func (o *GetQuotasDefaultsOK) IsRedirect() bool

IsRedirect returns true when this get quotas defaults o k response has a 3xx status code

func (*GetQuotasDefaultsOK) IsServerError

func (o *GetQuotasDefaultsOK) IsServerError() bool

IsServerError returns true when this get quotas defaults o k response has a 5xx status code

func (*GetQuotasDefaultsOK) IsSuccess

func (o *GetQuotasDefaultsOK) IsSuccess() bool

IsSuccess returns true when this get quotas defaults o k response has a 2xx status code

func (*GetQuotasDefaultsOK) String

func (o *GetQuotasDefaultsOK) String() string

type GetQuotasDefaultsOKBody

type GetQuotasDefaultsOKBody struct {

	// quota
	Quota *models.Quota `json:"quota,omitempty"`
}

GetQuotasDefaultsOKBody get quotas defaults o k body swagger:model GetQuotasDefaultsOKBody

func (*GetQuotasDefaultsOKBody) ContextValidate

func (o *GetQuotasDefaultsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get quotas defaults o k body based on the context it is used

func (*GetQuotasDefaultsOKBody) MarshalBinary

func (o *GetQuotasDefaultsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetQuotasDefaultsOKBody) UnmarshalBinary

func (o *GetQuotasDefaultsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetQuotasDefaultsOKBody) Validate

func (o *GetQuotasDefaultsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get quotas defaults o k body

type GetQuotasDefaultsParams

type GetQuotasDefaultsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetQuotasDefaultsParams contains all the parameters to send to the API endpoint

for the get quotas defaults operation.

Typically these are written to a http.Request.

func NewGetQuotasDefaultsParams

func NewGetQuotasDefaultsParams() *GetQuotasDefaultsParams

NewGetQuotasDefaultsParams creates a new GetQuotasDefaultsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetQuotasDefaultsParamsWithContext

func NewGetQuotasDefaultsParamsWithContext(ctx context.Context) *GetQuotasDefaultsParams

NewGetQuotasDefaultsParamsWithContext creates a new GetQuotasDefaultsParams object with the ability to set a context for a request.

func NewGetQuotasDefaultsParamsWithHTTPClient

func NewGetQuotasDefaultsParamsWithHTTPClient(client *http.Client) *GetQuotasDefaultsParams

NewGetQuotasDefaultsParamsWithHTTPClient creates a new GetQuotasDefaultsParams object with the ability to set a custom HTTPClient for a request.

func NewGetQuotasDefaultsParamsWithTimeout

func NewGetQuotasDefaultsParamsWithTimeout(timeout time.Duration) *GetQuotasDefaultsParams

NewGetQuotasDefaultsParamsWithTimeout creates a new GetQuotasDefaultsParams object with the ability to set a timeout on a request.

func (*GetQuotasDefaultsParams) SetContext

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

SetContext adds the context to the get quotas defaults params

func (*GetQuotasDefaultsParams) SetDefaults

func (o *GetQuotasDefaultsParams) SetDefaults()

SetDefaults hydrates default values in the get quotas defaults params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasDefaultsParams) SetHTTPClient

func (o *GetQuotasDefaultsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get quotas defaults params

func (*GetQuotasDefaultsParams) SetTimeout

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

SetTimeout adds the timeout to the get quotas defaults params

func (*GetQuotasDefaultsParams) WithContext

WithContext adds the context to the get quotas defaults params

func (*GetQuotasDefaultsParams) WithDefaults

WithDefaults hydrates default values in the get quotas defaults params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasDefaultsParams) WithHTTPClient

func (o *GetQuotasDefaultsParams) WithHTTPClient(client *http.Client) *GetQuotasDefaultsParams

WithHTTPClient adds the HTTPClient to the get quotas defaults params

func (*GetQuotasDefaultsParams) WithTimeout

WithTimeout adds the timeout to the get quotas defaults params

func (*GetQuotasDefaultsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetQuotasDefaultsReader

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

GetQuotasDefaultsReader is a Reader for the GetQuotasDefaults structure.

func (*GetQuotasDefaultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetQuotasDefaultsUnauthorized

type GetQuotasDefaultsUnauthorized struct {
	Payload *models.Error
}

GetQuotasDefaultsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetQuotasDefaultsUnauthorized

func NewGetQuotasDefaultsUnauthorized() *GetQuotasDefaultsUnauthorized

NewGetQuotasDefaultsUnauthorized creates a GetQuotasDefaultsUnauthorized with default headers values

func (*GetQuotasDefaultsUnauthorized) Code

Code gets the status code for the get quotas defaults unauthorized response

func (*GetQuotasDefaultsUnauthorized) Error

func (*GetQuotasDefaultsUnauthorized) GetPayload

func (o *GetQuotasDefaultsUnauthorized) GetPayload() *models.Error

func (*GetQuotasDefaultsUnauthorized) IsClientError

func (o *GetQuotasDefaultsUnauthorized) IsClientError() bool

IsClientError returns true when this get quotas defaults unauthorized response has a 4xx status code

func (*GetQuotasDefaultsUnauthorized) IsCode

func (o *GetQuotasDefaultsUnauthorized) IsCode(code int) bool

IsCode returns true when this get quotas defaults unauthorized response a status code equal to that given

func (*GetQuotasDefaultsUnauthorized) IsRedirect

func (o *GetQuotasDefaultsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get quotas defaults unauthorized response has a 3xx status code

func (*GetQuotasDefaultsUnauthorized) IsServerError

func (o *GetQuotasDefaultsUnauthorized) IsServerError() bool

IsServerError returns true when this get quotas defaults unauthorized response has a 5xx status code

func (*GetQuotasDefaultsUnauthorized) IsSuccess

func (o *GetQuotasDefaultsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get quotas defaults unauthorized response has a 2xx status code

func (*GetQuotasDefaultsUnauthorized) String

type GetQuotasDefaultsUnprocessableEntity

type GetQuotasDefaultsUnprocessableEntity struct {
	Payload *models.Error
}

GetQuotasDefaultsUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewGetQuotasDefaultsUnprocessableEntity

func NewGetQuotasDefaultsUnprocessableEntity() *GetQuotasDefaultsUnprocessableEntity

NewGetQuotasDefaultsUnprocessableEntity creates a GetQuotasDefaultsUnprocessableEntity with default headers values

func (*GetQuotasDefaultsUnprocessableEntity) Code

Code gets the status code for the get quotas defaults unprocessable entity response

func (*GetQuotasDefaultsUnprocessableEntity) Error

func (*GetQuotasDefaultsUnprocessableEntity) GetPayload

func (*GetQuotasDefaultsUnprocessableEntity) IsClientError

func (o *GetQuotasDefaultsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get quotas defaults unprocessable entity response has a 4xx status code

func (*GetQuotasDefaultsUnprocessableEntity) IsCode

IsCode returns true when this get quotas defaults unprocessable entity response a status code equal to that given

func (*GetQuotasDefaultsUnprocessableEntity) IsRedirect

IsRedirect returns true when this get quotas defaults unprocessable entity response has a 3xx status code

func (*GetQuotasDefaultsUnprocessableEntity) IsServerError

func (o *GetQuotasDefaultsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get quotas defaults unprocessable entity response has a 5xx status code

func (*GetQuotasDefaultsUnprocessableEntity) IsSuccess

IsSuccess returns true when this get quotas defaults unprocessable entity response has a 2xx status code

func (*GetQuotasDefaultsUnprocessableEntity) String

type GetQuotasForbidden

type GetQuotasForbidden struct {
}

GetQuotasForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetQuotasForbidden

func NewGetQuotasForbidden() *GetQuotasForbidden

NewGetQuotasForbidden creates a GetQuotasForbidden with default headers values

func (*GetQuotasForbidden) Code

func (o *GetQuotasForbidden) Code() int

Code gets the status code for the get quotas forbidden response

func (*GetQuotasForbidden) Error

func (o *GetQuotasForbidden) Error() string

func (*GetQuotasForbidden) IsClientError

func (o *GetQuotasForbidden) IsClientError() bool

IsClientError returns true when this get quotas forbidden response has a 4xx status code

func (*GetQuotasForbidden) IsCode

func (o *GetQuotasForbidden) IsCode(code int) bool

IsCode returns true when this get quotas forbidden response a status code equal to that given

func (*GetQuotasForbidden) IsRedirect

func (o *GetQuotasForbidden) IsRedirect() bool

IsRedirect returns true when this get quotas forbidden response has a 3xx status code

func (*GetQuotasForbidden) IsServerError

func (o *GetQuotasForbidden) IsServerError() bool

IsServerError returns true when this get quotas forbidden response has a 5xx status code

func (*GetQuotasForbidden) IsSuccess

func (o *GetQuotasForbidden) IsSuccess() bool

IsSuccess returns true when this get quotas forbidden response has a 2xx status code

func (*GetQuotasForbidden) String

func (o *GetQuotasForbidden) String() string

type GetQuotasNotFound

type GetQuotasNotFound struct {
	Payload *models.Error
}

GetQuotasNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetQuotasNotFound

func NewGetQuotasNotFound() *GetQuotasNotFound

NewGetQuotasNotFound creates a GetQuotasNotFound with default headers values

func (*GetQuotasNotFound) Code

func (o *GetQuotasNotFound) Code() int

Code gets the status code for the get quotas not found response

func (*GetQuotasNotFound) Error

func (o *GetQuotasNotFound) Error() string

func (*GetQuotasNotFound) GetPayload

func (o *GetQuotasNotFound) GetPayload() *models.Error

func (*GetQuotasNotFound) IsClientError

func (o *GetQuotasNotFound) IsClientError() bool

IsClientError returns true when this get quotas not found response has a 4xx status code

func (*GetQuotasNotFound) IsCode

func (o *GetQuotasNotFound) IsCode(code int) bool

IsCode returns true when this get quotas not found response a status code equal to that given

func (*GetQuotasNotFound) IsRedirect

func (o *GetQuotasNotFound) IsRedirect() bool

IsRedirect returns true when this get quotas not found response has a 3xx status code

func (*GetQuotasNotFound) IsServerError

func (o *GetQuotasNotFound) IsServerError() bool

IsServerError returns true when this get quotas not found response has a 5xx status code

func (*GetQuotasNotFound) IsSuccess

func (o *GetQuotasNotFound) IsSuccess() bool

IsSuccess returns true when this get quotas not found response has a 2xx status code

func (*GetQuotasNotFound) String

func (o *GetQuotasNotFound) String() string

type GetQuotasOK

type GetQuotasOK struct {
	Payload *GetQuotasOKBody
}

GetQuotasOK describes a response with status code 200, with default header values.

A JSON array of quotas

func NewGetQuotasOK

func NewGetQuotasOK() *GetQuotasOK

NewGetQuotasOK creates a GetQuotasOK with default headers values

func (*GetQuotasOK) Code

func (o *GetQuotasOK) Code() int

Code gets the status code for the get quotas o k response

func (*GetQuotasOK) Error

func (o *GetQuotasOK) Error() string

func (*GetQuotasOK) GetPayload

func (o *GetQuotasOK) GetPayload() *GetQuotasOKBody

func (*GetQuotasOK) IsClientError

func (o *GetQuotasOK) IsClientError() bool

IsClientError returns true when this get quotas o k response has a 4xx status code

func (*GetQuotasOK) IsCode

func (o *GetQuotasOK) IsCode(code int) bool

IsCode returns true when this get quotas o k response a status code equal to that given

func (*GetQuotasOK) IsRedirect

func (o *GetQuotasOK) IsRedirect() bool

IsRedirect returns true when this get quotas o k response has a 3xx status code

func (*GetQuotasOK) IsServerError

func (o *GetQuotasOK) IsServerError() bool

IsServerError returns true when this get quotas o k response has a 5xx status code

func (*GetQuotasOK) IsSuccess

func (o *GetQuotasOK) IsSuccess() bool

IsSuccess returns true when this get quotas o k response has a 2xx status code

func (*GetQuotasOK) String

func (o *GetQuotasOK) String() string

type GetQuotasOKBody

type GetQuotasOKBody struct {

	// links
	Links []*models.Link `json:"links,omitempty"`

	// quotas
	Quotas []*GetQuotasOKBodyQuotasItems0 `json:"quotas"`
}

GetQuotasOKBody get quotas o k body swagger:model GetQuotasOKBody

func (*GetQuotasOKBody) ContextValidate

func (o *GetQuotasOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get quotas o k body based on the context it is used

func (*GetQuotasOKBody) MarshalBinary

func (o *GetQuotasOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetQuotasOKBody) UnmarshalBinary

func (o *GetQuotasOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetQuotasOKBody) Validate

func (o *GetQuotasOKBody) Validate(formats strfmt.Registry) error

Validate validates this get quotas o k body

type GetQuotasOKBodyQuotasItems0

type GetQuotasOKBodyQuotasItems0 struct {
	models.Quota

	models.QuotaUsage

	// project id
	ProjectID models.Project `json:"project_id"`
}

GetQuotasOKBodyQuotasItems0 get quotas o k body quotas items0 swagger:model GetQuotasOKBodyQuotasItems0

func (*GetQuotasOKBodyQuotasItems0) ContextValidate

func (o *GetQuotasOKBodyQuotasItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get quotas o k body quotas items0 based on the context it is used

func (*GetQuotasOKBodyQuotasItems0) MarshalBinary

func (o *GetQuotasOKBodyQuotasItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GetQuotasOKBodyQuotasItems0) MarshalJSON

func (o GetQuotasOKBodyQuotasItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetQuotasOKBodyQuotasItems0) UnmarshalBinary

func (o *GetQuotasOKBodyQuotasItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetQuotasOKBodyQuotasItems0) UnmarshalJSON

func (o *GetQuotasOKBodyQuotasItems0) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetQuotasOKBodyQuotasItems0) Validate

func (o *GetQuotasOKBodyQuotasItems0) Validate(formats strfmt.Registry) error

Validate validates this get quotas o k body quotas items0

type GetQuotasParams

type GetQuotasParams struct {

	/* ProjectID.

	   The ID of the project to query.
	*/
	ProjectID *string

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

GetQuotasParams contains all the parameters to send to the API endpoint

for the get quotas operation.

Typically these are written to a http.Request.

func NewGetQuotasParams

func NewGetQuotasParams() *GetQuotasParams

NewGetQuotasParams creates a new GetQuotasParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetQuotasParamsWithContext

func NewGetQuotasParamsWithContext(ctx context.Context) *GetQuotasParams

NewGetQuotasParamsWithContext creates a new GetQuotasParams object with the ability to set a context for a request.

func NewGetQuotasParamsWithHTTPClient

func NewGetQuotasParamsWithHTTPClient(client *http.Client) *GetQuotasParams

NewGetQuotasParamsWithHTTPClient creates a new GetQuotasParams object with the ability to set a custom HTTPClient for a request.

func NewGetQuotasParamsWithTimeout

func NewGetQuotasParamsWithTimeout(timeout time.Duration) *GetQuotasParams

NewGetQuotasParamsWithTimeout creates a new GetQuotasParams object with the ability to set a timeout on a request.

func (*GetQuotasParams) SetContext

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

SetContext adds the context to the get quotas params

func (*GetQuotasParams) SetDefaults

func (o *GetQuotasParams) SetDefaults()

SetDefaults hydrates default values in the get quotas params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasParams) SetHTTPClient

func (o *GetQuotasParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get quotas params

func (*GetQuotasParams) SetProjectID

func (o *GetQuotasParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the get quotas params

func (*GetQuotasParams) SetTimeout

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

SetTimeout adds the timeout to the get quotas params

func (*GetQuotasParams) WithContext

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

WithContext adds the context to the get quotas params

func (*GetQuotasParams) WithDefaults

func (o *GetQuotasParams) WithDefaults() *GetQuotasParams

WithDefaults hydrates default values in the get quotas params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasParams) WithHTTPClient

func (o *GetQuotasParams) WithHTTPClient(client *http.Client) *GetQuotasParams

WithHTTPClient adds the HTTPClient to the get quotas params

func (*GetQuotasParams) WithProjectID

func (o *GetQuotasParams) WithProjectID(projectID *string) *GetQuotasParams

WithProjectID adds the projectID to the get quotas params

func (*GetQuotasParams) WithTimeout

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

WithTimeout adds the timeout to the get quotas params

func (*GetQuotasParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetQuotasProjectIDForbidden

type GetQuotasProjectIDForbidden struct {
}

GetQuotasProjectIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetQuotasProjectIDForbidden

func NewGetQuotasProjectIDForbidden() *GetQuotasProjectIDForbidden

NewGetQuotasProjectIDForbidden creates a GetQuotasProjectIDForbidden with default headers values

func (*GetQuotasProjectIDForbidden) Code

func (o *GetQuotasProjectIDForbidden) Code() int

Code gets the status code for the get quotas project Id forbidden response

func (*GetQuotasProjectIDForbidden) Error

func (*GetQuotasProjectIDForbidden) IsClientError

func (o *GetQuotasProjectIDForbidden) IsClientError() bool

IsClientError returns true when this get quotas project Id forbidden response has a 4xx status code

func (*GetQuotasProjectIDForbidden) IsCode

func (o *GetQuotasProjectIDForbidden) IsCode(code int) bool

IsCode returns true when this get quotas project Id forbidden response a status code equal to that given

func (*GetQuotasProjectIDForbidden) IsRedirect

func (o *GetQuotasProjectIDForbidden) IsRedirect() bool

IsRedirect returns true when this get quotas project Id forbidden response has a 3xx status code

func (*GetQuotasProjectIDForbidden) IsServerError

func (o *GetQuotasProjectIDForbidden) IsServerError() bool

IsServerError returns true when this get quotas project Id forbidden response has a 5xx status code

func (*GetQuotasProjectIDForbidden) IsSuccess

func (o *GetQuotasProjectIDForbidden) IsSuccess() bool

IsSuccess returns true when this get quotas project Id forbidden response has a 2xx status code

func (*GetQuotasProjectIDForbidden) String

func (o *GetQuotasProjectIDForbidden) String() string

type GetQuotasProjectIDOK

type GetQuotasProjectIDOK struct {
	Payload *GetQuotasProjectIDOKBody
}

GetQuotasProjectIDOK describes a response with status code 200, with default header values.

Shows the details of a specific monitor.

func NewGetQuotasProjectIDOK

func NewGetQuotasProjectIDOK() *GetQuotasProjectIDOK

NewGetQuotasProjectIDOK creates a GetQuotasProjectIDOK with default headers values

func (*GetQuotasProjectIDOK) Code

func (o *GetQuotasProjectIDOK) Code() int

Code gets the status code for the get quotas project Id o k response

func (*GetQuotasProjectIDOK) Error

func (o *GetQuotasProjectIDOK) Error() string

func (*GetQuotasProjectIDOK) GetPayload

func (*GetQuotasProjectIDOK) IsClientError

func (o *GetQuotasProjectIDOK) IsClientError() bool

IsClientError returns true when this get quotas project Id o k response has a 4xx status code

func (*GetQuotasProjectIDOK) IsCode

func (o *GetQuotasProjectIDOK) IsCode(code int) bool

IsCode returns true when this get quotas project Id o k response a status code equal to that given

func (*GetQuotasProjectIDOK) IsRedirect

func (o *GetQuotasProjectIDOK) IsRedirect() bool

IsRedirect returns true when this get quotas project Id o k response has a 3xx status code

func (*GetQuotasProjectIDOK) IsServerError

func (o *GetQuotasProjectIDOK) IsServerError() bool

IsServerError returns true when this get quotas project Id o k response has a 5xx status code

func (*GetQuotasProjectIDOK) IsSuccess

func (o *GetQuotasProjectIDOK) IsSuccess() bool

IsSuccess returns true when this get quotas project Id o k response has a 2xx status code

func (*GetQuotasProjectIDOK) String

func (o *GetQuotasProjectIDOK) String() string

type GetQuotasProjectIDOKBody

type GetQuotasProjectIDOKBody struct {
	models.Quota

	models.QuotaUsage
}

GetQuotasProjectIDOKBody get quotas project ID o k body swagger:model GetQuotasProjectIDOKBody

func (*GetQuotasProjectIDOKBody) ContextValidate

func (o *GetQuotasProjectIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get quotas project ID o k body based on the context it is used

func (*GetQuotasProjectIDOKBody) MarshalBinary

func (o *GetQuotasProjectIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GetQuotasProjectIDOKBody) MarshalJSON

func (o GetQuotasProjectIDOKBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetQuotasProjectIDOKBody) UnmarshalBinary

func (o *GetQuotasProjectIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetQuotasProjectIDOKBody) UnmarshalJSON

func (o *GetQuotasProjectIDOKBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetQuotasProjectIDOKBody) Validate

func (o *GetQuotasProjectIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get quotas project ID o k body

type GetQuotasProjectIDParams

type GetQuotasProjectIDParams struct {

	/* ProjectID.

	   The ID of the project to query.
	*/
	ProjectID string

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

GetQuotasProjectIDParams contains all the parameters to send to the API endpoint

for the get quotas project ID operation.

Typically these are written to a http.Request.

func NewGetQuotasProjectIDParams

func NewGetQuotasProjectIDParams() *GetQuotasProjectIDParams

NewGetQuotasProjectIDParams creates a new GetQuotasProjectIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetQuotasProjectIDParamsWithContext

func NewGetQuotasProjectIDParamsWithContext(ctx context.Context) *GetQuotasProjectIDParams

NewGetQuotasProjectIDParamsWithContext creates a new GetQuotasProjectIDParams object with the ability to set a context for a request.

func NewGetQuotasProjectIDParamsWithHTTPClient

func NewGetQuotasProjectIDParamsWithHTTPClient(client *http.Client) *GetQuotasProjectIDParams

NewGetQuotasProjectIDParamsWithHTTPClient creates a new GetQuotasProjectIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetQuotasProjectIDParamsWithTimeout

func NewGetQuotasProjectIDParamsWithTimeout(timeout time.Duration) *GetQuotasProjectIDParams

NewGetQuotasProjectIDParamsWithTimeout creates a new GetQuotasProjectIDParams object with the ability to set a timeout on a request.

func (*GetQuotasProjectIDParams) SetContext

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

SetContext adds the context to the get quotas project ID params

func (*GetQuotasProjectIDParams) SetDefaults

func (o *GetQuotasProjectIDParams) SetDefaults()

SetDefaults hydrates default values in the get quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasProjectIDParams) SetHTTPClient

func (o *GetQuotasProjectIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get quotas project ID params

func (*GetQuotasProjectIDParams) SetProjectID

func (o *GetQuotasProjectIDParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get quotas project ID params

func (*GetQuotasProjectIDParams) SetTimeout

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

SetTimeout adds the timeout to the get quotas project ID params

func (*GetQuotasProjectIDParams) WithContext

WithContext adds the context to the get quotas project ID params

func (*GetQuotasProjectIDParams) WithDefaults

WithDefaults hydrates default values in the get quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetQuotasProjectIDParams) WithHTTPClient

func (o *GetQuotasProjectIDParams) WithHTTPClient(client *http.Client) *GetQuotasProjectIDParams

WithHTTPClient adds the HTTPClient to the get quotas project ID params

func (*GetQuotasProjectIDParams) WithProjectID

func (o *GetQuotasProjectIDParams) WithProjectID(projectID string) *GetQuotasProjectIDParams

WithProjectID adds the projectID to the get quotas project ID params

func (*GetQuotasProjectIDParams) WithTimeout

WithTimeout adds the timeout to the get quotas project ID params

func (*GetQuotasProjectIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetQuotasProjectIDReader

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

GetQuotasProjectIDReader is a Reader for the GetQuotasProjectID structure.

func (*GetQuotasProjectIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetQuotasProjectIDUnauthorized

type GetQuotasProjectIDUnauthorized struct {
	Payload *models.Error
}

GetQuotasProjectIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetQuotasProjectIDUnauthorized

func NewGetQuotasProjectIDUnauthorized() *GetQuotasProjectIDUnauthorized

NewGetQuotasProjectIDUnauthorized creates a GetQuotasProjectIDUnauthorized with default headers values

func (*GetQuotasProjectIDUnauthorized) Code

Code gets the status code for the get quotas project Id unauthorized response

func (*GetQuotasProjectIDUnauthorized) Error

func (*GetQuotasProjectIDUnauthorized) GetPayload

func (o *GetQuotasProjectIDUnauthorized) GetPayload() *models.Error

func (*GetQuotasProjectIDUnauthorized) IsClientError

func (o *GetQuotasProjectIDUnauthorized) IsClientError() bool

IsClientError returns true when this get quotas project Id unauthorized response has a 4xx status code

func (*GetQuotasProjectIDUnauthorized) IsCode

func (o *GetQuotasProjectIDUnauthorized) IsCode(code int) bool

IsCode returns true when this get quotas project Id unauthorized response a status code equal to that given

func (*GetQuotasProjectIDUnauthorized) IsRedirect

func (o *GetQuotasProjectIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this get quotas project Id unauthorized response has a 3xx status code

func (*GetQuotasProjectIDUnauthorized) IsServerError

func (o *GetQuotasProjectIDUnauthorized) IsServerError() bool

IsServerError returns true when this get quotas project Id unauthorized response has a 5xx status code

func (*GetQuotasProjectIDUnauthorized) IsSuccess

func (o *GetQuotasProjectIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this get quotas project Id unauthorized response has a 2xx status code

func (*GetQuotasProjectIDUnauthorized) String

type GetQuotasProjectIDUnprocessableEntity

type GetQuotasProjectIDUnprocessableEntity struct {
	Payload *models.Error
}

GetQuotasProjectIDUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewGetQuotasProjectIDUnprocessableEntity

func NewGetQuotasProjectIDUnprocessableEntity() *GetQuotasProjectIDUnprocessableEntity

NewGetQuotasProjectIDUnprocessableEntity creates a GetQuotasProjectIDUnprocessableEntity with default headers values

func (*GetQuotasProjectIDUnprocessableEntity) Code

Code gets the status code for the get quotas project Id unprocessable entity response

func (*GetQuotasProjectIDUnprocessableEntity) Error

func (*GetQuotasProjectIDUnprocessableEntity) GetPayload

func (*GetQuotasProjectIDUnprocessableEntity) IsClientError

func (o *GetQuotasProjectIDUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get quotas project Id unprocessable entity response has a 4xx status code

func (*GetQuotasProjectIDUnprocessableEntity) IsCode

IsCode returns true when this get quotas project Id unprocessable entity response a status code equal to that given

func (*GetQuotasProjectIDUnprocessableEntity) IsRedirect

IsRedirect returns true when this get quotas project Id unprocessable entity response has a 3xx status code

func (*GetQuotasProjectIDUnprocessableEntity) IsServerError

func (o *GetQuotasProjectIDUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get quotas project Id unprocessable entity response has a 5xx status code

func (*GetQuotasProjectIDUnprocessableEntity) IsSuccess

IsSuccess returns true when this get quotas project Id unprocessable entity response has a 2xx status code

func (*GetQuotasProjectIDUnprocessableEntity) String

type GetQuotasReader

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

GetQuotasReader is a Reader for the GetQuotas structure.

func (*GetQuotasReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetQuotasUnauthorized

type GetQuotasUnauthorized struct {
	Payload *models.Error
}

GetQuotasUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetQuotasUnauthorized

func NewGetQuotasUnauthorized() *GetQuotasUnauthorized

NewGetQuotasUnauthorized creates a GetQuotasUnauthorized with default headers values

func (*GetQuotasUnauthorized) Code

func (o *GetQuotasUnauthorized) Code() int

Code gets the status code for the get quotas unauthorized response

func (*GetQuotasUnauthorized) Error

func (o *GetQuotasUnauthorized) Error() string

func (*GetQuotasUnauthorized) GetPayload

func (o *GetQuotasUnauthorized) GetPayload() *models.Error

func (*GetQuotasUnauthorized) IsClientError

func (o *GetQuotasUnauthorized) IsClientError() bool

IsClientError returns true when this get quotas unauthorized response has a 4xx status code

func (*GetQuotasUnauthorized) IsCode

func (o *GetQuotasUnauthorized) IsCode(code int) bool

IsCode returns true when this get quotas unauthorized response a status code equal to that given

func (*GetQuotasUnauthorized) IsRedirect

func (o *GetQuotasUnauthorized) IsRedirect() bool

IsRedirect returns true when this get quotas unauthorized response has a 3xx status code

func (*GetQuotasUnauthorized) IsServerError

func (o *GetQuotasUnauthorized) IsServerError() bool

IsServerError returns true when this get quotas unauthorized response has a 5xx status code

func (*GetQuotasUnauthorized) IsSuccess

func (o *GetQuotasUnauthorized) IsSuccess() bool

IsSuccess returns true when this get quotas unauthorized response has a 2xx status code

func (*GetQuotasUnauthorized) String

func (o *GetQuotasUnauthorized) String() string

type GetQuotasUnprocessableEntity

type GetQuotasUnprocessableEntity struct {
	Payload *models.Error
}

GetQuotasUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewGetQuotasUnprocessableEntity

func NewGetQuotasUnprocessableEntity() *GetQuotasUnprocessableEntity

NewGetQuotasUnprocessableEntity creates a GetQuotasUnprocessableEntity with default headers values

func (*GetQuotasUnprocessableEntity) Code

Code gets the status code for the get quotas unprocessable entity response

func (*GetQuotasUnprocessableEntity) Error

func (*GetQuotasUnprocessableEntity) GetPayload

func (o *GetQuotasUnprocessableEntity) GetPayload() *models.Error

func (*GetQuotasUnprocessableEntity) IsClientError

func (o *GetQuotasUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get quotas unprocessable entity response has a 4xx status code

func (*GetQuotasUnprocessableEntity) IsCode

func (o *GetQuotasUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this get quotas unprocessable entity response a status code equal to that given

func (*GetQuotasUnprocessableEntity) IsRedirect

func (o *GetQuotasUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get quotas unprocessable entity response has a 3xx status code

func (*GetQuotasUnprocessableEntity) IsServerError

func (o *GetQuotasUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get quotas unprocessable entity response has a 5xx status code

func (*GetQuotasUnprocessableEntity) IsSuccess

func (o *GetQuotasUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this get quotas unprocessable entity response has a 2xx status code

func (*GetQuotasUnprocessableEntity) String

type PutQuotasProjectIDForbidden

type PutQuotasProjectIDForbidden struct {
}

PutQuotasProjectIDForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPutQuotasProjectIDForbidden

func NewPutQuotasProjectIDForbidden() *PutQuotasProjectIDForbidden

NewPutQuotasProjectIDForbidden creates a PutQuotasProjectIDForbidden with default headers values

func (*PutQuotasProjectIDForbidden) Code

func (o *PutQuotasProjectIDForbidden) Code() int

Code gets the status code for the put quotas project Id forbidden response

func (*PutQuotasProjectIDForbidden) Error

func (*PutQuotasProjectIDForbidden) IsClientError

func (o *PutQuotasProjectIDForbidden) IsClientError() bool

IsClientError returns true when this put quotas project Id forbidden response has a 4xx status code

func (*PutQuotasProjectIDForbidden) IsCode

func (o *PutQuotasProjectIDForbidden) IsCode(code int) bool

IsCode returns true when this put quotas project Id forbidden response a status code equal to that given

func (*PutQuotasProjectIDForbidden) IsRedirect

func (o *PutQuotasProjectIDForbidden) IsRedirect() bool

IsRedirect returns true when this put quotas project Id forbidden response has a 3xx status code

func (*PutQuotasProjectIDForbidden) IsServerError

func (o *PutQuotasProjectIDForbidden) IsServerError() bool

IsServerError returns true when this put quotas project Id forbidden response has a 5xx status code

func (*PutQuotasProjectIDForbidden) IsSuccess

func (o *PutQuotasProjectIDForbidden) IsSuccess() bool

IsSuccess returns true when this put quotas project Id forbidden response has a 2xx status code

func (*PutQuotasProjectIDForbidden) String

func (o *PutQuotasProjectIDForbidden) String() string

type PutQuotasProjectIDNotFound

type PutQuotasProjectIDNotFound struct {
	Payload *models.Error
}

PutQuotasProjectIDNotFound describes a response with status code 404, with default header values.

Not found

func NewPutQuotasProjectIDNotFound

func NewPutQuotasProjectIDNotFound() *PutQuotasProjectIDNotFound

NewPutQuotasProjectIDNotFound creates a PutQuotasProjectIDNotFound with default headers values

func (*PutQuotasProjectIDNotFound) Code

func (o *PutQuotasProjectIDNotFound) Code() int

Code gets the status code for the put quotas project Id not found response

func (*PutQuotasProjectIDNotFound) Error

func (*PutQuotasProjectIDNotFound) GetPayload

func (o *PutQuotasProjectIDNotFound) GetPayload() *models.Error

func (*PutQuotasProjectIDNotFound) IsClientError

func (o *PutQuotasProjectIDNotFound) IsClientError() bool

IsClientError returns true when this put quotas project Id not found response has a 4xx status code

func (*PutQuotasProjectIDNotFound) IsCode

func (o *PutQuotasProjectIDNotFound) IsCode(code int) bool

IsCode returns true when this put quotas project Id not found response a status code equal to that given

func (*PutQuotasProjectIDNotFound) IsRedirect

func (o *PutQuotasProjectIDNotFound) IsRedirect() bool

IsRedirect returns true when this put quotas project Id not found response has a 3xx status code

func (*PutQuotasProjectIDNotFound) IsServerError

func (o *PutQuotasProjectIDNotFound) IsServerError() bool

IsServerError returns true when this put quotas project Id not found response has a 5xx status code

func (*PutQuotasProjectIDNotFound) IsSuccess

func (o *PutQuotasProjectIDNotFound) IsSuccess() bool

IsSuccess returns true when this put quotas project Id not found response has a 2xx status code

func (*PutQuotasProjectIDNotFound) String

func (o *PutQuotasProjectIDNotFound) String() string

type PutQuotasProjectIDOK

type PutQuotasProjectIDOK struct {
	Payload *models.Quota
}

PutQuotasProjectIDOK describes a response with status code 200, with default header values.

Updated quota for a project.

func NewPutQuotasProjectIDOK

func NewPutQuotasProjectIDOK() *PutQuotasProjectIDOK

NewPutQuotasProjectIDOK creates a PutQuotasProjectIDOK with default headers values

func (*PutQuotasProjectIDOK) Code

func (o *PutQuotasProjectIDOK) Code() int

Code gets the status code for the put quotas project Id o k response

func (*PutQuotasProjectIDOK) Error

func (o *PutQuotasProjectIDOK) Error() string

func (*PutQuotasProjectIDOK) GetPayload

func (o *PutQuotasProjectIDOK) GetPayload() *models.Quota

func (*PutQuotasProjectIDOK) IsClientError

func (o *PutQuotasProjectIDOK) IsClientError() bool

IsClientError returns true when this put quotas project Id o k response has a 4xx status code

func (*PutQuotasProjectIDOK) IsCode

func (o *PutQuotasProjectIDOK) IsCode(code int) bool

IsCode returns true when this put quotas project Id o k response a status code equal to that given

func (*PutQuotasProjectIDOK) IsRedirect

func (o *PutQuotasProjectIDOK) IsRedirect() bool

IsRedirect returns true when this put quotas project Id o k response has a 3xx status code

func (*PutQuotasProjectIDOK) IsServerError

func (o *PutQuotasProjectIDOK) IsServerError() bool

IsServerError returns true when this put quotas project Id o k response has a 5xx status code

func (*PutQuotasProjectIDOK) IsSuccess

func (o *PutQuotasProjectIDOK) IsSuccess() bool

IsSuccess returns true when this put quotas project Id o k response has a 2xx status code

func (*PutQuotasProjectIDOK) String

func (o *PutQuotasProjectIDOK) String() string

type PutQuotasProjectIDParams

type PutQuotasProjectIDParams struct {

	// Body.
	Body *models.Quota

	/* ProjectID.

	   The ID of the project to query.
	*/
	ProjectID string

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

PutQuotasProjectIDParams contains all the parameters to send to the API endpoint

for the put quotas project ID operation.

Typically these are written to a http.Request.

func NewPutQuotasProjectIDParams

func NewPutQuotasProjectIDParams() *PutQuotasProjectIDParams

NewPutQuotasProjectIDParams creates a new PutQuotasProjectIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutQuotasProjectIDParamsWithContext

func NewPutQuotasProjectIDParamsWithContext(ctx context.Context) *PutQuotasProjectIDParams

NewPutQuotasProjectIDParamsWithContext creates a new PutQuotasProjectIDParams object with the ability to set a context for a request.

func NewPutQuotasProjectIDParamsWithHTTPClient

func NewPutQuotasProjectIDParamsWithHTTPClient(client *http.Client) *PutQuotasProjectIDParams

NewPutQuotasProjectIDParamsWithHTTPClient creates a new PutQuotasProjectIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutQuotasProjectIDParamsWithTimeout

func NewPutQuotasProjectIDParamsWithTimeout(timeout time.Duration) *PutQuotasProjectIDParams

NewPutQuotasProjectIDParamsWithTimeout creates a new PutQuotasProjectIDParams object with the ability to set a timeout on a request.

func (*PutQuotasProjectIDParams) SetBody

func (o *PutQuotasProjectIDParams) SetBody(body *models.Quota)

SetBody adds the body to the put quotas project ID params

func (*PutQuotasProjectIDParams) SetContext

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

SetContext adds the context to the put quotas project ID params

func (*PutQuotasProjectIDParams) SetDefaults

func (o *PutQuotasProjectIDParams) SetDefaults()

SetDefaults hydrates default values in the put quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutQuotasProjectIDParams) SetHTTPClient

func (o *PutQuotasProjectIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put quotas project ID params

func (*PutQuotasProjectIDParams) SetProjectID

func (o *PutQuotasProjectIDParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the put quotas project ID params

func (*PutQuotasProjectIDParams) SetTimeout

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

SetTimeout adds the timeout to the put quotas project ID params

func (*PutQuotasProjectIDParams) WithBody

WithBody adds the body to the put quotas project ID params

func (*PutQuotasProjectIDParams) WithContext

WithContext adds the context to the put quotas project ID params

func (*PutQuotasProjectIDParams) WithDefaults

WithDefaults hydrates default values in the put quotas project ID params (not the query body).

All values with no default are reset to their zero value.

func (*PutQuotasProjectIDParams) WithHTTPClient

func (o *PutQuotasProjectIDParams) WithHTTPClient(client *http.Client) *PutQuotasProjectIDParams

WithHTTPClient adds the HTTPClient to the put quotas project ID params

func (*PutQuotasProjectIDParams) WithProjectID

func (o *PutQuotasProjectIDParams) WithProjectID(projectID string) *PutQuotasProjectIDParams

WithProjectID adds the projectID to the put quotas project ID params

func (*PutQuotasProjectIDParams) WithTimeout

WithTimeout adds the timeout to the put quotas project ID params

func (*PutQuotasProjectIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutQuotasProjectIDReader

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

PutQuotasProjectIDReader is a Reader for the PutQuotasProjectID structure.

func (*PutQuotasProjectIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutQuotasProjectIDUnauthorized

type PutQuotasProjectIDUnauthorized struct {
	Payload *models.Error
}

PutQuotasProjectIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPutQuotasProjectIDUnauthorized

func NewPutQuotasProjectIDUnauthorized() *PutQuotasProjectIDUnauthorized

NewPutQuotasProjectIDUnauthorized creates a PutQuotasProjectIDUnauthorized with default headers values

func (*PutQuotasProjectIDUnauthorized) Code

Code gets the status code for the put quotas project Id unauthorized response

func (*PutQuotasProjectIDUnauthorized) Error

func (*PutQuotasProjectIDUnauthorized) GetPayload

func (o *PutQuotasProjectIDUnauthorized) GetPayload() *models.Error

func (*PutQuotasProjectIDUnauthorized) IsClientError

func (o *PutQuotasProjectIDUnauthorized) IsClientError() bool

IsClientError returns true when this put quotas project Id unauthorized response has a 4xx status code

func (*PutQuotasProjectIDUnauthorized) IsCode

func (o *PutQuotasProjectIDUnauthorized) IsCode(code int) bool

IsCode returns true when this put quotas project Id unauthorized response a status code equal to that given

func (*PutQuotasProjectIDUnauthorized) IsRedirect

func (o *PutQuotasProjectIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this put quotas project Id unauthorized response has a 3xx status code

func (*PutQuotasProjectIDUnauthorized) IsServerError

func (o *PutQuotasProjectIDUnauthorized) IsServerError() bool

IsServerError returns true when this put quotas project Id unauthorized response has a 5xx status code

func (*PutQuotasProjectIDUnauthorized) IsSuccess

func (o *PutQuotasProjectIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this put quotas project Id unauthorized response has a 2xx status code

func (*PutQuotasProjectIDUnauthorized) String

type PutQuotasProjectIDUnprocessableEntity

type PutQuotasProjectIDUnprocessableEntity struct {
	Payload *models.Error
}

PutQuotasProjectIDUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Content

func NewPutQuotasProjectIDUnprocessableEntity

func NewPutQuotasProjectIDUnprocessableEntity() *PutQuotasProjectIDUnprocessableEntity

NewPutQuotasProjectIDUnprocessableEntity creates a PutQuotasProjectIDUnprocessableEntity with default headers values

func (*PutQuotasProjectIDUnprocessableEntity) Code

Code gets the status code for the put quotas project Id unprocessable entity response

func (*PutQuotasProjectIDUnprocessableEntity) Error

func (*PutQuotasProjectIDUnprocessableEntity) GetPayload

func (*PutQuotasProjectIDUnprocessableEntity) IsClientError

func (o *PutQuotasProjectIDUnprocessableEntity) IsClientError() bool

IsClientError returns true when this put quotas project Id unprocessable entity response has a 4xx status code

func (*PutQuotasProjectIDUnprocessableEntity) IsCode

IsCode returns true when this put quotas project Id unprocessable entity response a status code equal to that given

func (*PutQuotasProjectIDUnprocessableEntity) IsRedirect

IsRedirect returns true when this put quotas project Id unprocessable entity response has a 3xx status code

func (*PutQuotasProjectIDUnprocessableEntity) IsServerError

func (o *PutQuotasProjectIDUnprocessableEntity) IsServerError() bool

IsServerError returns true when this put quotas project Id unprocessable entity response has a 5xx status code

func (*PutQuotasProjectIDUnprocessableEntity) IsSuccess

IsSuccess returns true when this put quotas project Id unprocessable entity response has a 2xx status code

func (*PutQuotasProjectIDUnprocessableEntity) String

Jump to

Keyboard shortcuts

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