switch_ports

package
v0.0.0-...-b7c797c Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for switch ports API

func (*Client) GetDeviceSwitchPort

func (a *Client) GetDeviceSwitchPort(params *GetDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortOK, error)

GetDeviceSwitchPort gets device switch port

Return a switch port

func (*Client) GetDeviceSwitchPortStatuses

func (a *Client) GetDeviceSwitchPortStatuses(params *GetDeviceSwitchPortStatusesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortStatusesOK, error)

GetDeviceSwitchPortStatuses gets device switch port statuses

Return the status for all the ports of a switch

func (*Client) GetDeviceSwitchPortStatusesPackets

GetDeviceSwitchPortStatusesPackets gets device switch port statuses packets

Return the packet counters for all the ports of a switch

func (*Client) GetDeviceSwitchPorts

func (a *Client) GetDeviceSwitchPorts(params *GetDeviceSwitchPortsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortsOK, error)

GetDeviceSwitchPorts gets device switch ports

List the switch ports for a switch

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateDeviceSwitchPort

func (a *Client) UpdateDeviceSwitchPort(params *UpdateDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceSwitchPortOK, error)

UpdateDeviceSwitchPort updates device switch port

Update a switch port

type ClientService

type ClientService interface {
	GetDeviceSwitchPort(params *GetDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortOK, error)

	GetDeviceSwitchPortStatuses(params *GetDeviceSwitchPortStatusesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortStatusesOK, error)

	GetDeviceSwitchPortStatusesPackets(params *GetDeviceSwitchPortStatusesPacketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortStatusesPacketsOK, error)

	GetDeviceSwitchPorts(params *GetDeviceSwitchPortsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortsOK, error)

	UpdateDeviceSwitchPort(params *UpdateDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceSwitchPortOK, 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 ports API client.

type GetDeviceSwitchPortOK

type GetDeviceSwitchPortOK struct {
	Payload interface{}
}

GetDeviceSwitchPortOK handles this case with default header values.

Successful operation

func NewGetDeviceSwitchPortOK

func NewGetDeviceSwitchPortOK() *GetDeviceSwitchPortOK

NewGetDeviceSwitchPortOK creates a GetDeviceSwitchPortOK with default headers values

func (*GetDeviceSwitchPortOK) Error

func (o *GetDeviceSwitchPortOK) Error() string

func (*GetDeviceSwitchPortOK) GetPayload

func (o *GetDeviceSwitchPortOK) GetPayload() interface{}

type GetDeviceSwitchPortParams

type GetDeviceSwitchPortParams struct {

	/*Number*/
	Number string
	/*Serial*/
	Serial string

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

GetDeviceSwitchPortParams contains all the parameters to send to the API endpoint for the get device switch port operation typically these are written to a http.Request

func NewGetDeviceSwitchPortParams

func NewGetDeviceSwitchPortParams() *GetDeviceSwitchPortParams

NewGetDeviceSwitchPortParams creates a new GetDeviceSwitchPortParams object with the default values initialized.

func NewGetDeviceSwitchPortParamsWithContext

func NewGetDeviceSwitchPortParamsWithContext(ctx context.Context) *GetDeviceSwitchPortParams

NewGetDeviceSwitchPortParamsWithContext creates a new GetDeviceSwitchPortParams object with the default values initialized, and the ability to set a context for a request

func NewGetDeviceSwitchPortParamsWithHTTPClient

func NewGetDeviceSwitchPortParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortParams

NewGetDeviceSwitchPortParamsWithHTTPClient creates a new GetDeviceSwitchPortParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDeviceSwitchPortParamsWithTimeout

func NewGetDeviceSwitchPortParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortParams

NewGetDeviceSwitchPortParamsWithTimeout creates a new GetDeviceSwitchPortParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDeviceSwitchPortParams) SetContext

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

SetContext adds the context to the get device switch port params

func (*GetDeviceSwitchPortParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device switch port params

func (*GetDeviceSwitchPortParams) SetNumber

func (o *GetDeviceSwitchPortParams) SetNumber(number string)

SetNumber adds the number to the get device switch port params

func (*GetDeviceSwitchPortParams) SetSerial

func (o *GetDeviceSwitchPortParams) SetSerial(serial string)

SetSerial adds the serial to the get device switch port params

func (*GetDeviceSwitchPortParams) SetTimeout

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

SetTimeout adds the timeout to the get device switch port params

func (*GetDeviceSwitchPortParams) WithContext

WithContext adds the context to the get device switch port params

func (*GetDeviceSwitchPortParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get device switch port params

func (*GetDeviceSwitchPortParams) WithNumber

WithNumber adds the number to the get device switch port params

func (*GetDeviceSwitchPortParams) WithSerial

WithSerial adds the serial to the get device switch port params

func (*GetDeviceSwitchPortParams) WithTimeout

WithTimeout adds the timeout to the get device switch port params

func (*GetDeviceSwitchPortParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceSwitchPortReader

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

GetDeviceSwitchPortReader is a Reader for the GetDeviceSwitchPort structure.

func (*GetDeviceSwitchPortReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceSwitchPortStatusesOK

type GetDeviceSwitchPortStatusesOK struct {
	Payload interface{}
}

GetDeviceSwitchPortStatusesOK handles this case with default header values.

Successful operation

func NewGetDeviceSwitchPortStatusesOK

func NewGetDeviceSwitchPortStatusesOK() *GetDeviceSwitchPortStatusesOK

NewGetDeviceSwitchPortStatusesOK creates a GetDeviceSwitchPortStatusesOK with default headers values

func (*GetDeviceSwitchPortStatusesOK) Error

func (*GetDeviceSwitchPortStatusesOK) GetPayload

func (o *GetDeviceSwitchPortStatusesOK) GetPayload() interface{}

type GetDeviceSwitchPortStatusesPacketsOK

type GetDeviceSwitchPortStatusesPacketsOK struct {
	Payload interface{}
}

GetDeviceSwitchPortStatusesPacketsOK handles this case with default header values.

Successful operation

func NewGetDeviceSwitchPortStatusesPacketsOK

func NewGetDeviceSwitchPortStatusesPacketsOK() *GetDeviceSwitchPortStatusesPacketsOK

NewGetDeviceSwitchPortStatusesPacketsOK creates a GetDeviceSwitchPortStatusesPacketsOK with default headers values

func (*GetDeviceSwitchPortStatusesPacketsOK) Error

func (*GetDeviceSwitchPortStatusesPacketsOK) GetPayload

func (o *GetDeviceSwitchPortStatusesPacketsOK) GetPayload() interface{}

type GetDeviceSwitchPortStatusesPacketsParams

type GetDeviceSwitchPortStatusesPacketsParams struct {

	/*Serial*/
	Serial string
	/*T0
	  The beginning of the timespan for the data. The maximum lookback period is 1 day from today.

	*/
	T0 *string
	/*Timespan
	  The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 1 day. The default is 1 day.

	*/
	Timespan *float64

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

GetDeviceSwitchPortStatusesPacketsParams contains all the parameters to send to the API endpoint for the get device switch port statuses packets operation typically these are written to a http.Request

func NewGetDeviceSwitchPortStatusesPacketsParams

func NewGetDeviceSwitchPortStatusesPacketsParams() *GetDeviceSwitchPortStatusesPacketsParams

NewGetDeviceSwitchPortStatusesPacketsParams creates a new GetDeviceSwitchPortStatusesPacketsParams object with the default values initialized.

func NewGetDeviceSwitchPortStatusesPacketsParamsWithContext

func NewGetDeviceSwitchPortStatusesPacketsParamsWithContext(ctx context.Context) *GetDeviceSwitchPortStatusesPacketsParams

NewGetDeviceSwitchPortStatusesPacketsParamsWithContext creates a new GetDeviceSwitchPortStatusesPacketsParams object with the default values initialized, and the ability to set a context for a request

func NewGetDeviceSwitchPortStatusesPacketsParamsWithHTTPClient

func NewGetDeviceSwitchPortStatusesPacketsParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesPacketsParams

NewGetDeviceSwitchPortStatusesPacketsParamsWithHTTPClient creates a new GetDeviceSwitchPortStatusesPacketsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDeviceSwitchPortStatusesPacketsParamsWithTimeout

func NewGetDeviceSwitchPortStatusesPacketsParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesPacketsParams

NewGetDeviceSwitchPortStatusesPacketsParamsWithTimeout creates a new GetDeviceSwitchPortStatusesPacketsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDeviceSwitchPortStatusesPacketsParams) SetContext

SetContext adds the context to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) SetSerial

func (o *GetDeviceSwitchPortStatusesPacketsParams) SetSerial(serial string)

SetSerial adds the serial to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) SetT0

SetT0 adds the t0 to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) SetTimeout

SetTimeout adds the timeout to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) SetTimespan

func (o *GetDeviceSwitchPortStatusesPacketsParams) SetTimespan(timespan *float64)

SetTimespan adds the timespan to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithContext

WithContext adds the context to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithSerial

WithSerial adds the serial to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithT0

WithT0 adds the t0 to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithTimeout

WithTimeout adds the timeout to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WithTimespan

WithTimespan adds the timespan to the get device switch port statuses packets params

func (*GetDeviceSwitchPortStatusesPacketsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceSwitchPortStatusesPacketsReader

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

GetDeviceSwitchPortStatusesPacketsReader is a Reader for the GetDeviceSwitchPortStatusesPackets structure.

func (*GetDeviceSwitchPortStatusesPacketsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceSwitchPortStatusesParams

type GetDeviceSwitchPortStatusesParams struct {

	/*Serial*/
	Serial string
	/*T0
	  The beginning of the timespan for the data. The maximum lookback period is 31 days from today.

	*/
	T0 *string
	/*Timespan
	  The timespan for which the information will be fetched. If specifying timespan, do not specify parameter t0. The value must be in seconds and be less than or equal to 31 days. The default is 1 day.

	*/
	Timespan *float64

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

GetDeviceSwitchPortStatusesParams contains all the parameters to send to the API endpoint for the get device switch port statuses operation typically these are written to a http.Request

func NewGetDeviceSwitchPortStatusesParams

func NewGetDeviceSwitchPortStatusesParams() *GetDeviceSwitchPortStatusesParams

NewGetDeviceSwitchPortStatusesParams creates a new GetDeviceSwitchPortStatusesParams object with the default values initialized.

func NewGetDeviceSwitchPortStatusesParamsWithContext

func NewGetDeviceSwitchPortStatusesParamsWithContext(ctx context.Context) *GetDeviceSwitchPortStatusesParams

NewGetDeviceSwitchPortStatusesParamsWithContext creates a new GetDeviceSwitchPortStatusesParams object with the default values initialized, and the ability to set a context for a request

func NewGetDeviceSwitchPortStatusesParamsWithHTTPClient

func NewGetDeviceSwitchPortStatusesParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesParams

NewGetDeviceSwitchPortStatusesParamsWithHTTPClient creates a new GetDeviceSwitchPortStatusesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDeviceSwitchPortStatusesParamsWithTimeout

func NewGetDeviceSwitchPortStatusesParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesParams

NewGetDeviceSwitchPortStatusesParamsWithTimeout creates a new GetDeviceSwitchPortStatusesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDeviceSwitchPortStatusesParams) SetContext

SetContext adds the context to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) SetSerial

func (o *GetDeviceSwitchPortStatusesParams) SetSerial(serial string)

SetSerial adds the serial to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) SetT0

SetT0 adds the t0 to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) SetTimeout

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

SetTimeout adds the timeout to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) SetTimespan

func (o *GetDeviceSwitchPortStatusesParams) SetTimespan(timespan *float64)

SetTimespan adds the timespan to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithContext

WithContext adds the context to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithSerial

WithSerial adds the serial to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithT0

WithT0 adds the t0 to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithTimeout

WithTimeout adds the timeout to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WithTimespan

WithTimespan adds the timespan to the get device switch port statuses params

func (*GetDeviceSwitchPortStatusesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceSwitchPortStatusesReader

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

GetDeviceSwitchPortStatusesReader is a Reader for the GetDeviceSwitchPortStatuses structure.

func (*GetDeviceSwitchPortStatusesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceSwitchPortsOK

type GetDeviceSwitchPortsOK struct {
	Payload interface{}
}

GetDeviceSwitchPortsOK handles this case with default header values.

Successful operation

func NewGetDeviceSwitchPortsOK

func NewGetDeviceSwitchPortsOK() *GetDeviceSwitchPortsOK

NewGetDeviceSwitchPortsOK creates a GetDeviceSwitchPortsOK with default headers values

func (*GetDeviceSwitchPortsOK) Error

func (o *GetDeviceSwitchPortsOK) Error() string

func (*GetDeviceSwitchPortsOK) GetPayload

func (o *GetDeviceSwitchPortsOK) GetPayload() interface{}

type GetDeviceSwitchPortsParams

type GetDeviceSwitchPortsParams struct {

	/*Serial*/
	Serial string

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

GetDeviceSwitchPortsParams contains all the parameters to send to the API endpoint for the get device switch ports operation typically these are written to a http.Request

func NewGetDeviceSwitchPortsParams

func NewGetDeviceSwitchPortsParams() *GetDeviceSwitchPortsParams

NewGetDeviceSwitchPortsParams creates a new GetDeviceSwitchPortsParams object with the default values initialized.

func NewGetDeviceSwitchPortsParamsWithContext

func NewGetDeviceSwitchPortsParamsWithContext(ctx context.Context) *GetDeviceSwitchPortsParams

NewGetDeviceSwitchPortsParamsWithContext creates a new GetDeviceSwitchPortsParams object with the default values initialized, and the ability to set a context for a request

func NewGetDeviceSwitchPortsParamsWithHTTPClient

func NewGetDeviceSwitchPortsParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortsParams

NewGetDeviceSwitchPortsParamsWithHTTPClient creates a new GetDeviceSwitchPortsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDeviceSwitchPortsParamsWithTimeout

func NewGetDeviceSwitchPortsParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortsParams

NewGetDeviceSwitchPortsParamsWithTimeout creates a new GetDeviceSwitchPortsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDeviceSwitchPortsParams) SetContext

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

SetContext adds the context to the get device switch ports params

func (*GetDeviceSwitchPortsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device switch ports params

func (*GetDeviceSwitchPortsParams) SetSerial

func (o *GetDeviceSwitchPortsParams) SetSerial(serial string)

SetSerial adds the serial to the get device switch ports params

func (*GetDeviceSwitchPortsParams) SetTimeout

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

SetTimeout adds the timeout to the get device switch ports params

func (*GetDeviceSwitchPortsParams) WithContext

WithContext adds the context to the get device switch ports params

func (*GetDeviceSwitchPortsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get device switch ports params

func (*GetDeviceSwitchPortsParams) WithSerial

WithSerial adds the serial to the get device switch ports params

func (*GetDeviceSwitchPortsParams) WithTimeout

WithTimeout adds the timeout to the get device switch ports params

func (*GetDeviceSwitchPortsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceSwitchPortsReader

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

GetDeviceSwitchPortsReader is a Reader for the GetDeviceSwitchPorts structure.

func (*GetDeviceSwitchPortsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDeviceSwitchPortOK

type UpdateDeviceSwitchPortOK struct {
	Payload interface{}
}

UpdateDeviceSwitchPortOK handles this case with default header values.

Successful operation

func NewUpdateDeviceSwitchPortOK

func NewUpdateDeviceSwitchPortOK() *UpdateDeviceSwitchPortOK

NewUpdateDeviceSwitchPortOK creates a UpdateDeviceSwitchPortOK with default headers values

func (*UpdateDeviceSwitchPortOK) Error

func (o *UpdateDeviceSwitchPortOK) Error() string

func (*UpdateDeviceSwitchPortOK) GetPayload

func (o *UpdateDeviceSwitchPortOK) GetPayload() interface{}

type UpdateDeviceSwitchPortParams

type UpdateDeviceSwitchPortParams struct {

	/*Number*/
	Number string
	/*Serial*/
	Serial string
	/*UpdateDeviceSwitchPort*/
	UpdateDeviceSwitchPort *models.UpdateDeviceSwitchPort

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

UpdateDeviceSwitchPortParams contains all the parameters to send to the API endpoint for the update device switch port operation typically these are written to a http.Request

func NewUpdateDeviceSwitchPortParams

func NewUpdateDeviceSwitchPortParams() *UpdateDeviceSwitchPortParams

NewUpdateDeviceSwitchPortParams creates a new UpdateDeviceSwitchPortParams object with the default values initialized.

func NewUpdateDeviceSwitchPortParamsWithContext

func NewUpdateDeviceSwitchPortParamsWithContext(ctx context.Context) *UpdateDeviceSwitchPortParams

NewUpdateDeviceSwitchPortParamsWithContext creates a new UpdateDeviceSwitchPortParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateDeviceSwitchPortParamsWithHTTPClient

func NewUpdateDeviceSwitchPortParamsWithHTTPClient(client *http.Client) *UpdateDeviceSwitchPortParams

NewUpdateDeviceSwitchPortParamsWithHTTPClient creates a new UpdateDeviceSwitchPortParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateDeviceSwitchPortParamsWithTimeout

func NewUpdateDeviceSwitchPortParamsWithTimeout(timeout time.Duration) *UpdateDeviceSwitchPortParams

NewUpdateDeviceSwitchPortParamsWithTimeout creates a new UpdateDeviceSwitchPortParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateDeviceSwitchPortParams) SetContext

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

SetContext adds the context to the update device switch port params

func (*UpdateDeviceSwitchPortParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update device switch port params

func (*UpdateDeviceSwitchPortParams) SetNumber

func (o *UpdateDeviceSwitchPortParams) SetNumber(number string)

SetNumber adds the number to the update device switch port params

func (*UpdateDeviceSwitchPortParams) SetSerial

func (o *UpdateDeviceSwitchPortParams) SetSerial(serial string)

SetSerial adds the serial to the update device switch port params

func (*UpdateDeviceSwitchPortParams) SetTimeout

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

SetTimeout adds the timeout to the update device switch port params

func (*UpdateDeviceSwitchPortParams) SetUpdateDeviceSwitchPort

func (o *UpdateDeviceSwitchPortParams) SetUpdateDeviceSwitchPort(updateDeviceSwitchPort *models.UpdateDeviceSwitchPort)

SetUpdateDeviceSwitchPort adds the updateDeviceSwitchPort to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithContext

WithContext adds the context to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithNumber

WithNumber adds the number to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithSerial

WithSerial adds the serial to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithTimeout

WithTimeout adds the timeout to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WithUpdateDeviceSwitchPort

func (o *UpdateDeviceSwitchPortParams) WithUpdateDeviceSwitchPort(updateDeviceSwitchPort *models.UpdateDeviceSwitchPort) *UpdateDeviceSwitchPortParams

WithUpdateDeviceSwitchPort adds the updateDeviceSwitchPort to the update device switch port params

func (*UpdateDeviceSwitchPortParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDeviceSwitchPortReader

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

UpdateDeviceSwitchPortReader is a Reader for the UpdateDeviceSwitchPort structure.

func (*UpdateDeviceSwitchPortReader) ReadResponse

func (o *UpdateDeviceSwitchPortReader) 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