resource_reports

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for resource reports API

func (*Client) DeleteResourceReport

func (a *Client) DeleteResourceReport(params *DeleteResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteResourceReportNoContent, error)

DeleteResourceReport Delete a ResourceReport.

func (*Client) GetResourceReport

func (a *Client) GetResourceReport(params *GetResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceReportOK, error)

GetResourceReport Return a ResourceReport.

func (*Client) GetResourceReports

func (a *Client) GetResourceReports(params *GetResourceReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceReportsOK, error)

GetResourceReports Return all ResourceReports.

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 {
	DeleteResourceReport(params *DeleteResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteResourceReportNoContent, error)

	GetResourceReport(params *GetResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceReportOK, error)

	GetResourceReports(params *GetResourceReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetResourceReportsOK, 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 reports API client.

type DeleteResourceReportNoContent

type DeleteResourceReportNoContent struct {
	Payload *models.ResourceReport
}

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

DeleteResourceReportNoContent delete resource report no content

func NewDeleteResourceReportNoContent

func NewDeleteResourceReportNoContent() *DeleteResourceReportNoContent

NewDeleteResourceReportNoContent creates a DeleteResourceReportNoContent with default headers values

func (*DeleteResourceReportNoContent) Code

Code gets the status code for the delete resource report no content response

func (*DeleteResourceReportNoContent) Error

func (*DeleteResourceReportNoContent) GetPayload

func (*DeleteResourceReportNoContent) IsClientError

func (o *DeleteResourceReportNoContent) IsClientError() bool

IsClientError returns true when this delete resource report no content response has a 4xx status code

func (*DeleteResourceReportNoContent) IsCode

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

IsCode returns true when this delete resource report no content response a status code equal to that given

func (*DeleteResourceReportNoContent) IsRedirect

func (o *DeleteResourceReportNoContent) IsRedirect() bool

IsRedirect returns true when this delete resource report no content response has a 3xx status code

func (*DeleteResourceReportNoContent) IsServerError

func (o *DeleteResourceReportNoContent) IsServerError() bool

IsServerError returns true when this delete resource report no content response has a 5xx status code

func (*DeleteResourceReportNoContent) IsSuccess

func (o *DeleteResourceReportNoContent) IsSuccess() bool

IsSuccess returns true when this delete resource report no content response has a 2xx status code

func (*DeleteResourceReportNoContent) String

type DeleteResourceReportNotFound

type DeleteResourceReportNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewDeleteResourceReportNotFound

func NewDeleteResourceReportNotFound() *DeleteResourceReportNotFound

NewDeleteResourceReportNotFound creates a DeleteResourceReportNotFound with default headers values

func (*DeleteResourceReportNotFound) Code

Code gets the status code for the delete resource report not found response

func (*DeleteResourceReportNotFound) Error

func (*DeleteResourceReportNotFound) GetPayload

func (o *DeleteResourceReportNotFound) GetPayload() *models.Errors

func (*DeleteResourceReportNotFound) IsClientError

func (o *DeleteResourceReportNotFound) IsClientError() bool

IsClientError returns true when this delete resource report not found response has a 4xx status code

func (*DeleteResourceReportNotFound) IsCode

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

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

func (*DeleteResourceReportNotFound) IsRedirect

func (o *DeleteResourceReportNotFound) IsRedirect() bool

IsRedirect returns true when this delete resource report not found response has a 3xx status code

func (*DeleteResourceReportNotFound) IsServerError

func (o *DeleteResourceReportNotFound) IsServerError() bool

IsServerError returns true when this delete resource report not found response has a 5xx status code

func (*DeleteResourceReportNotFound) IsSuccess

func (o *DeleteResourceReportNotFound) IsSuccess() bool

IsSuccess returns true when this delete resource report not found response has a 2xx status code

func (*DeleteResourceReportNotFound) String

type DeleteResourceReportParams

type DeleteResourceReportParams struct {

	// ResourceReportToken.
	ResourceReportToken string

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

DeleteResourceReportParams contains all the parameters to send to the API endpoint

for the delete resource report operation.

Typically these are written to a http.Request.

func NewDeleteResourceReportParams

func NewDeleteResourceReportParams() *DeleteResourceReportParams

NewDeleteResourceReportParams creates a new DeleteResourceReportParams 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 NewDeleteResourceReportParamsWithContext

func NewDeleteResourceReportParamsWithContext(ctx context.Context) *DeleteResourceReportParams

NewDeleteResourceReportParamsWithContext creates a new DeleteResourceReportParams object with the ability to set a context for a request.

func NewDeleteResourceReportParamsWithHTTPClient

func NewDeleteResourceReportParamsWithHTTPClient(client *http.Client) *DeleteResourceReportParams

NewDeleteResourceReportParamsWithHTTPClient creates a new DeleteResourceReportParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteResourceReportParamsWithTimeout

func NewDeleteResourceReportParamsWithTimeout(timeout time.Duration) *DeleteResourceReportParams

NewDeleteResourceReportParamsWithTimeout creates a new DeleteResourceReportParams object with the ability to set a timeout on a request.

func (*DeleteResourceReportParams) SetContext

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

SetContext adds the context to the delete resource report params

func (*DeleteResourceReportParams) SetDefaults

func (o *DeleteResourceReportParams) SetDefaults()

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

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

func (*DeleteResourceReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete resource report params

func (*DeleteResourceReportParams) SetResourceReportToken

func (o *DeleteResourceReportParams) SetResourceReportToken(resourceReportToken string)

SetResourceReportToken adds the resourceReportToken to the delete resource report params

func (*DeleteResourceReportParams) SetTimeout

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

SetTimeout adds the timeout to the delete resource report params

func (*DeleteResourceReportParams) WithContext

WithContext adds the context to the delete resource report params

func (*DeleteResourceReportParams) WithDefaults

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

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

func (*DeleteResourceReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete resource report params

func (*DeleteResourceReportParams) WithResourceReportToken

func (o *DeleteResourceReportParams) WithResourceReportToken(resourceReportToken string) *DeleteResourceReportParams

WithResourceReportToken adds the resourceReportToken to the delete resource report params

func (*DeleteResourceReportParams) WithTimeout

WithTimeout adds the timeout to the delete resource report params

func (*DeleteResourceReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteResourceReportReader

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

DeleteResourceReportReader is a Reader for the DeleteResourceReport structure.

func (*DeleteResourceReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceReportNotFound

type GetResourceReportNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewGetResourceReportNotFound

func NewGetResourceReportNotFound() *GetResourceReportNotFound

NewGetResourceReportNotFound creates a GetResourceReportNotFound with default headers values

func (*GetResourceReportNotFound) Code

func (o *GetResourceReportNotFound) Code() int

Code gets the status code for the get resource report not found response

func (*GetResourceReportNotFound) Error

func (o *GetResourceReportNotFound) Error() string

func (*GetResourceReportNotFound) GetPayload

func (o *GetResourceReportNotFound) GetPayload() *models.Errors

func (*GetResourceReportNotFound) IsClientError

func (o *GetResourceReportNotFound) IsClientError() bool

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

func (*GetResourceReportNotFound) IsCode

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

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

func (*GetResourceReportNotFound) IsRedirect

func (o *GetResourceReportNotFound) IsRedirect() bool

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

func (*GetResourceReportNotFound) IsServerError

func (o *GetResourceReportNotFound) IsServerError() bool

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

func (*GetResourceReportNotFound) IsSuccess

func (o *GetResourceReportNotFound) IsSuccess() bool

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

func (*GetResourceReportNotFound) String

func (o *GetResourceReportNotFound) String() string

type GetResourceReportOK

type GetResourceReportOK struct {
	Payload *models.ResourceReport
}

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

GetResourceReportOK get resource report o k

func NewGetResourceReportOK

func NewGetResourceReportOK() *GetResourceReportOK

NewGetResourceReportOK creates a GetResourceReportOK with default headers values

func (*GetResourceReportOK) Code

func (o *GetResourceReportOK) Code() int

Code gets the status code for the get resource report o k response

func (*GetResourceReportOK) Error

func (o *GetResourceReportOK) Error() string

func (*GetResourceReportOK) GetPayload

func (o *GetResourceReportOK) GetPayload() *models.ResourceReport

func (*GetResourceReportOK) IsClientError

func (o *GetResourceReportOK) IsClientError() bool

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

func (*GetResourceReportOK) IsCode

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

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

func (*GetResourceReportOK) IsRedirect

func (o *GetResourceReportOK) IsRedirect() bool

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

func (*GetResourceReportOK) IsServerError

func (o *GetResourceReportOK) IsServerError() bool

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

func (*GetResourceReportOK) IsSuccess

func (o *GetResourceReportOK) IsSuccess() bool

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

func (*GetResourceReportOK) String

func (o *GetResourceReportOK) String() string

type GetResourceReportParams

type GetResourceReportParams struct {

	// ResourceReportToken.
	ResourceReportToken string

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

GetResourceReportParams contains all the parameters to send to the API endpoint

for the get resource report operation.

Typically these are written to a http.Request.

func NewGetResourceReportParams

func NewGetResourceReportParams() *GetResourceReportParams

NewGetResourceReportParams creates a new GetResourceReportParams 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 NewGetResourceReportParamsWithContext

func NewGetResourceReportParamsWithContext(ctx context.Context) *GetResourceReportParams

NewGetResourceReportParamsWithContext creates a new GetResourceReportParams object with the ability to set a context for a request.

func NewGetResourceReportParamsWithHTTPClient

func NewGetResourceReportParamsWithHTTPClient(client *http.Client) *GetResourceReportParams

NewGetResourceReportParamsWithHTTPClient creates a new GetResourceReportParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceReportParamsWithTimeout

func NewGetResourceReportParamsWithTimeout(timeout time.Duration) *GetResourceReportParams

NewGetResourceReportParamsWithTimeout creates a new GetResourceReportParams object with the ability to set a timeout on a request.

func (*GetResourceReportParams) SetContext

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

SetContext adds the context to the get resource report params

func (*GetResourceReportParams) SetDefaults

func (o *GetResourceReportParams) SetDefaults()

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

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

func (*GetResourceReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource report params

func (*GetResourceReportParams) SetResourceReportToken

func (o *GetResourceReportParams) SetResourceReportToken(resourceReportToken string)

SetResourceReportToken adds the resourceReportToken to the get resource report params

func (*GetResourceReportParams) SetTimeout

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

SetTimeout adds the timeout to the get resource report params

func (*GetResourceReportParams) WithContext

WithContext adds the context to the get resource report params

func (*GetResourceReportParams) WithDefaults

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

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

func (*GetResourceReportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resource report params

func (*GetResourceReportParams) WithResourceReportToken

func (o *GetResourceReportParams) WithResourceReportToken(resourceReportToken string) *GetResourceReportParams

WithResourceReportToken adds the resourceReportToken to the get resource report params

func (*GetResourceReportParams) WithTimeout

WithTimeout adds the timeout to the get resource report params

func (*GetResourceReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceReportReader

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

GetResourceReportReader is a Reader for the GetResourceReport structure.

func (*GetResourceReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceReportsOK

type GetResourceReportsOK struct {
	Payload *models.ResourceReports
}

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

GetResourceReportsOK get resource reports o k

func NewGetResourceReportsOK

func NewGetResourceReportsOK() *GetResourceReportsOK

NewGetResourceReportsOK creates a GetResourceReportsOK with default headers values

func (*GetResourceReportsOK) Code

func (o *GetResourceReportsOK) Code() int

Code gets the status code for the get resource reports o k response

func (*GetResourceReportsOK) Error

func (o *GetResourceReportsOK) Error() string

func (*GetResourceReportsOK) GetPayload

func (o *GetResourceReportsOK) GetPayload() *models.ResourceReports

func (*GetResourceReportsOK) IsClientError

func (o *GetResourceReportsOK) IsClientError() bool

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

func (*GetResourceReportsOK) IsCode

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

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

func (*GetResourceReportsOK) IsRedirect

func (o *GetResourceReportsOK) IsRedirect() bool

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

func (*GetResourceReportsOK) IsServerError

func (o *GetResourceReportsOK) IsServerError() bool

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

func (*GetResourceReportsOK) IsSuccess

func (o *GetResourceReportsOK) IsSuccess() bool

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

func (*GetResourceReportsOK) String

func (o *GetResourceReportsOK) String() string

type GetResourceReportsParams

type GetResourceReportsParams struct {

	/* Limit.

	   The number of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetResourceReportsParams contains all the parameters to send to the API endpoint

for the get resource reports operation.

Typically these are written to a http.Request.

func NewGetResourceReportsParams

func NewGetResourceReportsParams() *GetResourceReportsParams

NewGetResourceReportsParams creates a new GetResourceReportsParams 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 NewGetResourceReportsParamsWithContext

func NewGetResourceReportsParamsWithContext(ctx context.Context) *GetResourceReportsParams

NewGetResourceReportsParamsWithContext creates a new GetResourceReportsParams object with the ability to set a context for a request.

func NewGetResourceReportsParamsWithHTTPClient

func NewGetResourceReportsParamsWithHTTPClient(client *http.Client) *GetResourceReportsParams

NewGetResourceReportsParamsWithHTTPClient creates a new GetResourceReportsParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceReportsParamsWithTimeout

func NewGetResourceReportsParamsWithTimeout(timeout time.Duration) *GetResourceReportsParams

NewGetResourceReportsParamsWithTimeout creates a new GetResourceReportsParams object with the ability to set a timeout on a request.

func (*GetResourceReportsParams) SetContext

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

SetContext adds the context to the get resource reports params

func (*GetResourceReportsParams) SetDefaults

func (o *GetResourceReportsParams) SetDefaults()

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

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

func (*GetResourceReportsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource reports params

func (*GetResourceReportsParams) SetLimit

func (o *GetResourceReportsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get resource reports params

func (*GetResourceReportsParams) SetPage

func (o *GetResourceReportsParams) SetPage(page *int32)

SetPage adds the page to the get resource reports params

func (*GetResourceReportsParams) SetTimeout

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

SetTimeout adds the timeout to the get resource reports params

func (*GetResourceReportsParams) WithContext

WithContext adds the context to the get resource reports params

func (*GetResourceReportsParams) WithDefaults

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

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

func (*GetResourceReportsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resource reports params

func (*GetResourceReportsParams) WithLimit

WithLimit adds the limit to the get resource reports params

func (*GetResourceReportsParams) WithPage

WithPage adds the page to the get resource reports params

func (*GetResourceReportsParams) WithTimeout

WithTimeout adds the timeout to the get resource reports params

func (*GetResourceReportsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceReportsReader

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

GetResourceReportsReader is a Reader for the GetResourceReports structure.

func (*GetResourceReportsReader) ReadResponse

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