resource_quota

package
v2.21.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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) PatchResourceQuota

func (a *Client) PatchResourceQuota(params *PatchResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchResourceQuotaOK, error)

PatchResourceQuota 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)

	PatchResourceQuota(params *PatchResourceQuotaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchResourceQuotaOK, 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 PatchResourceQuotaDefault

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

errorResponse

func NewPatchResourceQuotaDefault

func NewPatchResourceQuotaDefault(code int) *PatchResourceQuotaDefault

NewPatchResourceQuotaDefault creates a PatchResourceQuotaDefault with default headers values

func (*PatchResourceQuotaDefault) Code

func (o *PatchResourceQuotaDefault) Code() int

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

func (*PatchResourceQuotaDefault) Error

func (o *PatchResourceQuotaDefault) Error() string

func (*PatchResourceQuotaDefault) GetPayload

type PatchResourceQuotaForbidden

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

EmptyResponse is a empty response

func NewPatchResourceQuotaForbidden

func NewPatchResourceQuotaForbidden() *PatchResourceQuotaForbidden

NewPatchResourceQuotaForbidden creates a PatchResourceQuotaForbidden with default headers values

func (*PatchResourceQuotaForbidden) Error

type PatchResourceQuotaOK

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

EmptyResponse is a empty response

func NewPatchResourceQuotaOK

func NewPatchResourceQuotaOK() *PatchResourceQuotaOK

NewPatchResourceQuotaOK creates a PatchResourceQuotaOK with default headers values

func (*PatchResourceQuotaOK) Error

func (o *PatchResourceQuotaOK) Error() string

type PatchResourceQuotaParams

type PatchResourceQuotaParams struct {

	// Body.
	Body *models.Quota

	// QuotaName.
	Name string

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

PatchResourceQuotaParams contains all the parameters to send to the API endpoint

for the patch resource quota operation.

Typically these are written to a http.Request.

func NewPatchResourceQuotaParams

func NewPatchResourceQuotaParams() *PatchResourceQuotaParams

NewPatchResourceQuotaParams creates a new PatchResourceQuotaParams 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 NewPatchResourceQuotaParamsWithContext

func NewPatchResourceQuotaParamsWithContext(ctx context.Context) *PatchResourceQuotaParams

NewPatchResourceQuotaParamsWithContext creates a new PatchResourceQuotaParams object with the ability to set a context for a request.

func NewPatchResourceQuotaParamsWithHTTPClient

func NewPatchResourceQuotaParamsWithHTTPClient(client *http.Client) *PatchResourceQuotaParams

NewPatchResourceQuotaParamsWithHTTPClient creates a new PatchResourceQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewPatchResourceQuotaParamsWithTimeout

func NewPatchResourceQuotaParamsWithTimeout(timeout time.Duration) *PatchResourceQuotaParams

NewPatchResourceQuotaParamsWithTimeout creates a new PatchResourceQuotaParams object with the ability to set a timeout on a request.

func (*PatchResourceQuotaParams) SetBody

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

SetBody adds the body to the patch resource quota params

func (*PatchResourceQuotaParams) SetContext

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

SetContext adds the context to the patch resource quota params

func (*PatchResourceQuotaParams) SetDefaults

func (o *PatchResourceQuotaParams) SetDefaults()

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

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

func (*PatchResourceQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch resource quota params

func (*PatchResourceQuotaParams) SetName

func (o *PatchResourceQuotaParams) SetName(quotaName string)

SetName adds the quotaName to the patch resource quota params

func (*PatchResourceQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the patch resource quota params

func (*PatchResourceQuotaParams) WithBody

WithBody adds the body to the patch resource quota params

func (*PatchResourceQuotaParams) WithContext

WithContext adds the context to the patch resource quota params

func (*PatchResourceQuotaParams) WithDefaults

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

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

func (*PatchResourceQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch resource quota params

func (*PatchResourceQuotaParams) WithName

WithName adds the quotaName to the patch resource quota params

func (*PatchResourceQuotaParams) WithTimeout

WithTimeout adds the timeout to the patch resource quota params

func (*PatchResourceQuotaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchResourceQuotaReader

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

PatchResourceQuotaReader is a Reader for the PatchResourceQuota structure.

func (*PatchResourceQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchResourceQuotaUnauthorized

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

EmptyResponse is a empty response

func NewPatchResourceQuotaUnauthorized

func NewPatchResourceQuotaUnauthorized() *PatchResourceQuotaUnauthorized

NewPatchResourceQuotaUnauthorized creates a PatchResourceQuotaUnauthorized with default headers values

func (*PatchResourceQuotaUnauthorized) Error

Jump to

Keyboard shortcuts

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