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) 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) UpdateSwitch(params *UpdateSwitchParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSwitchOK, error)
- type DeleteSwitchDefault
- type DeleteSwitchOK
- type DeleteSwitchParams
- func (o *DeleteSwitchParams) SetContext(ctx context.Context)
- 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) 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
- type FindSwitchOK
- type FindSwitchParams
- func (o *FindSwitchParams) SetContext(ctx context.Context)
- 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) 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 ListSwitchesDefault
- type ListSwitchesOK
- type ListSwitchesParams
- func (o *ListSwitchesParams) SetContext(ctx context.Context)
- 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) 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
- type NotifySwitchOK
- type NotifySwitchParams
- func (o *NotifySwitchParams) SetBody(body *models.V1SwitchNotifyRequest)
- func (o *NotifySwitchParams) SetContext(ctx context.Context)
- 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) 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
- type RegisterSwitchDefault
- type RegisterSwitchOK
- 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) 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) 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 UpdateSwitchConflict
- type UpdateSwitchDefault
- type UpdateSwitchOK
- type UpdateSwitchParams
- func (o *UpdateSwitchParams) SetBody(body *models.V1SwitchUpdateRequest)
- func (o *UpdateSwitchParams) SetContext(ctx context.Context)
- 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) 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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new switch operations API client.
func (*Client) DeleteSwitch ¶
func (a *Client) DeleteSwitch(params *DeleteSwitchParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSwitchOK, error)
DeleteSwitch deletes an switch and returns the deleted entity
func (*Client) FindSwitch ¶
func (a *Client) FindSwitch(params *FindSwitchParams, authInfo runtime.ClientAuthInfoWriter) (*FindSwitchOK, error)
FindSwitch gets switch by id
func (*Client) ListSwitches ¶
func (a *Client) ListSwitches(params *ListSwitchesParams, authInfo runtime.ClientAuthInfoWriter) (*ListSwitchesOK, error)
ListSwitches gets all switches
func (*Client) NotifySwitch ¶ added in v0.7.1
func (a *Client) NotifySwitch(params *NotifySwitchParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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) UpdateSwitch ¶ added in v0.8.0
func (a *Client) UpdateSwitch(params *UpdateSwitchParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSwitchOK, error)
UpdateSwitch updates a switch if the switch was changed since this one was read a conflict is returned
type DeleteSwitchDefault ¶
type DeleteSwitchDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
DeleteSwitchDefault handles this case 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
type DeleteSwitchOK ¶
type DeleteSwitchOK struct {
Payload *models.V1SwitchResponse
}
DeleteSwitchOK handles this case with default header values.
OK
func NewDeleteSwitchOK ¶
func NewDeleteSwitchOK() *DeleteSwitchOK
NewDeleteSwitchOK creates a DeleteSwitchOK with default headers values
func (*DeleteSwitchOK) Error ¶
func (o *DeleteSwitchOK) Error() string
type DeleteSwitchParams ¶
type DeleteSwitchParams struct { /*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 values initialized.
func NewDeleteSwitchParamsWithContext ¶
func NewDeleteSwitchParamsWithContext(ctx context.Context) *DeleteSwitchParams
NewDeleteSwitchParamsWithContext creates a new DeleteSwitchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
FindSwitchDefault handles this case 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
type FindSwitchOK ¶
type FindSwitchOK struct {
Payload *models.V1SwitchResponse
}
FindSwitchOK handles this case with default header values.
OK
func NewFindSwitchOK ¶
func NewFindSwitchOK() *FindSwitchOK
NewFindSwitchOK creates a FindSwitchOK with default headers values
func (*FindSwitchOK) Error ¶
func (o *FindSwitchOK) Error() 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 values initialized.
func NewFindSwitchParamsWithContext ¶
func NewFindSwitchParamsWithContext(ctx context.Context) *FindSwitchParams
NewFindSwitchParamsWithContext creates a new FindSwitchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ListSwitchesDefault ¶
type ListSwitchesDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
ListSwitchesDefault handles this case 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
type ListSwitchesOK ¶
type ListSwitchesOK struct {
Payload []*models.V1SwitchResponse
}
ListSwitchesOK handles this case with default header values.
OK
func NewListSwitchesOK ¶
func NewListSwitchesOK() *ListSwitchesOK
NewListSwitchesOK creates a ListSwitchesOK with default headers values
func (*ListSwitchesOK) Error ¶
func (o *ListSwitchesOK) Error() 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 values initialized.
func NewListSwitchesParamsWithContext ¶
func NewListSwitchesParamsWithContext(ctx context.Context) *ListSwitchesParams
NewListSwitchesParamsWithContext creates a new ListSwitchesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
NotifySwitchDefault handles this case 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
type NotifySwitchOK ¶ added in v0.7.1
type NotifySwitchOK struct {
Payload *models.V1SwitchResponse
}
NotifySwitchOK handles this case 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) Error ¶ added in v0.7.1
func (o *NotifySwitchOK) Error() 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 values initialized.
func NewNotifySwitchParamsWithContext ¶ added in v0.7.1
func NewNotifySwitchParamsWithContext(ctx context.Context) *NotifySwitchParams
NewNotifySwitchParamsWithContext creates a new NotifySwitchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.
Created
func NewRegisterSwitchCreated ¶
func NewRegisterSwitchCreated() *RegisterSwitchCreated
NewRegisterSwitchCreated creates a RegisterSwitchCreated with default headers values
func (*RegisterSwitchCreated) Error ¶
func (o *RegisterSwitchCreated) Error() string
type RegisterSwitchDefault ¶
type RegisterSwitchDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
RegisterSwitchDefault handles this case 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
type RegisterSwitchOK ¶
type RegisterSwitchOK struct {
Payload *models.V1SwitchResponse
}
RegisterSwitchOK handles this case with default header values.
OK
func NewRegisterSwitchOK ¶
func NewRegisterSwitchOK() *RegisterSwitchOK
NewRegisterSwitchOK creates a RegisterSwitchOK with default headers values
func (*RegisterSwitchOK) Error ¶
func (o *RegisterSwitchOK) Error() 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 values initialized.
func NewRegisterSwitchParamsWithContext ¶
func NewRegisterSwitchParamsWithContext(ctx context.Context) *RegisterSwitchParams
NewRegisterSwitchParamsWithContext creates a new RegisterSwitchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 UpdateSwitchConflict ¶ added in v0.8.0
type UpdateSwitchConflict struct {
Payload *models.HttperrorsHTTPErrorResponse
}
UpdateSwitchConflict handles this case 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) Error ¶ added in v0.8.0
func (o *UpdateSwitchConflict) Error() string
type UpdateSwitchDefault ¶ added in v0.8.0
type UpdateSwitchDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
UpdateSwitchDefault handles this case 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
type UpdateSwitchOK ¶ added in v0.8.0
type UpdateSwitchOK struct {
Payload *models.V1SwitchResponse
}
UpdateSwitchOK handles this case 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) Error ¶ added in v0.8.0
func (o *UpdateSwitchOK) Error() 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 values initialized.
func NewUpdateSwitchParamsWithContext ¶ added in v0.8.0
func NewUpdateSwitchParamsWithContext(ctx context.Context) *UpdateSwitchParams
NewUpdateSwitchParamsWithContext creates a new UpdateSwitchParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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
- 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
- update_switch_parameters.go
- update_switch_responses.go