Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteCircuit(params *DeleteCircuitParams, opts ...ClientOption) (*DeleteCircuitOK, error)
- func (a *Client) DetailCircuit(params *DetailCircuitParams, opts ...ClientOption) (*DetailCircuitOK, error)
- func (a *Client) ListCircuits(params *ListCircuitsParams, opts ...ClientOption) (*ListCircuitsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteCircuitBadRequest
- func (o *DeleteCircuitBadRequest) Error() string
- func (o *DeleteCircuitBadRequest) GetPayload() *rest_model.APIErrorEnvelope
- func (o *DeleteCircuitBadRequest) IsClientError() bool
- func (o *DeleteCircuitBadRequest) IsCode(code int) bool
- func (o *DeleteCircuitBadRequest) IsRedirect() bool
- func (o *DeleteCircuitBadRequest) IsServerError() bool
- func (o *DeleteCircuitBadRequest) IsSuccess() bool
- func (o *DeleteCircuitBadRequest) String() string
- type DeleteCircuitConflict
- func (o *DeleteCircuitConflict) Error() string
- func (o *DeleteCircuitConflict) GetPayload() *rest_model.APIErrorEnvelope
- func (o *DeleteCircuitConflict) IsClientError() bool
- func (o *DeleteCircuitConflict) IsCode(code int) bool
- func (o *DeleteCircuitConflict) IsRedirect() bool
- func (o *DeleteCircuitConflict) IsServerError() bool
- func (o *DeleteCircuitConflict) IsSuccess() bool
- func (o *DeleteCircuitConflict) String() string
- type DeleteCircuitOK
- func (o *DeleteCircuitOK) Error() string
- func (o *DeleteCircuitOK) GetPayload() *rest_model.Empty
- func (o *DeleteCircuitOK) IsClientError() bool
- func (o *DeleteCircuitOK) IsCode(code int) bool
- func (o *DeleteCircuitOK) IsRedirect() bool
- func (o *DeleteCircuitOK) IsServerError() bool
- func (o *DeleteCircuitOK) IsSuccess() bool
- func (o *DeleteCircuitOK) String() string
- type DeleteCircuitParams
- func (o *DeleteCircuitParams) SetContext(ctx context.Context)
- func (o *DeleteCircuitParams) SetDefaults()
- func (o *DeleteCircuitParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCircuitParams) SetID(id string)
- func (o *DeleteCircuitParams) SetOptions(options *rest_model.CircuitDelete)
- func (o *DeleteCircuitParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCircuitParams) WithContext(ctx context.Context) *DeleteCircuitParams
- func (o *DeleteCircuitParams) WithDefaults() *DeleteCircuitParams
- func (o *DeleteCircuitParams) WithHTTPClient(client *http.Client) *DeleteCircuitParams
- func (o *DeleteCircuitParams) WithID(id string) *DeleteCircuitParams
- func (o *DeleteCircuitParams) WithOptions(options *rest_model.CircuitDelete) *DeleteCircuitParams
- func (o *DeleteCircuitParams) WithTimeout(timeout time.Duration) *DeleteCircuitParams
- func (o *DeleteCircuitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCircuitReader
- type DeleteCircuitUnauthorized
- func (o *DeleteCircuitUnauthorized) Error() string
- func (o *DeleteCircuitUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
- func (o *DeleteCircuitUnauthorized) IsClientError() bool
- func (o *DeleteCircuitUnauthorized) IsCode(code int) bool
- func (o *DeleteCircuitUnauthorized) IsRedirect() bool
- func (o *DeleteCircuitUnauthorized) IsServerError() bool
- func (o *DeleteCircuitUnauthorized) IsSuccess() bool
- func (o *DeleteCircuitUnauthorized) String() string
- type DetailCircuitNotFound
- func (o *DetailCircuitNotFound) Error() string
- func (o *DetailCircuitNotFound) GetPayload() *rest_model.APIErrorEnvelope
- func (o *DetailCircuitNotFound) IsClientError() bool
- func (o *DetailCircuitNotFound) IsCode(code int) bool
- func (o *DetailCircuitNotFound) IsRedirect() bool
- func (o *DetailCircuitNotFound) IsServerError() bool
- func (o *DetailCircuitNotFound) IsSuccess() bool
- func (o *DetailCircuitNotFound) String() string
- type DetailCircuitOK
- func (o *DetailCircuitOK) Error() string
- func (o *DetailCircuitOK) GetPayload() *rest_model.DetailCircuitEnvelope
- func (o *DetailCircuitOK) IsClientError() bool
- func (o *DetailCircuitOK) IsCode(code int) bool
- func (o *DetailCircuitOK) IsRedirect() bool
- func (o *DetailCircuitOK) IsServerError() bool
- func (o *DetailCircuitOK) IsSuccess() bool
- func (o *DetailCircuitOK) String() string
- type DetailCircuitParams
- func (o *DetailCircuitParams) SetContext(ctx context.Context)
- func (o *DetailCircuitParams) SetDefaults()
- func (o *DetailCircuitParams) SetHTTPClient(client *http.Client)
- func (o *DetailCircuitParams) SetID(id string)
- func (o *DetailCircuitParams) SetTimeout(timeout time.Duration)
- func (o *DetailCircuitParams) WithContext(ctx context.Context) *DetailCircuitParams
- func (o *DetailCircuitParams) WithDefaults() *DetailCircuitParams
- func (o *DetailCircuitParams) WithHTTPClient(client *http.Client) *DetailCircuitParams
- func (o *DetailCircuitParams) WithID(id string) *DetailCircuitParams
- func (o *DetailCircuitParams) WithTimeout(timeout time.Duration) *DetailCircuitParams
- func (o *DetailCircuitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DetailCircuitReader
- type DetailCircuitUnauthorized
- func (o *DetailCircuitUnauthorized) Error() string
- func (o *DetailCircuitUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
- func (o *DetailCircuitUnauthorized) IsClientError() bool
- func (o *DetailCircuitUnauthorized) IsCode(code int) bool
- func (o *DetailCircuitUnauthorized) IsRedirect() bool
- func (o *DetailCircuitUnauthorized) IsServerError() bool
- func (o *DetailCircuitUnauthorized) IsSuccess() bool
- func (o *DetailCircuitUnauthorized) String() string
- type ListCircuitsOK
- func (o *ListCircuitsOK) Error() string
- func (o *ListCircuitsOK) GetPayload() *rest_model.ListCircuitsEnvelope
- func (o *ListCircuitsOK) IsClientError() bool
- func (o *ListCircuitsOK) IsCode(code int) bool
- func (o *ListCircuitsOK) IsRedirect() bool
- func (o *ListCircuitsOK) IsServerError() bool
- func (o *ListCircuitsOK) IsSuccess() bool
- func (o *ListCircuitsOK) String() string
- type ListCircuitsParams
- func (o *ListCircuitsParams) SetContext(ctx context.Context)
- func (o *ListCircuitsParams) SetDefaults()
- func (o *ListCircuitsParams) SetHTTPClient(client *http.Client)
- func (o *ListCircuitsParams) SetTimeout(timeout time.Duration)
- func (o *ListCircuitsParams) WithContext(ctx context.Context) *ListCircuitsParams
- func (o *ListCircuitsParams) WithDefaults() *ListCircuitsParams
- func (o *ListCircuitsParams) WithHTTPClient(client *http.Client) *ListCircuitsParams
- func (o *ListCircuitsParams) WithTimeout(timeout time.Duration) *ListCircuitsParams
- func (o *ListCircuitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCircuitsReader
- type ListCircuitsUnauthorized
- func (o *ListCircuitsUnauthorized) Error() string
- func (o *ListCircuitsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
- func (o *ListCircuitsUnauthorized) IsClientError() bool
- func (o *ListCircuitsUnauthorized) IsCode(code int) bool
- func (o *ListCircuitsUnauthorized) IsRedirect() bool
- func (o *ListCircuitsUnauthorized) IsServerError() bool
- func (o *ListCircuitsUnauthorized) IsSuccess() bool
- func (o *ListCircuitsUnauthorized) String() string
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 (o *DeleteCircuitBadRequest) GetPayload() *rest_model.APIErrorEnvelope
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 (o *DeleteCircuitConflict) GetPayload() *rest_model.APIErrorEnvelope
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 ¶
func (o *DeleteCircuitParams) WithContext(ctx context.Context) *DeleteCircuitParams
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 ¶
func (o *DeleteCircuitParams) WithID(id string) *DeleteCircuitParams
WithID adds the id to the delete circuit params
func (*DeleteCircuitParams) WithOptions ¶
func (o *DeleteCircuitParams) WithOptions(options *rest_model.CircuitDelete) *DeleteCircuitParams
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 {
}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 (o *DeleteCircuitUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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 (o *DetailCircuitNotFound) GetPayload() *rest_model.APIErrorEnvelope
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 (o *DetailCircuitOK) GetPayload() *rest_model.DetailCircuitEnvelope
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 ¶
func (o *DetailCircuitParams) WithContext(ctx context.Context) *DetailCircuitParams
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 ¶
func (o *DetailCircuitParams) WithID(id string) *DetailCircuitParams
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 {
}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 (o *DetailCircuitUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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 (o *ListCircuitsOK) GetPayload() *rest_model.ListCircuitsEnvelope
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 ¶
func (o *ListCircuitsParams) WithContext(ctx context.Context) *ListCircuitsParams
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 {
}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 (o *ListCircuitsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
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