Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteSwitch(params *DeleteSwitchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSwitchOK, error)
- func (a *Client) FindSwitch(params *FindSwitchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindSwitchOK, error)
- func (a *Client) FindSwitches(params *FindSwitchesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindSwitchesOK, error)
- func (a *Client) ListSwitches(params *ListSwitchesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSwitchesOK, error)
- func (a *Client) NotifySwitch(params *NotifySwitchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifySwitchOK, error)
- func (a *Client) RegisterSwitch(params *RegisterSwitchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RegisterSwitchOK, *RegisterSwitchCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) ToggleSwitchPort(params *ToggleSwitchPortParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ToggleSwitchPortOK, error)
- func (a *Client) UpdateSwitch(params *UpdateSwitchParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateSwitchOK, error)
- type ClientOption
- type ClientService
- type DeleteSwitchDefault
- func (o *DeleteSwitchDefault) Code() int
- func (o *DeleteSwitchDefault) Error() string
- func (o *DeleteSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *DeleteSwitchDefault) IsClientError() bool
- func (o *DeleteSwitchDefault) IsCode(code int) bool
- func (o *DeleteSwitchDefault) IsRedirect() bool
- func (o *DeleteSwitchDefault) IsServerError() bool
- func (o *DeleteSwitchDefault) IsSuccess() bool
- func (o *DeleteSwitchDefault) String() string
- type DeleteSwitchOK
- func (o *DeleteSwitchOK) Code() int
- func (o *DeleteSwitchOK) Error() string
- func (o *DeleteSwitchOK) GetPayload() *models.V1SwitchResponse
- func (o *DeleteSwitchOK) IsClientError() bool
- func (o *DeleteSwitchOK) IsCode(code int) bool
- func (o *DeleteSwitchOK) IsRedirect() bool
- func (o *DeleteSwitchOK) IsServerError() bool
- func (o *DeleteSwitchOK) IsSuccess() bool
- func (o *DeleteSwitchOK) String() string
- type DeleteSwitchParams
- func (o *DeleteSwitchParams) SetContext(ctx context.Context)
- func (o *DeleteSwitchParams) SetDefaults()
- func (o *DeleteSwitchParams) SetForce(force *bool)
- func (o *DeleteSwitchParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSwitchParams) SetID(id string)
- func (o *DeleteSwitchParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSwitchParams) WithContext(ctx context.Context) *DeleteSwitchParams
- func (o *DeleteSwitchParams) WithDefaults() *DeleteSwitchParams
- func (o *DeleteSwitchParams) WithForce(force *bool) *DeleteSwitchParams
- func (o *DeleteSwitchParams) WithHTTPClient(client *http.Client) *DeleteSwitchParams
- func (o *DeleteSwitchParams) WithID(id string) *DeleteSwitchParams
- func (o *DeleteSwitchParams) WithTimeout(timeout time.Duration) *DeleteSwitchParams
- func (o *DeleteSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSwitchReader
- type FindSwitchDefault
- func (o *FindSwitchDefault) Code() int
- func (o *FindSwitchDefault) Error() string
- func (o *FindSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *FindSwitchDefault) IsClientError() bool
- func (o *FindSwitchDefault) IsCode(code int) bool
- func (o *FindSwitchDefault) IsRedirect() bool
- func (o *FindSwitchDefault) IsServerError() bool
- func (o *FindSwitchDefault) IsSuccess() bool
- func (o *FindSwitchDefault) String() string
- type FindSwitchOK
- func (o *FindSwitchOK) Code() int
- func (o *FindSwitchOK) Error() string
- func (o *FindSwitchOK) GetPayload() *models.V1SwitchResponse
- func (o *FindSwitchOK) IsClientError() bool
- func (o *FindSwitchOK) IsCode(code int) bool
- func (o *FindSwitchOK) IsRedirect() bool
- func (o *FindSwitchOK) IsServerError() bool
- func (o *FindSwitchOK) IsSuccess() bool
- func (o *FindSwitchOK) String() string
- type FindSwitchParams
- func (o *FindSwitchParams) SetContext(ctx context.Context)
- func (o *FindSwitchParams) SetDefaults()
- func (o *FindSwitchParams) SetHTTPClient(client *http.Client)
- func (o *FindSwitchParams) SetID(id string)
- func (o *FindSwitchParams) SetTimeout(timeout time.Duration)
- func (o *FindSwitchParams) WithContext(ctx context.Context) *FindSwitchParams
- func (o *FindSwitchParams) WithDefaults() *FindSwitchParams
- func (o *FindSwitchParams) WithHTTPClient(client *http.Client) *FindSwitchParams
- func (o *FindSwitchParams) WithID(id string) *FindSwitchParams
- func (o *FindSwitchParams) WithTimeout(timeout time.Duration) *FindSwitchParams
- func (o *FindSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSwitchReader
- type FindSwitchesDefault
- func (o *FindSwitchesDefault) Code() int
- func (o *FindSwitchesDefault) Error() string
- func (o *FindSwitchesDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *FindSwitchesDefault) IsClientError() bool
- func (o *FindSwitchesDefault) IsCode(code int) bool
- func (o *FindSwitchesDefault) IsRedirect() bool
- func (o *FindSwitchesDefault) IsServerError() bool
- func (o *FindSwitchesDefault) IsSuccess() bool
- func (o *FindSwitchesDefault) String() string
- type FindSwitchesOK
- func (o *FindSwitchesOK) Code() int
- func (o *FindSwitchesOK) Error() string
- func (o *FindSwitchesOK) GetPayload() []*models.V1SwitchResponse
- func (o *FindSwitchesOK) IsClientError() bool
- func (o *FindSwitchesOK) IsCode(code int) bool
- func (o *FindSwitchesOK) IsRedirect() bool
- func (o *FindSwitchesOK) IsServerError() bool
- func (o *FindSwitchesOK) IsSuccess() bool
- func (o *FindSwitchesOK) String() string
- type FindSwitchesParams
- func (o *FindSwitchesParams) SetBody(body *models.V1SwitchFindRequest)
- func (o *FindSwitchesParams) SetContext(ctx context.Context)
- func (o *FindSwitchesParams) SetDefaults()
- func (o *FindSwitchesParams) SetHTTPClient(client *http.Client)
- func (o *FindSwitchesParams) SetTimeout(timeout time.Duration)
- func (o *FindSwitchesParams) WithBody(body *models.V1SwitchFindRequest) *FindSwitchesParams
- func (o *FindSwitchesParams) WithContext(ctx context.Context) *FindSwitchesParams
- func (o *FindSwitchesParams) WithDefaults() *FindSwitchesParams
- func (o *FindSwitchesParams) WithHTTPClient(client *http.Client) *FindSwitchesParams
- func (o *FindSwitchesParams) WithTimeout(timeout time.Duration) *FindSwitchesParams
- func (o *FindSwitchesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSwitchesReader
- type ListSwitchesDefault
- func (o *ListSwitchesDefault) Code() int
- func (o *ListSwitchesDefault) Error() string
- func (o *ListSwitchesDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ListSwitchesDefault) IsClientError() bool
- func (o *ListSwitchesDefault) IsCode(code int) bool
- func (o *ListSwitchesDefault) IsRedirect() bool
- func (o *ListSwitchesDefault) IsServerError() bool
- func (o *ListSwitchesDefault) IsSuccess() bool
- func (o *ListSwitchesDefault) String() string
- type ListSwitchesOK
- func (o *ListSwitchesOK) Code() int
- func (o *ListSwitchesOK) Error() string
- func (o *ListSwitchesOK) GetPayload() []*models.V1SwitchResponse
- func (o *ListSwitchesOK) IsClientError() bool
- func (o *ListSwitchesOK) IsCode(code int) bool
- func (o *ListSwitchesOK) IsRedirect() bool
- func (o *ListSwitchesOK) IsServerError() bool
- func (o *ListSwitchesOK) IsSuccess() bool
- func (o *ListSwitchesOK) String() string
- type ListSwitchesParams
- func (o *ListSwitchesParams) SetContext(ctx context.Context)
- func (o *ListSwitchesParams) SetDefaults()
- func (o *ListSwitchesParams) SetHTTPClient(client *http.Client)
- func (o *ListSwitchesParams) SetTimeout(timeout time.Duration)
- func (o *ListSwitchesParams) WithContext(ctx context.Context) *ListSwitchesParams
- func (o *ListSwitchesParams) WithDefaults() *ListSwitchesParams
- func (o *ListSwitchesParams) WithHTTPClient(client *http.Client) *ListSwitchesParams
- func (o *ListSwitchesParams) WithTimeout(timeout time.Duration) *ListSwitchesParams
- func (o *ListSwitchesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSwitchesReader
- type NotifySwitchDefault
- func (o *NotifySwitchDefault) Code() int
- func (o *NotifySwitchDefault) Error() string
- func (o *NotifySwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *NotifySwitchDefault) IsClientError() bool
- func (o *NotifySwitchDefault) IsCode(code int) bool
- func (o *NotifySwitchDefault) IsRedirect() bool
- func (o *NotifySwitchDefault) IsServerError() bool
- func (o *NotifySwitchDefault) IsSuccess() bool
- func (o *NotifySwitchDefault) String() string
- type NotifySwitchOK
- func (o *NotifySwitchOK) Code() int
- func (o *NotifySwitchOK) Error() string
- func (o *NotifySwitchOK) GetPayload() *models.V1SwitchNotifyResponse
- func (o *NotifySwitchOK) IsClientError() bool
- func (o *NotifySwitchOK) IsCode(code int) bool
- func (o *NotifySwitchOK) IsRedirect() bool
- func (o *NotifySwitchOK) IsServerError() bool
- func (o *NotifySwitchOK) IsSuccess() bool
- func (o *NotifySwitchOK) String() string
- type NotifySwitchParams
- func (o *NotifySwitchParams) SetBody(body *models.V1SwitchNotifyRequest)
- func (o *NotifySwitchParams) SetContext(ctx context.Context)
- func (o *NotifySwitchParams) SetDefaults()
- func (o *NotifySwitchParams) SetHTTPClient(client *http.Client)
- func (o *NotifySwitchParams) SetID(id string)
- func (o *NotifySwitchParams) SetTimeout(timeout time.Duration)
- func (o *NotifySwitchParams) WithBody(body *models.V1SwitchNotifyRequest) *NotifySwitchParams
- func (o *NotifySwitchParams) WithContext(ctx context.Context) *NotifySwitchParams
- func (o *NotifySwitchParams) WithDefaults() *NotifySwitchParams
- func (o *NotifySwitchParams) WithHTTPClient(client *http.Client) *NotifySwitchParams
- func (o *NotifySwitchParams) WithID(id string) *NotifySwitchParams
- func (o *NotifySwitchParams) WithTimeout(timeout time.Duration) *NotifySwitchParams
- func (o *NotifySwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifySwitchReader
- type RegisterSwitchCreated
- func (o *RegisterSwitchCreated) Code() int
- func (o *RegisterSwitchCreated) Error() string
- func (o *RegisterSwitchCreated) GetPayload() *models.V1SwitchResponse
- func (o *RegisterSwitchCreated) IsClientError() bool
- func (o *RegisterSwitchCreated) IsCode(code int) bool
- func (o *RegisterSwitchCreated) IsRedirect() bool
- func (o *RegisterSwitchCreated) IsServerError() bool
- func (o *RegisterSwitchCreated) IsSuccess() bool
- func (o *RegisterSwitchCreated) String() string
- type RegisterSwitchDefault
- func (o *RegisterSwitchDefault) Code() int
- func (o *RegisterSwitchDefault) Error() string
- func (o *RegisterSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *RegisterSwitchDefault) IsClientError() bool
- func (o *RegisterSwitchDefault) IsCode(code int) bool
- func (o *RegisterSwitchDefault) IsRedirect() bool
- func (o *RegisterSwitchDefault) IsServerError() bool
- func (o *RegisterSwitchDefault) IsSuccess() bool
- func (o *RegisterSwitchDefault) String() string
- type RegisterSwitchOK
- func (o *RegisterSwitchOK) Code() int
- func (o *RegisterSwitchOK) Error() string
- func (o *RegisterSwitchOK) GetPayload() *models.V1SwitchResponse
- func (o *RegisterSwitchOK) IsClientError() bool
- func (o *RegisterSwitchOK) IsCode(code int) bool
- func (o *RegisterSwitchOK) IsRedirect() bool
- func (o *RegisterSwitchOK) IsServerError() bool
- func (o *RegisterSwitchOK) IsSuccess() bool
- func (o *RegisterSwitchOK) String() string
- type RegisterSwitchParams
- func NewRegisterSwitchParams() *RegisterSwitchParams
- func NewRegisterSwitchParamsWithContext(ctx context.Context) *RegisterSwitchParams
- func NewRegisterSwitchParamsWithHTTPClient(client *http.Client) *RegisterSwitchParams
- func NewRegisterSwitchParamsWithTimeout(timeout time.Duration) *RegisterSwitchParams
- func (o *RegisterSwitchParams) SetBody(body *models.V1SwitchRegisterRequest)
- func (o *RegisterSwitchParams) SetContext(ctx context.Context)
- func (o *RegisterSwitchParams) SetDefaults()
- func (o *RegisterSwitchParams) SetHTTPClient(client *http.Client)
- func (o *RegisterSwitchParams) SetTimeout(timeout time.Duration)
- func (o *RegisterSwitchParams) WithBody(body *models.V1SwitchRegisterRequest) *RegisterSwitchParams
- func (o *RegisterSwitchParams) WithContext(ctx context.Context) *RegisterSwitchParams
- func (o *RegisterSwitchParams) WithDefaults() *RegisterSwitchParams
- func (o *RegisterSwitchParams) WithHTTPClient(client *http.Client) *RegisterSwitchParams
- func (o *RegisterSwitchParams) WithTimeout(timeout time.Duration) *RegisterSwitchParams
- func (o *RegisterSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterSwitchReader
- type ToggleSwitchPortBadRequest
- func (o *ToggleSwitchPortBadRequest) Code() int
- func (o *ToggleSwitchPortBadRequest) Error() string
- func (o *ToggleSwitchPortBadRequest) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ToggleSwitchPortBadRequest) IsClientError() bool
- func (o *ToggleSwitchPortBadRequest) IsCode(code int) bool
- func (o *ToggleSwitchPortBadRequest) IsRedirect() bool
- func (o *ToggleSwitchPortBadRequest) IsServerError() bool
- func (o *ToggleSwitchPortBadRequest) IsSuccess() bool
- func (o *ToggleSwitchPortBadRequest) String() string
- type ToggleSwitchPortConflict
- func (o *ToggleSwitchPortConflict) Code() int
- func (o *ToggleSwitchPortConflict) Error() string
- func (o *ToggleSwitchPortConflict) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ToggleSwitchPortConflict) IsClientError() bool
- func (o *ToggleSwitchPortConflict) IsCode(code int) bool
- func (o *ToggleSwitchPortConflict) IsRedirect() bool
- func (o *ToggleSwitchPortConflict) IsServerError() bool
- func (o *ToggleSwitchPortConflict) IsSuccess() bool
- func (o *ToggleSwitchPortConflict) String() string
- type ToggleSwitchPortDefault
- func (o *ToggleSwitchPortDefault) Code() int
- func (o *ToggleSwitchPortDefault) Error() string
- func (o *ToggleSwitchPortDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ToggleSwitchPortDefault) IsClientError() bool
- func (o *ToggleSwitchPortDefault) IsCode(code int) bool
- func (o *ToggleSwitchPortDefault) IsRedirect() bool
- func (o *ToggleSwitchPortDefault) IsServerError() bool
- func (o *ToggleSwitchPortDefault) IsSuccess() bool
- func (o *ToggleSwitchPortDefault) String() string
- type ToggleSwitchPortOK
- func (o *ToggleSwitchPortOK) Code() int
- func (o *ToggleSwitchPortOK) Error() string
- func (o *ToggleSwitchPortOK) GetPayload() *models.V1SwitchResponse
- func (o *ToggleSwitchPortOK) IsClientError() bool
- func (o *ToggleSwitchPortOK) IsCode(code int) bool
- func (o *ToggleSwitchPortOK) IsRedirect() bool
- func (o *ToggleSwitchPortOK) IsServerError() bool
- func (o *ToggleSwitchPortOK) IsSuccess() bool
- func (o *ToggleSwitchPortOK) String() string
- type ToggleSwitchPortParams
- func NewToggleSwitchPortParams() *ToggleSwitchPortParams
- func NewToggleSwitchPortParamsWithContext(ctx context.Context) *ToggleSwitchPortParams
- func NewToggleSwitchPortParamsWithHTTPClient(client *http.Client) *ToggleSwitchPortParams
- func NewToggleSwitchPortParamsWithTimeout(timeout time.Duration) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) SetBody(body *models.V1SwitchPortToggleRequest)
- func (o *ToggleSwitchPortParams) SetContext(ctx context.Context)
- func (o *ToggleSwitchPortParams) SetDefaults()
- func (o *ToggleSwitchPortParams) SetHTTPClient(client *http.Client)
- func (o *ToggleSwitchPortParams) SetID(id string)
- func (o *ToggleSwitchPortParams) SetTimeout(timeout time.Duration)
- func (o *ToggleSwitchPortParams) WithBody(body *models.V1SwitchPortToggleRequest) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WithContext(ctx context.Context) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WithDefaults() *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WithHTTPClient(client *http.Client) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WithID(id string) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WithTimeout(timeout time.Duration) *ToggleSwitchPortParams
- func (o *ToggleSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ToggleSwitchPortReader
- type UpdateSwitchConflict
- func (o *UpdateSwitchConflict) Code() int
- func (o *UpdateSwitchConflict) Error() string
- func (o *UpdateSwitchConflict) GetPayload() *httperrors.HTTPErrorResponse
- func (o *UpdateSwitchConflict) IsClientError() bool
- func (o *UpdateSwitchConflict) IsCode(code int) bool
- func (o *UpdateSwitchConflict) IsRedirect() bool
- func (o *UpdateSwitchConflict) IsServerError() bool
- func (o *UpdateSwitchConflict) IsSuccess() bool
- func (o *UpdateSwitchConflict) String() string
- type UpdateSwitchDefault
- func (o *UpdateSwitchDefault) Code() int
- func (o *UpdateSwitchDefault) Error() string
- func (o *UpdateSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *UpdateSwitchDefault) IsClientError() bool
- func (o *UpdateSwitchDefault) IsCode(code int) bool
- func (o *UpdateSwitchDefault) IsRedirect() bool
- func (o *UpdateSwitchDefault) IsServerError() bool
- func (o *UpdateSwitchDefault) IsSuccess() bool
- func (o *UpdateSwitchDefault) String() string
- type UpdateSwitchOK
- func (o *UpdateSwitchOK) Code() int
- func (o *UpdateSwitchOK) Error() string
- func (o *UpdateSwitchOK) GetPayload() *models.V1SwitchResponse
- func (o *UpdateSwitchOK) IsClientError() bool
- func (o *UpdateSwitchOK) IsCode(code int) bool
- func (o *UpdateSwitchOK) IsRedirect() bool
- func (o *UpdateSwitchOK) IsServerError() bool
- func (o *UpdateSwitchOK) IsSuccess() bool
- func (o *UpdateSwitchOK) String() string
- type UpdateSwitchParams
- func (o *UpdateSwitchParams) SetBody(body *models.V1SwitchUpdateRequest)
- func (o *UpdateSwitchParams) SetContext(ctx context.Context)
- func (o *UpdateSwitchParams) SetDefaults()
- func (o *UpdateSwitchParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSwitchParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSwitchParams) WithBody(body *models.V1SwitchUpdateRequest) *UpdateSwitchParams
- func (o *UpdateSwitchParams) WithContext(ctx context.Context) *UpdateSwitchParams
- func (o *UpdateSwitchParams) WithDefaults() *UpdateSwitchParams
- func (o *UpdateSwitchParams) WithHTTPClient(client *http.Client) *UpdateSwitchParams
- func (o *UpdateSwitchParams) WithTimeout(timeout time.Duration) *UpdateSwitchParams
- func (o *UpdateSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSwitchReader
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 switch operations API
func (*Client) DeleteSwitch ¶
func (a *Client) DeleteSwitch(params *DeleteSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSwitchOK, error)
DeleteSwitch deletes an switch and returns the deleted entity
func (*Client) FindSwitch ¶
func (a *Client) FindSwitch(params *FindSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSwitchOK, error)
FindSwitch gets switch by id
func (*Client) FindSwitches ¶ added in v0.22.1
func (a *Client) FindSwitches(params *FindSwitchesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSwitchesOK, error)
FindSwitches gets all switches that match given properties
func (*Client) ListSwitches ¶
func (a *Client) ListSwitches(params *ListSwitchesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSwitchesOK, error)
ListSwitches gets all switches
func (*Client) NotifySwitch ¶ added in v0.7.1
func (a *Client) NotifySwitch(params *NotifySwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifySwitchOK, error)
NotifySwitch notifies the metal api about a configuration change of a switch
func (*Client) RegisterSwitch ¶
func (a *Client) RegisterSwitch(params *RegisterSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RegisterSwitchOK, *RegisterSwitchCreated, error)
RegisterSwitch registers a switch
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) ToggleSwitchPort ¶ added in v0.28.5
func (a *Client) ToggleSwitchPort(params *ToggleSwitchPortParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ToggleSwitchPortOK, error)
ToggleSwitchPort toggles the port of the switch with a nicname to the given state
func (*Client) UpdateSwitch ¶ added in v0.8.0
func (a *Client) UpdateSwitch(params *UpdateSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSwitchOK, error)
UpdateSwitch updates a switch if the switch was changed since this one was read a conflict is returned
type ClientOption ¶ added in v0.13.1
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶ added in v0.11.0
type ClientService interface { DeleteSwitch(params *DeleteSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSwitchOK, error) FindSwitch(params *FindSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSwitchOK, error) FindSwitches(params *FindSwitchesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindSwitchesOK, error) ListSwitches(params *ListSwitchesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSwitchesOK, error) NotifySwitch(params *NotifySwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifySwitchOK, error) RegisterSwitch(params *RegisterSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RegisterSwitchOK, *RegisterSwitchCreated, error) ToggleSwitchPort(params *ToggleSwitchPortParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ToggleSwitchPortOK, error) UpdateSwitch(params *UpdateSwitchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSwitchOK, 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 switch operations API client.
func NewClientWithBasicAuth ¶ added in v0.32.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new switch operations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.32.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new switch operations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type DeleteSwitchDefault ¶
type DeleteSwitchDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
DeleteSwitchDefault describes a response with status code -1, with default header values.
Error
func NewDeleteSwitchDefault ¶
func NewDeleteSwitchDefault(code int) *DeleteSwitchDefault
NewDeleteSwitchDefault creates a DeleteSwitchDefault with default headers values
func (*DeleteSwitchDefault) Code ¶
func (o *DeleteSwitchDefault) Code() int
Code gets the status code for the delete switch default response
func (*DeleteSwitchDefault) Error ¶
func (o *DeleteSwitchDefault) Error() string
func (*DeleteSwitchDefault) GetPayload ¶ added in v0.11.0
func (o *DeleteSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*DeleteSwitchDefault) IsClientError ¶ added in v0.19.3
func (o *DeleteSwitchDefault) IsClientError() bool
IsClientError returns true when this delete switch default response has a 4xx status code
func (*DeleteSwitchDefault) IsCode ¶ added in v0.19.3
func (o *DeleteSwitchDefault) IsCode(code int) bool
IsCode returns true when this delete switch default response a status code equal to that given
func (*DeleteSwitchDefault) IsRedirect ¶ added in v0.19.3
func (o *DeleteSwitchDefault) IsRedirect() bool
IsRedirect returns true when this delete switch default response has a 3xx status code
func (*DeleteSwitchDefault) IsServerError ¶ added in v0.19.3
func (o *DeleteSwitchDefault) IsServerError() bool
IsServerError returns true when this delete switch default response has a 5xx status code
func (*DeleteSwitchDefault) IsSuccess ¶ added in v0.19.3
func (o *DeleteSwitchDefault) IsSuccess() bool
IsSuccess returns true when this delete switch default response has a 2xx status code
func (*DeleteSwitchDefault) String ¶ added in v0.19.3
func (o *DeleteSwitchDefault) String() string
type DeleteSwitchOK ¶
type DeleteSwitchOK struct {
Payload *models.V1SwitchResponse
}
DeleteSwitchOK describes a response with status code 200, with default header values.
OK
func NewDeleteSwitchOK ¶
func NewDeleteSwitchOK() *DeleteSwitchOK
NewDeleteSwitchOK creates a DeleteSwitchOK with default headers values
func (*DeleteSwitchOK) Code ¶ added in v0.22.1
func (o *DeleteSwitchOK) Code() int
Code gets the status code for the delete switch o k response
func (*DeleteSwitchOK) Error ¶
func (o *DeleteSwitchOK) Error() string
func (*DeleteSwitchOK) GetPayload ¶ added in v0.11.0
func (o *DeleteSwitchOK) GetPayload() *models.V1SwitchResponse
func (*DeleteSwitchOK) IsClientError ¶ added in v0.19.3
func (o *DeleteSwitchOK) IsClientError() bool
IsClientError returns true when this delete switch o k response has a 4xx status code
func (*DeleteSwitchOK) IsCode ¶ added in v0.19.3
func (o *DeleteSwitchOK) IsCode(code int) bool
IsCode returns true when this delete switch o k response a status code equal to that given
func (*DeleteSwitchOK) IsRedirect ¶ added in v0.19.3
func (o *DeleteSwitchOK) IsRedirect() bool
IsRedirect returns true when this delete switch o k response has a 3xx status code
func (*DeleteSwitchOK) IsServerError ¶ added in v0.19.3
func (o *DeleteSwitchOK) IsServerError() bool
IsServerError returns true when this delete switch o k response has a 5xx status code
func (*DeleteSwitchOK) IsSuccess ¶ added in v0.19.3
func (o *DeleteSwitchOK) IsSuccess() bool
IsSuccess returns true when this delete switch o k response has a 2xx status code
func (*DeleteSwitchOK) String ¶ added in v0.19.3
func (o *DeleteSwitchOK) String() string
type DeleteSwitchParams ¶
type DeleteSwitchParams struct { /* Force. if true switch is deleted with no validation */ Force *bool /* ID. identifier of the switch */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSwitchParams contains all the parameters to send to the API endpoint
for the delete switch operation. Typically these are written to a http.Request.
func NewDeleteSwitchParams ¶
func NewDeleteSwitchParams() *DeleteSwitchParams
NewDeleteSwitchParams creates a new DeleteSwitchParams 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 NewDeleteSwitchParamsWithContext ¶
func NewDeleteSwitchParamsWithContext(ctx context.Context) *DeleteSwitchParams
NewDeleteSwitchParamsWithContext creates a new DeleteSwitchParams object with the ability to set a context for a request.
func NewDeleteSwitchParamsWithHTTPClient ¶
func NewDeleteSwitchParamsWithHTTPClient(client *http.Client) *DeleteSwitchParams
NewDeleteSwitchParamsWithHTTPClient creates a new DeleteSwitchParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSwitchParamsWithTimeout ¶
func NewDeleteSwitchParamsWithTimeout(timeout time.Duration) *DeleteSwitchParams
NewDeleteSwitchParamsWithTimeout creates a new DeleteSwitchParams object with the ability to set a timeout on a request.
func (*DeleteSwitchParams) SetContext ¶
func (o *DeleteSwitchParams) SetContext(ctx context.Context)
SetContext adds the context to the delete switch params
func (*DeleteSwitchParams) SetDefaults ¶ added in v0.12.1
func (o *DeleteSwitchParams) SetDefaults()
SetDefaults hydrates default values in the delete switch params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSwitchParams) SetForce ¶ added in v0.32.2
func (o *DeleteSwitchParams) SetForce(force *bool)
SetForce adds the force to the delete switch params
func (*DeleteSwitchParams) SetHTTPClient ¶
func (o *DeleteSwitchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete switch params
func (*DeleteSwitchParams) SetID ¶
func (o *DeleteSwitchParams) SetID(id string)
SetID adds the id to the delete switch params
func (*DeleteSwitchParams) SetTimeout ¶
func (o *DeleteSwitchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete switch params
func (*DeleteSwitchParams) WithContext ¶
func (o *DeleteSwitchParams) WithContext(ctx context.Context) *DeleteSwitchParams
WithContext adds the context to the delete switch params
func (*DeleteSwitchParams) WithDefaults ¶ added in v0.12.1
func (o *DeleteSwitchParams) WithDefaults() *DeleteSwitchParams
WithDefaults hydrates default values in the delete switch params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSwitchParams) WithForce ¶ added in v0.32.2
func (o *DeleteSwitchParams) WithForce(force *bool) *DeleteSwitchParams
WithForce adds the force to the delete switch params
func (*DeleteSwitchParams) WithHTTPClient ¶
func (o *DeleteSwitchParams) WithHTTPClient(client *http.Client) *DeleteSwitchParams
WithHTTPClient adds the HTTPClient to the delete switch params
func (*DeleteSwitchParams) WithID ¶
func (o *DeleteSwitchParams) WithID(id string) *DeleteSwitchParams
WithID adds the id to the delete switch params
func (*DeleteSwitchParams) WithTimeout ¶
func (o *DeleteSwitchParams) WithTimeout(timeout time.Duration) *DeleteSwitchParams
WithTimeout adds the timeout to the delete switch params
func (*DeleteSwitchParams) WriteToRequest ¶
func (o *DeleteSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSwitchReader ¶
type DeleteSwitchReader struct {
// contains filtered or unexported fields
}
DeleteSwitchReader is a Reader for the DeleteSwitch structure.
func (*DeleteSwitchReader) ReadResponse ¶
func (o *DeleteSwitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSwitchDefault ¶
type FindSwitchDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FindSwitchDefault describes a response with status code -1, with default header values.
Error
func NewFindSwitchDefault ¶
func NewFindSwitchDefault(code int) *FindSwitchDefault
NewFindSwitchDefault creates a FindSwitchDefault with default headers values
func (*FindSwitchDefault) Code ¶
func (o *FindSwitchDefault) Code() int
Code gets the status code for the find switch default response
func (*FindSwitchDefault) Error ¶
func (o *FindSwitchDefault) Error() string
func (*FindSwitchDefault) GetPayload ¶ added in v0.11.0
func (o *FindSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*FindSwitchDefault) IsClientError ¶ added in v0.19.3
func (o *FindSwitchDefault) IsClientError() bool
IsClientError returns true when this find switch default response has a 4xx status code
func (*FindSwitchDefault) IsCode ¶ added in v0.19.3
func (o *FindSwitchDefault) IsCode(code int) bool
IsCode returns true when this find switch default response a status code equal to that given
func (*FindSwitchDefault) IsRedirect ¶ added in v0.19.3
func (o *FindSwitchDefault) IsRedirect() bool
IsRedirect returns true when this find switch default response has a 3xx status code
func (*FindSwitchDefault) IsServerError ¶ added in v0.19.3
func (o *FindSwitchDefault) IsServerError() bool
IsServerError returns true when this find switch default response has a 5xx status code
func (*FindSwitchDefault) IsSuccess ¶ added in v0.19.3
func (o *FindSwitchDefault) IsSuccess() bool
IsSuccess returns true when this find switch default response has a 2xx status code
func (*FindSwitchDefault) String ¶ added in v0.19.3
func (o *FindSwitchDefault) String() string
type FindSwitchOK ¶
type FindSwitchOK struct {
Payload *models.V1SwitchResponse
}
FindSwitchOK describes a response with status code 200, with default header values.
OK
func NewFindSwitchOK ¶
func NewFindSwitchOK() *FindSwitchOK
NewFindSwitchOK creates a FindSwitchOK with default headers values
func (*FindSwitchOK) Code ¶ added in v0.22.1
func (o *FindSwitchOK) Code() int
Code gets the status code for the find switch o k response
func (*FindSwitchOK) Error ¶
func (o *FindSwitchOK) Error() string
func (*FindSwitchOK) GetPayload ¶ added in v0.11.0
func (o *FindSwitchOK) GetPayload() *models.V1SwitchResponse
func (*FindSwitchOK) IsClientError ¶ added in v0.19.3
func (o *FindSwitchOK) IsClientError() bool
IsClientError returns true when this find switch o k response has a 4xx status code
func (*FindSwitchOK) IsCode ¶ added in v0.19.3
func (o *FindSwitchOK) IsCode(code int) bool
IsCode returns true when this find switch o k response a status code equal to that given
func (*FindSwitchOK) IsRedirect ¶ added in v0.19.3
func (o *FindSwitchOK) IsRedirect() bool
IsRedirect returns true when this find switch o k response has a 3xx status code
func (*FindSwitchOK) IsServerError ¶ added in v0.19.3
func (o *FindSwitchOK) IsServerError() bool
IsServerError returns true when this find switch o k response has a 5xx status code
func (*FindSwitchOK) IsSuccess ¶ added in v0.19.3
func (o *FindSwitchOK) IsSuccess() bool
IsSuccess returns true when this find switch o k response has a 2xx status code
func (*FindSwitchOK) String ¶ added in v0.19.3
func (o *FindSwitchOK) String() string
type FindSwitchParams ¶
type FindSwitchParams struct { /* ID. identifier of the switch */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSwitchParams contains all the parameters to send to the API endpoint
for the find switch operation. Typically these are written to a http.Request.
func NewFindSwitchParams ¶
func NewFindSwitchParams() *FindSwitchParams
NewFindSwitchParams creates a new FindSwitchParams 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 NewFindSwitchParamsWithContext ¶
func NewFindSwitchParamsWithContext(ctx context.Context) *FindSwitchParams
NewFindSwitchParamsWithContext creates a new FindSwitchParams object with the ability to set a context for a request.
func NewFindSwitchParamsWithHTTPClient ¶
func NewFindSwitchParamsWithHTTPClient(client *http.Client) *FindSwitchParams
NewFindSwitchParamsWithHTTPClient creates a new FindSwitchParams object with the ability to set a custom HTTPClient for a request.
func NewFindSwitchParamsWithTimeout ¶
func NewFindSwitchParamsWithTimeout(timeout time.Duration) *FindSwitchParams
NewFindSwitchParamsWithTimeout creates a new FindSwitchParams object with the ability to set a timeout on a request.
func (*FindSwitchParams) SetContext ¶
func (o *FindSwitchParams) SetContext(ctx context.Context)
SetContext adds the context to the find switch params
func (*FindSwitchParams) SetDefaults ¶ added in v0.12.1
func (o *FindSwitchParams) SetDefaults()
SetDefaults hydrates default values in the find switch params (not the query body).
All values with no default are reset to their zero value.
func (*FindSwitchParams) SetHTTPClient ¶
func (o *FindSwitchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find switch params
func (*FindSwitchParams) SetID ¶
func (o *FindSwitchParams) SetID(id string)
SetID adds the id to the find switch params
func (*FindSwitchParams) SetTimeout ¶
func (o *FindSwitchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find switch params
func (*FindSwitchParams) WithContext ¶
func (o *FindSwitchParams) WithContext(ctx context.Context) *FindSwitchParams
WithContext adds the context to the find switch params
func (*FindSwitchParams) WithDefaults ¶ added in v0.12.1
func (o *FindSwitchParams) WithDefaults() *FindSwitchParams
WithDefaults hydrates default values in the find switch params (not the query body).
All values with no default are reset to their zero value.
func (*FindSwitchParams) WithHTTPClient ¶
func (o *FindSwitchParams) WithHTTPClient(client *http.Client) *FindSwitchParams
WithHTTPClient adds the HTTPClient to the find switch params
func (*FindSwitchParams) WithID ¶
func (o *FindSwitchParams) WithID(id string) *FindSwitchParams
WithID adds the id to the find switch params
func (*FindSwitchParams) WithTimeout ¶
func (o *FindSwitchParams) WithTimeout(timeout time.Duration) *FindSwitchParams
WithTimeout adds the timeout to the find switch params
func (*FindSwitchParams) WriteToRequest ¶
func (o *FindSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSwitchReader ¶
type FindSwitchReader struct {
// contains filtered or unexported fields
}
FindSwitchReader is a Reader for the FindSwitch structure.
func (*FindSwitchReader) ReadResponse ¶
func (o *FindSwitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSwitchesDefault ¶ added in v0.22.1
type FindSwitchesDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FindSwitchesDefault describes a response with status code -1, with default header values.
Error
func NewFindSwitchesDefault ¶ added in v0.22.1
func NewFindSwitchesDefault(code int) *FindSwitchesDefault
NewFindSwitchesDefault creates a FindSwitchesDefault with default headers values
func (*FindSwitchesDefault) Code ¶ added in v0.22.1
func (o *FindSwitchesDefault) Code() int
Code gets the status code for the find switches default response
func (*FindSwitchesDefault) Error ¶ added in v0.22.1
func (o *FindSwitchesDefault) Error() string
func (*FindSwitchesDefault) GetPayload ¶ added in v0.22.1
func (o *FindSwitchesDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*FindSwitchesDefault) IsClientError ¶ added in v0.22.1
func (o *FindSwitchesDefault) IsClientError() bool
IsClientError returns true when this find switches default response has a 4xx status code
func (*FindSwitchesDefault) IsCode ¶ added in v0.22.1
func (o *FindSwitchesDefault) IsCode(code int) bool
IsCode returns true when this find switches default response a status code equal to that given
func (*FindSwitchesDefault) IsRedirect ¶ added in v0.22.1
func (o *FindSwitchesDefault) IsRedirect() bool
IsRedirect returns true when this find switches default response has a 3xx status code
func (*FindSwitchesDefault) IsServerError ¶ added in v0.22.1
func (o *FindSwitchesDefault) IsServerError() bool
IsServerError returns true when this find switches default response has a 5xx status code
func (*FindSwitchesDefault) IsSuccess ¶ added in v0.22.1
func (o *FindSwitchesDefault) IsSuccess() bool
IsSuccess returns true when this find switches default response has a 2xx status code
func (*FindSwitchesDefault) String ¶ added in v0.22.1
func (o *FindSwitchesDefault) String() string
type FindSwitchesOK ¶ added in v0.22.1
type FindSwitchesOK struct {
Payload []*models.V1SwitchResponse
}
FindSwitchesOK describes a response with status code 200, with default header values.
OK
func NewFindSwitchesOK ¶ added in v0.22.1
func NewFindSwitchesOK() *FindSwitchesOK
NewFindSwitchesOK creates a FindSwitchesOK with default headers values
func (*FindSwitchesOK) Code ¶ added in v0.22.1
func (o *FindSwitchesOK) Code() int
Code gets the status code for the find switches o k response
func (*FindSwitchesOK) Error ¶ added in v0.22.1
func (o *FindSwitchesOK) Error() string
func (*FindSwitchesOK) GetPayload ¶ added in v0.22.1
func (o *FindSwitchesOK) GetPayload() []*models.V1SwitchResponse
func (*FindSwitchesOK) IsClientError ¶ added in v0.22.1
func (o *FindSwitchesOK) IsClientError() bool
IsClientError returns true when this find switches o k response has a 4xx status code
func (*FindSwitchesOK) IsCode ¶ added in v0.22.1
func (o *FindSwitchesOK) IsCode(code int) bool
IsCode returns true when this find switches o k response a status code equal to that given
func (*FindSwitchesOK) IsRedirect ¶ added in v0.22.1
func (o *FindSwitchesOK) IsRedirect() bool
IsRedirect returns true when this find switches o k response has a 3xx status code
func (*FindSwitchesOK) IsServerError ¶ added in v0.22.1
func (o *FindSwitchesOK) IsServerError() bool
IsServerError returns true when this find switches o k response has a 5xx status code
func (*FindSwitchesOK) IsSuccess ¶ added in v0.22.1
func (o *FindSwitchesOK) IsSuccess() bool
IsSuccess returns true when this find switches o k response has a 2xx status code
func (*FindSwitchesOK) String ¶ added in v0.22.1
func (o *FindSwitchesOK) String() string
type FindSwitchesParams ¶ added in v0.22.1
type FindSwitchesParams struct { // Body. Body *models.V1SwitchFindRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSwitchesParams contains all the parameters to send to the API endpoint
for the find switches operation. Typically these are written to a http.Request.
func NewFindSwitchesParams ¶ added in v0.22.1
func NewFindSwitchesParams() *FindSwitchesParams
NewFindSwitchesParams creates a new FindSwitchesParams 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 NewFindSwitchesParamsWithContext ¶ added in v0.22.1
func NewFindSwitchesParamsWithContext(ctx context.Context) *FindSwitchesParams
NewFindSwitchesParamsWithContext creates a new FindSwitchesParams object with the ability to set a context for a request.
func NewFindSwitchesParamsWithHTTPClient ¶ added in v0.22.1
func NewFindSwitchesParamsWithHTTPClient(client *http.Client) *FindSwitchesParams
NewFindSwitchesParamsWithHTTPClient creates a new FindSwitchesParams object with the ability to set a custom HTTPClient for a request.
func NewFindSwitchesParamsWithTimeout ¶ added in v0.22.1
func NewFindSwitchesParamsWithTimeout(timeout time.Duration) *FindSwitchesParams
NewFindSwitchesParamsWithTimeout creates a new FindSwitchesParams object with the ability to set a timeout on a request.
func (*FindSwitchesParams) SetBody ¶ added in v0.22.1
func (o *FindSwitchesParams) SetBody(body *models.V1SwitchFindRequest)
SetBody adds the body to the find switches params
func (*FindSwitchesParams) SetContext ¶ added in v0.22.1
func (o *FindSwitchesParams) SetContext(ctx context.Context)
SetContext adds the context to the find switches params
func (*FindSwitchesParams) SetDefaults ¶ added in v0.22.1
func (o *FindSwitchesParams) SetDefaults()
SetDefaults hydrates default values in the find switches params (not the query body).
All values with no default are reset to their zero value.
func (*FindSwitchesParams) SetHTTPClient ¶ added in v0.22.1
func (o *FindSwitchesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find switches params
func (*FindSwitchesParams) SetTimeout ¶ added in v0.22.1
func (o *FindSwitchesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find switches params
func (*FindSwitchesParams) WithBody ¶ added in v0.22.1
func (o *FindSwitchesParams) WithBody(body *models.V1SwitchFindRequest) *FindSwitchesParams
WithBody adds the body to the find switches params
func (*FindSwitchesParams) WithContext ¶ added in v0.22.1
func (o *FindSwitchesParams) WithContext(ctx context.Context) *FindSwitchesParams
WithContext adds the context to the find switches params
func (*FindSwitchesParams) WithDefaults ¶ added in v0.22.1
func (o *FindSwitchesParams) WithDefaults() *FindSwitchesParams
WithDefaults hydrates default values in the find switches params (not the query body).
All values with no default are reset to their zero value.
func (*FindSwitchesParams) WithHTTPClient ¶ added in v0.22.1
func (o *FindSwitchesParams) WithHTTPClient(client *http.Client) *FindSwitchesParams
WithHTTPClient adds the HTTPClient to the find switches params
func (*FindSwitchesParams) WithTimeout ¶ added in v0.22.1
func (o *FindSwitchesParams) WithTimeout(timeout time.Duration) *FindSwitchesParams
WithTimeout adds the timeout to the find switches params
func (*FindSwitchesParams) WriteToRequest ¶ added in v0.22.1
func (o *FindSwitchesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSwitchesReader ¶ added in v0.22.1
type FindSwitchesReader struct {
// contains filtered or unexported fields
}
FindSwitchesReader is a Reader for the FindSwitches structure.
func (*FindSwitchesReader) ReadResponse ¶ added in v0.22.1
func (o *FindSwitchesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSwitchesDefault ¶
type ListSwitchesDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
ListSwitchesDefault describes a response with status code -1, with default header values.
Error
func NewListSwitchesDefault ¶
func NewListSwitchesDefault(code int) *ListSwitchesDefault
NewListSwitchesDefault creates a ListSwitchesDefault with default headers values
func (*ListSwitchesDefault) Code ¶
func (o *ListSwitchesDefault) Code() int
Code gets the status code for the list switches default response
func (*ListSwitchesDefault) Error ¶
func (o *ListSwitchesDefault) Error() string
func (*ListSwitchesDefault) GetPayload ¶ added in v0.11.0
func (o *ListSwitchesDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*ListSwitchesDefault) IsClientError ¶ added in v0.19.3
func (o *ListSwitchesDefault) IsClientError() bool
IsClientError returns true when this list switches default response has a 4xx status code
func (*ListSwitchesDefault) IsCode ¶ added in v0.19.3
func (o *ListSwitchesDefault) IsCode(code int) bool
IsCode returns true when this list switches default response a status code equal to that given
func (*ListSwitchesDefault) IsRedirect ¶ added in v0.19.3
func (o *ListSwitchesDefault) IsRedirect() bool
IsRedirect returns true when this list switches default response has a 3xx status code
func (*ListSwitchesDefault) IsServerError ¶ added in v0.19.3
func (o *ListSwitchesDefault) IsServerError() bool
IsServerError returns true when this list switches default response has a 5xx status code
func (*ListSwitchesDefault) IsSuccess ¶ added in v0.19.3
func (o *ListSwitchesDefault) IsSuccess() bool
IsSuccess returns true when this list switches default response has a 2xx status code
func (*ListSwitchesDefault) String ¶ added in v0.19.3
func (o *ListSwitchesDefault) String() string
type ListSwitchesOK ¶
type ListSwitchesOK struct {
Payload []*models.V1SwitchResponse
}
ListSwitchesOK describes a response with status code 200, with default header values.
OK
func NewListSwitchesOK ¶
func NewListSwitchesOK() *ListSwitchesOK
NewListSwitchesOK creates a ListSwitchesOK with default headers values
func (*ListSwitchesOK) Code ¶ added in v0.22.1
func (o *ListSwitchesOK) Code() int
Code gets the status code for the list switches o k response
func (*ListSwitchesOK) Error ¶
func (o *ListSwitchesOK) Error() string
func (*ListSwitchesOK) GetPayload ¶ added in v0.11.0
func (o *ListSwitchesOK) GetPayload() []*models.V1SwitchResponse
func (*ListSwitchesOK) IsClientError ¶ added in v0.19.3
func (o *ListSwitchesOK) IsClientError() bool
IsClientError returns true when this list switches o k response has a 4xx status code
func (*ListSwitchesOK) IsCode ¶ added in v0.19.3
func (o *ListSwitchesOK) IsCode(code int) bool
IsCode returns true when this list switches o k response a status code equal to that given
func (*ListSwitchesOK) IsRedirect ¶ added in v0.19.3
func (o *ListSwitchesOK) IsRedirect() bool
IsRedirect returns true when this list switches o k response has a 3xx status code
func (*ListSwitchesOK) IsServerError ¶ added in v0.19.3
func (o *ListSwitchesOK) IsServerError() bool
IsServerError returns true when this list switches o k response has a 5xx status code
func (*ListSwitchesOK) IsSuccess ¶ added in v0.19.3
func (o *ListSwitchesOK) IsSuccess() bool
IsSuccess returns true when this list switches o k response has a 2xx status code
func (*ListSwitchesOK) String ¶ added in v0.19.3
func (o *ListSwitchesOK) String() string
type ListSwitchesParams ¶
type ListSwitchesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSwitchesParams contains all the parameters to send to the API endpoint
for the list switches operation. Typically these are written to a http.Request.
func NewListSwitchesParams ¶
func NewListSwitchesParams() *ListSwitchesParams
NewListSwitchesParams creates a new ListSwitchesParams 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 NewListSwitchesParamsWithContext ¶
func NewListSwitchesParamsWithContext(ctx context.Context) *ListSwitchesParams
NewListSwitchesParamsWithContext creates a new ListSwitchesParams object with the ability to set a context for a request.
func NewListSwitchesParamsWithHTTPClient ¶
func NewListSwitchesParamsWithHTTPClient(client *http.Client) *ListSwitchesParams
NewListSwitchesParamsWithHTTPClient creates a new ListSwitchesParams object with the ability to set a custom HTTPClient for a request.
func NewListSwitchesParamsWithTimeout ¶
func NewListSwitchesParamsWithTimeout(timeout time.Duration) *ListSwitchesParams
NewListSwitchesParamsWithTimeout creates a new ListSwitchesParams object with the ability to set a timeout on a request.
func (*ListSwitchesParams) SetContext ¶
func (o *ListSwitchesParams) SetContext(ctx context.Context)
SetContext adds the context to the list switches params
func (*ListSwitchesParams) SetDefaults ¶ added in v0.12.1
func (o *ListSwitchesParams) SetDefaults()
SetDefaults hydrates default values in the list switches params (not the query body).
All values with no default are reset to their zero value.
func (*ListSwitchesParams) SetHTTPClient ¶
func (o *ListSwitchesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list switches params
func (*ListSwitchesParams) SetTimeout ¶
func (o *ListSwitchesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list switches params
func (*ListSwitchesParams) WithContext ¶
func (o *ListSwitchesParams) WithContext(ctx context.Context) *ListSwitchesParams
WithContext adds the context to the list switches params
func (*ListSwitchesParams) WithDefaults ¶ added in v0.12.1
func (o *ListSwitchesParams) WithDefaults() *ListSwitchesParams
WithDefaults hydrates default values in the list switches params (not the query body).
All values with no default are reset to their zero value.
func (*ListSwitchesParams) WithHTTPClient ¶
func (o *ListSwitchesParams) WithHTTPClient(client *http.Client) *ListSwitchesParams
WithHTTPClient adds the HTTPClient to the list switches params
func (*ListSwitchesParams) WithTimeout ¶
func (o *ListSwitchesParams) WithTimeout(timeout time.Duration) *ListSwitchesParams
WithTimeout adds the timeout to the list switches params
func (*ListSwitchesParams) WriteToRequest ¶
func (o *ListSwitchesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSwitchesReader ¶
type ListSwitchesReader struct {
// contains filtered or unexported fields
}
ListSwitchesReader is a Reader for the ListSwitches structure.
func (*ListSwitchesReader) ReadResponse ¶
func (o *ListSwitchesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifySwitchDefault ¶ added in v0.7.1
type NotifySwitchDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
NotifySwitchDefault describes a response with status code -1, with default header values.
Error
func NewNotifySwitchDefault ¶ added in v0.7.1
func NewNotifySwitchDefault(code int) *NotifySwitchDefault
NewNotifySwitchDefault creates a NotifySwitchDefault with default headers values
func (*NotifySwitchDefault) Code ¶ added in v0.7.1
func (o *NotifySwitchDefault) Code() int
Code gets the status code for the notify switch default response
func (*NotifySwitchDefault) Error ¶ added in v0.7.1
func (o *NotifySwitchDefault) Error() string
func (*NotifySwitchDefault) GetPayload ¶ added in v0.11.0
func (o *NotifySwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*NotifySwitchDefault) IsClientError ¶ added in v0.19.3
func (o *NotifySwitchDefault) IsClientError() bool
IsClientError returns true when this notify switch default response has a 4xx status code
func (*NotifySwitchDefault) IsCode ¶ added in v0.19.3
func (o *NotifySwitchDefault) IsCode(code int) bool
IsCode returns true when this notify switch default response a status code equal to that given
func (*NotifySwitchDefault) IsRedirect ¶ added in v0.19.3
func (o *NotifySwitchDefault) IsRedirect() bool
IsRedirect returns true when this notify switch default response has a 3xx status code
func (*NotifySwitchDefault) IsServerError ¶ added in v0.19.3
func (o *NotifySwitchDefault) IsServerError() bool
IsServerError returns true when this notify switch default response has a 5xx status code
func (*NotifySwitchDefault) IsSuccess ¶ added in v0.19.3
func (o *NotifySwitchDefault) IsSuccess() bool
IsSuccess returns true when this notify switch default response has a 2xx status code
func (*NotifySwitchDefault) String ¶ added in v0.19.3
func (o *NotifySwitchDefault) String() string
type NotifySwitchOK ¶ added in v0.7.1
type NotifySwitchOK struct {
Payload *models.V1SwitchNotifyResponse
}
NotifySwitchOK describes a response with status code 200, with default header values.
OK
func NewNotifySwitchOK ¶ added in v0.7.1
func NewNotifySwitchOK() *NotifySwitchOK
NewNotifySwitchOK creates a NotifySwitchOK with default headers values
func (*NotifySwitchOK) Code ¶ added in v0.22.1
func (o *NotifySwitchOK) Code() int
Code gets the status code for the notify switch o k response
func (*NotifySwitchOK) Error ¶ added in v0.7.1
func (o *NotifySwitchOK) Error() string
func (*NotifySwitchOK) GetPayload ¶ added in v0.11.0
func (o *NotifySwitchOK) GetPayload() *models.V1SwitchNotifyResponse
func (*NotifySwitchOK) IsClientError ¶ added in v0.19.3
func (o *NotifySwitchOK) IsClientError() bool
IsClientError returns true when this notify switch o k response has a 4xx status code
func (*NotifySwitchOK) IsCode ¶ added in v0.19.3
func (o *NotifySwitchOK) IsCode(code int) bool
IsCode returns true when this notify switch o k response a status code equal to that given
func (*NotifySwitchOK) IsRedirect ¶ added in v0.19.3
func (o *NotifySwitchOK) IsRedirect() bool
IsRedirect returns true when this notify switch o k response has a 3xx status code
func (*NotifySwitchOK) IsServerError ¶ added in v0.19.3
func (o *NotifySwitchOK) IsServerError() bool
IsServerError returns true when this notify switch o k response has a 5xx status code
func (*NotifySwitchOK) IsSuccess ¶ added in v0.19.3
func (o *NotifySwitchOK) IsSuccess() bool
IsSuccess returns true when this notify switch o k response has a 2xx status code
func (*NotifySwitchOK) String ¶ added in v0.19.3
func (o *NotifySwitchOK) String() string
type NotifySwitchParams ¶ added in v0.7.1
type NotifySwitchParams struct { // Body. Body *models.V1SwitchNotifyRequest /* ID. identifier of the switch */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifySwitchParams contains all the parameters to send to the API endpoint
for the notify switch operation. Typically these are written to a http.Request.
func NewNotifySwitchParams ¶ added in v0.7.1
func NewNotifySwitchParams() *NotifySwitchParams
NewNotifySwitchParams creates a new NotifySwitchParams 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 NewNotifySwitchParamsWithContext ¶ added in v0.7.1
func NewNotifySwitchParamsWithContext(ctx context.Context) *NotifySwitchParams
NewNotifySwitchParamsWithContext creates a new NotifySwitchParams object with the ability to set a context for a request.
func NewNotifySwitchParamsWithHTTPClient ¶ added in v0.7.1
func NewNotifySwitchParamsWithHTTPClient(client *http.Client) *NotifySwitchParams
NewNotifySwitchParamsWithHTTPClient creates a new NotifySwitchParams object with the ability to set a custom HTTPClient for a request.
func NewNotifySwitchParamsWithTimeout ¶ added in v0.7.1
func NewNotifySwitchParamsWithTimeout(timeout time.Duration) *NotifySwitchParams
NewNotifySwitchParamsWithTimeout creates a new NotifySwitchParams object with the ability to set a timeout on a request.
func (*NotifySwitchParams) SetBody ¶ added in v0.7.1
func (o *NotifySwitchParams) SetBody(body *models.V1SwitchNotifyRequest)
SetBody adds the body to the notify switch params
func (*NotifySwitchParams) SetContext ¶ added in v0.7.1
func (o *NotifySwitchParams) SetContext(ctx context.Context)
SetContext adds the context to the notify switch params
func (*NotifySwitchParams) SetDefaults ¶ added in v0.12.1
func (o *NotifySwitchParams) SetDefaults()
SetDefaults hydrates default values in the notify switch params (not the query body).
All values with no default are reset to their zero value.
func (*NotifySwitchParams) SetHTTPClient ¶ added in v0.7.1
func (o *NotifySwitchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify switch params
func (*NotifySwitchParams) SetID ¶ added in v0.7.1
func (o *NotifySwitchParams) SetID(id string)
SetID adds the id to the notify switch params
func (*NotifySwitchParams) SetTimeout ¶ added in v0.7.1
func (o *NotifySwitchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify switch params
func (*NotifySwitchParams) WithBody ¶ added in v0.7.1
func (o *NotifySwitchParams) WithBody(body *models.V1SwitchNotifyRequest) *NotifySwitchParams
WithBody adds the body to the notify switch params
func (*NotifySwitchParams) WithContext ¶ added in v0.7.1
func (o *NotifySwitchParams) WithContext(ctx context.Context) *NotifySwitchParams
WithContext adds the context to the notify switch params
func (*NotifySwitchParams) WithDefaults ¶ added in v0.12.1
func (o *NotifySwitchParams) WithDefaults() *NotifySwitchParams
WithDefaults hydrates default values in the notify switch params (not the query body).
All values with no default are reset to their zero value.
func (*NotifySwitchParams) WithHTTPClient ¶ added in v0.7.1
func (o *NotifySwitchParams) WithHTTPClient(client *http.Client) *NotifySwitchParams
WithHTTPClient adds the HTTPClient to the notify switch params
func (*NotifySwitchParams) WithID ¶ added in v0.7.1
func (o *NotifySwitchParams) WithID(id string) *NotifySwitchParams
WithID adds the id to the notify switch params
func (*NotifySwitchParams) WithTimeout ¶ added in v0.7.1
func (o *NotifySwitchParams) WithTimeout(timeout time.Duration) *NotifySwitchParams
WithTimeout adds the timeout to the notify switch params
func (*NotifySwitchParams) WriteToRequest ¶ added in v0.7.1
func (o *NotifySwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifySwitchReader ¶ added in v0.7.1
type NotifySwitchReader struct {
// contains filtered or unexported fields
}
NotifySwitchReader is a Reader for the NotifySwitch structure.
func (*NotifySwitchReader) ReadResponse ¶ added in v0.7.1
func (o *NotifySwitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RegisterSwitchCreated ¶
type RegisterSwitchCreated struct {
Payload *models.V1SwitchResponse
}
RegisterSwitchCreated describes a response with status code 201, with default header values.
Created
func NewRegisterSwitchCreated ¶
func NewRegisterSwitchCreated() *RegisterSwitchCreated
NewRegisterSwitchCreated creates a RegisterSwitchCreated with default headers values
func (*RegisterSwitchCreated) Code ¶ added in v0.22.1
func (o *RegisterSwitchCreated) Code() int
Code gets the status code for the register switch created response
func (*RegisterSwitchCreated) Error ¶
func (o *RegisterSwitchCreated) Error() string
func (*RegisterSwitchCreated) GetPayload ¶ added in v0.11.0
func (o *RegisterSwitchCreated) GetPayload() *models.V1SwitchResponse
func (*RegisterSwitchCreated) IsClientError ¶ added in v0.19.3
func (o *RegisterSwitchCreated) IsClientError() bool
IsClientError returns true when this register switch created response has a 4xx status code
func (*RegisterSwitchCreated) IsCode ¶ added in v0.19.3
func (o *RegisterSwitchCreated) IsCode(code int) bool
IsCode returns true when this register switch created response a status code equal to that given
func (*RegisterSwitchCreated) IsRedirect ¶ added in v0.19.3
func (o *RegisterSwitchCreated) IsRedirect() bool
IsRedirect returns true when this register switch created response has a 3xx status code
func (*RegisterSwitchCreated) IsServerError ¶ added in v0.19.3
func (o *RegisterSwitchCreated) IsServerError() bool
IsServerError returns true when this register switch created response has a 5xx status code
func (*RegisterSwitchCreated) IsSuccess ¶ added in v0.19.3
func (o *RegisterSwitchCreated) IsSuccess() bool
IsSuccess returns true when this register switch created response has a 2xx status code
func (*RegisterSwitchCreated) String ¶ added in v0.19.3
func (o *RegisterSwitchCreated) String() string
type RegisterSwitchDefault ¶
type RegisterSwitchDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
RegisterSwitchDefault describes a response with status code -1, with default header values.
Error
func NewRegisterSwitchDefault ¶
func NewRegisterSwitchDefault(code int) *RegisterSwitchDefault
NewRegisterSwitchDefault creates a RegisterSwitchDefault with default headers values
func (*RegisterSwitchDefault) Code ¶
func (o *RegisterSwitchDefault) Code() int
Code gets the status code for the register switch default response
func (*RegisterSwitchDefault) Error ¶
func (o *RegisterSwitchDefault) Error() string
func (*RegisterSwitchDefault) GetPayload ¶ added in v0.11.0
func (o *RegisterSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*RegisterSwitchDefault) IsClientError ¶ added in v0.19.3
func (o *RegisterSwitchDefault) IsClientError() bool
IsClientError returns true when this register switch default response has a 4xx status code
func (*RegisterSwitchDefault) IsCode ¶ added in v0.19.3
func (o *RegisterSwitchDefault) IsCode(code int) bool
IsCode returns true when this register switch default response a status code equal to that given
func (*RegisterSwitchDefault) IsRedirect ¶ added in v0.19.3
func (o *RegisterSwitchDefault) IsRedirect() bool
IsRedirect returns true when this register switch default response has a 3xx status code
func (*RegisterSwitchDefault) IsServerError ¶ added in v0.19.3
func (o *RegisterSwitchDefault) IsServerError() bool
IsServerError returns true when this register switch default response has a 5xx status code
func (*RegisterSwitchDefault) IsSuccess ¶ added in v0.19.3
func (o *RegisterSwitchDefault) IsSuccess() bool
IsSuccess returns true when this register switch default response has a 2xx status code
func (*RegisterSwitchDefault) String ¶ added in v0.19.3
func (o *RegisterSwitchDefault) String() string
type RegisterSwitchOK ¶
type RegisterSwitchOK struct {
Payload *models.V1SwitchResponse
}
RegisterSwitchOK describes a response with status code 200, with default header values.
OK
func NewRegisterSwitchOK ¶
func NewRegisterSwitchOK() *RegisterSwitchOK
NewRegisterSwitchOK creates a RegisterSwitchOK with default headers values
func (*RegisterSwitchOK) Code ¶ added in v0.22.1
func (o *RegisterSwitchOK) Code() int
Code gets the status code for the register switch o k response
func (*RegisterSwitchOK) Error ¶
func (o *RegisterSwitchOK) Error() string
func (*RegisterSwitchOK) GetPayload ¶ added in v0.11.0
func (o *RegisterSwitchOK) GetPayload() *models.V1SwitchResponse
func (*RegisterSwitchOK) IsClientError ¶ added in v0.19.3
func (o *RegisterSwitchOK) IsClientError() bool
IsClientError returns true when this register switch o k response has a 4xx status code
func (*RegisterSwitchOK) IsCode ¶ added in v0.19.3
func (o *RegisterSwitchOK) IsCode(code int) bool
IsCode returns true when this register switch o k response a status code equal to that given
func (*RegisterSwitchOK) IsRedirect ¶ added in v0.19.3
func (o *RegisterSwitchOK) IsRedirect() bool
IsRedirect returns true when this register switch o k response has a 3xx status code
func (*RegisterSwitchOK) IsServerError ¶ added in v0.19.3
func (o *RegisterSwitchOK) IsServerError() bool
IsServerError returns true when this register switch o k response has a 5xx status code
func (*RegisterSwitchOK) IsSuccess ¶ added in v0.19.3
func (o *RegisterSwitchOK) IsSuccess() bool
IsSuccess returns true when this register switch o k response has a 2xx status code
func (*RegisterSwitchOK) String ¶ added in v0.19.3
func (o *RegisterSwitchOK) String() string
type RegisterSwitchParams ¶
type RegisterSwitchParams struct { // Body. Body *models.V1SwitchRegisterRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RegisterSwitchParams contains all the parameters to send to the API endpoint
for the register switch operation. Typically these are written to a http.Request.
func NewRegisterSwitchParams ¶
func NewRegisterSwitchParams() *RegisterSwitchParams
NewRegisterSwitchParams creates a new RegisterSwitchParams 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 NewRegisterSwitchParamsWithContext ¶
func NewRegisterSwitchParamsWithContext(ctx context.Context) *RegisterSwitchParams
NewRegisterSwitchParamsWithContext creates a new RegisterSwitchParams object with the ability to set a context for a request.
func NewRegisterSwitchParamsWithHTTPClient ¶
func NewRegisterSwitchParamsWithHTTPClient(client *http.Client) *RegisterSwitchParams
NewRegisterSwitchParamsWithHTTPClient creates a new RegisterSwitchParams object with the ability to set a custom HTTPClient for a request.
func NewRegisterSwitchParamsWithTimeout ¶
func NewRegisterSwitchParamsWithTimeout(timeout time.Duration) *RegisterSwitchParams
NewRegisterSwitchParamsWithTimeout creates a new RegisterSwitchParams object with the ability to set a timeout on a request.
func (*RegisterSwitchParams) SetBody ¶
func (o *RegisterSwitchParams) SetBody(body *models.V1SwitchRegisterRequest)
SetBody adds the body to the register switch params
func (*RegisterSwitchParams) SetContext ¶
func (o *RegisterSwitchParams) SetContext(ctx context.Context)
SetContext adds the context to the register switch params
func (*RegisterSwitchParams) SetDefaults ¶ added in v0.12.1
func (o *RegisterSwitchParams) SetDefaults()
SetDefaults hydrates default values in the register switch params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterSwitchParams) SetHTTPClient ¶
func (o *RegisterSwitchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register switch params
func (*RegisterSwitchParams) SetTimeout ¶
func (o *RegisterSwitchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register switch params
func (*RegisterSwitchParams) WithBody ¶
func (o *RegisterSwitchParams) WithBody(body *models.V1SwitchRegisterRequest) *RegisterSwitchParams
WithBody adds the body to the register switch params
func (*RegisterSwitchParams) WithContext ¶
func (o *RegisterSwitchParams) WithContext(ctx context.Context) *RegisterSwitchParams
WithContext adds the context to the register switch params
func (*RegisterSwitchParams) WithDefaults ¶ added in v0.12.1
func (o *RegisterSwitchParams) WithDefaults() *RegisterSwitchParams
WithDefaults hydrates default values in the register switch params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterSwitchParams) WithHTTPClient ¶
func (o *RegisterSwitchParams) WithHTTPClient(client *http.Client) *RegisterSwitchParams
WithHTTPClient adds the HTTPClient to the register switch params
func (*RegisterSwitchParams) WithTimeout ¶
func (o *RegisterSwitchParams) WithTimeout(timeout time.Duration) *RegisterSwitchParams
WithTimeout adds the timeout to the register switch params
func (*RegisterSwitchParams) WriteToRequest ¶
func (o *RegisterSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterSwitchReader ¶
type RegisterSwitchReader struct {
// contains filtered or unexported fields
}
RegisterSwitchReader is a Reader for the RegisterSwitch structure.
func (*RegisterSwitchReader) ReadResponse ¶
func (o *RegisterSwitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ToggleSwitchPortBadRequest ¶ added in v0.31.0
type ToggleSwitchPortBadRequest struct {
Payload *httperrors.HTTPErrorResponse
}
ToggleSwitchPortBadRequest describes a response with status code 400, with default header values.
Bad input data
func NewToggleSwitchPortBadRequest ¶ added in v0.31.0
func NewToggleSwitchPortBadRequest() *ToggleSwitchPortBadRequest
NewToggleSwitchPortBadRequest creates a ToggleSwitchPortBadRequest with default headers values
func (*ToggleSwitchPortBadRequest) Code ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) Code() int
Code gets the status code for the toggle switch port bad request response
func (*ToggleSwitchPortBadRequest) Error ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) Error() string
func (*ToggleSwitchPortBadRequest) GetPayload ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) GetPayload() *httperrors.HTTPErrorResponse
func (*ToggleSwitchPortBadRequest) IsClientError ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) IsClientError() bool
IsClientError returns true when this toggle switch port bad request response has a 4xx status code
func (*ToggleSwitchPortBadRequest) IsCode ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) IsCode(code int) bool
IsCode returns true when this toggle switch port bad request response a status code equal to that given
func (*ToggleSwitchPortBadRequest) IsRedirect ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) IsRedirect() bool
IsRedirect returns true when this toggle switch port bad request response has a 3xx status code
func (*ToggleSwitchPortBadRequest) IsServerError ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) IsServerError() bool
IsServerError returns true when this toggle switch port bad request response has a 5xx status code
func (*ToggleSwitchPortBadRequest) IsSuccess ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) IsSuccess() bool
IsSuccess returns true when this toggle switch port bad request response has a 2xx status code
func (*ToggleSwitchPortBadRequest) String ¶ added in v0.31.0
func (o *ToggleSwitchPortBadRequest) String() string
type ToggleSwitchPortConflict ¶ added in v0.28.5
type ToggleSwitchPortConflict struct {
Payload *httperrors.HTTPErrorResponse
}
ToggleSwitchPortConflict describes a response with status code 409, with default header values.
Conflict
func NewToggleSwitchPortConflict ¶ added in v0.28.5
func NewToggleSwitchPortConflict() *ToggleSwitchPortConflict
NewToggleSwitchPortConflict creates a ToggleSwitchPortConflict with default headers values
func (*ToggleSwitchPortConflict) Code ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) Code() int
Code gets the status code for the toggle switch port conflict response
func (*ToggleSwitchPortConflict) Error ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) Error() string
func (*ToggleSwitchPortConflict) GetPayload ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) GetPayload() *httperrors.HTTPErrorResponse
func (*ToggleSwitchPortConflict) IsClientError ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) IsClientError() bool
IsClientError returns true when this toggle switch port conflict response has a 4xx status code
func (*ToggleSwitchPortConflict) IsCode ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) IsCode(code int) bool
IsCode returns true when this toggle switch port conflict response a status code equal to that given
func (*ToggleSwitchPortConflict) IsRedirect ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) IsRedirect() bool
IsRedirect returns true when this toggle switch port conflict response has a 3xx status code
func (*ToggleSwitchPortConflict) IsServerError ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) IsServerError() bool
IsServerError returns true when this toggle switch port conflict response has a 5xx status code
func (*ToggleSwitchPortConflict) IsSuccess ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) IsSuccess() bool
IsSuccess returns true when this toggle switch port conflict response has a 2xx status code
func (*ToggleSwitchPortConflict) String ¶ added in v0.28.5
func (o *ToggleSwitchPortConflict) String() string
type ToggleSwitchPortDefault ¶ added in v0.28.5
type ToggleSwitchPortDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
ToggleSwitchPortDefault describes a response with status code -1, with default header values.
Error
func NewToggleSwitchPortDefault ¶ added in v0.28.5
func NewToggleSwitchPortDefault(code int) *ToggleSwitchPortDefault
NewToggleSwitchPortDefault creates a ToggleSwitchPortDefault with default headers values
func (*ToggleSwitchPortDefault) Code ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) Code() int
Code gets the status code for the toggle switch port default response
func (*ToggleSwitchPortDefault) Error ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) Error() string
func (*ToggleSwitchPortDefault) GetPayload ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*ToggleSwitchPortDefault) IsClientError ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) IsClientError() bool
IsClientError returns true when this toggle switch port default response has a 4xx status code
func (*ToggleSwitchPortDefault) IsCode ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) IsCode(code int) bool
IsCode returns true when this toggle switch port default response a status code equal to that given
func (*ToggleSwitchPortDefault) IsRedirect ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) IsRedirect() bool
IsRedirect returns true when this toggle switch port default response has a 3xx status code
func (*ToggleSwitchPortDefault) IsServerError ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) IsServerError() bool
IsServerError returns true when this toggle switch port default response has a 5xx status code
func (*ToggleSwitchPortDefault) IsSuccess ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) IsSuccess() bool
IsSuccess returns true when this toggle switch port default response has a 2xx status code
func (*ToggleSwitchPortDefault) String ¶ added in v0.28.5
func (o *ToggleSwitchPortDefault) String() string
type ToggleSwitchPortOK ¶ added in v0.28.5
type ToggleSwitchPortOK struct {
Payload *models.V1SwitchResponse
}
ToggleSwitchPortOK describes a response with status code 200, with default header values.
OK
func NewToggleSwitchPortOK ¶ added in v0.28.5
func NewToggleSwitchPortOK() *ToggleSwitchPortOK
NewToggleSwitchPortOK creates a ToggleSwitchPortOK with default headers values
func (*ToggleSwitchPortOK) Code ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) Code() int
Code gets the status code for the toggle switch port o k response
func (*ToggleSwitchPortOK) Error ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) Error() string
func (*ToggleSwitchPortOK) GetPayload ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) GetPayload() *models.V1SwitchResponse
func (*ToggleSwitchPortOK) IsClientError ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) IsClientError() bool
IsClientError returns true when this toggle switch port o k response has a 4xx status code
func (*ToggleSwitchPortOK) IsCode ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) IsCode(code int) bool
IsCode returns true when this toggle switch port o k response a status code equal to that given
func (*ToggleSwitchPortOK) IsRedirect ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) IsRedirect() bool
IsRedirect returns true when this toggle switch port o k response has a 3xx status code
func (*ToggleSwitchPortOK) IsServerError ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) IsServerError() bool
IsServerError returns true when this toggle switch port o k response has a 5xx status code
func (*ToggleSwitchPortOK) IsSuccess ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) IsSuccess() bool
IsSuccess returns true when this toggle switch port o k response has a 2xx status code
func (*ToggleSwitchPortOK) String ¶ added in v0.28.5
func (o *ToggleSwitchPortOK) String() string
type ToggleSwitchPortParams ¶ added in v0.28.5
type ToggleSwitchPortParams struct { // Body. Body *models.V1SwitchPortToggleRequest /* ID. identifier of the switch */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ToggleSwitchPortParams contains all the parameters to send to the API endpoint
for the toggle switch port operation. Typically these are written to a http.Request.
func NewToggleSwitchPortParams ¶ added in v0.28.5
func NewToggleSwitchPortParams() *ToggleSwitchPortParams
NewToggleSwitchPortParams creates a new ToggleSwitchPortParams 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 NewToggleSwitchPortParamsWithContext ¶ added in v0.28.5
func NewToggleSwitchPortParamsWithContext(ctx context.Context) *ToggleSwitchPortParams
NewToggleSwitchPortParamsWithContext creates a new ToggleSwitchPortParams object with the ability to set a context for a request.
func NewToggleSwitchPortParamsWithHTTPClient ¶ added in v0.28.5
func NewToggleSwitchPortParamsWithHTTPClient(client *http.Client) *ToggleSwitchPortParams
NewToggleSwitchPortParamsWithHTTPClient creates a new ToggleSwitchPortParams object with the ability to set a custom HTTPClient for a request.
func NewToggleSwitchPortParamsWithTimeout ¶ added in v0.28.5
func NewToggleSwitchPortParamsWithTimeout(timeout time.Duration) *ToggleSwitchPortParams
NewToggleSwitchPortParamsWithTimeout creates a new ToggleSwitchPortParams object with the ability to set a timeout on a request.
func (*ToggleSwitchPortParams) SetBody ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetBody(body *models.V1SwitchPortToggleRequest)
SetBody adds the body to the toggle switch port params
func (*ToggleSwitchPortParams) SetContext ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetContext(ctx context.Context)
SetContext adds the context to the toggle switch port params
func (*ToggleSwitchPortParams) SetDefaults ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetDefaults()
SetDefaults hydrates default values in the toggle switch port params (not the query body).
All values with no default are reset to their zero value.
func (*ToggleSwitchPortParams) SetHTTPClient ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the toggle switch port params
func (*ToggleSwitchPortParams) SetID ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetID(id string)
SetID adds the id to the toggle switch port params
func (*ToggleSwitchPortParams) SetTimeout ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the toggle switch port params
func (*ToggleSwitchPortParams) WithBody ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithBody(body *models.V1SwitchPortToggleRequest) *ToggleSwitchPortParams
WithBody adds the body to the toggle switch port params
func (*ToggleSwitchPortParams) WithContext ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithContext(ctx context.Context) *ToggleSwitchPortParams
WithContext adds the context to the toggle switch port params
func (*ToggleSwitchPortParams) WithDefaults ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithDefaults() *ToggleSwitchPortParams
WithDefaults hydrates default values in the toggle switch port params (not the query body).
All values with no default are reset to their zero value.
func (*ToggleSwitchPortParams) WithHTTPClient ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithHTTPClient(client *http.Client) *ToggleSwitchPortParams
WithHTTPClient adds the HTTPClient to the toggle switch port params
func (*ToggleSwitchPortParams) WithID ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithID(id string) *ToggleSwitchPortParams
WithID adds the id to the toggle switch port params
func (*ToggleSwitchPortParams) WithTimeout ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WithTimeout(timeout time.Duration) *ToggleSwitchPortParams
WithTimeout adds the timeout to the toggle switch port params
func (*ToggleSwitchPortParams) WriteToRequest ¶ added in v0.28.5
func (o *ToggleSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ToggleSwitchPortReader ¶ added in v0.28.5
type ToggleSwitchPortReader struct {
// contains filtered or unexported fields
}
ToggleSwitchPortReader is a Reader for the ToggleSwitchPort structure.
func (*ToggleSwitchPortReader) ReadResponse ¶ added in v0.28.5
func (o *ToggleSwitchPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSwitchConflict ¶ added in v0.8.0
type UpdateSwitchConflict struct {
Payload *httperrors.HTTPErrorResponse
}
UpdateSwitchConflict describes a response with status code 409, with default header values.
Conflict
func NewUpdateSwitchConflict ¶ added in v0.8.0
func NewUpdateSwitchConflict() *UpdateSwitchConflict
NewUpdateSwitchConflict creates a UpdateSwitchConflict with default headers values
func (*UpdateSwitchConflict) Code ¶ added in v0.22.1
func (o *UpdateSwitchConflict) Code() int
Code gets the status code for the update switch conflict response
func (*UpdateSwitchConflict) Error ¶ added in v0.8.0
func (o *UpdateSwitchConflict) Error() string
func (*UpdateSwitchConflict) GetPayload ¶ added in v0.11.0
func (o *UpdateSwitchConflict) GetPayload() *httperrors.HTTPErrorResponse
func (*UpdateSwitchConflict) IsClientError ¶ added in v0.19.3
func (o *UpdateSwitchConflict) IsClientError() bool
IsClientError returns true when this update switch conflict response has a 4xx status code
func (*UpdateSwitchConflict) IsCode ¶ added in v0.19.3
func (o *UpdateSwitchConflict) IsCode(code int) bool
IsCode returns true when this update switch conflict response a status code equal to that given
func (*UpdateSwitchConflict) IsRedirect ¶ added in v0.19.3
func (o *UpdateSwitchConflict) IsRedirect() bool
IsRedirect returns true when this update switch conflict response has a 3xx status code
func (*UpdateSwitchConflict) IsServerError ¶ added in v0.19.3
func (o *UpdateSwitchConflict) IsServerError() bool
IsServerError returns true when this update switch conflict response has a 5xx status code
func (*UpdateSwitchConflict) IsSuccess ¶ added in v0.19.3
func (o *UpdateSwitchConflict) IsSuccess() bool
IsSuccess returns true when this update switch conflict response has a 2xx status code
func (*UpdateSwitchConflict) String ¶ added in v0.19.3
func (o *UpdateSwitchConflict) String() string
type UpdateSwitchDefault ¶ added in v0.8.0
type UpdateSwitchDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
UpdateSwitchDefault describes a response with status code -1, with default header values.
Error
func NewUpdateSwitchDefault ¶ added in v0.8.0
func NewUpdateSwitchDefault(code int) *UpdateSwitchDefault
NewUpdateSwitchDefault creates a UpdateSwitchDefault with default headers values
func (*UpdateSwitchDefault) Code ¶ added in v0.8.0
func (o *UpdateSwitchDefault) Code() int
Code gets the status code for the update switch default response
func (*UpdateSwitchDefault) Error ¶ added in v0.8.0
func (o *UpdateSwitchDefault) Error() string
func (*UpdateSwitchDefault) GetPayload ¶ added in v0.11.0
func (o *UpdateSwitchDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*UpdateSwitchDefault) IsClientError ¶ added in v0.19.3
func (o *UpdateSwitchDefault) IsClientError() bool
IsClientError returns true when this update switch default response has a 4xx status code
func (*UpdateSwitchDefault) IsCode ¶ added in v0.19.3
func (o *UpdateSwitchDefault) IsCode(code int) bool
IsCode returns true when this update switch default response a status code equal to that given
func (*UpdateSwitchDefault) IsRedirect ¶ added in v0.19.3
func (o *UpdateSwitchDefault) IsRedirect() bool
IsRedirect returns true when this update switch default response has a 3xx status code
func (*UpdateSwitchDefault) IsServerError ¶ added in v0.19.3
func (o *UpdateSwitchDefault) IsServerError() bool
IsServerError returns true when this update switch default response has a 5xx status code
func (*UpdateSwitchDefault) IsSuccess ¶ added in v0.19.3
func (o *UpdateSwitchDefault) IsSuccess() bool
IsSuccess returns true when this update switch default response has a 2xx status code
func (*UpdateSwitchDefault) String ¶ added in v0.19.3
func (o *UpdateSwitchDefault) String() string
type UpdateSwitchOK ¶ added in v0.8.0
type UpdateSwitchOK struct {
Payload *models.V1SwitchResponse
}
UpdateSwitchOK describes a response with status code 200, with default header values.
OK
func NewUpdateSwitchOK ¶ added in v0.8.0
func NewUpdateSwitchOK() *UpdateSwitchOK
NewUpdateSwitchOK creates a UpdateSwitchOK with default headers values
func (*UpdateSwitchOK) Code ¶ added in v0.22.1
func (o *UpdateSwitchOK) Code() int
Code gets the status code for the update switch o k response
func (*UpdateSwitchOK) Error ¶ added in v0.8.0
func (o *UpdateSwitchOK) Error() string
func (*UpdateSwitchOK) GetPayload ¶ added in v0.11.0
func (o *UpdateSwitchOK) GetPayload() *models.V1SwitchResponse
func (*UpdateSwitchOK) IsClientError ¶ added in v0.19.3
func (o *UpdateSwitchOK) IsClientError() bool
IsClientError returns true when this update switch o k response has a 4xx status code
func (*UpdateSwitchOK) IsCode ¶ added in v0.19.3
func (o *UpdateSwitchOK) IsCode(code int) bool
IsCode returns true when this update switch o k response a status code equal to that given
func (*UpdateSwitchOK) IsRedirect ¶ added in v0.19.3
func (o *UpdateSwitchOK) IsRedirect() bool
IsRedirect returns true when this update switch o k response has a 3xx status code
func (*UpdateSwitchOK) IsServerError ¶ added in v0.19.3
func (o *UpdateSwitchOK) IsServerError() bool
IsServerError returns true when this update switch o k response has a 5xx status code
func (*UpdateSwitchOK) IsSuccess ¶ added in v0.19.3
func (o *UpdateSwitchOK) IsSuccess() bool
IsSuccess returns true when this update switch o k response has a 2xx status code
func (*UpdateSwitchOK) String ¶ added in v0.19.3
func (o *UpdateSwitchOK) String() string
type UpdateSwitchParams ¶ added in v0.8.0
type UpdateSwitchParams struct { // Body. Body *models.V1SwitchUpdateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSwitchParams contains all the parameters to send to the API endpoint
for the update switch operation. Typically these are written to a http.Request.
func NewUpdateSwitchParams ¶ added in v0.8.0
func NewUpdateSwitchParams() *UpdateSwitchParams
NewUpdateSwitchParams creates a new UpdateSwitchParams 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 NewUpdateSwitchParamsWithContext ¶ added in v0.8.0
func NewUpdateSwitchParamsWithContext(ctx context.Context) *UpdateSwitchParams
NewUpdateSwitchParamsWithContext creates a new UpdateSwitchParams object with the ability to set a context for a request.
func NewUpdateSwitchParamsWithHTTPClient ¶ added in v0.8.0
func NewUpdateSwitchParamsWithHTTPClient(client *http.Client) *UpdateSwitchParams
NewUpdateSwitchParamsWithHTTPClient creates a new UpdateSwitchParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSwitchParamsWithTimeout ¶ added in v0.8.0
func NewUpdateSwitchParamsWithTimeout(timeout time.Duration) *UpdateSwitchParams
NewUpdateSwitchParamsWithTimeout creates a new UpdateSwitchParams object with the ability to set a timeout on a request.
func (*UpdateSwitchParams) SetBody ¶ added in v0.8.0
func (o *UpdateSwitchParams) SetBody(body *models.V1SwitchUpdateRequest)
SetBody adds the body to the update switch params
func (*UpdateSwitchParams) SetContext ¶ added in v0.8.0
func (o *UpdateSwitchParams) SetContext(ctx context.Context)
SetContext adds the context to the update switch params
func (*UpdateSwitchParams) SetDefaults ¶ added in v0.12.1
func (o *UpdateSwitchParams) SetDefaults()
SetDefaults hydrates default values in the update switch params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSwitchParams) SetHTTPClient ¶ added in v0.8.0
func (o *UpdateSwitchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update switch params
func (*UpdateSwitchParams) SetTimeout ¶ added in v0.8.0
func (o *UpdateSwitchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update switch params
func (*UpdateSwitchParams) WithBody ¶ added in v0.8.0
func (o *UpdateSwitchParams) WithBody(body *models.V1SwitchUpdateRequest) *UpdateSwitchParams
WithBody adds the body to the update switch params
func (*UpdateSwitchParams) WithContext ¶ added in v0.8.0
func (o *UpdateSwitchParams) WithContext(ctx context.Context) *UpdateSwitchParams
WithContext adds the context to the update switch params
func (*UpdateSwitchParams) WithDefaults ¶ added in v0.12.1
func (o *UpdateSwitchParams) WithDefaults() *UpdateSwitchParams
WithDefaults hydrates default values in the update switch params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSwitchParams) WithHTTPClient ¶ added in v0.8.0
func (o *UpdateSwitchParams) WithHTTPClient(client *http.Client) *UpdateSwitchParams
WithHTTPClient adds the HTTPClient to the update switch params
func (*UpdateSwitchParams) WithTimeout ¶ added in v0.8.0
func (o *UpdateSwitchParams) WithTimeout(timeout time.Duration) *UpdateSwitchParams
WithTimeout adds the timeout to the update switch params
func (*UpdateSwitchParams) WriteToRequest ¶ added in v0.8.0
func (o *UpdateSwitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSwitchReader ¶ added in v0.8.0
type UpdateSwitchReader struct {
// contains filtered or unexported fields
}
UpdateSwitchReader is a Reader for the UpdateSwitch structure.
func (*UpdateSwitchReader) ReadResponse ¶ added in v0.8.0
func (o *UpdateSwitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_switch_parameters.go
- delete_switch_responses.go
- find_switch_parameters.go
- find_switch_responses.go
- find_switches_parameters.go
- find_switches_responses.go
- list_switches_parameters.go
- list_switches_responses.go
- notify_switch_parameters.go
- notify_switch_responses.go
- register_switch_parameters.go
- register_switch_responses.go
- switch_operations_client.go
- toggle_switch_port_parameters.go
- toggle_switch_port_responses.go
- update_switch_parameters.go
- update_switch_responses.go