circuit

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 10 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 circuit API

func (*Client) DeleteCircuit

func (a *Client) DeleteCircuit(params *DeleteCircuitParams, opts ...ClientOption) (*DeleteCircuitOK, error)

DeleteCircuit deletes a circuit

Delete a circuit by id. Requires admin access.

func (*Client) DetailCircuit

func (a *Client) DetailCircuit(params *DetailCircuitParams, opts ...ClientOption) (*DetailCircuitOK, error)

DetailCircuit retrieves a single circuit

Retrieves a single circuit by id. Requires admin access.

func (*Client) ListCircuits

func (a *Client) ListCircuits(params *ListCircuitsParams, opts ...ClientOption) (*ListCircuitsOK, error)

ListCircuits lists circuits

Retrieves a list of circuit resources; does not supports filtering, sorting, or pagination. Requires admin access.

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 {
	DeleteCircuit(params *DeleteCircuitParams, opts ...ClientOption) (*DeleteCircuitOK, error)

	DetailCircuit(params *DetailCircuitParams, opts ...ClientOption) (*DetailCircuitOK, error)

	ListCircuits(params *ListCircuitsParams, opts ...ClientOption) (*ListCircuitsOK, 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 circuit API client.

type DeleteCircuitBadRequest

type DeleteCircuitBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteCircuitBadRequest

func NewDeleteCircuitBadRequest() *DeleteCircuitBadRequest

NewDeleteCircuitBadRequest creates a DeleteCircuitBadRequest with default headers values

func (*DeleteCircuitBadRequest) Error

func (o *DeleteCircuitBadRequest) Error() string

func (*DeleteCircuitBadRequest) GetPayload

func (*DeleteCircuitBadRequest) IsClientError added in v0.21.38

func (o *DeleteCircuitBadRequest) IsClientError() bool

IsClientError returns true when this delete circuit bad request response has a 4xx status code

func (*DeleteCircuitBadRequest) IsCode added in v0.21.38

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

IsCode returns true when this delete circuit bad request response a status code equal to that given

func (*DeleteCircuitBadRequest) IsRedirect added in v0.21.38

func (o *DeleteCircuitBadRequest) IsRedirect() bool

IsRedirect returns true when this delete circuit bad request response has a 3xx status code

func (*DeleteCircuitBadRequest) IsServerError added in v0.21.38

func (o *DeleteCircuitBadRequest) IsServerError() bool

IsServerError returns true when this delete circuit bad request response has a 5xx status code

func (*DeleteCircuitBadRequest) IsSuccess added in v0.21.38

func (o *DeleteCircuitBadRequest) IsSuccess() bool

IsSuccess returns true when this delete circuit bad request response has a 2xx status code

func (*DeleteCircuitBadRequest) String added in v0.21.38

func (o *DeleteCircuitBadRequest) String() string

type DeleteCircuitConflict

type DeleteCircuitConflict struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteCircuitConflict describes a response with status code 409, with default header values.

The resource requested to be removed/altered cannot be as it is referenced by another object.

func NewDeleteCircuitConflict

func NewDeleteCircuitConflict() *DeleteCircuitConflict

NewDeleteCircuitConflict creates a DeleteCircuitConflict with default headers values

func (*DeleteCircuitConflict) Error

func (o *DeleteCircuitConflict) Error() string

func (*DeleteCircuitConflict) GetPayload

func (*DeleteCircuitConflict) IsClientError added in v0.21.38

func (o *DeleteCircuitConflict) IsClientError() bool

IsClientError returns true when this delete circuit conflict response has a 4xx status code

func (*DeleteCircuitConflict) IsCode added in v0.21.38

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

IsCode returns true when this delete circuit conflict response a status code equal to that given

func (*DeleteCircuitConflict) IsRedirect added in v0.21.38

func (o *DeleteCircuitConflict) IsRedirect() bool

IsRedirect returns true when this delete circuit conflict response has a 3xx status code

func (*DeleteCircuitConflict) IsServerError added in v0.21.38

func (o *DeleteCircuitConflict) IsServerError() bool

IsServerError returns true when this delete circuit conflict response has a 5xx status code

func (*DeleteCircuitConflict) IsSuccess added in v0.21.38

func (o *DeleteCircuitConflict) IsSuccess() bool

IsSuccess returns true when this delete circuit conflict response has a 2xx status code

func (*DeleteCircuitConflict) String added in v0.21.38

func (o *DeleteCircuitConflict) String() string

type DeleteCircuitOK

type DeleteCircuitOK struct {
	Payload *rest_model.Empty
}

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

The delete request was successful and the resource has been removed

func NewDeleteCircuitOK

func NewDeleteCircuitOK() *DeleteCircuitOK

NewDeleteCircuitOK creates a DeleteCircuitOK with default headers values

func (*DeleteCircuitOK) Error

func (o *DeleteCircuitOK) Error() string

func (*DeleteCircuitOK) GetPayload

func (o *DeleteCircuitOK) GetPayload() *rest_model.Empty

func (*DeleteCircuitOK) IsClientError added in v0.21.38

func (o *DeleteCircuitOK) IsClientError() bool

IsClientError returns true when this delete circuit o k response has a 4xx status code

func (*DeleteCircuitOK) IsCode added in v0.21.38

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

IsCode returns true when this delete circuit o k response a status code equal to that given

func (*DeleteCircuitOK) IsRedirect added in v0.21.38

func (o *DeleteCircuitOK) IsRedirect() bool

IsRedirect returns true when this delete circuit o k response has a 3xx status code

func (*DeleteCircuitOK) IsServerError added in v0.21.38

func (o *DeleteCircuitOK) IsServerError() bool

IsServerError returns true when this delete circuit o k response has a 5xx status code

func (*DeleteCircuitOK) IsSuccess added in v0.21.38

func (o *DeleteCircuitOK) IsSuccess() bool

IsSuccess returns true when this delete circuit o k response has a 2xx status code

func (*DeleteCircuitOK) String added in v0.21.38

func (o *DeleteCircuitOK) String() string

type DeleteCircuitParams

type DeleteCircuitParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Options.

	   A circuit delete object
	*/
	Options *rest_model.CircuitDelete

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

DeleteCircuitParams contains all the parameters to send to the API endpoint

for the delete circuit operation.

Typically these are written to a http.Request.

func NewDeleteCircuitParams

func NewDeleteCircuitParams() *DeleteCircuitParams

NewDeleteCircuitParams creates a new DeleteCircuitParams 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 NewDeleteCircuitParamsWithContext

func NewDeleteCircuitParamsWithContext(ctx context.Context) *DeleteCircuitParams

NewDeleteCircuitParamsWithContext creates a new DeleteCircuitParams object with the ability to set a context for a request.

func NewDeleteCircuitParamsWithHTTPClient

func NewDeleteCircuitParamsWithHTTPClient(client *http.Client) *DeleteCircuitParams

NewDeleteCircuitParamsWithHTTPClient creates a new DeleteCircuitParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCircuitParamsWithTimeout

func NewDeleteCircuitParamsWithTimeout(timeout time.Duration) *DeleteCircuitParams

NewDeleteCircuitParamsWithTimeout creates a new DeleteCircuitParams object with the ability to set a timeout on a request.

func (*DeleteCircuitParams) SetContext

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

SetContext adds the context to the delete circuit params

func (*DeleteCircuitParams) SetDefaults

func (o *DeleteCircuitParams) SetDefaults()

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

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

func (*DeleteCircuitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete circuit params

func (*DeleteCircuitParams) SetID

func (o *DeleteCircuitParams) SetID(id string)

SetID adds the id to the delete circuit params

func (*DeleteCircuitParams) SetOptions

func (o *DeleteCircuitParams) SetOptions(options *rest_model.CircuitDelete)

SetOptions adds the options to the delete circuit params

func (*DeleteCircuitParams) SetTimeout

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

SetTimeout adds the timeout to the delete circuit params

func (*DeleteCircuitParams) WithContext

WithContext adds the context to the delete circuit params

func (*DeleteCircuitParams) WithDefaults

func (o *DeleteCircuitParams) WithDefaults() *DeleteCircuitParams

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

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

func (*DeleteCircuitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete circuit params

func (*DeleteCircuitParams) WithID

WithID adds the id to the delete circuit params

func (*DeleteCircuitParams) WithOptions

WithOptions adds the options to the delete circuit params

func (*DeleteCircuitParams) WithTimeout

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

WithTimeout adds the timeout to the delete circuit params

func (*DeleteCircuitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCircuitReader

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

DeleteCircuitReader is a Reader for the DeleteCircuit structure.

func (*DeleteCircuitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCircuitUnauthorized

type DeleteCircuitUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteCircuitUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteCircuitUnauthorized

func NewDeleteCircuitUnauthorized() *DeleteCircuitUnauthorized

NewDeleteCircuitUnauthorized creates a DeleteCircuitUnauthorized with default headers values

func (*DeleteCircuitUnauthorized) Error

func (o *DeleteCircuitUnauthorized) Error() string

func (*DeleteCircuitUnauthorized) GetPayload

func (*DeleteCircuitUnauthorized) IsClientError added in v0.21.38

func (o *DeleteCircuitUnauthorized) IsClientError() bool

IsClientError returns true when this delete circuit unauthorized response has a 4xx status code

func (*DeleteCircuitUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this delete circuit unauthorized response a status code equal to that given

func (*DeleteCircuitUnauthorized) IsRedirect added in v0.21.38

func (o *DeleteCircuitUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete circuit unauthorized response has a 3xx status code

func (*DeleteCircuitUnauthorized) IsServerError added in v0.21.38

func (o *DeleteCircuitUnauthorized) IsServerError() bool

IsServerError returns true when this delete circuit unauthorized response has a 5xx status code

func (*DeleteCircuitUnauthorized) IsSuccess added in v0.21.38

func (o *DeleteCircuitUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete circuit unauthorized response has a 2xx status code

func (*DeleteCircuitUnauthorized) String added in v0.21.38

func (o *DeleteCircuitUnauthorized) String() string

type DetailCircuitNotFound

type DetailCircuitNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

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

The requested resource does not exist

func NewDetailCircuitNotFound

func NewDetailCircuitNotFound() *DetailCircuitNotFound

NewDetailCircuitNotFound creates a DetailCircuitNotFound with default headers values

func (*DetailCircuitNotFound) Error

func (o *DetailCircuitNotFound) Error() string

func (*DetailCircuitNotFound) GetPayload

func (*DetailCircuitNotFound) IsClientError added in v0.21.38

func (o *DetailCircuitNotFound) IsClientError() bool

IsClientError returns true when this detail circuit not found response has a 4xx status code

func (*DetailCircuitNotFound) IsCode added in v0.21.38

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

IsCode returns true when this detail circuit not found response a status code equal to that given

func (*DetailCircuitNotFound) IsRedirect added in v0.21.38

func (o *DetailCircuitNotFound) IsRedirect() bool

IsRedirect returns true when this detail circuit not found response has a 3xx status code

func (*DetailCircuitNotFound) IsServerError added in v0.21.38

func (o *DetailCircuitNotFound) IsServerError() bool

IsServerError returns true when this detail circuit not found response has a 5xx status code

func (*DetailCircuitNotFound) IsSuccess added in v0.21.38

func (o *DetailCircuitNotFound) IsSuccess() bool

IsSuccess returns true when this detail circuit not found response has a 2xx status code

func (*DetailCircuitNotFound) String added in v0.21.38

func (o *DetailCircuitNotFound) String() string

type DetailCircuitOK

type DetailCircuitOK struct {
	Payload *rest_model.DetailCircuitEnvelope
}

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

A single circuit

func NewDetailCircuitOK

func NewDetailCircuitOK() *DetailCircuitOK

NewDetailCircuitOK creates a DetailCircuitOK with default headers values

func (*DetailCircuitOK) Error

func (o *DetailCircuitOK) Error() string

func (*DetailCircuitOK) GetPayload

func (*DetailCircuitOK) IsClientError added in v0.21.38

func (o *DetailCircuitOK) IsClientError() bool

IsClientError returns true when this detail circuit o k response has a 4xx status code

func (*DetailCircuitOK) IsCode added in v0.21.38

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

IsCode returns true when this detail circuit o k response a status code equal to that given

func (*DetailCircuitOK) IsRedirect added in v0.21.38

func (o *DetailCircuitOK) IsRedirect() bool

IsRedirect returns true when this detail circuit o k response has a 3xx status code

func (*DetailCircuitOK) IsServerError added in v0.21.38

func (o *DetailCircuitOK) IsServerError() bool

IsServerError returns true when this detail circuit o k response has a 5xx status code

func (*DetailCircuitOK) IsSuccess added in v0.21.38

func (o *DetailCircuitOK) IsSuccess() bool

IsSuccess returns true when this detail circuit o k response has a 2xx status code

func (*DetailCircuitOK) String added in v0.21.38

func (o *DetailCircuitOK) String() string

type DetailCircuitParams

type DetailCircuitParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailCircuitParams contains all the parameters to send to the API endpoint

for the detail circuit operation.

Typically these are written to a http.Request.

func NewDetailCircuitParams

func NewDetailCircuitParams() *DetailCircuitParams

NewDetailCircuitParams creates a new DetailCircuitParams 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 NewDetailCircuitParamsWithContext

func NewDetailCircuitParamsWithContext(ctx context.Context) *DetailCircuitParams

NewDetailCircuitParamsWithContext creates a new DetailCircuitParams object with the ability to set a context for a request.

func NewDetailCircuitParamsWithHTTPClient

func NewDetailCircuitParamsWithHTTPClient(client *http.Client) *DetailCircuitParams

NewDetailCircuitParamsWithHTTPClient creates a new DetailCircuitParams object with the ability to set a custom HTTPClient for a request.

func NewDetailCircuitParamsWithTimeout

func NewDetailCircuitParamsWithTimeout(timeout time.Duration) *DetailCircuitParams

NewDetailCircuitParamsWithTimeout creates a new DetailCircuitParams object with the ability to set a timeout on a request.

func (*DetailCircuitParams) SetContext

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

SetContext adds the context to the detail circuit params

func (*DetailCircuitParams) SetDefaults

func (o *DetailCircuitParams) SetDefaults()

SetDefaults hydrates default values in the detail circuit params (not the query body).

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

func (*DetailCircuitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail circuit params

func (*DetailCircuitParams) SetID

func (o *DetailCircuitParams) SetID(id string)

SetID adds the id to the detail circuit params

func (*DetailCircuitParams) SetTimeout

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

SetTimeout adds the timeout to the detail circuit params

func (*DetailCircuitParams) WithContext

WithContext adds the context to the detail circuit params

func (*DetailCircuitParams) WithDefaults

func (o *DetailCircuitParams) WithDefaults() *DetailCircuitParams

WithDefaults hydrates default values in the detail circuit params (not the query body).

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

func (*DetailCircuitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail circuit params

func (*DetailCircuitParams) WithID

WithID adds the id to the detail circuit params

func (*DetailCircuitParams) WithTimeout

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

WithTimeout adds the timeout to the detail circuit params

func (*DetailCircuitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DetailCircuitReader

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

DetailCircuitReader is a Reader for the DetailCircuit structure.

func (*DetailCircuitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailCircuitUnauthorized

type DetailCircuitUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DetailCircuitUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailCircuitUnauthorized

func NewDetailCircuitUnauthorized() *DetailCircuitUnauthorized

NewDetailCircuitUnauthorized creates a DetailCircuitUnauthorized with default headers values

func (*DetailCircuitUnauthorized) Error

func (o *DetailCircuitUnauthorized) Error() string

func (*DetailCircuitUnauthorized) GetPayload

func (*DetailCircuitUnauthorized) IsClientError added in v0.21.38

func (o *DetailCircuitUnauthorized) IsClientError() bool

IsClientError returns true when this detail circuit unauthorized response has a 4xx status code

func (*DetailCircuitUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this detail circuit unauthorized response a status code equal to that given

func (*DetailCircuitUnauthorized) IsRedirect added in v0.21.38

func (o *DetailCircuitUnauthorized) IsRedirect() bool

IsRedirect returns true when this detail circuit unauthorized response has a 3xx status code

func (*DetailCircuitUnauthorized) IsServerError added in v0.21.38

func (o *DetailCircuitUnauthorized) IsServerError() bool

IsServerError returns true when this detail circuit unauthorized response has a 5xx status code

func (*DetailCircuitUnauthorized) IsSuccess added in v0.21.38

func (o *DetailCircuitUnauthorized) IsSuccess() bool

IsSuccess returns true when this detail circuit unauthorized response has a 2xx status code

func (*DetailCircuitUnauthorized) String added in v0.21.38

func (o *DetailCircuitUnauthorized) String() string

type ListCircuitsOK

type ListCircuitsOK struct {
	Payload *rest_model.ListCircuitsEnvelope
}

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

A list of circuits

func NewListCircuitsOK

func NewListCircuitsOK() *ListCircuitsOK

NewListCircuitsOK creates a ListCircuitsOK with default headers values

func (*ListCircuitsOK) Error

func (o *ListCircuitsOK) Error() string

func (*ListCircuitsOK) GetPayload

func (*ListCircuitsOK) IsClientError added in v0.21.38

func (o *ListCircuitsOK) IsClientError() bool

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

func (*ListCircuitsOK) IsCode added in v0.21.38

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

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

func (*ListCircuitsOK) IsRedirect added in v0.21.38

func (o *ListCircuitsOK) IsRedirect() bool

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

func (*ListCircuitsOK) IsServerError added in v0.21.38

func (o *ListCircuitsOK) IsServerError() bool

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

func (*ListCircuitsOK) IsSuccess added in v0.21.38

func (o *ListCircuitsOK) IsSuccess() bool

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

func (*ListCircuitsOK) String added in v0.21.38

func (o *ListCircuitsOK) String() string

type ListCircuitsParams

type ListCircuitsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListCircuitsParams contains all the parameters to send to the API endpoint

for the list circuits operation.

Typically these are written to a http.Request.

func NewListCircuitsParams

func NewListCircuitsParams() *ListCircuitsParams

NewListCircuitsParams creates a new ListCircuitsParams 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 NewListCircuitsParamsWithContext

func NewListCircuitsParamsWithContext(ctx context.Context) *ListCircuitsParams

NewListCircuitsParamsWithContext creates a new ListCircuitsParams object with the ability to set a context for a request.

func NewListCircuitsParamsWithHTTPClient

func NewListCircuitsParamsWithHTTPClient(client *http.Client) *ListCircuitsParams

NewListCircuitsParamsWithHTTPClient creates a new ListCircuitsParams object with the ability to set a custom HTTPClient for a request.

func NewListCircuitsParamsWithTimeout

func NewListCircuitsParamsWithTimeout(timeout time.Duration) *ListCircuitsParams

NewListCircuitsParamsWithTimeout creates a new ListCircuitsParams object with the ability to set a timeout on a request.

func (*ListCircuitsParams) SetContext

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

SetContext adds the context to the list circuits params

func (*ListCircuitsParams) SetDefaults

func (o *ListCircuitsParams) SetDefaults()

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

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

func (*ListCircuitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list circuits params

func (*ListCircuitsParams) SetTimeout

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

SetTimeout adds the timeout to the list circuits params

func (*ListCircuitsParams) WithContext

WithContext adds the context to the list circuits params

func (*ListCircuitsParams) WithDefaults

func (o *ListCircuitsParams) WithDefaults() *ListCircuitsParams

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

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

func (*ListCircuitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list circuits params

func (*ListCircuitsParams) WithTimeout

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

WithTimeout adds the timeout to the list circuits params

func (*ListCircuitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCircuitsReader

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

ListCircuitsReader is a Reader for the ListCircuits structure.

func (*ListCircuitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCircuitsUnauthorized

type ListCircuitsUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListCircuitsUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListCircuitsUnauthorized

func NewListCircuitsUnauthorized() *ListCircuitsUnauthorized

NewListCircuitsUnauthorized creates a ListCircuitsUnauthorized with default headers values

func (*ListCircuitsUnauthorized) Error

func (o *ListCircuitsUnauthorized) Error() string

func (*ListCircuitsUnauthorized) GetPayload

func (*ListCircuitsUnauthorized) IsClientError added in v0.21.38

func (o *ListCircuitsUnauthorized) IsClientError() bool

IsClientError returns true when this list circuits unauthorized response has a 4xx status code

func (*ListCircuitsUnauthorized) IsCode added in v0.21.38

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

IsCode returns true when this list circuits unauthorized response a status code equal to that given

func (*ListCircuitsUnauthorized) IsRedirect added in v0.21.38

func (o *ListCircuitsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list circuits unauthorized response has a 3xx status code

func (*ListCircuitsUnauthorized) IsServerError added in v0.21.38

func (o *ListCircuitsUnauthorized) IsServerError() bool

IsServerError returns true when this list circuits unauthorized response has a 5xx status code

func (*ListCircuitsUnauthorized) IsSuccess added in v0.21.38

func (o *ListCircuitsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list circuits unauthorized response has a 2xx status code

func (*ListCircuitsUnauthorized) String added in v0.21.38

func (o *ListCircuitsUnauthorized) String() string

Jump to

Keyboard shortcuts

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