filters

package
v0.0.0-...-417219d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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 filters API

func (*Client) CreateSavedFilter

func (a *Client) CreateSavedFilter(params *CreateSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSavedFilterCreated, error)

CreateSavedFilter Create a SavedFilter for CostReports.

func (*Client) DeleteSavedFilter

func (a *Client) DeleteSavedFilter(params *DeleteSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSavedFilterNoContent, error)

DeleteSavedFilter Delete a SavedFilter for CostReports.

func (*Client) GetSavedFilter

func (a *Client) GetSavedFilter(params *GetSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSavedFilterOK, error)

GetSavedFilter Return a specific SavedFilter.

func (*Client) GetSavedFilters

func (a *Client) GetSavedFilters(params *GetSavedFiltersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSavedFiltersOK, error)

GetSavedFilters Return all SavedFilters that can be applied to a CostReport.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateSavedFilter

func (a *Client) UpdateSavedFilter(params *UpdateSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSavedFilterOK, error)

UpdateSavedFilter Update a SavedFilter for CostReports.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateSavedFilter(params *CreateSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSavedFilterCreated, error)

	DeleteSavedFilter(params *DeleteSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSavedFilterNoContent, error)

	GetSavedFilter(params *GetSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSavedFilterOK, error)

	GetSavedFilters(params *GetSavedFiltersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSavedFiltersOK, error)

	UpdateSavedFilter(params *UpdateSavedFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSavedFilterOK, 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 filters API client.

type CreateSavedFilterBadRequest

type CreateSavedFilterBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewCreateSavedFilterBadRequest

func NewCreateSavedFilterBadRequest() *CreateSavedFilterBadRequest

NewCreateSavedFilterBadRequest creates a CreateSavedFilterBadRequest with default headers values

func (*CreateSavedFilterBadRequest) Code

func (o *CreateSavedFilterBadRequest) Code() int

Code gets the status code for the create saved filter bad request response

func (*CreateSavedFilterBadRequest) Error

func (*CreateSavedFilterBadRequest) GetPayload

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

func (*CreateSavedFilterBadRequest) IsClientError

func (o *CreateSavedFilterBadRequest) IsClientError() bool

IsClientError returns true when this create saved filter bad request response has a 4xx status code

func (*CreateSavedFilterBadRequest) IsCode

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

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

func (*CreateSavedFilterBadRequest) IsRedirect

func (o *CreateSavedFilterBadRequest) IsRedirect() bool

IsRedirect returns true when this create saved filter bad request response has a 3xx status code

func (*CreateSavedFilterBadRequest) IsServerError

func (o *CreateSavedFilterBadRequest) IsServerError() bool

IsServerError returns true when this create saved filter bad request response has a 5xx status code

func (*CreateSavedFilterBadRequest) IsSuccess

func (o *CreateSavedFilterBadRequest) IsSuccess() bool

IsSuccess returns true when this create saved filter bad request response has a 2xx status code

func (*CreateSavedFilterBadRequest) String

func (o *CreateSavedFilterBadRequest) String() string

type CreateSavedFilterCreated

type CreateSavedFilterCreated struct {
	Payload *models.SavedFilter
}

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

CreateSavedFilterCreated create saved filter created

func NewCreateSavedFilterCreated

func NewCreateSavedFilterCreated() *CreateSavedFilterCreated

NewCreateSavedFilterCreated creates a CreateSavedFilterCreated with default headers values

func (*CreateSavedFilterCreated) Code

func (o *CreateSavedFilterCreated) Code() int

Code gets the status code for the create saved filter created response

func (*CreateSavedFilterCreated) Error

func (o *CreateSavedFilterCreated) Error() string

func (*CreateSavedFilterCreated) GetPayload

func (o *CreateSavedFilterCreated) GetPayload() *models.SavedFilter

func (*CreateSavedFilterCreated) IsClientError

func (o *CreateSavedFilterCreated) IsClientError() bool

IsClientError returns true when this create saved filter created response has a 4xx status code

func (*CreateSavedFilterCreated) IsCode

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

IsCode returns true when this create saved filter created response a status code equal to that given

func (*CreateSavedFilterCreated) IsRedirect

func (o *CreateSavedFilterCreated) IsRedirect() bool

IsRedirect returns true when this create saved filter created response has a 3xx status code

func (*CreateSavedFilterCreated) IsServerError

func (o *CreateSavedFilterCreated) IsServerError() bool

IsServerError returns true when this create saved filter created response has a 5xx status code

func (*CreateSavedFilterCreated) IsSuccess

func (o *CreateSavedFilterCreated) IsSuccess() bool

IsSuccess returns true when this create saved filter created response has a 2xx status code

func (*CreateSavedFilterCreated) String

func (o *CreateSavedFilterCreated) String() string

type CreateSavedFilterParams

type CreateSavedFilterParams struct {

	// SavedFilters.
	SavedFilters *models.PostSavedFilters

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

CreateSavedFilterParams contains all the parameters to send to the API endpoint

for the create saved filter operation.

Typically these are written to a http.Request.

func NewCreateSavedFilterParams

func NewCreateSavedFilterParams() *CreateSavedFilterParams

NewCreateSavedFilterParams creates a new CreateSavedFilterParams 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 NewCreateSavedFilterParamsWithContext

func NewCreateSavedFilterParamsWithContext(ctx context.Context) *CreateSavedFilterParams

NewCreateSavedFilterParamsWithContext creates a new CreateSavedFilterParams object with the ability to set a context for a request.

func NewCreateSavedFilterParamsWithHTTPClient

func NewCreateSavedFilterParamsWithHTTPClient(client *http.Client) *CreateSavedFilterParams

NewCreateSavedFilterParamsWithHTTPClient creates a new CreateSavedFilterParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSavedFilterParamsWithTimeout

func NewCreateSavedFilterParamsWithTimeout(timeout time.Duration) *CreateSavedFilterParams

NewCreateSavedFilterParamsWithTimeout creates a new CreateSavedFilterParams object with the ability to set a timeout on a request.

func (*CreateSavedFilterParams) SetContext

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

SetContext adds the context to the create saved filter params

func (*CreateSavedFilterParams) SetDefaults

func (o *CreateSavedFilterParams) SetDefaults()

SetDefaults hydrates default values in the create saved filter params (not the query body).

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

func (*CreateSavedFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create saved filter params

func (*CreateSavedFilterParams) SetSavedFilters

func (o *CreateSavedFilterParams) SetSavedFilters(savedFilters *models.PostSavedFilters)

SetSavedFilters adds the savedFilters to the create saved filter params

func (*CreateSavedFilterParams) SetTimeout

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

SetTimeout adds the timeout to the create saved filter params

func (*CreateSavedFilterParams) WithContext

WithContext adds the context to the create saved filter params

func (*CreateSavedFilterParams) WithDefaults

WithDefaults hydrates default values in the create saved filter params (not the query body).

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

func (*CreateSavedFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create saved filter params

func (*CreateSavedFilterParams) WithSavedFilters

func (o *CreateSavedFilterParams) WithSavedFilters(savedFilters *models.PostSavedFilters) *CreateSavedFilterParams

WithSavedFilters adds the savedFilters to the create saved filter params

func (*CreateSavedFilterParams) WithTimeout

WithTimeout adds the timeout to the create saved filter params

func (*CreateSavedFilterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSavedFilterReader

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

CreateSavedFilterReader is a Reader for the CreateSavedFilter structure.

func (*CreateSavedFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSavedFilterUnprocessableEntity

type CreateSavedFilterUnprocessableEntity struct {
	Payload *models.Errors
}

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

UnprocessableEntity

func NewCreateSavedFilterUnprocessableEntity

func NewCreateSavedFilterUnprocessableEntity() *CreateSavedFilterUnprocessableEntity

NewCreateSavedFilterUnprocessableEntity creates a CreateSavedFilterUnprocessableEntity with default headers values

func (*CreateSavedFilterUnprocessableEntity) Code

Code gets the status code for the create saved filter unprocessable entity response

func (*CreateSavedFilterUnprocessableEntity) Error

func (*CreateSavedFilterUnprocessableEntity) GetPayload

func (*CreateSavedFilterUnprocessableEntity) IsClientError

func (o *CreateSavedFilterUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create saved filter unprocessable entity response has a 4xx status code

func (*CreateSavedFilterUnprocessableEntity) IsCode

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

func (*CreateSavedFilterUnprocessableEntity) IsRedirect

IsRedirect returns true when this create saved filter unprocessable entity response has a 3xx status code

func (*CreateSavedFilterUnprocessableEntity) IsServerError

func (o *CreateSavedFilterUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create saved filter unprocessable entity response has a 5xx status code

func (*CreateSavedFilterUnprocessableEntity) IsSuccess

IsSuccess returns true when this create saved filter unprocessable entity response has a 2xx status code

func (*CreateSavedFilterUnprocessableEntity) String

type DeleteSavedFilterNoContent

type DeleteSavedFilterNoContent struct {
	Payload *models.SavedFilter
}

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

DeleteSavedFilterNoContent delete saved filter no content

func NewDeleteSavedFilterNoContent

func NewDeleteSavedFilterNoContent() *DeleteSavedFilterNoContent

NewDeleteSavedFilterNoContent creates a DeleteSavedFilterNoContent with default headers values

func (*DeleteSavedFilterNoContent) Code

func (o *DeleteSavedFilterNoContent) Code() int

Code gets the status code for the delete saved filter no content response

func (*DeleteSavedFilterNoContent) Error

func (*DeleteSavedFilterNoContent) GetPayload

func (*DeleteSavedFilterNoContent) IsClientError

func (o *DeleteSavedFilterNoContent) IsClientError() bool

IsClientError returns true when this delete saved filter no content response has a 4xx status code

func (*DeleteSavedFilterNoContent) IsCode

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

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

func (*DeleteSavedFilterNoContent) IsRedirect

func (o *DeleteSavedFilterNoContent) IsRedirect() bool

IsRedirect returns true when this delete saved filter no content response has a 3xx status code

func (*DeleteSavedFilterNoContent) IsServerError

func (o *DeleteSavedFilterNoContent) IsServerError() bool

IsServerError returns true when this delete saved filter no content response has a 5xx status code

func (*DeleteSavedFilterNoContent) IsSuccess

func (o *DeleteSavedFilterNoContent) IsSuccess() bool

IsSuccess returns true when this delete saved filter no content response has a 2xx status code

func (*DeleteSavedFilterNoContent) String

func (o *DeleteSavedFilterNoContent) String() string

type DeleteSavedFilterNotFound

type DeleteSavedFilterNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewDeleteSavedFilterNotFound

func NewDeleteSavedFilterNotFound() *DeleteSavedFilterNotFound

NewDeleteSavedFilterNotFound creates a DeleteSavedFilterNotFound with default headers values

func (*DeleteSavedFilterNotFound) Code

func (o *DeleteSavedFilterNotFound) Code() int

Code gets the status code for the delete saved filter not found response

func (*DeleteSavedFilterNotFound) Error

func (o *DeleteSavedFilterNotFound) Error() string

func (*DeleteSavedFilterNotFound) GetPayload

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

func (*DeleteSavedFilterNotFound) IsClientError

func (o *DeleteSavedFilterNotFound) IsClientError() bool

IsClientError returns true when this delete saved filter not found response has a 4xx status code

func (*DeleteSavedFilterNotFound) IsCode

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

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

func (*DeleteSavedFilterNotFound) IsRedirect

func (o *DeleteSavedFilterNotFound) IsRedirect() bool

IsRedirect returns true when this delete saved filter not found response has a 3xx status code

func (*DeleteSavedFilterNotFound) IsServerError

func (o *DeleteSavedFilterNotFound) IsServerError() bool

IsServerError returns true when this delete saved filter not found response has a 5xx status code

func (*DeleteSavedFilterNotFound) IsSuccess

func (o *DeleteSavedFilterNotFound) IsSuccess() bool

IsSuccess returns true when this delete saved filter not found response has a 2xx status code

func (*DeleteSavedFilterNotFound) String

func (o *DeleteSavedFilterNotFound) String() string

type DeleteSavedFilterParams

type DeleteSavedFilterParams struct {

	// SavedFilterToken.
	SavedFilterToken string

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

DeleteSavedFilterParams contains all the parameters to send to the API endpoint

for the delete saved filter operation.

Typically these are written to a http.Request.

func NewDeleteSavedFilterParams

func NewDeleteSavedFilterParams() *DeleteSavedFilterParams

NewDeleteSavedFilterParams creates a new DeleteSavedFilterParams 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 NewDeleteSavedFilterParamsWithContext

func NewDeleteSavedFilterParamsWithContext(ctx context.Context) *DeleteSavedFilterParams

NewDeleteSavedFilterParamsWithContext creates a new DeleteSavedFilterParams object with the ability to set a context for a request.

func NewDeleteSavedFilterParamsWithHTTPClient

func NewDeleteSavedFilterParamsWithHTTPClient(client *http.Client) *DeleteSavedFilterParams

NewDeleteSavedFilterParamsWithHTTPClient creates a new DeleteSavedFilterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSavedFilterParamsWithTimeout

func NewDeleteSavedFilterParamsWithTimeout(timeout time.Duration) *DeleteSavedFilterParams

NewDeleteSavedFilterParamsWithTimeout creates a new DeleteSavedFilterParams object with the ability to set a timeout on a request.

func (*DeleteSavedFilterParams) SetContext

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

SetContext adds the context to the delete saved filter params

func (*DeleteSavedFilterParams) SetDefaults

func (o *DeleteSavedFilterParams) SetDefaults()

SetDefaults hydrates default values in the delete saved filter params (not the query body).

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

func (*DeleteSavedFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete saved filter params

func (*DeleteSavedFilterParams) SetSavedFilterToken

func (o *DeleteSavedFilterParams) SetSavedFilterToken(savedFilterToken string)

SetSavedFilterToken adds the savedFilterToken to the delete saved filter params

func (*DeleteSavedFilterParams) SetTimeout

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

SetTimeout adds the timeout to the delete saved filter params

func (*DeleteSavedFilterParams) WithContext

WithContext adds the context to the delete saved filter params

func (*DeleteSavedFilterParams) WithDefaults

WithDefaults hydrates default values in the delete saved filter params (not the query body).

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

func (*DeleteSavedFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete saved filter params

func (*DeleteSavedFilterParams) WithSavedFilterToken

func (o *DeleteSavedFilterParams) WithSavedFilterToken(savedFilterToken string) *DeleteSavedFilterParams

WithSavedFilterToken adds the savedFilterToken to the delete saved filter params

func (*DeleteSavedFilterParams) WithTimeout

WithTimeout adds the timeout to the delete saved filter params

func (*DeleteSavedFilterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSavedFilterReader

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

DeleteSavedFilterReader is a Reader for the DeleteSavedFilter structure.

func (*DeleteSavedFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSavedFilterNotFound

type GetSavedFilterNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewGetSavedFilterNotFound

func NewGetSavedFilterNotFound() *GetSavedFilterNotFound

NewGetSavedFilterNotFound creates a GetSavedFilterNotFound with default headers values

func (*GetSavedFilterNotFound) Code

func (o *GetSavedFilterNotFound) Code() int

Code gets the status code for the get saved filter not found response

func (*GetSavedFilterNotFound) Error

func (o *GetSavedFilterNotFound) Error() string

func (*GetSavedFilterNotFound) GetPayload

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

func (*GetSavedFilterNotFound) IsClientError

func (o *GetSavedFilterNotFound) IsClientError() bool

IsClientError returns true when this get saved filter not found response has a 4xx status code

func (*GetSavedFilterNotFound) IsCode

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

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

func (*GetSavedFilterNotFound) IsRedirect

func (o *GetSavedFilterNotFound) IsRedirect() bool

IsRedirect returns true when this get saved filter not found response has a 3xx status code

func (*GetSavedFilterNotFound) IsServerError

func (o *GetSavedFilterNotFound) IsServerError() bool

IsServerError returns true when this get saved filter not found response has a 5xx status code

func (*GetSavedFilterNotFound) IsSuccess

func (o *GetSavedFilterNotFound) IsSuccess() bool

IsSuccess returns true when this get saved filter not found response has a 2xx status code

func (*GetSavedFilterNotFound) String

func (o *GetSavedFilterNotFound) String() string

type GetSavedFilterOK

type GetSavedFilterOK struct {
	Payload *models.SavedFilter
}

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

GetSavedFilterOK get saved filter o k

func NewGetSavedFilterOK

func NewGetSavedFilterOK() *GetSavedFilterOK

NewGetSavedFilterOK creates a GetSavedFilterOK with default headers values

func (*GetSavedFilterOK) Code

func (o *GetSavedFilterOK) Code() int

Code gets the status code for the get saved filter o k response

func (*GetSavedFilterOK) Error

func (o *GetSavedFilterOK) Error() string

func (*GetSavedFilterOK) GetPayload

func (o *GetSavedFilterOK) GetPayload() *models.SavedFilter

func (*GetSavedFilterOK) IsClientError

func (o *GetSavedFilterOK) IsClientError() bool

IsClientError returns true when this get saved filter o k response has a 4xx status code

func (*GetSavedFilterOK) IsCode

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

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

func (*GetSavedFilterOK) IsRedirect

func (o *GetSavedFilterOK) IsRedirect() bool

IsRedirect returns true when this get saved filter o k response has a 3xx status code

func (*GetSavedFilterOK) IsServerError

func (o *GetSavedFilterOK) IsServerError() bool

IsServerError returns true when this get saved filter o k response has a 5xx status code

func (*GetSavedFilterOK) IsSuccess

func (o *GetSavedFilterOK) IsSuccess() bool

IsSuccess returns true when this get saved filter o k response has a 2xx status code

func (*GetSavedFilterOK) String

func (o *GetSavedFilterOK) String() string

type GetSavedFilterParams

type GetSavedFilterParams struct {

	// SavedFilterToken.
	SavedFilterToken string

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

GetSavedFilterParams contains all the parameters to send to the API endpoint

for the get saved filter operation.

Typically these are written to a http.Request.

func NewGetSavedFilterParams

func NewGetSavedFilterParams() *GetSavedFilterParams

NewGetSavedFilterParams creates a new GetSavedFilterParams 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 NewGetSavedFilterParamsWithContext

func NewGetSavedFilterParamsWithContext(ctx context.Context) *GetSavedFilterParams

NewGetSavedFilterParamsWithContext creates a new GetSavedFilterParams object with the ability to set a context for a request.

func NewGetSavedFilterParamsWithHTTPClient

func NewGetSavedFilterParamsWithHTTPClient(client *http.Client) *GetSavedFilterParams

NewGetSavedFilterParamsWithHTTPClient creates a new GetSavedFilterParams object with the ability to set a custom HTTPClient for a request.

func NewGetSavedFilterParamsWithTimeout

func NewGetSavedFilterParamsWithTimeout(timeout time.Duration) *GetSavedFilterParams

NewGetSavedFilterParamsWithTimeout creates a new GetSavedFilterParams object with the ability to set a timeout on a request.

func (*GetSavedFilterParams) SetContext

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

SetContext adds the context to the get saved filter params

func (*GetSavedFilterParams) SetDefaults

func (o *GetSavedFilterParams) SetDefaults()

SetDefaults hydrates default values in the get saved filter params (not the query body).

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

func (*GetSavedFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get saved filter params

func (*GetSavedFilterParams) SetSavedFilterToken

func (o *GetSavedFilterParams) SetSavedFilterToken(savedFilterToken string)

SetSavedFilterToken adds the savedFilterToken to the get saved filter params

func (*GetSavedFilterParams) SetTimeout

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

SetTimeout adds the timeout to the get saved filter params

func (*GetSavedFilterParams) WithContext

WithContext adds the context to the get saved filter params

func (*GetSavedFilterParams) WithDefaults

func (o *GetSavedFilterParams) WithDefaults() *GetSavedFilterParams

WithDefaults hydrates default values in the get saved filter params (not the query body).

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

func (*GetSavedFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get saved filter params

func (*GetSavedFilterParams) WithSavedFilterToken

func (o *GetSavedFilterParams) WithSavedFilterToken(savedFilterToken string) *GetSavedFilterParams

WithSavedFilterToken adds the savedFilterToken to the get saved filter params

func (*GetSavedFilterParams) WithTimeout

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

WithTimeout adds the timeout to the get saved filter params

func (*GetSavedFilterParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSavedFilterReader

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

GetSavedFilterReader is a Reader for the GetSavedFilter structure.

func (*GetSavedFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSavedFiltersOK

type GetSavedFiltersOK struct {
	Payload *models.SavedFilters
}

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

GetSavedFiltersOK get saved filters o k

func NewGetSavedFiltersOK

func NewGetSavedFiltersOK() *GetSavedFiltersOK

NewGetSavedFiltersOK creates a GetSavedFiltersOK with default headers values

func (*GetSavedFiltersOK) Code

func (o *GetSavedFiltersOK) Code() int

Code gets the status code for the get saved filters o k response

func (*GetSavedFiltersOK) Error

func (o *GetSavedFiltersOK) Error() string

func (*GetSavedFiltersOK) GetPayload

func (o *GetSavedFiltersOK) GetPayload() *models.SavedFilters

func (*GetSavedFiltersOK) IsClientError

func (o *GetSavedFiltersOK) IsClientError() bool

IsClientError returns true when this get saved filters o k response has a 4xx status code

func (*GetSavedFiltersOK) IsCode

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

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

func (*GetSavedFiltersOK) IsRedirect

func (o *GetSavedFiltersOK) IsRedirect() bool

IsRedirect returns true when this get saved filters o k response has a 3xx status code

func (*GetSavedFiltersOK) IsServerError

func (o *GetSavedFiltersOK) IsServerError() bool

IsServerError returns true when this get saved filters o k response has a 5xx status code

func (*GetSavedFiltersOK) IsSuccess

func (o *GetSavedFiltersOK) IsSuccess() bool

IsSuccess returns true when this get saved filters o k response has a 2xx status code

func (*GetSavedFiltersOK) String

func (o *GetSavedFiltersOK) String() string

type GetSavedFiltersParams

type GetSavedFiltersParams struct {

	/* Limit.

	   The amount 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
}

GetSavedFiltersParams contains all the parameters to send to the API endpoint

for the get saved filters operation.

Typically these are written to a http.Request.

func NewGetSavedFiltersParams

func NewGetSavedFiltersParams() *GetSavedFiltersParams

NewGetSavedFiltersParams creates a new GetSavedFiltersParams 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 NewGetSavedFiltersParamsWithContext

func NewGetSavedFiltersParamsWithContext(ctx context.Context) *GetSavedFiltersParams

NewGetSavedFiltersParamsWithContext creates a new GetSavedFiltersParams object with the ability to set a context for a request.

func NewGetSavedFiltersParamsWithHTTPClient

func NewGetSavedFiltersParamsWithHTTPClient(client *http.Client) *GetSavedFiltersParams

NewGetSavedFiltersParamsWithHTTPClient creates a new GetSavedFiltersParams object with the ability to set a custom HTTPClient for a request.

func NewGetSavedFiltersParamsWithTimeout

func NewGetSavedFiltersParamsWithTimeout(timeout time.Duration) *GetSavedFiltersParams

NewGetSavedFiltersParamsWithTimeout creates a new GetSavedFiltersParams object with the ability to set a timeout on a request.

func (*GetSavedFiltersParams) SetContext

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

SetContext adds the context to the get saved filters params

func (*GetSavedFiltersParams) SetDefaults

func (o *GetSavedFiltersParams) SetDefaults()

SetDefaults hydrates default values in the get saved filters params (not the query body).

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

func (*GetSavedFiltersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get saved filters params

func (*GetSavedFiltersParams) SetLimit

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

SetLimit adds the limit to the get saved filters params

func (*GetSavedFiltersParams) SetPage

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

SetPage adds the page to the get saved filters params

func (*GetSavedFiltersParams) SetTimeout

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

SetTimeout adds the timeout to the get saved filters params

func (*GetSavedFiltersParams) WithContext

WithContext adds the context to the get saved filters params

func (*GetSavedFiltersParams) WithDefaults

func (o *GetSavedFiltersParams) WithDefaults() *GetSavedFiltersParams

WithDefaults hydrates default values in the get saved filters params (not the query body).

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

func (*GetSavedFiltersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get saved filters params

func (*GetSavedFiltersParams) WithLimit

func (o *GetSavedFiltersParams) WithLimit(limit *int32) *GetSavedFiltersParams

WithLimit adds the limit to the get saved filters params

func (*GetSavedFiltersParams) WithPage

WithPage adds the page to the get saved filters params

func (*GetSavedFiltersParams) WithTimeout

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

WithTimeout adds the timeout to the get saved filters params

func (*GetSavedFiltersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSavedFiltersReader

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

GetSavedFiltersReader is a Reader for the GetSavedFilters structure.

func (*GetSavedFiltersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSavedFilterBadRequest

type UpdateSavedFilterBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewUpdateSavedFilterBadRequest

func NewUpdateSavedFilterBadRequest() *UpdateSavedFilterBadRequest

NewUpdateSavedFilterBadRequest creates a UpdateSavedFilterBadRequest with default headers values

func (*UpdateSavedFilterBadRequest) Code

func (o *UpdateSavedFilterBadRequest) Code() int

Code gets the status code for the update saved filter bad request response

func (*UpdateSavedFilterBadRequest) Error

func (*UpdateSavedFilterBadRequest) GetPayload

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

func (*UpdateSavedFilterBadRequest) IsClientError

func (o *UpdateSavedFilterBadRequest) IsClientError() bool

IsClientError returns true when this update saved filter bad request response has a 4xx status code

func (*UpdateSavedFilterBadRequest) IsCode

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

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

func (*UpdateSavedFilterBadRequest) IsRedirect

func (o *UpdateSavedFilterBadRequest) IsRedirect() bool

IsRedirect returns true when this update saved filter bad request response has a 3xx status code

func (*UpdateSavedFilterBadRequest) IsServerError

func (o *UpdateSavedFilterBadRequest) IsServerError() bool

IsServerError returns true when this update saved filter bad request response has a 5xx status code

func (*UpdateSavedFilterBadRequest) IsSuccess

func (o *UpdateSavedFilterBadRequest) IsSuccess() bool

IsSuccess returns true when this update saved filter bad request response has a 2xx status code

func (*UpdateSavedFilterBadRequest) String

func (o *UpdateSavedFilterBadRequest) String() string

type UpdateSavedFilterNotFound

type UpdateSavedFilterNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewUpdateSavedFilterNotFound

func NewUpdateSavedFilterNotFound() *UpdateSavedFilterNotFound

NewUpdateSavedFilterNotFound creates a UpdateSavedFilterNotFound with default headers values

func (*UpdateSavedFilterNotFound) Code

func (o *UpdateSavedFilterNotFound) Code() int

Code gets the status code for the update saved filter not found response

func (*UpdateSavedFilterNotFound) Error

func (o *UpdateSavedFilterNotFound) Error() string

func (*UpdateSavedFilterNotFound) GetPayload

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

func (*UpdateSavedFilterNotFound) IsClientError

func (o *UpdateSavedFilterNotFound) IsClientError() bool

IsClientError returns true when this update saved filter not found response has a 4xx status code

func (*UpdateSavedFilterNotFound) IsCode

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

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

func (*UpdateSavedFilterNotFound) IsRedirect

func (o *UpdateSavedFilterNotFound) IsRedirect() bool

IsRedirect returns true when this update saved filter not found response has a 3xx status code

func (*UpdateSavedFilterNotFound) IsServerError

func (o *UpdateSavedFilterNotFound) IsServerError() bool

IsServerError returns true when this update saved filter not found response has a 5xx status code

func (*UpdateSavedFilterNotFound) IsSuccess

func (o *UpdateSavedFilterNotFound) IsSuccess() bool

IsSuccess returns true when this update saved filter not found response has a 2xx status code

func (*UpdateSavedFilterNotFound) String

func (o *UpdateSavedFilterNotFound) String() string

type UpdateSavedFilterOK

type UpdateSavedFilterOK struct {
	Payload *models.SavedFilter
}

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

UpdateSavedFilterOK update saved filter o k

func NewUpdateSavedFilterOK

func NewUpdateSavedFilterOK() *UpdateSavedFilterOK

NewUpdateSavedFilterOK creates a UpdateSavedFilterOK with default headers values

func (*UpdateSavedFilterOK) Code

func (o *UpdateSavedFilterOK) Code() int

Code gets the status code for the update saved filter o k response

func (*UpdateSavedFilterOK) Error

func (o *UpdateSavedFilterOK) Error() string

func (*UpdateSavedFilterOK) GetPayload

func (o *UpdateSavedFilterOK) GetPayload() *models.SavedFilter

func (*UpdateSavedFilterOK) IsClientError

func (o *UpdateSavedFilterOK) IsClientError() bool

IsClientError returns true when this update saved filter o k response has a 4xx status code

func (*UpdateSavedFilterOK) IsCode

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

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

func (*UpdateSavedFilterOK) IsRedirect

func (o *UpdateSavedFilterOK) IsRedirect() bool

IsRedirect returns true when this update saved filter o k response has a 3xx status code

func (*UpdateSavedFilterOK) IsServerError

func (o *UpdateSavedFilterOK) IsServerError() bool

IsServerError returns true when this update saved filter o k response has a 5xx status code

func (*UpdateSavedFilterOK) IsSuccess

func (o *UpdateSavedFilterOK) IsSuccess() bool

IsSuccess returns true when this update saved filter o k response has a 2xx status code

func (*UpdateSavedFilterOK) String

func (o *UpdateSavedFilterOK) String() string

type UpdateSavedFilterParams

type UpdateSavedFilterParams struct {

	// SavedFilters.
	SavedFilters *models.PutSavedFilters

	// SavedFilterToken.
	SavedFilterToken string

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

UpdateSavedFilterParams contains all the parameters to send to the API endpoint

for the update saved filter operation.

Typically these are written to a http.Request.

func NewUpdateSavedFilterParams

func NewUpdateSavedFilterParams() *UpdateSavedFilterParams

NewUpdateSavedFilterParams creates a new UpdateSavedFilterParams 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 NewUpdateSavedFilterParamsWithContext

func NewUpdateSavedFilterParamsWithContext(ctx context.Context) *UpdateSavedFilterParams

NewUpdateSavedFilterParamsWithContext creates a new UpdateSavedFilterParams object with the ability to set a context for a request.

func NewUpdateSavedFilterParamsWithHTTPClient

func NewUpdateSavedFilterParamsWithHTTPClient(client *http.Client) *UpdateSavedFilterParams

NewUpdateSavedFilterParamsWithHTTPClient creates a new UpdateSavedFilterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateSavedFilterParamsWithTimeout

func NewUpdateSavedFilterParamsWithTimeout(timeout time.Duration) *UpdateSavedFilterParams

NewUpdateSavedFilterParamsWithTimeout creates a new UpdateSavedFilterParams object with the ability to set a timeout on a request.

func (*UpdateSavedFilterParams) SetContext

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

SetContext adds the context to the update saved filter params

func (*UpdateSavedFilterParams) SetDefaults

func (o *UpdateSavedFilterParams) SetDefaults()

SetDefaults hydrates default values in the update saved filter params (not the query body).

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

func (*UpdateSavedFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update saved filter params

func (*UpdateSavedFilterParams) SetSavedFilterToken

func (o *UpdateSavedFilterParams) SetSavedFilterToken(savedFilterToken string)

SetSavedFilterToken adds the savedFilterToken to the update saved filter params

func (*UpdateSavedFilterParams) SetSavedFilters

func (o *UpdateSavedFilterParams) SetSavedFilters(savedFilters *models.PutSavedFilters)

SetSavedFilters adds the savedFilters to the update saved filter params

func (*UpdateSavedFilterParams) SetTimeout

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

SetTimeout adds the timeout to the update saved filter params

func (*UpdateSavedFilterParams) WithContext

WithContext adds the context to the update saved filter params

func (*UpdateSavedFilterParams) WithDefaults

WithDefaults hydrates default values in the update saved filter params (not the query body).

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

func (*UpdateSavedFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update saved filter params

func (*UpdateSavedFilterParams) WithSavedFilterToken

func (o *UpdateSavedFilterParams) WithSavedFilterToken(savedFilterToken string) *UpdateSavedFilterParams

WithSavedFilterToken adds the savedFilterToken to the update saved filter params

func (*UpdateSavedFilterParams) WithSavedFilters

func (o *UpdateSavedFilterParams) WithSavedFilters(savedFilters *models.PutSavedFilters) *UpdateSavedFilterParams

WithSavedFilters adds the savedFilters to the update saved filter params

func (*UpdateSavedFilterParams) WithTimeout

WithTimeout adds the timeout to the update saved filter params

func (*UpdateSavedFilterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateSavedFilterReader

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

UpdateSavedFilterReader is a Reader for the UpdateSavedFilter structure.

func (*UpdateSavedFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSavedFilterUnprocessableEntity

type UpdateSavedFilterUnprocessableEntity struct {
	Payload *models.Errors
}

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

UnprocessableEntity

func NewUpdateSavedFilterUnprocessableEntity

func NewUpdateSavedFilterUnprocessableEntity() *UpdateSavedFilterUnprocessableEntity

NewUpdateSavedFilterUnprocessableEntity creates a UpdateSavedFilterUnprocessableEntity with default headers values

func (*UpdateSavedFilterUnprocessableEntity) Code

Code gets the status code for the update saved filter unprocessable entity response

func (*UpdateSavedFilterUnprocessableEntity) Error

func (*UpdateSavedFilterUnprocessableEntity) GetPayload

func (*UpdateSavedFilterUnprocessableEntity) IsClientError

func (o *UpdateSavedFilterUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update saved filter unprocessable entity response has a 4xx status code

func (*UpdateSavedFilterUnprocessableEntity) IsCode

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

func (*UpdateSavedFilterUnprocessableEntity) IsRedirect

IsRedirect returns true when this update saved filter unprocessable entity response has a 3xx status code

func (*UpdateSavedFilterUnprocessableEntity) IsServerError

func (o *UpdateSavedFilterUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update saved filter unprocessable entity response has a 5xx status code

func (*UpdateSavedFilterUnprocessableEntity) IsSuccess

IsSuccess returns true when this update saved filter unprocessable entity response has a 2xx status code

func (*UpdateSavedFilterUnprocessableEntity) String

Jump to

Keyboard shortcuts

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