resource_quota

package
v2.21.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 11 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 resource quota API

func (*Client) CreateResourceQuota

func (a *Client) CreateResourceQuota(params *CreateResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateResourceQuotaCreated, error)

CreateResourceQuota creates a new resource quota

func (*Client) DeleteResourceQuota

func (a *Client) DeleteResourceQuota(params *DeleteResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteResourceQuotaOK, error)

DeleteResourceQuota removes an existing resource quota

func (*Client) GetResourceQuota

func (a *Client) GetResourceQuota(params *GetResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceQuotaOK, error)

GetResourceQuota gets a specific resource quota

func (*Client) ListResourceQuotas

func (a *Client) ListResourceQuotas(params *ListResourceQuotasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListResourceQuotasOK, error)

ListResourceQuotas gets a resource quota list

func (*Client) PutResourceQuota

func (a *Client) PutResourceQuota(params *PutResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutResourceQuotaOK, error)

PutResourceQuota updates an existing resource 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 {
	CreateResourceQuota(params *CreateResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateResourceQuotaCreated, error)

	DeleteResourceQuota(params *DeleteResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteResourceQuotaOK, error)

	GetResourceQuota(params *GetResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceQuotaOK, error)

	ListResourceQuotas(params *ListResourceQuotasParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListResourceQuotasOK, error)

	PutResourceQuota(params *PutResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutResourceQuotaOK, 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 resource quota API client.

type CreateResourceQuotaBody

type CreateResourceQuotaBody struct {

	// subject kind
	SubjectKind string `json:"subjectKind,omitempty"`

	// subject name
	SubjectName string `json:"subjectName,omitempty"`

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

CreateResourceQuotaBody create resource quota body swagger:model CreateResourceQuotaBody

func (*CreateResourceQuotaBody) ContextValidate

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

ContextValidate validate this create resource quota body based on the context it is used

func (*CreateResourceQuotaBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateResourceQuotaBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateResourceQuotaBody) Validate

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

Validate validates this create resource quota body

type CreateResourceQuotaCreated

type CreateResourceQuotaCreated struct {
}
CreateResourceQuotaCreated describes a response with status code 201, with default header values.

EmptyResponse is a empty response

func NewCreateResourceQuotaCreated

func NewCreateResourceQuotaCreated() *CreateResourceQuotaCreated

NewCreateResourceQuotaCreated creates a CreateResourceQuotaCreated with default headers values

func (*CreateResourceQuotaCreated) Error

type CreateResourceQuotaDefault

type CreateResourceQuotaDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CreateResourceQuotaDefault describes a response with status code -1, with default header values.

errorResponse

func NewCreateResourceQuotaDefault

func NewCreateResourceQuotaDefault(code int) *CreateResourceQuotaDefault

NewCreateResourceQuotaDefault creates a CreateResourceQuotaDefault with default headers values

func (*CreateResourceQuotaDefault) Code

func (o *CreateResourceQuotaDefault) Code() int

Code gets the status code for the create resource quota default response

func (*CreateResourceQuotaDefault) Error

func (*CreateResourceQuotaDefault) GetPayload

type CreateResourceQuotaForbidden

type CreateResourceQuotaForbidden struct {
}
CreateResourceQuotaForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewCreateResourceQuotaForbidden

func NewCreateResourceQuotaForbidden() *CreateResourceQuotaForbidden

NewCreateResourceQuotaForbidden creates a CreateResourceQuotaForbidden with default headers values

func (*CreateResourceQuotaForbidden) Error

type CreateResourceQuotaParams

type CreateResourceQuotaParams struct {

	// Body.
	Body CreateResourceQuotaBody

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

CreateResourceQuotaParams contains all the parameters to send to the API endpoint

for the create resource quota operation.

Typically these are written to a http.Request.

func NewCreateResourceQuotaParams

func NewCreateResourceQuotaParams() *CreateResourceQuotaParams

NewCreateResourceQuotaParams creates a new CreateResourceQuotaParams 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 NewCreateResourceQuotaParamsWithContext

func NewCreateResourceQuotaParamsWithContext(ctx context.Context) *CreateResourceQuotaParams

NewCreateResourceQuotaParamsWithContext creates a new CreateResourceQuotaParams object with the ability to set a context for a request.

func NewCreateResourceQuotaParamsWithHTTPClient

func NewCreateResourceQuotaParamsWithHTTPClient(client *http.Client) *CreateResourceQuotaParams

NewCreateResourceQuotaParamsWithHTTPClient creates a new CreateResourceQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewCreateResourceQuotaParamsWithTimeout

func NewCreateResourceQuotaParamsWithTimeout(timeout time.Duration) *CreateResourceQuotaParams

NewCreateResourceQuotaParamsWithTimeout creates a new CreateResourceQuotaParams object with the ability to set a timeout on a request.

func (*CreateResourceQuotaParams) SetBody

SetBody adds the body to the create resource quota params

func (*CreateResourceQuotaParams) SetContext

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

SetContext adds the context to the create resource quota params

func (*CreateResourceQuotaParams) SetDefaults

func (o *CreateResourceQuotaParams) SetDefaults()

SetDefaults hydrates default values in the create resource quota params (not the query body).

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

func (*CreateResourceQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create resource quota params

func (*CreateResourceQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the create resource quota params

func (*CreateResourceQuotaParams) WithBody

WithBody adds the body to the create resource quota params

func (*CreateResourceQuotaParams) WithContext

WithContext adds the context to the create resource quota params

func (*CreateResourceQuotaParams) WithDefaults

WithDefaults hydrates default values in the create resource quota params (not the query body).

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

func (*CreateResourceQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create resource quota params

func (*CreateResourceQuotaParams) WithTimeout

WithTimeout adds the timeout to the create resource quota params

func (*CreateResourceQuotaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateResourceQuotaReader

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

CreateResourceQuotaReader is a Reader for the CreateResourceQuota structure.

func (*CreateResourceQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateResourceQuotaUnauthorized

type CreateResourceQuotaUnauthorized struct {
}
CreateResourceQuotaUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewCreateResourceQuotaUnauthorized

func NewCreateResourceQuotaUnauthorized() *CreateResourceQuotaUnauthorized

NewCreateResourceQuotaUnauthorized creates a CreateResourceQuotaUnauthorized with default headers values

func (*CreateResourceQuotaUnauthorized) Error

type DeleteResourceQuotaDefault

type DeleteResourceQuotaDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteResourceQuotaDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteResourceQuotaDefault

func NewDeleteResourceQuotaDefault(code int) *DeleteResourceQuotaDefault

NewDeleteResourceQuotaDefault creates a DeleteResourceQuotaDefault with default headers values

func (*DeleteResourceQuotaDefault) Code

func (o *DeleteResourceQuotaDefault) Code() int

Code gets the status code for the delete resource quota default response

func (*DeleteResourceQuotaDefault) Error

func (*DeleteResourceQuotaDefault) GetPayload

type DeleteResourceQuotaForbidden

type DeleteResourceQuotaForbidden struct {
}
DeleteResourceQuotaForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteResourceQuotaForbidden

func NewDeleteResourceQuotaForbidden() *DeleteResourceQuotaForbidden

NewDeleteResourceQuotaForbidden creates a DeleteResourceQuotaForbidden with default headers values

func (*DeleteResourceQuotaForbidden) Error

type DeleteResourceQuotaOK

type DeleteResourceQuotaOK struct {
}
DeleteResourceQuotaOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewDeleteResourceQuotaOK

func NewDeleteResourceQuotaOK() *DeleteResourceQuotaOK

NewDeleteResourceQuotaOK creates a DeleteResourceQuotaOK with default headers values

func (*DeleteResourceQuotaOK) Error

func (o *DeleteResourceQuotaOK) Error() string

type DeleteResourceQuotaParams

type DeleteResourceQuotaParams struct {

	// QuotaName.
	Name string

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

DeleteResourceQuotaParams contains all the parameters to send to the API endpoint

for the delete resource quota operation.

Typically these are written to a http.Request.

func NewDeleteResourceQuotaParams

func NewDeleteResourceQuotaParams() *DeleteResourceQuotaParams

NewDeleteResourceQuotaParams creates a new DeleteResourceQuotaParams 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 NewDeleteResourceQuotaParamsWithContext

func NewDeleteResourceQuotaParamsWithContext(ctx context.Context) *DeleteResourceQuotaParams

NewDeleteResourceQuotaParamsWithContext creates a new DeleteResourceQuotaParams object with the ability to set a context for a request.

func NewDeleteResourceQuotaParamsWithHTTPClient

func NewDeleteResourceQuotaParamsWithHTTPClient(client *http.Client) *DeleteResourceQuotaParams

NewDeleteResourceQuotaParamsWithHTTPClient creates a new DeleteResourceQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteResourceQuotaParamsWithTimeout

func NewDeleteResourceQuotaParamsWithTimeout(timeout time.Duration) *DeleteResourceQuotaParams

NewDeleteResourceQuotaParamsWithTimeout creates a new DeleteResourceQuotaParams object with the ability to set a timeout on a request.

func (*DeleteResourceQuotaParams) SetContext

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

SetContext adds the context to the delete resource quota params

func (*DeleteResourceQuotaParams) SetDefaults

func (o *DeleteResourceQuotaParams) SetDefaults()

SetDefaults hydrates default values in the delete resource quota params (not the query body).

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

func (*DeleteResourceQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete resource quota params

func (*DeleteResourceQuotaParams) SetName

func (o *DeleteResourceQuotaParams) SetName(quotaName string)

SetName adds the quotaName to the delete resource quota params

func (*DeleteResourceQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the delete resource quota params

func (*DeleteResourceQuotaParams) WithContext

WithContext adds the context to the delete resource quota params

func (*DeleteResourceQuotaParams) WithDefaults

WithDefaults hydrates default values in the delete resource quota params (not the query body).

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

func (*DeleteResourceQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete resource quota params

func (*DeleteResourceQuotaParams) WithName

WithName adds the quotaName to the delete resource quota params

func (*DeleteResourceQuotaParams) WithTimeout

WithTimeout adds the timeout to the delete resource quota params

func (*DeleteResourceQuotaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteResourceQuotaReader

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

DeleteResourceQuotaReader is a Reader for the DeleteResourceQuota structure.

func (*DeleteResourceQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteResourceQuotaUnauthorized

type DeleteResourceQuotaUnauthorized struct {
}
DeleteResourceQuotaUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteResourceQuotaUnauthorized

func NewDeleteResourceQuotaUnauthorized() *DeleteResourceQuotaUnauthorized

NewDeleteResourceQuotaUnauthorized creates a DeleteResourceQuotaUnauthorized with default headers values

func (*DeleteResourceQuotaUnauthorized) Error

type GetResourceQuotaDefault

type GetResourceQuotaDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetResourceQuotaDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetResourceQuotaDefault

func NewGetResourceQuotaDefault(code int) *GetResourceQuotaDefault

NewGetResourceQuotaDefault creates a GetResourceQuotaDefault with default headers values

func (*GetResourceQuotaDefault) Code

func (o *GetResourceQuotaDefault) Code() int

Code gets the status code for the get resource quota default response

func (*GetResourceQuotaDefault) Error

func (o *GetResourceQuotaDefault) Error() string

func (*GetResourceQuotaDefault) GetPayload

func (o *GetResourceQuotaDefault) GetPayload() *models.ErrorResponse

type GetResourceQuotaForbidden

type GetResourceQuotaForbidden struct {
}
GetResourceQuotaForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetResourceQuotaForbidden

func NewGetResourceQuotaForbidden() *GetResourceQuotaForbidden

NewGetResourceQuotaForbidden creates a GetResourceQuotaForbidden with default headers values

func (*GetResourceQuotaForbidden) Error

func (o *GetResourceQuotaForbidden) Error() string

type GetResourceQuotaOK

type GetResourceQuotaOK struct {
	Payload *models.ResourceQuota
}
GetResourceQuotaOK describes a response with status code 200, with default header values.

ResourceQuota

func NewGetResourceQuotaOK

func NewGetResourceQuotaOK() *GetResourceQuotaOK

NewGetResourceQuotaOK creates a GetResourceQuotaOK with default headers values

func (*GetResourceQuotaOK) Error

func (o *GetResourceQuotaOK) Error() string

func (*GetResourceQuotaOK) GetPayload

func (o *GetResourceQuotaOK) GetPayload() *models.ResourceQuota

type GetResourceQuotaParams

type GetResourceQuotaParams struct {

	// QuotaName.
	Name string

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

GetResourceQuotaParams contains all the parameters to send to the API endpoint

for the get resource quota operation.

Typically these are written to a http.Request.

func NewGetResourceQuotaParams

func NewGetResourceQuotaParams() *GetResourceQuotaParams

NewGetResourceQuotaParams creates a new GetResourceQuotaParams 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 NewGetResourceQuotaParamsWithContext

func NewGetResourceQuotaParamsWithContext(ctx context.Context) *GetResourceQuotaParams

NewGetResourceQuotaParamsWithContext creates a new GetResourceQuotaParams object with the ability to set a context for a request.

func NewGetResourceQuotaParamsWithHTTPClient

func NewGetResourceQuotaParamsWithHTTPClient(client *http.Client) *GetResourceQuotaParams

NewGetResourceQuotaParamsWithHTTPClient creates a new GetResourceQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceQuotaParamsWithTimeout

func NewGetResourceQuotaParamsWithTimeout(timeout time.Duration) *GetResourceQuotaParams

NewGetResourceQuotaParamsWithTimeout creates a new GetResourceQuotaParams object with the ability to set a timeout on a request.

func (*GetResourceQuotaParams) SetContext

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

SetContext adds the context to the get resource quota params

func (*GetResourceQuotaParams) SetDefaults

func (o *GetResourceQuotaParams) SetDefaults()

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

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

func (*GetResourceQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource quota params

func (*GetResourceQuotaParams) SetName

func (o *GetResourceQuotaParams) SetName(quotaName string)

SetName adds the quotaName to the get resource quota params

func (*GetResourceQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the get resource quota params

func (*GetResourceQuotaParams) WithContext

WithContext adds the context to the get resource quota params

func (*GetResourceQuotaParams) WithDefaults

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

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

func (*GetResourceQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resource quota params

func (*GetResourceQuotaParams) WithName

func (o *GetResourceQuotaParams) WithName(quotaName string) *GetResourceQuotaParams

WithName adds the quotaName to the get resource quota params

func (*GetResourceQuotaParams) WithTimeout

WithTimeout adds the timeout to the get resource quota params

func (*GetResourceQuotaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceQuotaReader

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

GetResourceQuotaReader is a Reader for the GetResourceQuota structure.

func (*GetResourceQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceQuotaUnauthorized

type GetResourceQuotaUnauthorized struct {
}
GetResourceQuotaUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetResourceQuotaUnauthorized

func NewGetResourceQuotaUnauthorized() *GetResourceQuotaUnauthorized

NewGetResourceQuotaUnauthorized creates a GetResourceQuotaUnauthorized with default headers values

func (*GetResourceQuotaUnauthorized) Error

type ListResourceQuotasDefault

type ListResourceQuotasDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListResourceQuotasDefault describes a response with status code -1, with default header values.

errorResponse

func NewListResourceQuotasDefault

func NewListResourceQuotasDefault(code int) *ListResourceQuotasDefault

NewListResourceQuotasDefault creates a ListResourceQuotasDefault with default headers values

func (*ListResourceQuotasDefault) Code

func (o *ListResourceQuotasDefault) Code() int

Code gets the status code for the list resource quotas default response

func (*ListResourceQuotasDefault) Error

func (o *ListResourceQuotasDefault) Error() string

func (*ListResourceQuotasDefault) GetPayload

type ListResourceQuotasForbidden

type ListResourceQuotasForbidden struct {
}
ListResourceQuotasForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListResourceQuotasForbidden

func NewListResourceQuotasForbidden() *ListResourceQuotasForbidden

NewListResourceQuotasForbidden creates a ListResourceQuotasForbidden with default headers values

func (*ListResourceQuotasForbidden) Error

type ListResourceQuotasOK

type ListResourceQuotasOK struct {
	Payload []*models.ResourceQuota
}
ListResourceQuotasOK describes a response with status code 200, with default header values.

ResourceQuota

func NewListResourceQuotasOK

func NewListResourceQuotasOK() *ListResourceQuotasOK

NewListResourceQuotasOK creates a ListResourceQuotasOK with default headers values

func (*ListResourceQuotasOK) Error

func (o *ListResourceQuotasOK) Error() string

func (*ListResourceQuotasOK) GetPayload

func (o *ListResourceQuotasOK) GetPayload() []*models.ResourceQuota

type ListResourceQuotasParams

type ListResourceQuotasParams struct {

	// SubjectKind.
	SubjectKind *string

	// SubjectName.
	SubjectName *string

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

ListResourceQuotasParams contains all the parameters to send to the API endpoint

for the list resource quotas operation.

Typically these are written to a http.Request.

func NewListResourceQuotasParams

func NewListResourceQuotasParams() *ListResourceQuotasParams

NewListResourceQuotasParams creates a new ListResourceQuotasParams 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 NewListResourceQuotasParamsWithContext

func NewListResourceQuotasParamsWithContext(ctx context.Context) *ListResourceQuotasParams

NewListResourceQuotasParamsWithContext creates a new ListResourceQuotasParams object with the ability to set a context for a request.

func NewListResourceQuotasParamsWithHTTPClient

func NewListResourceQuotasParamsWithHTTPClient(client *http.Client) *ListResourceQuotasParams

NewListResourceQuotasParamsWithHTTPClient creates a new ListResourceQuotasParams object with the ability to set a custom HTTPClient for a request.

func NewListResourceQuotasParamsWithTimeout

func NewListResourceQuotasParamsWithTimeout(timeout time.Duration) *ListResourceQuotasParams

NewListResourceQuotasParamsWithTimeout creates a new ListResourceQuotasParams object with the ability to set a timeout on a request.

func (*ListResourceQuotasParams) SetContext

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

SetContext adds the context to the list resource quotas params

func (*ListResourceQuotasParams) SetDefaults

func (o *ListResourceQuotasParams) SetDefaults()

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

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

func (*ListResourceQuotasParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list resource quotas params

func (*ListResourceQuotasParams) SetSubjectKind

func (o *ListResourceQuotasParams) SetSubjectKind(subjectKind *string)

SetSubjectKind adds the subjectKind to the list resource quotas params

func (*ListResourceQuotasParams) SetSubjectName

func (o *ListResourceQuotasParams) SetSubjectName(subjectName *string)

SetSubjectName adds the subjectName to the list resource quotas params

func (*ListResourceQuotasParams) SetTimeout

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

SetTimeout adds the timeout to the list resource quotas params

func (*ListResourceQuotasParams) WithContext

WithContext adds the context to the list resource quotas params

func (*ListResourceQuotasParams) WithDefaults

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

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

func (*ListResourceQuotasParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list resource quotas params

func (*ListResourceQuotasParams) WithSubjectKind

func (o *ListResourceQuotasParams) WithSubjectKind(subjectKind *string) *ListResourceQuotasParams

WithSubjectKind adds the subjectKind to the list resource quotas params

func (*ListResourceQuotasParams) WithSubjectName

func (o *ListResourceQuotasParams) WithSubjectName(subjectName *string) *ListResourceQuotasParams

WithSubjectName adds the subjectName to the list resource quotas params

func (*ListResourceQuotasParams) WithTimeout

WithTimeout adds the timeout to the list resource quotas params

func (*ListResourceQuotasParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListResourceQuotasReader

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

ListResourceQuotasReader is a Reader for the ListResourceQuotas structure.

func (*ListResourceQuotasReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListResourceQuotasUnauthorized

type ListResourceQuotasUnauthorized struct {
}
ListResourceQuotasUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListResourceQuotasUnauthorized

func NewListResourceQuotasUnauthorized() *ListResourceQuotasUnauthorized

NewListResourceQuotasUnauthorized creates a ListResourceQuotasUnauthorized with default headers values

func (*ListResourceQuotasUnauthorized) Error

type PutResourceQuotaDefault

type PutResourceQuotaDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
PutResourceQuotaDefault describes a response with status code -1, with default header values.

errorResponse

func NewPutResourceQuotaDefault

func NewPutResourceQuotaDefault(code int) *PutResourceQuotaDefault

NewPutResourceQuotaDefault creates a PutResourceQuotaDefault with default headers values

func (*PutResourceQuotaDefault) Code

func (o *PutResourceQuotaDefault) Code() int

Code gets the status code for the put resource quota default response

func (*PutResourceQuotaDefault) Error

func (o *PutResourceQuotaDefault) Error() string

func (*PutResourceQuotaDefault) GetPayload

func (o *PutResourceQuotaDefault) GetPayload() *models.ErrorResponse

type PutResourceQuotaForbidden

type PutResourceQuotaForbidden struct {
}
PutResourceQuotaForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewPutResourceQuotaForbidden

func NewPutResourceQuotaForbidden() *PutResourceQuotaForbidden

NewPutResourceQuotaForbidden creates a PutResourceQuotaForbidden with default headers values

func (*PutResourceQuotaForbidden) Error

func (o *PutResourceQuotaForbidden) Error() string

type PutResourceQuotaOK

type PutResourceQuotaOK struct {
}
PutResourceQuotaOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewPutResourceQuotaOK

func NewPutResourceQuotaOK() *PutResourceQuotaOK

NewPutResourceQuotaOK creates a PutResourceQuotaOK with default headers values

func (*PutResourceQuotaOK) Error

func (o *PutResourceQuotaOK) Error() string

type PutResourceQuotaParams

type PutResourceQuotaParams struct {

	// Body.
	Body *models.Quota

	// QuotaName.
	Name string

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

PutResourceQuotaParams contains all the parameters to send to the API endpoint

for the put resource quota operation.

Typically these are written to a http.Request.

func NewPutResourceQuotaParams

func NewPutResourceQuotaParams() *PutResourceQuotaParams

NewPutResourceQuotaParams creates a new PutResourceQuotaParams 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 NewPutResourceQuotaParamsWithContext

func NewPutResourceQuotaParamsWithContext(ctx context.Context) *PutResourceQuotaParams

NewPutResourceQuotaParamsWithContext creates a new PutResourceQuotaParams object with the ability to set a context for a request.

func NewPutResourceQuotaParamsWithHTTPClient

func NewPutResourceQuotaParamsWithHTTPClient(client *http.Client) *PutResourceQuotaParams

NewPutResourceQuotaParamsWithHTTPClient creates a new PutResourceQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewPutResourceQuotaParamsWithTimeout

func NewPutResourceQuotaParamsWithTimeout(timeout time.Duration) *PutResourceQuotaParams

NewPutResourceQuotaParamsWithTimeout creates a new PutResourceQuotaParams object with the ability to set a timeout on a request.

func (*PutResourceQuotaParams) SetBody

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

SetBody adds the body to the put resource quota params

func (*PutResourceQuotaParams) SetContext

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

SetContext adds the context to the put resource quota params

func (*PutResourceQuotaParams) SetDefaults

func (o *PutResourceQuotaParams) SetDefaults()

SetDefaults hydrates default values in the put resource quota params (not the query body).

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

func (*PutResourceQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put resource quota params

func (*PutResourceQuotaParams) SetName

func (o *PutResourceQuotaParams) SetName(quotaName string)

SetName adds the quotaName to the put resource quota params

func (*PutResourceQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the put resource quota params

func (*PutResourceQuotaParams) WithBody

WithBody adds the body to the put resource quota params

func (*PutResourceQuotaParams) WithContext

WithContext adds the context to the put resource quota params

func (*PutResourceQuotaParams) WithDefaults

WithDefaults hydrates default values in the put resource quota params (not the query body).

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

func (*PutResourceQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put resource quota params

func (*PutResourceQuotaParams) WithName

func (o *PutResourceQuotaParams) WithName(quotaName string) *PutResourceQuotaParams

WithName adds the quotaName to the put resource quota params

func (*PutResourceQuotaParams) WithTimeout

WithTimeout adds the timeout to the put resource quota params

func (*PutResourceQuotaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutResourceQuotaReader

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

PutResourceQuotaReader is a Reader for the PutResourceQuota structure.

func (*PutResourceQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutResourceQuotaUnauthorized

type PutResourceQuotaUnauthorized struct {
}
PutResourceQuotaUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewPutResourceQuotaUnauthorized

func NewPutResourceQuotaUnauthorized() *PutResourceQuotaUnauthorized

NewPutResourceQuotaUnauthorized creates a PutResourceQuotaUnauthorized with default headers values

func (*PutResourceQuotaUnauthorized) Error

Jump to

Keyboard shortcuts

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