operations

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func (*Client) ListRuleEvaluations

func (a *Client) ListRuleEvaluations(params *ListRuleEvaluationsParams, opts ...ClientOption) (*ListRuleEvaluationsOK, error)

ListRuleEvaluations list rule evaluations API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListRuleEvaluations(params *ListRuleEvaluationsParams, opts ...ClientOption) (*ListRuleEvaluationsOK, 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 operations API client.

type ListRuleEvaluationsDefault

type ListRuleEvaluationsDefault struct {
	Payload *models.APIError
	// contains filtered or unexported fields
}

ListRuleEvaluationsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListRuleEvaluationsDefault

func NewListRuleEvaluationsDefault(code int) *ListRuleEvaluationsDefault

NewListRuleEvaluationsDefault creates a ListRuleEvaluationsDefault with default headers values

func (*ListRuleEvaluationsDefault) Code

func (o *ListRuleEvaluationsDefault) Code() int

Code gets the status code for the list rule evaluations default response

func (*ListRuleEvaluationsDefault) Error

func (*ListRuleEvaluationsDefault) GetPayload

func (o *ListRuleEvaluationsDefault) GetPayload() *models.APIError

func (*ListRuleEvaluationsDefault) IsClientError

func (o *ListRuleEvaluationsDefault) IsClientError() bool

IsClientError returns true when this list rule evaluations default response has a 4xx status code

func (*ListRuleEvaluationsDefault) IsCode

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

IsCode returns true when this list rule evaluations default response a status code equal to that given

func (*ListRuleEvaluationsDefault) IsRedirect

func (o *ListRuleEvaluationsDefault) IsRedirect() bool

IsRedirect returns true when this list rule evaluations default response has a 3xx status code

func (*ListRuleEvaluationsDefault) IsServerError

func (o *ListRuleEvaluationsDefault) IsServerError() bool

IsServerError returns true when this list rule evaluations default response has a 5xx status code

func (*ListRuleEvaluationsDefault) IsSuccess

func (o *ListRuleEvaluationsDefault) IsSuccess() bool

IsSuccess returns true when this list rule evaluations default response has a 2xx status code

func (*ListRuleEvaluationsDefault) String

func (o *ListRuleEvaluationsDefault) String() string

type ListRuleEvaluationsOK

type ListRuleEvaluationsOK struct {
	Payload *models.Statev1ListRuleEvaluationsResponse
}

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

A successful response.

func NewListRuleEvaluationsOK

func NewListRuleEvaluationsOK() *ListRuleEvaluationsOK

NewListRuleEvaluationsOK creates a ListRuleEvaluationsOK with default headers values

func (*ListRuleEvaluationsOK) Code

func (o *ListRuleEvaluationsOK) Code() int

Code gets the status code for the list rule evaluations o k response

func (*ListRuleEvaluationsOK) Error

func (o *ListRuleEvaluationsOK) Error() string

func (*ListRuleEvaluationsOK) GetPayload

func (*ListRuleEvaluationsOK) IsClientError

func (o *ListRuleEvaluationsOK) IsClientError() bool

IsClientError returns true when this list rule evaluations o k response has a 4xx status code

func (*ListRuleEvaluationsOK) IsCode

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

IsCode returns true when this list rule evaluations o k response a status code equal to that given

func (*ListRuleEvaluationsOK) IsRedirect

func (o *ListRuleEvaluationsOK) IsRedirect() bool

IsRedirect returns true when this list rule evaluations o k response has a 3xx status code

func (*ListRuleEvaluationsOK) IsServerError

func (o *ListRuleEvaluationsOK) IsServerError() bool

IsServerError returns true when this list rule evaluations o k response has a 5xx status code

func (*ListRuleEvaluationsOK) IsSuccess

func (o *ListRuleEvaluationsOK) IsSuccess() bool

IsSuccess returns true when this list rule evaluations o k response has a 2xx status code

func (*ListRuleEvaluationsOK) String

func (o *ListRuleEvaluationsOK) String() string

type ListRuleEvaluationsParams

type ListRuleEvaluationsParams struct {

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

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

ListRuleEvaluationsParams contains all the parameters to send to the API endpoint

for the list rule evaluations operation.

Typically these are written to a http.Request.

func NewListRuleEvaluationsParams

func NewListRuleEvaluationsParams() *ListRuleEvaluationsParams

NewListRuleEvaluationsParams creates a new ListRuleEvaluationsParams 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 NewListRuleEvaluationsParamsWithContext

func NewListRuleEvaluationsParamsWithContext(ctx context.Context) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithContext creates a new ListRuleEvaluationsParams object with the ability to set a context for a request.

func NewListRuleEvaluationsParamsWithHTTPClient

func NewListRuleEvaluationsParamsWithHTTPClient(client *http.Client) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithHTTPClient creates a new ListRuleEvaluationsParams object with the ability to set a custom HTTPClient for a request.

func NewListRuleEvaluationsParamsWithTimeout

func NewListRuleEvaluationsParamsWithTimeout(timeout time.Duration) *ListRuleEvaluationsParams

NewListRuleEvaluationsParamsWithTimeout creates a new ListRuleEvaluationsParams object with the ability to set a timeout on a request.

func (*ListRuleEvaluationsParams) SetContext

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

SetContext adds the context to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetDefaults

func (o *ListRuleEvaluationsParams) SetDefaults()

SetDefaults hydrates default values in the list rule evaluations params (not the query body).

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

func (*ListRuleEvaluationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetPageMaxSize

func (o *ListRuleEvaluationsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetPageToken

func (o *ListRuleEvaluationsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list rule evaluations params

func (*ListRuleEvaluationsParams) SetTimeout

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

SetTimeout adds the timeout to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithContext

WithContext adds the context to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithDefaults

WithDefaults hydrates default values in the list rule evaluations params (not the query body).

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

func (*ListRuleEvaluationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithPageMaxSize

func (o *ListRuleEvaluationsParams) WithPageMaxSize(pageMaxSize *int64) *ListRuleEvaluationsParams

WithPageMaxSize adds the pageMaxSize to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithPageToken

func (o *ListRuleEvaluationsParams) WithPageToken(pageToken *string) *ListRuleEvaluationsParams

WithPageToken adds the pageToken to the list rule evaluations params

func (*ListRuleEvaluationsParams) WithTimeout

WithTimeout adds the timeout to the list rule evaluations params

func (*ListRuleEvaluationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRuleEvaluationsReader

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

ListRuleEvaluationsReader is a Reader for the ListRuleEvaluations structure.

func (*ListRuleEvaluationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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