switch_operations

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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) 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

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, 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 is the option for 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)

	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)

	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.

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

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) Error

func (o *DeleteSwitchOK) Error() string

func (*DeleteSwitchOK) GetPayload added in v0.11.0

func (o *DeleteSwitchOK) GetPayload() *models.V1SwitchResponse

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 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) 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

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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete switch params

func (*DeleteSwitchParams) WithID

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

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) Error

func (o *FindSwitchOK) Error() string

func (*FindSwitchOK) GetPayload added in v0.11.0

func (o *FindSwitchOK) GetPayload() *models.V1SwitchResponse

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 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

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) Error

func (o *ListSwitchesOK) Error() string

func (*ListSwitchesOK) GetPayload added in v0.11.0

func (o *ListSwitchesOK) GetPayload() []*models.V1SwitchResponse

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

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

type NotifySwitchOK added in v0.7.1

type NotifySwitchOK struct {
	Payload *models.V1SwitchResponse
}
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) Error added in v0.7.1

func (o *NotifySwitchOK) Error() string

func (*NotifySwitchOK) GetPayload added in v0.11.0

func (o *NotifySwitchOK) GetPayload() *models.V1SwitchResponse

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

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

WithBody adds the body to the notify switch params

func (*NotifySwitchParams) WithContext added in v0.7.1

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

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) Error

func (o *RegisterSwitchCreated) Error() string

func (*RegisterSwitchCreated) GetPayload added in v0.11.0

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

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) Error

func (o *RegisterSwitchOK) Error() string

func (*RegisterSwitchOK) GetPayload added in v0.11.0

func (o *RegisterSwitchOK) GetPayload() *models.V1SwitchResponse

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

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

WithBody adds the body to the register switch params

func (*RegisterSwitchParams) WithContext

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 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) Error added in v0.8.0

func (o *UpdateSwitchConflict) Error() string

func (*UpdateSwitchConflict) GetPayload added in v0.11.0

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

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) 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

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

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

WithBody adds the body to the update switch params

func (*UpdateSwitchParams) WithContext added in v0.8.0

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.

Jump to

Keyboard shortcuts

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