limit_ranges

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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 limit ranges API

func (*Client) GetUsingGET1

func (a *Client) GetUsingGET1(params *GetUsingGET1Params, opts ...ClientOption) (*GetUsingGET1OK, error)

GetUsingGET1 gets a k8 s limit range by id

Get a K8S LimitRange by id

func (*Client) ListUsingGET1

func (a *Client) ListUsingGET1(params *ListUsingGET1Params, opts ...ClientOption) (*ListUsingGET1OK, error)

ListUsingGET1 gets all k8 s limit ranges

Get a list of all K8S LimitRanges

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 {
	GetUsingGET1(params *GetUsingGET1Params, opts ...ClientOption) (*GetUsingGET1OK, error)

	ListUsingGET1(params *ListUsingGET1Params, opts ...ClientOption) (*ListUsingGET1OK, 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 limit ranges API client.

type GetUsingGET1Forbidden added in v0.5.0

type GetUsingGET1Forbidden struct {
}

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

Forbidden, the user lacks permissions

func NewGetUsingGET1Forbidden added in v0.5.0

func NewGetUsingGET1Forbidden() *GetUsingGET1Forbidden

NewGetUsingGET1Forbidden creates a GetUsingGET1Forbidden with default headers values

func (*GetUsingGET1Forbidden) Error added in v0.5.0

func (o *GetUsingGET1Forbidden) Error() string

func (*GetUsingGET1Forbidden) IsClientError added in v0.5.0

func (o *GetUsingGET1Forbidden) IsClientError() bool

IsClientError returns true when this get using g e t1 forbidden response has a 4xx status code

func (*GetUsingGET1Forbidden) IsCode added in v0.5.0

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

IsCode returns true when this get using g e t1 forbidden response a status code equal to that given

func (*GetUsingGET1Forbidden) IsRedirect added in v0.5.0

func (o *GetUsingGET1Forbidden) IsRedirect() bool

IsRedirect returns true when this get using g e t1 forbidden response has a 3xx status code

func (*GetUsingGET1Forbidden) IsServerError added in v0.5.0

func (o *GetUsingGET1Forbidden) IsServerError() bool

IsServerError returns true when this get using g e t1 forbidden response has a 5xx status code

func (*GetUsingGET1Forbidden) IsSuccess added in v0.5.0

func (o *GetUsingGET1Forbidden) IsSuccess() bool

IsSuccess returns true when this get using g e t1 forbidden response has a 2xx status code

func (*GetUsingGET1Forbidden) String added in v0.5.0

func (o *GetUsingGET1Forbidden) String() string

type GetUsingGET1OK

type GetUsingGET1OK struct {
	Payload *models.K8SLimitRange
}

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

OK

func NewGetUsingGET1OK

func NewGetUsingGET1OK() *GetUsingGET1OK

NewGetUsingGET1OK creates a GetUsingGET1OK with default headers values

func (*GetUsingGET1OK) Error

func (o *GetUsingGET1OK) Error() string

func (*GetUsingGET1OK) GetPayload

func (o *GetUsingGET1OK) GetPayload() *models.K8SLimitRange

func (*GetUsingGET1OK) IsClientError added in v0.5.0

func (o *GetUsingGET1OK) IsClientError() bool

IsClientError returns true when this get using g e t1 o k response has a 4xx status code

func (*GetUsingGET1OK) IsCode added in v0.5.0

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

IsCode returns true when this get using g e t1 o k response a status code equal to that given

func (*GetUsingGET1OK) IsRedirect added in v0.5.0

func (o *GetUsingGET1OK) IsRedirect() bool

IsRedirect returns true when this get using g e t1 o k response has a 3xx status code

func (*GetUsingGET1OK) IsServerError added in v0.5.0

func (o *GetUsingGET1OK) IsServerError() bool

IsServerError returns true when this get using g e t1 o k response has a 5xx status code

func (*GetUsingGET1OK) IsSuccess added in v0.5.0

func (o *GetUsingGET1OK) IsSuccess() bool

IsSuccess returns true when this get using g e t1 o k response has a 2xx status code

func (*GetUsingGET1OK) String added in v0.5.0

func (o *GetUsingGET1OK) String() string

type GetUsingGET1Params

type GetUsingGET1Params struct {

	/* ID.

	   id

	   Format: uuid
	*/
	ID strfmt.UUID

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

GetUsingGET1Params contains all the parameters to send to the API endpoint

for the get using get1 operation.

Typically these are written to a http.Request.

func NewGetUsingGET1Params

func NewGetUsingGET1Params() *GetUsingGET1Params

NewGetUsingGET1Params creates a new GetUsingGET1Params 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 NewGetUsingGET1ParamsWithContext

func NewGetUsingGET1ParamsWithContext(ctx context.Context) *GetUsingGET1Params

NewGetUsingGET1ParamsWithContext creates a new GetUsingGET1Params object with the ability to set a context for a request.

func NewGetUsingGET1ParamsWithHTTPClient

func NewGetUsingGET1ParamsWithHTTPClient(client *http.Client) *GetUsingGET1Params

NewGetUsingGET1ParamsWithHTTPClient creates a new GetUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetUsingGET1ParamsWithTimeout

func NewGetUsingGET1ParamsWithTimeout(timeout time.Duration) *GetUsingGET1Params

NewGetUsingGET1ParamsWithTimeout creates a new GetUsingGET1Params object with the ability to set a timeout on a request.

func (*GetUsingGET1Params) SetContext

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

SetContext adds the context to the get using get1 params

func (*GetUsingGET1Params) SetDefaults

func (o *GetUsingGET1Params) SetDefaults()

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

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

func (*GetUsingGET1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get using get1 params

func (*GetUsingGET1Params) SetID

func (o *GetUsingGET1Params) SetID(id strfmt.UUID)

SetID adds the id to the get using get1 params

func (*GetUsingGET1Params) SetTimeout

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

SetTimeout adds the timeout to the get using get1 params

func (*GetUsingGET1Params) WithContext

WithContext adds the context to the get using get1 params

func (*GetUsingGET1Params) WithDefaults

func (o *GetUsingGET1Params) WithDefaults() *GetUsingGET1Params

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

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

func (*GetUsingGET1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get using get1 params

func (*GetUsingGET1Params) WithID

WithID adds the id to the get using get1 params

func (*GetUsingGET1Params) WithTimeout

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

WithTimeout adds the timeout to the get using get1 params

func (*GetUsingGET1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsingGET1Reader

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

GetUsingGET1Reader is a Reader for the GetUsingGET1 structure.

func (*GetUsingGET1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsingGET1Forbidden added in v0.5.0

type ListUsingGET1Forbidden struct {
}

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

Forbidden, the user lacks permissions

func NewListUsingGET1Forbidden added in v0.5.0

func NewListUsingGET1Forbidden() *ListUsingGET1Forbidden

NewListUsingGET1Forbidden creates a ListUsingGET1Forbidden with default headers values

func (*ListUsingGET1Forbidden) Error added in v0.5.0

func (o *ListUsingGET1Forbidden) Error() string

func (*ListUsingGET1Forbidden) IsClientError added in v0.5.0

func (o *ListUsingGET1Forbidden) IsClientError() bool

IsClientError returns true when this list using g e t1 forbidden response has a 4xx status code

func (*ListUsingGET1Forbidden) IsCode added in v0.5.0

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

IsCode returns true when this list using g e t1 forbidden response a status code equal to that given

func (*ListUsingGET1Forbidden) IsRedirect added in v0.5.0

func (o *ListUsingGET1Forbidden) IsRedirect() bool

IsRedirect returns true when this list using g e t1 forbidden response has a 3xx status code

func (*ListUsingGET1Forbidden) IsServerError added in v0.5.0

func (o *ListUsingGET1Forbidden) IsServerError() bool

IsServerError returns true when this list using g e t1 forbidden response has a 5xx status code

func (*ListUsingGET1Forbidden) IsSuccess added in v0.5.0

func (o *ListUsingGET1Forbidden) IsSuccess() bool

IsSuccess returns true when this list using g e t1 forbidden response has a 2xx status code

func (*ListUsingGET1Forbidden) String added in v0.5.0

func (o *ListUsingGET1Forbidden) String() string

type ListUsingGET1OK

type ListUsingGET1OK struct {
	Payload *models.PageOfK8SLimitRange
}

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

OK

func NewListUsingGET1OK

func NewListUsingGET1OK() *ListUsingGET1OK

NewListUsingGET1OK creates a ListUsingGET1OK with default headers values

func (*ListUsingGET1OK) Error

func (o *ListUsingGET1OK) Error() string

func (*ListUsingGET1OK) GetPayload

func (o *ListUsingGET1OK) GetPayload() *models.PageOfK8SLimitRange

func (*ListUsingGET1OK) IsClientError added in v0.5.0

func (o *ListUsingGET1OK) IsClientError() bool

IsClientError returns true when this list using g e t1 o k response has a 4xx status code

func (*ListUsingGET1OK) IsCode added in v0.5.0

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

IsCode returns true when this list using g e t1 o k response a status code equal to that given

func (*ListUsingGET1OK) IsRedirect added in v0.5.0

func (o *ListUsingGET1OK) IsRedirect() bool

IsRedirect returns true when this list using g e t1 o k response has a 3xx status code

func (*ListUsingGET1OK) IsServerError added in v0.5.0

func (o *ListUsingGET1OK) IsServerError() bool

IsServerError returns true when this list using g e t1 o k response has a 5xx status code

func (*ListUsingGET1OK) IsSuccess added in v0.5.0

func (o *ListUsingGET1OK) IsSuccess() bool

IsSuccess returns true when this list using g e t1 o k response has a 2xx status code

func (*ListUsingGET1OK) String added in v0.5.0

func (o *ListUsingGET1OK) String() string

type ListUsingGET1Params

type ListUsingGET1Params struct {

	// Offset.
	//
	// Format: int64
	Offset *int64

	// PageNumber.
	//
	// Format: int32
	PageNumber *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// Paged.
	Paged *bool

	// SortSorted.
	SortSorted *bool

	// SortUnsorted.
	SortUnsorted *bool

	// Unpaged.
	Unpaged *bool

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

ListUsingGET1Params contains all the parameters to send to the API endpoint

for the list using get1 operation.

Typically these are written to a http.Request.

func NewListUsingGET1Params

func NewListUsingGET1Params() *ListUsingGET1Params

NewListUsingGET1Params creates a new ListUsingGET1Params 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 NewListUsingGET1ParamsWithContext

func NewListUsingGET1ParamsWithContext(ctx context.Context) *ListUsingGET1Params

NewListUsingGET1ParamsWithContext creates a new ListUsingGET1Params object with the ability to set a context for a request.

func NewListUsingGET1ParamsWithHTTPClient

func NewListUsingGET1ParamsWithHTTPClient(client *http.Client) *ListUsingGET1Params

NewListUsingGET1ParamsWithHTTPClient creates a new ListUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewListUsingGET1ParamsWithTimeout

func NewListUsingGET1ParamsWithTimeout(timeout time.Duration) *ListUsingGET1Params

NewListUsingGET1ParamsWithTimeout creates a new ListUsingGET1Params object with the ability to set a timeout on a request.

func (*ListUsingGET1Params) SetContext

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

SetContext adds the context to the list using get1 params

func (*ListUsingGET1Params) SetDefaults

func (o *ListUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the list using get1 params (not the query body).

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

func (*ListUsingGET1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list using get1 params

func (*ListUsingGET1Params) SetOffset

func (o *ListUsingGET1Params) SetOffset(offset *int64)

SetOffset adds the offset to the list using get1 params

func (*ListUsingGET1Params) SetPageNumber

func (o *ListUsingGET1Params) SetPageNumber(pageNumber *int32)

SetPageNumber adds the pageNumber to the list using get1 params

func (*ListUsingGET1Params) SetPageSize

func (o *ListUsingGET1Params) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the list using get1 params

func (*ListUsingGET1Params) SetPaged

func (o *ListUsingGET1Params) SetPaged(paged *bool)

SetPaged adds the paged to the list using get1 params

func (*ListUsingGET1Params) SetSortSorted

func (o *ListUsingGET1Params) SetSortSorted(sortSorted *bool)

SetSortSorted adds the sortSorted to the list using get1 params

func (*ListUsingGET1Params) SetSortUnsorted

func (o *ListUsingGET1Params) SetSortUnsorted(sortUnsorted *bool)

SetSortUnsorted adds the sortUnsorted to the list using get1 params

func (*ListUsingGET1Params) SetTimeout

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

SetTimeout adds the timeout to the list using get1 params

func (*ListUsingGET1Params) SetUnpaged

func (o *ListUsingGET1Params) SetUnpaged(unpaged *bool)

SetUnpaged adds the unpaged to the list using get1 params

func (*ListUsingGET1Params) WithContext

WithContext adds the context to the list using get1 params

func (*ListUsingGET1Params) WithDefaults

func (o *ListUsingGET1Params) WithDefaults() *ListUsingGET1Params

WithDefaults hydrates default values in the list using get1 params (not the query body).

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

func (*ListUsingGET1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list using get1 params

func (*ListUsingGET1Params) WithOffset

func (o *ListUsingGET1Params) WithOffset(offset *int64) *ListUsingGET1Params

WithOffset adds the offset to the list using get1 params

func (*ListUsingGET1Params) WithPageNumber

func (o *ListUsingGET1Params) WithPageNumber(pageNumber *int32) *ListUsingGET1Params

WithPageNumber adds the pageNumber to the list using get1 params

func (*ListUsingGET1Params) WithPageSize

func (o *ListUsingGET1Params) WithPageSize(pageSize *int32) *ListUsingGET1Params

WithPageSize adds the pageSize to the list using get1 params

func (*ListUsingGET1Params) WithPaged

func (o *ListUsingGET1Params) WithPaged(paged *bool) *ListUsingGET1Params

WithPaged adds the paged to the list using get1 params

func (*ListUsingGET1Params) WithSortSorted

func (o *ListUsingGET1Params) WithSortSorted(sortSorted *bool) *ListUsingGET1Params

WithSortSorted adds the sortSorted to the list using get1 params

func (*ListUsingGET1Params) WithSortUnsorted

func (o *ListUsingGET1Params) WithSortUnsorted(sortUnsorted *bool) *ListUsingGET1Params

WithSortUnsorted adds the sortUnsorted to the list using get1 params

func (*ListUsingGET1Params) WithTimeout

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

WithTimeout adds the timeout to the list using get1 params

func (*ListUsingGET1Params) WithUnpaged

func (o *ListUsingGET1Params) WithUnpaged(unpaged *bool) *ListUsingGET1Params

WithUnpaged adds the unpaged to the list using get1 params

func (*ListUsingGET1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUsingGET1Reader

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

ListUsingGET1Reader is a Reader for the ListUsingGET1 structure.

func (*ListUsingGET1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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