resource_warnings

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause 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 warnings API

func (*Client) GetResourceWarning added in v0.1.1

func (a *Client) GetResourceWarning(params *GetResourceWarningParams, opts ...ClientOption) (*GetResourceWarningOK, error)

GetResourceWarning gets a resource warning by ID

func (*Client) GetResourceWarnings added in v0.1.1

func (a *Client) GetResourceWarnings(params *GetResourceWarningsParams, opts ...ClientOption) (*GetResourceWarningsOK, error)

GetResourceWarnings gets resource warnings

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 {
	GetResourceWarning(params *GetResourceWarningParams, opts ...ClientOption) (*GetResourceWarningOK, error)

	GetResourceWarnings(params *GetResourceWarningsParams, opts ...ClientOption) (*GetResourceWarningsOK, 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 warnings API client.

type GetResourceWarningInternalServerError added in v0.1.1

type GetResourceWarningInternalServerError struct {
	Payload *models.Error
}

GetResourceWarningInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetResourceWarningInternalServerError added in v0.1.1

func NewGetResourceWarningInternalServerError() *GetResourceWarningInternalServerError

NewGetResourceWarningInternalServerError creates a GetResourceWarningInternalServerError with default headers values

func (*GetResourceWarningInternalServerError) Error added in v0.1.1

func (*GetResourceWarningInternalServerError) GetPayload added in v0.1.1

func (*GetResourceWarningInternalServerError) IsClientError added in v0.1.1

func (o *GetResourceWarningInternalServerError) IsClientError() bool

IsClientError returns true when this get resource warning internal server error response has a 4xx status code

func (*GetResourceWarningInternalServerError) IsCode added in v0.1.1

IsCode returns true when this get resource warning internal server error response a status code equal to that given

func (*GetResourceWarningInternalServerError) IsRedirect added in v0.1.1

IsRedirect returns true when this get resource warning internal server error response has a 3xx status code

func (*GetResourceWarningInternalServerError) IsServerError added in v0.1.1

func (o *GetResourceWarningInternalServerError) IsServerError() bool

IsServerError returns true when this get resource warning internal server error response has a 5xx status code

func (*GetResourceWarningInternalServerError) IsSuccess added in v0.1.1

IsSuccess returns true when this get resource warning internal server error response has a 2xx status code

func (*GetResourceWarningInternalServerError) String added in v0.1.1

type GetResourceWarningNotFound added in v0.1.1

type GetResourceWarningNotFound struct {
	Payload *models.Error
}

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

Resource Warning not found

func NewGetResourceWarningNotFound added in v0.1.1

func NewGetResourceWarningNotFound() *GetResourceWarningNotFound

NewGetResourceWarningNotFound creates a GetResourceWarningNotFound with default headers values

func (*GetResourceWarningNotFound) Error added in v0.1.1

func (*GetResourceWarningNotFound) GetPayload added in v0.1.1

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

func (*GetResourceWarningNotFound) IsClientError added in v0.1.1

func (o *GetResourceWarningNotFound) IsClientError() bool

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

func (*GetResourceWarningNotFound) IsCode added in v0.1.1

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

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

func (*GetResourceWarningNotFound) IsRedirect added in v0.1.1

func (o *GetResourceWarningNotFound) IsRedirect() bool

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

func (*GetResourceWarningNotFound) IsServerError added in v0.1.1

func (o *GetResourceWarningNotFound) IsServerError() bool

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

func (*GetResourceWarningNotFound) IsSuccess added in v0.1.1

func (o *GetResourceWarningNotFound) IsSuccess() bool

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

func (*GetResourceWarningNotFound) String added in v0.1.1

func (o *GetResourceWarningNotFound) String() string

type GetResourceWarningOK added in v0.1.1

type GetResourceWarningOK struct {
	Payload *models.ResourceWarning
}

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

OK

func NewGetResourceWarningOK added in v0.1.1

func NewGetResourceWarningOK() *GetResourceWarningOK

NewGetResourceWarningOK creates a GetResourceWarningOK with default headers values

func (*GetResourceWarningOK) Error added in v0.1.1

func (o *GetResourceWarningOK) Error() string

func (*GetResourceWarningOK) GetPayload added in v0.1.1

func (o *GetResourceWarningOK) GetPayload() *models.ResourceWarning

func (*GetResourceWarningOK) IsClientError added in v0.1.1

func (o *GetResourceWarningOK) IsClientError() bool

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

func (*GetResourceWarningOK) IsCode added in v0.1.1

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

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

func (*GetResourceWarningOK) IsRedirect added in v0.1.1

func (o *GetResourceWarningOK) IsRedirect() bool

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

func (*GetResourceWarningOK) IsServerError added in v0.1.1

func (o *GetResourceWarningOK) IsServerError() bool

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

func (*GetResourceWarningOK) IsSuccess added in v0.1.1

func (o *GetResourceWarningOK) IsSuccess() bool

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

func (*GetResourceWarningOK) String added in v0.1.1

func (o *GetResourceWarningOK) String() string

type GetResourceWarningParams added in v0.1.1

type GetResourceWarningParams struct {

	/* ID.

	   id
	*/
	ID string

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

GetResourceWarningParams contains all the parameters to send to the API endpoint

for the get resource warning operation.

Typically these are written to a http.Request.

func NewGetResourceWarningParams added in v0.1.1

func NewGetResourceWarningParams() *GetResourceWarningParams

NewGetResourceWarningParams creates a new GetResourceWarningParams 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 NewGetResourceWarningParamsWithContext added in v0.1.1

func NewGetResourceWarningParamsWithContext(ctx context.Context) *GetResourceWarningParams

NewGetResourceWarningParamsWithContext creates a new GetResourceWarningParams object with the ability to set a context for a request.

func NewGetResourceWarningParamsWithHTTPClient added in v0.1.1

func NewGetResourceWarningParamsWithHTTPClient(client *http.Client) *GetResourceWarningParams

NewGetResourceWarningParamsWithHTTPClient creates a new GetResourceWarningParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceWarningParamsWithTimeout added in v0.1.1

func NewGetResourceWarningParamsWithTimeout(timeout time.Duration) *GetResourceWarningParams

NewGetResourceWarningParamsWithTimeout creates a new GetResourceWarningParams object with the ability to set a timeout on a request.

func (*GetResourceWarningParams) SetContext added in v0.1.1

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

SetContext adds the context to the get resource warning params

func (*GetResourceWarningParams) SetDefaults added in v0.1.1

func (o *GetResourceWarningParams) SetDefaults()

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

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

func (*GetResourceWarningParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get resource warning params

func (*GetResourceWarningParams) SetID added in v0.1.1

func (o *GetResourceWarningParams) SetID(id string)

SetID adds the id to the get resource warning params

func (*GetResourceWarningParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get resource warning params

func (*GetResourceWarningParams) WithContext added in v0.1.1

WithContext adds the context to the get resource warning params

func (*GetResourceWarningParams) WithDefaults added in v0.1.1

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

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

func (*GetResourceWarningParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get resource warning params

func (*GetResourceWarningParams) WithID added in v0.1.1

WithID adds the id to the get resource warning params

func (*GetResourceWarningParams) WithTimeout added in v0.1.1

WithTimeout adds the timeout to the get resource warning params

func (*GetResourceWarningParams) WriteToRequest added in v0.1.1

WriteToRequest writes these params to a swagger request

type GetResourceWarningReader added in v0.1.1

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

GetResourceWarningReader is a Reader for the GetResourceWarning structure.

func (*GetResourceWarningReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type GetResourceWarningsBadRequest added in v0.1.1

type GetResourceWarningsBadRequest struct {
	Payload *models.Error
}

GetResourceWarningsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetResourceWarningsBadRequest added in v0.1.1

func NewGetResourceWarningsBadRequest() *GetResourceWarningsBadRequest

NewGetResourceWarningsBadRequest creates a GetResourceWarningsBadRequest with default headers values

func (*GetResourceWarningsBadRequest) Error added in v0.1.1

func (*GetResourceWarningsBadRequest) GetPayload added in v0.1.1

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

func (*GetResourceWarningsBadRequest) IsClientError added in v0.1.1

func (o *GetResourceWarningsBadRequest) IsClientError() bool

IsClientError returns true when this get resource warnings bad request response has a 4xx status code

func (*GetResourceWarningsBadRequest) IsCode added in v0.1.1

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

IsCode returns true when this get resource warnings bad request response a status code equal to that given

func (*GetResourceWarningsBadRequest) IsRedirect added in v0.1.1

func (o *GetResourceWarningsBadRequest) IsRedirect() bool

IsRedirect returns true when this get resource warnings bad request response has a 3xx status code

func (*GetResourceWarningsBadRequest) IsServerError added in v0.1.1

func (o *GetResourceWarningsBadRequest) IsServerError() bool

IsServerError returns true when this get resource warnings bad request response has a 5xx status code

func (*GetResourceWarningsBadRequest) IsSuccess added in v0.1.1

func (o *GetResourceWarningsBadRequest) IsSuccess() bool

IsSuccess returns true when this get resource warnings bad request response has a 2xx status code

func (*GetResourceWarningsBadRequest) String added in v0.1.1

type GetResourceWarningsInternalServerError added in v0.1.1

type GetResourceWarningsInternalServerError struct {
	Payload *models.Error
}

GetResourceWarningsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetResourceWarningsInternalServerError added in v0.1.1

func NewGetResourceWarningsInternalServerError() *GetResourceWarningsInternalServerError

NewGetResourceWarningsInternalServerError creates a GetResourceWarningsInternalServerError with default headers values

func (*GetResourceWarningsInternalServerError) Error added in v0.1.1

func (*GetResourceWarningsInternalServerError) GetPayload added in v0.1.1

func (*GetResourceWarningsInternalServerError) IsClientError added in v0.1.1

func (o *GetResourceWarningsInternalServerError) IsClientError() bool

IsClientError returns true when this get resource warnings internal server error response has a 4xx status code

func (*GetResourceWarningsInternalServerError) IsCode added in v0.1.1

IsCode returns true when this get resource warnings internal server error response a status code equal to that given

func (*GetResourceWarningsInternalServerError) IsRedirect added in v0.1.1

IsRedirect returns true when this get resource warnings internal server error response has a 3xx status code

func (*GetResourceWarningsInternalServerError) IsServerError added in v0.1.1

func (o *GetResourceWarningsInternalServerError) IsServerError() bool

IsServerError returns true when this get resource warnings internal server error response has a 5xx status code

func (*GetResourceWarningsInternalServerError) IsSuccess added in v0.1.1

IsSuccess returns true when this get resource warnings internal server error response has a 2xx status code

func (*GetResourceWarningsInternalServerError) String added in v0.1.1

type GetResourceWarningsOK added in v0.1.1

type GetResourceWarningsOK struct {
	Payload *models.PageOfResourceWarning
}

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

OK

func NewGetResourceWarningsOK added in v0.1.1

func NewGetResourceWarningsOK() *GetResourceWarningsOK

NewGetResourceWarningsOK creates a GetResourceWarningsOK with default headers values

func (*GetResourceWarningsOK) Error added in v0.1.1

func (o *GetResourceWarningsOK) Error() string

func (*GetResourceWarningsOK) GetPayload added in v0.1.1

func (*GetResourceWarningsOK) IsClientError added in v0.1.1

func (o *GetResourceWarningsOK) IsClientError() bool

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

func (*GetResourceWarningsOK) IsCode added in v0.1.1

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

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

func (*GetResourceWarningsOK) IsRedirect added in v0.1.1

func (o *GetResourceWarningsOK) IsRedirect() bool

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

func (*GetResourceWarningsOK) IsServerError added in v0.1.1

func (o *GetResourceWarningsOK) IsServerError() bool

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

func (*GetResourceWarningsOK) IsSuccess added in v0.1.1

func (o *GetResourceWarningsOK) IsSuccess() bool

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

func (*GetResourceWarningsOK) String added in v0.1.1

func (o *GetResourceWarningsOK) String() string

type GetResourceWarningsParams added in v0.1.1

type GetResourceWarningsParams struct {

	/* ResourceIds.

	   Resource IDs
	*/
	ResourceIds []string

	/* ResourceNames.

	   Resource Names
	*/
	ResourceNames []string

	/* ResourceType.

	   Resource type
	*/
	ResourceType *string

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

GetResourceWarningsParams contains all the parameters to send to the API endpoint

for the get resource warnings operation.

Typically these are written to a http.Request.

func NewGetResourceWarningsParams added in v0.1.1

func NewGetResourceWarningsParams() *GetResourceWarningsParams

NewGetResourceWarningsParams creates a new GetResourceWarningsParams 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 NewGetResourceWarningsParamsWithContext added in v0.1.1

func NewGetResourceWarningsParamsWithContext(ctx context.Context) *GetResourceWarningsParams

NewGetResourceWarningsParamsWithContext creates a new GetResourceWarningsParams object with the ability to set a context for a request.

func NewGetResourceWarningsParamsWithHTTPClient added in v0.1.1

func NewGetResourceWarningsParamsWithHTTPClient(client *http.Client) *GetResourceWarningsParams

NewGetResourceWarningsParamsWithHTTPClient creates a new GetResourceWarningsParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceWarningsParamsWithTimeout added in v0.1.1

func NewGetResourceWarningsParamsWithTimeout(timeout time.Duration) *GetResourceWarningsParams

NewGetResourceWarningsParamsWithTimeout creates a new GetResourceWarningsParams object with the ability to set a timeout on a request.

func (*GetResourceWarningsParams) SetContext added in v0.1.1

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

SetContext adds the context to the get resource warnings params

func (*GetResourceWarningsParams) SetDefaults added in v0.1.1

func (o *GetResourceWarningsParams) SetDefaults()

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

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

func (*GetResourceWarningsParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get resource warnings params

func (*GetResourceWarningsParams) SetResourceIds added in v0.1.1

func (o *GetResourceWarningsParams) SetResourceIds(resourceIds []string)

SetResourceIds adds the resourceIds to the get resource warnings params

func (*GetResourceWarningsParams) SetResourceNames added in v0.1.1

func (o *GetResourceWarningsParams) SetResourceNames(resourceNames []string)

SetResourceNames adds the resourceNames to the get resource warnings params

func (*GetResourceWarningsParams) SetResourceType added in v0.1.1

func (o *GetResourceWarningsParams) SetResourceType(resourceType *string)

SetResourceType adds the resourceType to the get resource warnings params

func (*GetResourceWarningsParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get resource warnings params

func (*GetResourceWarningsParams) WithContext added in v0.1.1

WithContext adds the context to the get resource warnings params

func (*GetResourceWarningsParams) WithDefaults added in v0.1.1

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

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

func (*GetResourceWarningsParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get resource warnings params

func (*GetResourceWarningsParams) WithResourceIds added in v0.1.1

func (o *GetResourceWarningsParams) WithResourceIds(resourceIds []string) *GetResourceWarningsParams

WithResourceIds adds the resourceIds to the get resource warnings params

func (*GetResourceWarningsParams) WithResourceNames added in v0.1.1

func (o *GetResourceWarningsParams) WithResourceNames(resourceNames []string) *GetResourceWarningsParams

WithResourceNames adds the resourceNames to the get resource warnings params

func (*GetResourceWarningsParams) WithResourceType added in v0.1.1

func (o *GetResourceWarningsParams) WithResourceType(resourceType *string) *GetResourceWarningsParams

WithResourceType adds the resourceType to the get resource warnings params

func (*GetResourceWarningsParams) WithTimeout added in v0.1.1

WithTimeout adds the timeout to the get resource warnings params

func (*GetResourceWarningsParams) WriteToRequest added in v0.1.1

WriteToRequest writes these params to a swagger request

type GetResourceWarningsReader added in v0.1.1

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

GetResourceWarningsReader is a Reader for the GetResourceWarnings structure.

func (*GetResourceWarningsReader) ReadResponse added in v0.1.1

func (o *GetResourceWarningsReader) 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