resource_reports

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 12 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) CreateResourceReport added in v0.0.37

func (a *Client) CreateResourceReport(params *CreateResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateResourceReportCreated, error)

CreateResourceReport Create a ResourceReport.

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

func (*Client) UpdateResourceReport added in v0.0.38

func (a *Client) UpdateResourceReport(params *UpdateResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateResourceReportOK, error)

UpdateResourceReport Update a ResourceReport.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateResourceReport(params *CreateResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateResourceReportCreated, error)

	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)

	UpdateResourceReport(params *UpdateResourceReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateResourceReportOK, 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.

func NewClientWithBasicAuth added in v0.0.33

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new resource reports API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v0.0.33

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new resource reports API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateResourceReportBadRequest added in v0.0.37

type CreateResourceReportBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewCreateResourceReportBadRequest added in v0.0.37

func NewCreateResourceReportBadRequest() *CreateResourceReportBadRequest

NewCreateResourceReportBadRequest creates a CreateResourceReportBadRequest with default headers values

func (*CreateResourceReportBadRequest) Code added in v0.0.37

Code gets the status code for the create resource report bad request response

func (*CreateResourceReportBadRequest) Error added in v0.0.37

func (*CreateResourceReportBadRequest) GetPayload added in v0.0.37

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

func (*CreateResourceReportBadRequest) IsClientError added in v0.0.37

func (o *CreateResourceReportBadRequest) IsClientError() bool

IsClientError returns true when this create resource report bad request response has a 4xx status code

func (*CreateResourceReportBadRequest) IsCode added in v0.0.37

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

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

func (*CreateResourceReportBadRequest) IsRedirect added in v0.0.37

func (o *CreateResourceReportBadRequest) IsRedirect() bool

IsRedirect returns true when this create resource report bad request response has a 3xx status code

func (*CreateResourceReportBadRequest) IsServerError added in v0.0.37

func (o *CreateResourceReportBadRequest) IsServerError() bool

IsServerError returns true when this create resource report bad request response has a 5xx status code

func (*CreateResourceReportBadRequest) IsSuccess added in v0.0.37

func (o *CreateResourceReportBadRequest) IsSuccess() bool

IsSuccess returns true when this create resource report bad request response has a 2xx status code

func (*CreateResourceReportBadRequest) String added in v0.0.37

type CreateResourceReportCreated added in v0.0.37

type CreateResourceReportCreated struct {
	Payload *models.ResourceReport
}

CreateResourceReportCreated describes a response with status code 201, with default header values.

CreateResourceReportCreated create resource report created

func NewCreateResourceReportCreated added in v0.0.37

func NewCreateResourceReportCreated() *CreateResourceReportCreated

NewCreateResourceReportCreated creates a CreateResourceReportCreated with default headers values

func (*CreateResourceReportCreated) Code added in v0.0.37

func (o *CreateResourceReportCreated) Code() int

Code gets the status code for the create resource report created response

func (*CreateResourceReportCreated) Error added in v0.0.37

func (*CreateResourceReportCreated) GetPayload added in v0.0.37

func (*CreateResourceReportCreated) IsClientError added in v0.0.37

func (o *CreateResourceReportCreated) IsClientError() bool

IsClientError returns true when this create resource report created response has a 4xx status code

func (*CreateResourceReportCreated) IsCode added in v0.0.37

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

IsCode returns true when this create resource report created response a status code equal to that given

func (*CreateResourceReportCreated) IsRedirect added in v0.0.37

func (o *CreateResourceReportCreated) IsRedirect() bool

IsRedirect returns true when this create resource report created response has a 3xx status code

func (*CreateResourceReportCreated) IsServerError added in v0.0.37

func (o *CreateResourceReportCreated) IsServerError() bool

IsServerError returns true when this create resource report created response has a 5xx status code

func (*CreateResourceReportCreated) IsSuccess added in v0.0.37

func (o *CreateResourceReportCreated) IsSuccess() bool

IsSuccess returns true when this create resource report created response has a 2xx status code

func (*CreateResourceReportCreated) String added in v0.0.37

func (o *CreateResourceReportCreated) String() string

type CreateResourceReportParams added in v0.0.37

type CreateResourceReportParams struct {

	// CreateResourceReport.
	CreateResourceReport *models.CreateResourceReport

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

CreateResourceReportParams contains all the parameters to send to the API endpoint

for the create resource report operation.

Typically these are written to a http.Request.

func NewCreateResourceReportParams added in v0.0.37

func NewCreateResourceReportParams() *CreateResourceReportParams

NewCreateResourceReportParams creates a new CreateResourceReportParams 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 NewCreateResourceReportParamsWithContext added in v0.0.37

func NewCreateResourceReportParamsWithContext(ctx context.Context) *CreateResourceReportParams

NewCreateResourceReportParamsWithContext creates a new CreateResourceReportParams object with the ability to set a context for a request.

func NewCreateResourceReportParamsWithHTTPClient added in v0.0.37

func NewCreateResourceReportParamsWithHTTPClient(client *http.Client) *CreateResourceReportParams

NewCreateResourceReportParamsWithHTTPClient creates a new CreateResourceReportParams object with the ability to set a custom HTTPClient for a request.

func NewCreateResourceReportParamsWithTimeout added in v0.0.37

func NewCreateResourceReportParamsWithTimeout(timeout time.Duration) *CreateResourceReportParams

NewCreateResourceReportParamsWithTimeout creates a new CreateResourceReportParams object with the ability to set a timeout on a request.

func (*CreateResourceReportParams) SetContext added in v0.0.37

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

SetContext adds the context to the create resource report params

func (*CreateResourceReportParams) SetCreateResourceReport added in v0.0.37

func (o *CreateResourceReportParams) SetCreateResourceReport(createResourceReport *models.CreateResourceReport)

SetCreateResourceReport adds the createResourceReport to the create resource report params

func (*CreateResourceReportParams) SetDefaults added in v0.0.37

func (o *CreateResourceReportParams) SetDefaults()

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

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

func (*CreateResourceReportParams) SetHTTPClient added in v0.0.37

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

SetHTTPClient adds the HTTPClient to the create resource report params

func (*CreateResourceReportParams) SetTimeout added in v0.0.37

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

SetTimeout adds the timeout to the create resource report params

func (*CreateResourceReportParams) WithContext added in v0.0.37

WithContext adds the context to the create resource report params

func (*CreateResourceReportParams) WithCreateResourceReport added in v0.0.37

func (o *CreateResourceReportParams) WithCreateResourceReport(createResourceReport *models.CreateResourceReport) *CreateResourceReportParams

WithCreateResourceReport adds the createResourceReport to the create resource report params

func (*CreateResourceReportParams) WithDefaults added in v0.0.37

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

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

func (*CreateResourceReportParams) WithHTTPClient added in v0.0.37

WithHTTPClient adds the HTTPClient to the create resource report params

func (*CreateResourceReportParams) WithTimeout added in v0.0.37

WithTimeout adds the timeout to the create resource report params

func (*CreateResourceReportParams) WriteToRequest added in v0.0.37

WriteToRequest writes these params to a swagger request

type CreateResourceReportReader added in v0.0.37

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

CreateResourceReportReader is a Reader for the CreateResourceReport structure.

func (*CreateResourceReportReader) ReadResponse added in v0.0.37

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

ReadResponse reads a server response into the received o.

type CreateResourceReportUnprocessableEntity added in v0.0.37

type CreateResourceReportUnprocessableEntity struct {
	Payload *models.Errors
}

CreateResourceReportUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewCreateResourceReportUnprocessableEntity added in v0.0.37

func NewCreateResourceReportUnprocessableEntity() *CreateResourceReportUnprocessableEntity

NewCreateResourceReportUnprocessableEntity creates a CreateResourceReportUnprocessableEntity with default headers values

func (*CreateResourceReportUnprocessableEntity) Code added in v0.0.37

Code gets the status code for the create resource report unprocessable entity response

func (*CreateResourceReportUnprocessableEntity) Error added in v0.0.37

func (*CreateResourceReportUnprocessableEntity) GetPayload added in v0.0.37

func (*CreateResourceReportUnprocessableEntity) IsClientError added in v0.0.37

func (o *CreateResourceReportUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create resource report unprocessable entity response has a 4xx status code

func (*CreateResourceReportUnprocessableEntity) IsCode added in v0.0.37

IsCode returns true when this create resource report unprocessable entity response a status code equal to that given

func (*CreateResourceReportUnprocessableEntity) IsRedirect added in v0.0.37

IsRedirect returns true when this create resource report unprocessable entity response has a 3xx status code

func (*CreateResourceReportUnprocessableEntity) IsServerError added in v0.0.37

func (o *CreateResourceReportUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create resource report unprocessable entity response has a 5xx status code

func (*CreateResourceReportUnprocessableEntity) IsSuccess added in v0.0.37

IsSuccess returns true when this create resource report unprocessable entity response has a 2xx status code

func (*CreateResourceReportUnprocessableEntity) String added in v0.0.37

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.

type UpdateResourceReportBadRequest added in v0.0.38

type UpdateResourceReportBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewUpdateResourceReportBadRequest added in v0.0.38

func NewUpdateResourceReportBadRequest() *UpdateResourceReportBadRequest

NewUpdateResourceReportBadRequest creates a UpdateResourceReportBadRequest with default headers values

func (*UpdateResourceReportBadRequest) Code added in v0.0.38

Code gets the status code for the update resource report bad request response

func (*UpdateResourceReportBadRequest) Error added in v0.0.38

func (*UpdateResourceReportBadRequest) GetPayload added in v0.0.38

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

func (*UpdateResourceReportBadRequest) IsClientError added in v0.0.38

func (o *UpdateResourceReportBadRequest) IsClientError() bool

IsClientError returns true when this update resource report bad request response has a 4xx status code

func (*UpdateResourceReportBadRequest) IsCode added in v0.0.38

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

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

func (*UpdateResourceReportBadRequest) IsRedirect added in v0.0.38

func (o *UpdateResourceReportBadRequest) IsRedirect() bool

IsRedirect returns true when this update resource report bad request response has a 3xx status code

func (*UpdateResourceReportBadRequest) IsServerError added in v0.0.38

func (o *UpdateResourceReportBadRequest) IsServerError() bool

IsServerError returns true when this update resource report bad request response has a 5xx status code

func (*UpdateResourceReportBadRequest) IsSuccess added in v0.0.38

func (o *UpdateResourceReportBadRequest) IsSuccess() bool

IsSuccess returns true when this update resource report bad request response has a 2xx status code

func (*UpdateResourceReportBadRequest) String added in v0.0.38

type UpdateResourceReportNotFound added in v0.0.38

type UpdateResourceReportNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewUpdateResourceReportNotFound added in v0.0.38

func NewUpdateResourceReportNotFound() *UpdateResourceReportNotFound

NewUpdateResourceReportNotFound creates a UpdateResourceReportNotFound with default headers values

func (*UpdateResourceReportNotFound) Code added in v0.0.38

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

func (*UpdateResourceReportNotFound) Error added in v0.0.38

func (*UpdateResourceReportNotFound) GetPayload added in v0.0.38

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

func (*UpdateResourceReportNotFound) IsClientError added in v0.0.38

func (o *UpdateResourceReportNotFound) IsClientError() bool

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

func (*UpdateResourceReportNotFound) IsCode added in v0.0.38

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

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

func (*UpdateResourceReportNotFound) IsRedirect added in v0.0.38

func (o *UpdateResourceReportNotFound) IsRedirect() bool

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

func (*UpdateResourceReportNotFound) IsServerError added in v0.0.38

func (o *UpdateResourceReportNotFound) IsServerError() bool

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

func (*UpdateResourceReportNotFound) IsSuccess added in v0.0.38

func (o *UpdateResourceReportNotFound) IsSuccess() bool

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

func (*UpdateResourceReportNotFound) String added in v0.0.38

type UpdateResourceReportOK added in v0.0.38

type UpdateResourceReportOK struct {
	Payload *models.ResourceReport
}

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

UpdateResourceReportOK update resource report o k

func NewUpdateResourceReportOK added in v0.0.38

func NewUpdateResourceReportOK() *UpdateResourceReportOK

NewUpdateResourceReportOK creates a UpdateResourceReportOK with default headers values

func (*UpdateResourceReportOK) Code added in v0.0.38

func (o *UpdateResourceReportOK) Code() int

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

func (*UpdateResourceReportOK) Error added in v0.0.38

func (o *UpdateResourceReportOK) Error() string

func (*UpdateResourceReportOK) GetPayload added in v0.0.38

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

func (*UpdateResourceReportOK) IsClientError added in v0.0.38

func (o *UpdateResourceReportOK) IsClientError() bool

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

func (*UpdateResourceReportOK) IsCode added in v0.0.38

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

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

func (*UpdateResourceReportOK) IsRedirect added in v0.0.38

func (o *UpdateResourceReportOK) IsRedirect() bool

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

func (*UpdateResourceReportOK) IsServerError added in v0.0.38

func (o *UpdateResourceReportOK) IsServerError() bool

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

func (*UpdateResourceReportOK) IsSuccess added in v0.0.38

func (o *UpdateResourceReportOK) IsSuccess() bool

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

func (*UpdateResourceReportOK) String added in v0.0.38

func (o *UpdateResourceReportOK) String() string

type UpdateResourceReportParams added in v0.0.38

type UpdateResourceReportParams struct {

	// ResourceReportToken.
	ResourceReportToken string

	// UpdateResourceReport.
	UpdateResourceReport *models.UpdateResourceReport

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

UpdateResourceReportParams contains all the parameters to send to the API endpoint

for the update resource report operation.

Typically these are written to a http.Request.

func NewUpdateResourceReportParams added in v0.0.38

func NewUpdateResourceReportParams() *UpdateResourceReportParams

NewUpdateResourceReportParams creates a new UpdateResourceReportParams 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 NewUpdateResourceReportParamsWithContext added in v0.0.38

func NewUpdateResourceReportParamsWithContext(ctx context.Context) *UpdateResourceReportParams

NewUpdateResourceReportParamsWithContext creates a new UpdateResourceReportParams object with the ability to set a context for a request.

func NewUpdateResourceReportParamsWithHTTPClient added in v0.0.38

func NewUpdateResourceReportParamsWithHTTPClient(client *http.Client) *UpdateResourceReportParams

NewUpdateResourceReportParamsWithHTTPClient creates a new UpdateResourceReportParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateResourceReportParamsWithTimeout added in v0.0.38

func NewUpdateResourceReportParamsWithTimeout(timeout time.Duration) *UpdateResourceReportParams

NewUpdateResourceReportParamsWithTimeout creates a new UpdateResourceReportParams object with the ability to set a timeout on a request.

func (*UpdateResourceReportParams) SetContext added in v0.0.38

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

SetContext adds the context to the update resource report params

func (*UpdateResourceReportParams) SetDefaults added in v0.0.38

func (o *UpdateResourceReportParams) SetDefaults()

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

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

func (*UpdateResourceReportParams) SetHTTPClient added in v0.0.38

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

SetHTTPClient adds the HTTPClient to the update resource report params

func (*UpdateResourceReportParams) SetResourceReportToken added in v0.0.38

func (o *UpdateResourceReportParams) SetResourceReportToken(resourceReportToken string)

SetResourceReportToken adds the resourceReportToken to the update resource report params

func (*UpdateResourceReportParams) SetTimeout added in v0.0.38

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

SetTimeout adds the timeout to the update resource report params

func (*UpdateResourceReportParams) SetUpdateResourceReport added in v0.0.38

func (o *UpdateResourceReportParams) SetUpdateResourceReport(updateResourceReport *models.UpdateResourceReport)

SetUpdateResourceReport adds the updateResourceReport to the update resource report params

func (*UpdateResourceReportParams) WithContext added in v0.0.38

WithContext adds the context to the update resource report params

func (*UpdateResourceReportParams) WithDefaults added in v0.0.38

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

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

func (*UpdateResourceReportParams) WithHTTPClient added in v0.0.38

WithHTTPClient adds the HTTPClient to the update resource report params

func (*UpdateResourceReportParams) WithResourceReportToken added in v0.0.38

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

WithResourceReportToken adds the resourceReportToken to the update resource report params

func (*UpdateResourceReportParams) WithTimeout added in v0.0.38

WithTimeout adds the timeout to the update resource report params

func (*UpdateResourceReportParams) WithUpdateResourceReport added in v0.0.38

func (o *UpdateResourceReportParams) WithUpdateResourceReport(updateResourceReport *models.UpdateResourceReport) *UpdateResourceReportParams

WithUpdateResourceReport adds the updateResourceReport to the update resource report params

func (*UpdateResourceReportParams) WriteToRequest added in v0.0.38

WriteToRequest writes these params to a swagger request

type UpdateResourceReportReader added in v0.0.38

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

UpdateResourceReportReader is a Reader for the UpdateResourceReport structure.

func (*UpdateResourceReportReader) ReadResponse added in v0.0.38

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

ReadResponse reads a server response into the received o.

type UpdateResourceReportUnprocessableEntity added in v0.0.38

type UpdateResourceReportUnprocessableEntity struct {
	Payload *models.Errors
}

UpdateResourceReportUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewUpdateResourceReportUnprocessableEntity added in v0.0.38

func NewUpdateResourceReportUnprocessableEntity() *UpdateResourceReportUnprocessableEntity

NewUpdateResourceReportUnprocessableEntity creates a UpdateResourceReportUnprocessableEntity with default headers values

func (*UpdateResourceReportUnprocessableEntity) Code added in v0.0.38

Code gets the status code for the update resource report unprocessable entity response

func (*UpdateResourceReportUnprocessableEntity) Error added in v0.0.38

func (*UpdateResourceReportUnprocessableEntity) GetPayload added in v0.0.38

func (*UpdateResourceReportUnprocessableEntity) IsClientError added in v0.0.38

func (o *UpdateResourceReportUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update resource report unprocessable entity response has a 4xx status code

func (*UpdateResourceReportUnprocessableEntity) IsCode added in v0.0.38

IsCode returns true when this update resource report unprocessable entity response a status code equal to that given

func (*UpdateResourceReportUnprocessableEntity) IsRedirect added in v0.0.38

IsRedirect returns true when this update resource report unprocessable entity response has a 3xx status code

func (*UpdateResourceReportUnprocessableEntity) IsServerError added in v0.0.38

func (o *UpdateResourceReportUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update resource report unprocessable entity response has a 5xx status code

func (*UpdateResourceReportUnprocessableEntity) IsSuccess added in v0.0.38

IsSuccess returns true when this update resource report unprocessable entity response has a 2xx status code

func (*UpdateResourceReportUnprocessableEntity) String added in v0.0.38

Jump to

Keyboard shortcuts

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