Documentation
¶
Index ¶
- type Client
- func (a *Client) GetDeviceSwitchPort(params *GetDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortOK, error)
- func (a *Client) GetDeviceSwitchPortStatuses(params *GetDeviceSwitchPortStatusesParams, ...) (*GetDeviceSwitchPortStatusesOK, error)
- func (a *Client) GetDeviceSwitchPortStatusesPackets(params *GetDeviceSwitchPortStatusesPacketsParams, ...) (*GetDeviceSwitchPortStatusesPacketsOK, error)
- func (a *Client) GetDeviceSwitchPorts(params *GetDeviceSwitchPortsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateDeviceSwitchPort(params *UpdateDeviceSwitchPortParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceSwitchPortOK, error)
- type ClientService
- type GetDeviceSwitchPortOK
- type GetDeviceSwitchPortParams
- func NewGetDeviceSwitchPortParams() *GetDeviceSwitchPortParams
- func NewGetDeviceSwitchPortParamsWithContext(ctx context.Context) *GetDeviceSwitchPortParams
- func NewGetDeviceSwitchPortParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortParams
- func NewGetDeviceSwitchPortParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) SetContext(ctx context.Context)
- func (o *GetDeviceSwitchPortParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceSwitchPortParams) SetNumber(number string)
- func (o *GetDeviceSwitchPortParams) SetSerial(serial string)
- func (o *GetDeviceSwitchPortParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceSwitchPortParams) WithContext(ctx context.Context) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) WithNumber(number string) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) WithSerial(serial string) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortParams
- func (o *GetDeviceSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceSwitchPortReader
- type GetDeviceSwitchPortStatusesOK
- type GetDeviceSwitchPortStatusesPacketsOK
- type GetDeviceSwitchPortStatusesPacketsParams
- func NewGetDeviceSwitchPortStatusesPacketsParams() *GetDeviceSwitchPortStatusesPacketsParams
- func NewGetDeviceSwitchPortStatusesPacketsParamsWithContext(ctx context.Context) *GetDeviceSwitchPortStatusesPacketsParams
- func NewGetDeviceSwitchPortStatusesPacketsParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesPacketsParams
- func NewGetDeviceSwitchPortStatusesPacketsParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetContext(ctx context.Context)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetSerial(serial string)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetT0(t0 *string)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) SetTimespan(timespan *float64)
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithContext(ctx context.Context) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithSerial(serial string) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithT0(t0 *string) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WithTimespan(timespan *float64) *GetDeviceSwitchPortStatusesPacketsParams
- func (o *GetDeviceSwitchPortStatusesPacketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceSwitchPortStatusesPacketsReader
- type GetDeviceSwitchPortStatusesParams
- func NewGetDeviceSwitchPortStatusesParams() *GetDeviceSwitchPortStatusesParams
- func NewGetDeviceSwitchPortStatusesParamsWithContext(ctx context.Context) *GetDeviceSwitchPortStatusesParams
- func NewGetDeviceSwitchPortStatusesParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesParams
- func NewGetDeviceSwitchPortStatusesParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) SetContext(ctx context.Context)
- func (o *GetDeviceSwitchPortStatusesParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceSwitchPortStatusesParams) SetSerial(serial string)
- func (o *GetDeviceSwitchPortStatusesParams) SetT0(t0 *string)
- func (o *GetDeviceSwitchPortStatusesParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceSwitchPortStatusesParams) SetTimespan(timespan *float64)
- func (o *GetDeviceSwitchPortStatusesParams) WithContext(ctx context.Context) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WithSerial(serial string) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WithT0(t0 *string) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WithTimespan(timespan *float64) *GetDeviceSwitchPortStatusesParams
- func (o *GetDeviceSwitchPortStatusesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceSwitchPortStatusesReader
- type GetDeviceSwitchPortsOK
- type GetDeviceSwitchPortsParams
- func NewGetDeviceSwitchPortsParams() *GetDeviceSwitchPortsParams
- func NewGetDeviceSwitchPortsParamsWithContext(ctx context.Context) *GetDeviceSwitchPortsParams
- func NewGetDeviceSwitchPortsParamsWithHTTPClient(client *http.Client) *GetDeviceSwitchPortsParams
- func NewGetDeviceSwitchPortsParamsWithTimeout(timeout time.Duration) *GetDeviceSwitchPortsParams
- func (o *GetDeviceSwitchPortsParams) SetContext(ctx context.Context)
- func (o *GetDeviceSwitchPortsParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceSwitchPortsParams) SetSerial(serial string)
- func (o *GetDeviceSwitchPortsParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceSwitchPortsParams) WithContext(ctx context.Context) *GetDeviceSwitchPortsParams
- func (o *GetDeviceSwitchPortsParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortsParams
- func (o *GetDeviceSwitchPortsParams) WithSerial(serial string) *GetDeviceSwitchPortsParams
- func (o *GetDeviceSwitchPortsParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortsParams
- func (o *GetDeviceSwitchPortsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceSwitchPortsReader
- type UpdateDeviceSwitchPortOK
- type UpdateDeviceSwitchPortParams
- func NewUpdateDeviceSwitchPortParams() *UpdateDeviceSwitchPortParams
- func NewUpdateDeviceSwitchPortParamsWithContext(ctx context.Context) *UpdateDeviceSwitchPortParams
- func NewUpdateDeviceSwitchPortParamsWithHTTPClient(client *http.Client) *UpdateDeviceSwitchPortParams
- func NewUpdateDeviceSwitchPortParamsWithTimeout(timeout time.Duration) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) SetContext(ctx context.Context)
- func (o *UpdateDeviceSwitchPortParams) SetHTTPClient(client *http.Client)
- func (o *UpdateDeviceSwitchPortParams) SetNumber(number string)
- func (o *UpdateDeviceSwitchPortParams) SetSerial(serial string)
- func (o *UpdateDeviceSwitchPortParams) SetTimeout(timeout time.Duration)
- func (o *UpdateDeviceSwitchPortParams) SetUpdateDeviceSwitchPort(updateDeviceSwitchPort *models.UpdateDeviceSwitchPort)
- func (o *UpdateDeviceSwitchPortParams) WithContext(ctx context.Context) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WithHTTPClient(client *http.Client) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WithNumber(number string) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WithSerial(serial string) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WithTimeout(timeout time.Duration) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WithUpdateDeviceSwitchPort(updateDeviceSwitchPort *models.UpdateDeviceSwitchPort) *UpdateDeviceSwitchPortParams
- func (o *UpdateDeviceSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateDeviceSwitchPortReader
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 ¶
func (a *Client) GetDeviceSwitchPortStatusesPackets(params *GetDeviceSwitchPortStatusesPacketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceSwitchPortStatusesPacketsOK, error)
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 ¶
func (o *GetDeviceSwitchPortParams) WithContext(ctx context.Context) *GetDeviceSwitchPortParams
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 ¶
func (o *GetDeviceSwitchPortParams) WithNumber(number string) *GetDeviceSwitchPortParams
WithNumber adds the number to the get device switch port params
func (*GetDeviceSwitchPortParams) WithSerial ¶
func (o *GetDeviceSwitchPortParams) WithSerial(serial string) *GetDeviceSwitchPortParams
WithSerial adds the serial to the get device switch port params
func (*GetDeviceSwitchPortParams) WithTimeout ¶
func (o *GetDeviceSwitchPortParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortParams
WithTimeout adds the timeout to the get device switch port params
func (*GetDeviceSwitchPortParams) WriteToRequest ¶
func (o *GetDeviceSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetDeviceSwitchPortStatusesOK) Error() string
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 (o *GetDeviceSwitchPortStatusesPacketsOK) Error() string
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 ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) SetContext(ctx context.Context)
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 ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) SetT0(t0 *string)
SetT0 adds the t0 to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) SetTimeout ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) SetTimeout(timeout time.Duration)
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 ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithContext(ctx context.Context) *GetDeviceSwitchPortStatusesPacketsParams
WithContext adds the context to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WithHTTPClient ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesPacketsParams
WithHTTPClient adds the HTTPClient to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WithSerial ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithSerial(serial string) *GetDeviceSwitchPortStatusesPacketsParams
WithSerial adds the serial to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WithT0 ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithT0(t0 *string) *GetDeviceSwitchPortStatusesPacketsParams
WithT0 adds the t0 to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WithTimeout ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesPacketsParams
WithTimeout adds the timeout to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WithTimespan ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WithTimespan(timespan *float64) *GetDeviceSwitchPortStatusesPacketsParams
WithTimespan adds the timespan to the get device switch port statuses packets params
func (*GetDeviceSwitchPortStatusesPacketsParams) WriteToRequest ¶
func (o *GetDeviceSwitchPortStatusesPacketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetDeviceSwitchPortStatusesParams) SetContext(ctx context.Context)
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 ¶
func (o *GetDeviceSwitchPortStatusesParams) SetT0(t0 *string)
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 ¶
func (o *GetDeviceSwitchPortStatusesParams) WithContext(ctx context.Context) *GetDeviceSwitchPortStatusesParams
WithContext adds the context to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WithHTTPClient ¶
func (o *GetDeviceSwitchPortStatusesParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortStatusesParams
WithHTTPClient adds the HTTPClient to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WithSerial ¶
func (o *GetDeviceSwitchPortStatusesParams) WithSerial(serial string) *GetDeviceSwitchPortStatusesParams
WithSerial adds the serial to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WithT0 ¶
func (o *GetDeviceSwitchPortStatusesParams) WithT0(t0 *string) *GetDeviceSwitchPortStatusesParams
WithT0 adds the t0 to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WithTimeout ¶
func (o *GetDeviceSwitchPortStatusesParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortStatusesParams
WithTimeout adds the timeout to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WithTimespan ¶
func (o *GetDeviceSwitchPortStatusesParams) WithTimespan(timespan *float64) *GetDeviceSwitchPortStatusesParams
WithTimespan adds the timespan to the get device switch port statuses params
func (*GetDeviceSwitchPortStatusesParams) WriteToRequest ¶
func (o *GetDeviceSwitchPortStatusesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetDeviceSwitchPortsParams) WithContext(ctx context.Context) *GetDeviceSwitchPortsParams
WithContext adds the context to the get device switch ports params
func (*GetDeviceSwitchPortsParams) WithHTTPClient ¶
func (o *GetDeviceSwitchPortsParams) WithHTTPClient(client *http.Client) *GetDeviceSwitchPortsParams
WithHTTPClient adds the HTTPClient to the get device switch ports params
func (*GetDeviceSwitchPortsParams) WithSerial ¶
func (o *GetDeviceSwitchPortsParams) WithSerial(serial string) *GetDeviceSwitchPortsParams
WithSerial adds the serial to the get device switch ports params
func (*GetDeviceSwitchPortsParams) WithTimeout ¶
func (o *GetDeviceSwitchPortsParams) WithTimeout(timeout time.Duration) *GetDeviceSwitchPortsParams
WithTimeout adds the timeout to the get device switch ports params
func (*GetDeviceSwitchPortsParams) WriteToRequest ¶
func (o *GetDeviceSwitchPortsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateDeviceSwitchPortParams) WithContext(ctx context.Context) *UpdateDeviceSwitchPortParams
WithContext adds the context to the update device switch port params
func (*UpdateDeviceSwitchPortParams) WithHTTPClient ¶
func (o *UpdateDeviceSwitchPortParams) WithHTTPClient(client *http.Client) *UpdateDeviceSwitchPortParams
WithHTTPClient adds the HTTPClient to the update device switch port params
func (*UpdateDeviceSwitchPortParams) WithNumber ¶
func (o *UpdateDeviceSwitchPortParams) WithNumber(number string) *UpdateDeviceSwitchPortParams
WithNumber adds the number to the update device switch port params
func (*UpdateDeviceSwitchPortParams) WithSerial ¶
func (o *UpdateDeviceSwitchPortParams) WithSerial(serial string) *UpdateDeviceSwitchPortParams
WithSerial adds the serial to the update device switch port params
func (*UpdateDeviceSwitchPortParams) WithTimeout ¶
func (o *UpdateDeviceSwitchPortParams) WithTimeout(timeout time.Duration) *UpdateDeviceSwitchPortParams
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 ¶
func (o *UpdateDeviceSwitchPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- get_device_switch_port_parameters.go
- get_device_switch_port_responses.go
- get_device_switch_port_statuses_packets_parameters.go
- get_device_switch_port_statuses_packets_responses.go
- get_device_switch_port_statuses_parameters.go
- get_device_switch_port_statuses_responses.go
- get_device_switch_ports_parameters.go
- get_device_switch_ports_responses.go
- switch_ports_client.go
- update_device_switch_port_parameters.go
- update_device_switch_port_responses.go