snmp_transport

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: ISC Imports: 10 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 snmp transport API

func (*Client) CreateSnmpTransport

func (a *Client) CreateSnmpTransport(params *CreateSnmpTransportParams, opts ...ClientOption) (*CreateSnmpTransportOK, error)

CreateSnmpTransport create snmp transport API

func (*Client) DeleteSnmpTransport

func (a *Client) DeleteSnmpTransport(params *DeleteSnmpTransportParams, opts ...ClientOption) (*DeleteSnmpTransportOK, error)

DeleteSnmpTransport delete snmp transport API

func (*Client) GetSnmpTransports

func (a *Client) GetSnmpTransports(params *GetSnmpTransportsParams, opts ...ClientOption) (*GetSnmpTransportsOK, error)

GetSnmpTransports get snmp transports API

func (*Client) GetSnmpTransportsConnection

func (a *Client) GetSnmpTransportsConnection(params *GetSnmpTransportsConnectionParams, opts ...ClientOption) (*GetSnmpTransportsConnectionOK, error)

GetSnmpTransportsConnection get snmp transports connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateSnmpTransport

func (a *Client) UpdateSnmpTransport(params *UpdateSnmpTransportParams, opts ...ClientOption) (*UpdateSnmpTransportOK, error)

UpdateSnmpTransport update snmp transport API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateSnmpTransport(params *CreateSnmpTransportParams, opts ...ClientOption) (*CreateSnmpTransportOK, error)

	DeleteSnmpTransport(params *DeleteSnmpTransportParams, opts ...ClientOption) (*DeleteSnmpTransportOK, error)

	GetSnmpTransports(params *GetSnmpTransportsParams, opts ...ClientOption) (*GetSnmpTransportsOK, error)

	GetSnmpTransportsConnection(params *GetSnmpTransportsConnectionParams, opts ...ClientOption) (*GetSnmpTransportsConnectionOK, error)

	UpdateSnmpTransport(params *UpdateSnmpTransportParams, opts ...ClientOption) (*UpdateSnmpTransportOK, 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 snmp transport API client.

type CreateSnmpTransportBadRequest

type CreateSnmpTransportBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSnmpTransportBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateSnmpTransportBadRequest

func NewCreateSnmpTransportBadRequest() *CreateSnmpTransportBadRequest

NewCreateSnmpTransportBadRequest creates a CreateSnmpTransportBadRequest with default headers values

func (*CreateSnmpTransportBadRequest) Error

func (*CreateSnmpTransportBadRequest) GetPayload

type CreateSnmpTransportInternalServerError

type CreateSnmpTransportInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSnmpTransportInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateSnmpTransportInternalServerError

func NewCreateSnmpTransportInternalServerError() *CreateSnmpTransportInternalServerError

NewCreateSnmpTransportInternalServerError creates a CreateSnmpTransportInternalServerError with default headers values

func (*CreateSnmpTransportInternalServerError) Error

func (*CreateSnmpTransportInternalServerError) GetPayload

type CreateSnmpTransportNotFound

type CreateSnmpTransportNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateSnmpTransportNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateSnmpTransportNotFound

func NewCreateSnmpTransportNotFound() *CreateSnmpTransportNotFound

NewCreateSnmpTransportNotFound creates a CreateSnmpTransportNotFound with default headers values

func (*CreateSnmpTransportNotFound) Error

func (*CreateSnmpTransportNotFound) GetPayload

func (o *CreateSnmpTransportNotFound) GetPayload() *models.ErrorBody

type CreateSnmpTransportOK

type CreateSnmpTransportOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskSnmpTransport
}
CreateSnmpTransportOK describes a response with status code 200, with default header values.

CreateSnmpTransportOK create snmp transport o k

func NewCreateSnmpTransportOK

func NewCreateSnmpTransportOK() *CreateSnmpTransportOK

NewCreateSnmpTransportOK creates a CreateSnmpTransportOK with default headers values

func (*CreateSnmpTransportOK) Error

func (o *CreateSnmpTransportOK) Error() string

func (*CreateSnmpTransportOK) GetPayload

type CreateSnmpTransportParams

type CreateSnmpTransportParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.SnmpTransportCreationParams

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

CreateSnmpTransportParams contains all the parameters to send to the API endpoint

for the create snmp transport operation.

Typically these are written to a http.Request.

func NewCreateSnmpTransportParams

func NewCreateSnmpTransportParams() *CreateSnmpTransportParams

NewCreateSnmpTransportParams creates a new CreateSnmpTransportParams 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 NewCreateSnmpTransportParamsWithContext

func NewCreateSnmpTransportParamsWithContext(ctx context.Context) *CreateSnmpTransportParams

NewCreateSnmpTransportParamsWithContext creates a new CreateSnmpTransportParams object with the ability to set a context for a request.

func NewCreateSnmpTransportParamsWithHTTPClient

func NewCreateSnmpTransportParamsWithHTTPClient(client *http.Client) *CreateSnmpTransportParams

NewCreateSnmpTransportParamsWithHTTPClient creates a new CreateSnmpTransportParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSnmpTransportParamsWithTimeout

func NewCreateSnmpTransportParamsWithTimeout(timeout time.Duration) *CreateSnmpTransportParams

NewCreateSnmpTransportParamsWithTimeout creates a new CreateSnmpTransportParams object with the ability to set a timeout on a request.

func (*CreateSnmpTransportParams) SetContentLanguage

func (o *CreateSnmpTransportParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create snmp transport params

func (*CreateSnmpTransportParams) SetContext

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

SetContext adds the context to the create snmp transport params

func (*CreateSnmpTransportParams) SetDefaults

func (o *CreateSnmpTransportParams) SetDefaults()

SetDefaults hydrates default values in the create snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSnmpTransportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create snmp transport params

func (*CreateSnmpTransportParams) SetRequestBody

func (o *CreateSnmpTransportParams) SetRequestBody(requestBody []*models.SnmpTransportCreationParams)

SetRequestBody adds the requestBody to the create snmp transport params

func (*CreateSnmpTransportParams) SetTimeout

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

SetTimeout adds the timeout to the create snmp transport params

func (*CreateSnmpTransportParams) WithContentLanguage

func (o *CreateSnmpTransportParams) WithContentLanguage(contentLanguage *string) *CreateSnmpTransportParams

WithContentLanguage adds the contentLanguage to the create snmp transport params

func (*CreateSnmpTransportParams) WithContext

WithContext adds the context to the create snmp transport params

func (*CreateSnmpTransportParams) WithDefaults

WithDefaults hydrates default values in the create snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSnmpTransportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create snmp transport params

func (*CreateSnmpTransportParams) WithRequestBody

WithRequestBody adds the requestBody to the create snmp transport params

func (*CreateSnmpTransportParams) WithTimeout

WithTimeout adds the timeout to the create snmp transport params

func (*CreateSnmpTransportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSnmpTransportReader

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

CreateSnmpTransportReader is a Reader for the CreateSnmpTransport structure.

func (*CreateSnmpTransportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSnmpTransportBadRequest

type DeleteSnmpTransportBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSnmpTransportBadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteSnmpTransportBadRequest

func NewDeleteSnmpTransportBadRequest() *DeleteSnmpTransportBadRequest

NewDeleteSnmpTransportBadRequest creates a DeleteSnmpTransportBadRequest with default headers values

func (*DeleteSnmpTransportBadRequest) Error

func (*DeleteSnmpTransportBadRequest) GetPayload

type DeleteSnmpTransportInternalServerError

type DeleteSnmpTransportInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSnmpTransportInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteSnmpTransportInternalServerError

func NewDeleteSnmpTransportInternalServerError() *DeleteSnmpTransportInternalServerError

NewDeleteSnmpTransportInternalServerError creates a DeleteSnmpTransportInternalServerError with default headers values

func (*DeleteSnmpTransportInternalServerError) Error

func (*DeleteSnmpTransportInternalServerError) GetPayload

type DeleteSnmpTransportNotFound

type DeleteSnmpTransportNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteSnmpTransportNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteSnmpTransportNotFound

func NewDeleteSnmpTransportNotFound() *DeleteSnmpTransportNotFound

NewDeleteSnmpTransportNotFound creates a DeleteSnmpTransportNotFound with default headers values

func (*DeleteSnmpTransportNotFound) Error

func (*DeleteSnmpTransportNotFound) GetPayload

func (o *DeleteSnmpTransportNotFound) GetPayload() *models.ErrorBody

type DeleteSnmpTransportOK

type DeleteSnmpTransportOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskDeleteSnmpTransport
}
DeleteSnmpTransportOK describes a response with status code 200, with default header values.

DeleteSnmpTransportOK delete snmp transport o k

func NewDeleteSnmpTransportOK

func NewDeleteSnmpTransportOK() *DeleteSnmpTransportOK

NewDeleteSnmpTransportOK creates a DeleteSnmpTransportOK with default headers values

func (*DeleteSnmpTransportOK) Error

func (o *DeleteSnmpTransportOK) Error() string

func (*DeleteSnmpTransportOK) GetPayload

type DeleteSnmpTransportParams

type DeleteSnmpTransportParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.SnmpTransportDeletionParams

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

DeleteSnmpTransportParams contains all the parameters to send to the API endpoint

for the delete snmp transport operation.

Typically these are written to a http.Request.

func NewDeleteSnmpTransportParams

func NewDeleteSnmpTransportParams() *DeleteSnmpTransportParams

NewDeleteSnmpTransportParams creates a new DeleteSnmpTransportParams 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 NewDeleteSnmpTransportParamsWithContext

func NewDeleteSnmpTransportParamsWithContext(ctx context.Context) *DeleteSnmpTransportParams

NewDeleteSnmpTransportParamsWithContext creates a new DeleteSnmpTransportParams object with the ability to set a context for a request.

func NewDeleteSnmpTransportParamsWithHTTPClient

func NewDeleteSnmpTransportParamsWithHTTPClient(client *http.Client) *DeleteSnmpTransportParams

NewDeleteSnmpTransportParamsWithHTTPClient creates a new DeleteSnmpTransportParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSnmpTransportParamsWithTimeout

func NewDeleteSnmpTransportParamsWithTimeout(timeout time.Duration) *DeleteSnmpTransportParams

NewDeleteSnmpTransportParamsWithTimeout creates a new DeleteSnmpTransportParams object with the ability to set a timeout on a request.

func (*DeleteSnmpTransportParams) SetContentLanguage

func (o *DeleteSnmpTransportParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete snmp transport params

func (*DeleteSnmpTransportParams) SetContext

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

SetContext adds the context to the delete snmp transport params

func (*DeleteSnmpTransportParams) SetDefaults

func (o *DeleteSnmpTransportParams) SetDefaults()

SetDefaults hydrates default values in the delete snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSnmpTransportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete snmp transport params

func (*DeleteSnmpTransportParams) SetRequestBody

func (o *DeleteSnmpTransportParams) SetRequestBody(requestBody *models.SnmpTransportDeletionParams)

SetRequestBody adds the requestBody to the delete snmp transport params

func (*DeleteSnmpTransportParams) SetTimeout

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

SetTimeout adds the timeout to the delete snmp transport params

func (*DeleteSnmpTransportParams) WithContentLanguage

func (o *DeleteSnmpTransportParams) WithContentLanguage(contentLanguage *string) *DeleteSnmpTransportParams

WithContentLanguage adds the contentLanguage to the delete snmp transport params

func (*DeleteSnmpTransportParams) WithContext

WithContext adds the context to the delete snmp transport params

func (*DeleteSnmpTransportParams) WithDefaults

WithDefaults hydrates default values in the delete snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSnmpTransportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete snmp transport params

func (*DeleteSnmpTransportParams) WithRequestBody

WithRequestBody adds the requestBody to the delete snmp transport params

func (*DeleteSnmpTransportParams) WithTimeout

WithTimeout adds the timeout to the delete snmp transport params

func (*DeleteSnmpTransportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSnmpTransportReader

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

DeleteSnmpTransportReader is a Reader for the DeleteSnmpTransport structure.

func (*DeleteSnmpTransportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnmpTransportsBadRequest

type GetSnmpTransportsBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSnmpTransportsBadRequest

func NewGetSnmpTransportsBadRequest() *GetSnmpTransportsBadRequest

NewGetSnmpTransportsBadRequest creates a GetSnmpTransportsBadRequest with default headers values

func (*GetSnmpTransportsBadRequest) Error

func (*GetSnmpTransportsBadRequest) GetPayload

func (o *GetSnmpTransportsBadRequest) GetPayload() *models.ErrorBody

type GetSnmpTransportsConnectionBadRequest

type GetSnmpTransportsConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetSnmpTransportsConnectionBadRequest

func NewGetSnmpTransportsConnectionBadRequest() *GetSnmpTransportsConnectionBadRequest

NewGetSnmpTransportsConnectionBadRequest creates a GetSnmpTransportsConnectionBadRequest with default headers values

func (*GetSnmpTransportsConnectionBadRequest) Error

func (*GetSnmpTransportsConnectionBadRequest) GetPayload

type GetSnmpTransportsConnectionInternalServerError

type GetSnmpTransportsConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetSnmpTransportsConnectionInternalServerError

func NewGetSnmpTransportsConnectionInternalServerError() *GetSnmpTransportsConnectionInternalServerError

NewGetSnmpTransportsConnectionInternalServerError creates a GetSnmpTransportsConnectionInternalServerError with default headers values

func (*GetSnmpTransportsConnectionInternalServerError) Error

func (*GetSnmpTransportsConnectionInternalServerError) GetPayload

type GetSnmpTransportsConnectionNotFound

type GetSnmpTransportsConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSnmpTransportsConnectionNotFound

func NewGetSnmpTransportsConnectionNotFound() *GetSnmpTransportsConnectionNotFound

NewGetSnmpTransportsConnectionNotFound creates a GetSnmpTransportsConnectionNotFound with default headers values

func (*GetSnmpTransportsConnectionNotFound) Error

func (*GetSnmpTransportsConnectionNotFound) GetPayload

type GetSnmpTransportsConnectionOK

type GetSnmpTransportsConnectionOK struct {
	XTowerRequestID string

	Payload *models.SnmpTransportConnection
}
GetSnmpTransportsConnectionOK describes a response with status code 200, with default header values.

GetSnmpTransportsConnectionOK get snmp transports connection o k

func NewGetSnmpTransportsConnectionOK

func NewGetSnmpTransportsConnectionOK() *GetSnmpTransportsConnectionOK

NewGetSnmpTransportsConnectionOK creates a GetSnmpTransportsConnectionOK with default headers values

func (*GetSnmpTransportsConnectionOK) Error

func (*GetSnmpTransportsConnectionOK) GetPayload

type GetSnmpTransportsConnectionParams

type GetSnmpTransportsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetSnmpTransportsConnectionRequestBody

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

GetSnmpTransportsConnectionParams contains all the parameters to send to the API endpoint

for the get snmp transports connection operation.

Typically these are written to a http.Request.

func NewGetSnmpTransportsConnectionParams

func NewGetSnmpTransportsConnectionParams() *GetSnmpTransportsConnectionParams

NewGetSnmpTransportsConnectionParams creates a new GetSnmpTransportsConnectionParams 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 NewGetSnmpTransportsConnectionParamsWithContext

func NewGetSnmpTransportsConnectionParamsWithContext(ctx context.Context) *GetSnmpTransportsConnectionParams

NewGetSnmpTransportsConnectionParamsWithContext creates a new GetSnmpTransportsConnectionParams object with the ability to set a context for a request.

func NewGetSnmpTransportsConnectionParamsWithHTTPClient

func NewGetSnmpTransportsConnectionParamsWithHTTPClient(client *http.Client) *GetSnmpTransportsConnectionParams

NewGetSnmpTransportsConnectionParamsWithHTTPClient creates a new GetSnmpTransportsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetSnmpTransportsConnectionParamsWithTimeout

func NewGetSnmpTransportsConnectionParamsWithTimeout(timeout time.Duration) *GetSnmpTransportsConnectionParams

NewGetSnmpTransportsConnectionParamsWithTimeout creates a new GetSnmpTransportsConnectionParams object with the ability to set a timeout on a request.

func (*GetSnmpTransportsConnectionParams) SetContentLanguage

func (o *GetSnmpTransportsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) SetContext

SetContext adds the context to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) SetDefaults

func (o *GetSnmpTransportsConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get snmp transports connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetSnmpTransportsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WithContentLanguage

func (o *GetSnmpTransportsConnectionParams) WithContentLanguage(contentLanguage *string) *GetSnmpTransportsConnectionParams

WithContentLanguage adds the contentLanguage to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WithContext

WithContext adds the context to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WithDefaults

WithDefaults hydrates default values in the get snmp transports connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetSnmpTransportsConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get snmp transports connection params

func (*GetSnmpTransportsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSnmpTransportsConnectionReader

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

GetSnmpTransportsConnectionReader is a Reader for the GetSnmpTransportsConnection structure.

func (*GetSnmpTransportsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnmpTransportsInternalServerError

type GetSnmpTransportsInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetSnmpTransportsInternalServerError

func NewGetSnmpTransportsInternalServerError() *GetSnmpTransportsInternalServerError

NewGetSnmpTransportsInternalServerError creates a GetSnmpTransportsInternalServerError with default headers values

func (*GetSnmpTransportsInternalServerError) Error

func (*GetSnmpTransportsInternalServerError) GetPayload

type GetSnmpTransportsNotFound

type GetSnmpTransportsNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetSnmpTransportsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSnmpTransportsNotFound

func NewGetSnmpTransportsNotFound() *GetSnmpTransportsNotFound

NewGetSnmpTransportsNotFound creates a GetSnmpTransportsNotFound with default headers values

func (*GetSnmpTransportsNotFound) Error

func (o *GetSnmpTransportsNotFound) Error() string

func (*GetSnmpTransportsNotFound) GetPayload

func (o *GetSnmpTransportsNotFound) GetPayload() *models.ErrorBody

type GetSnmpTransportsOK

type GetSnmpTransportsOK struct {
	XTowerRequestID string

	Payload []*models.SnmpTransport
}
GetSnmpTransportsOK describes a response with status code 200, with default header values.

GetSnmpTransportsOK get snmp transports o k

func NewGetSnmpTransportsOK

func NewGetSnmpTransportsOK() *GetSnmpTransportsOK

NewGetSnmpTransportsOK creates a GetSnmpTransportsOK with default headers values

func (*GetSnmpTransportsOK) Error

func (o *GetSnmpTransportsOK) Error() string

func (*GetSnmpTransportsOK) GetPayload

func (o *GetSnmpTransportsOK) GetPayload() []*models.SnmpTransport

type GetSnmpTransportsParams

type GetSnmpTransportsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetSnmpTransportsRequestBody

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

GetSnmpTransportsParams contains all the parameters to send to the API endpoint

for the get snmp transports operation.

Typically these are written to a http.Request.

func NewGetSnmpTransportsParams

func NewGetSnmpTransportsParams() *GetSnmpTransportsParams

NewGetSnmpTransportsParams creates a new GetSnmpTransportsParams 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 NewGetSnmpTransportsParamsWithContext

func NewGetSnmpTransportsParamsWithContext(ctx context.Context) *GetSnmpTransportsParams

NewGetSnmpTransportsParamsWithContext creates a new GetSnmpTransportsParams object with the ability to set a context for a request.

func NewGetSnmpTransportsParamsWithHTTPClient

func NewGetSnmpTransportsParamsWithHTTPClient(client *http.Client) *GetSnmpTransportsParams

NewGetSnmpTransportsParamsWithHTTPClient creates a new GetSnmpTransportsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSnmpTransportsParamsWithTimeout

func NewGetSnmpTransportsParamsWithTimeout(timeout time.Duration) *GetSnmpTransportsParams

NewGetSnmpTransportsParamsWithTimeout creates a new GetSnmpTransportsParams object with the ability to set a timeout on a request.

func (*GetSnmpTransportsParams) SetContentLanguage

func (o *GetSnmpTransportsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get snmp transports params

func (*GetSnmpTransportsParams) SetContext

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

SetContext adds the context to the get snmp transports params

func (*GetSnmpTransportsParams) SetDefaults

func (o *GetSnmpTransportsParams) SetDefaults()

SetDefaults hydrates default values in the get snmp transports params (not the query body).

All values with no default are reset to their zero value.

func (*GetSnmpTransportsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get snmp transports params

func (*GetSnmpTransportsParams) SetRequestBody

func (o *GetSnmpTransportsParams) SetRequestBody(requestBody *models.GetSnmpTransportsRequestBody)

SetRequestBody adds the requestBody to the get snmp transports params

func (*GetSnmpTransportsParams) SetTimeout

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

SetTimeout adds the timeout to the get snmp transports params

func (*GetSnmpTransportsParams) WithContentLanguage

func (o *GetSnmpTransportsParams) WithContentLanguage(contentLanguage *string) *GetSnmpTransportsParams

WithContentLanguage adds the contentLanguage to the get snmp transports params

func (*GetSnmpTransportsParams) WithContext

WithContext adds the context to the get snmp transports params

func (*GetSnmpTransportsParams) WithDefaults

WithDefaults hydrates default values in the get snmp transports params (not the query body).

All values with no default are reset to their zero value.

func (*GetSnmpTransportsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get snmp transports params

func (*GetSnmpTransportsParams) WithRequestBody

WithRequestBody adds the requestBody to the get snmp transports params

func (*GetSnmpTransportsParams) WithTimeout

WithTimeout adds the timeout to the get snmp transports params

func (*GetSnmpTransportsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSnmpTransportsReader

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

GetSnmpTransportsReader is a Reader for the GetSnmpTransports structure.

func (*GetSnmpTransportsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSnmpTransportBadRequest

type UpdateSnmpTransportBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSnmpTransportBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateSnmpTransportBadRequest

func NewUpdateSnmpTransportBadRequest() *UpdateSnmpTransportBadRequest

NewUpdateSnmpTransportBadRequest creates a UpdateSnmpTransportBadRequest with default headers values

func (*UpdateSnmpTransportBadRequest) Error

func (*UpdateSnmpTransportBadRequest) GetPayload

type UpdateSnmpTransportInternalServerError

type UpdateSnmpTransportInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSnmpTransportInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateSnmpTransportInternalServerError

func NewUpdateSnmpTransportInternalServerError() *UpdateSnmpTransportInternalServerError

NewUpdateSnmpTransportInternalServerError creates a UpdateSnmpTransportInternalServerError with default headers values

func (*UpdateSnmpTransportInternalServerError) Error

func (*UpdateSnmpTransportInternalServerError) GetPayload

type UpdateSnmpTransportNotFound

type UpdateSnmpTransportNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateSnmpTransportNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateSnmpTransportNotFound

func NewUpdateSnmpTransportNotFound() *UpdateSnmpTransportNotFound

NewUpdateSnmpTransportNotFound creates a UpdateSnmpTransportNotFound with default headers values

func (*UpdateSnmpTransportNotFound) Error

func (*UpdateSnmpTransportNotFound) GetPayload

func (o *UpdateSnmpTransportNotFound) GetPayload() *models.ErrorBody

type UpdateSnmpTransportOK

type UpdateSnmpTransportOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskSnmpTransport
}
UpdateSnmpTransportOK describes a response with status code 200, with default header values.

UpdateSnmpTransportOK update snmp transport o k

func NewUpdateSnmpTransportOK

func NewUpdateSnmpTransportOK() *UpdateSnmpTransportOK

NewUpdateSnmpTransportOK creates a UpdateSnmpTransportOK with default headers values

func (*UpdateSnmpTransportOK) Error

func (o *UpdateSnmpTransportOK) Error() string

func (*UpdateSnmpTransportOK) GetPayload

type UpdateSnmpTransportParams

type UpdateSnmpTransportParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.SnmpTransportUpdationParams

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

UpdateSnmpTransportParams contains all the parameters to send to the API endpoint

for the update snmp transport operation.

Typically these are written to a http.Request.

func NewUpdateSnmpTransportParams

func NewUpdateSnmpTransportParams() *UpdateSnmpTransportParams

NewUpdateSnmpTransportParams creates a new UpdateSnmpTransportParams 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 NewUpdateSnmpTransportParamsWithContext

func NewUpdateSnmpTransportParamsWithContext(ctx context.Context) *UpdateSnmpTransportParams

NewUpdateSnmpTransportParamsWithContext creates a new UpdateSnmpTransportParams object with the ability to set a context for a request.

func NewUpdateSnmpTransportParamsWithHTTPClient

func NewUpdateSnmpTransportParamsWithHTTPClient(client *http.Client) *UpdateSnmpTransportParams

NewUpdateSnmpTransportParamsWithHTTPClient creates a new UpdateSnmpTransportParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateSnmpTransportParamsWithTimeout

func NewUpdateSnmpTransportParamsWithTimeout(timeout time.Duration) *UpdateSnmpTransportParams

NewUpdateSnmpTransportParamsWithTimeout creates a new UpdateSnmpTransportParams object with the ability to set a timeout on a request.

func (*UpdateSnmpTransportParams) SetContentLanguage

func (o *UpdateSnmpTransportParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update snmp transport params

func (*UpdateSnmpTransportParams) SetContext

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

SetContext adds the context to the update snmp transport params

func (*UpdateSnmpTransportParams) SetDefaults

func (o *UpdateSnmpTransportParams) SetDefaults()

SetDefaults hydrates default values in the update snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSnmpTransportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update snmp transport params

func (*UpdateSnmpTransportParams) SetRequestBody

func (o *UpdateSnmpTransportParams) SetRequestBody(requestBody *models.SnmpTransportUpdationParams)

SetRequestBody adds the requestBody to the update snmp transport params

func (*UpdateSnmpTransportParams) SetTimeout

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

SetTimeout adds the timeout to the update snmp transport params

func (*UpdateSnmpTransportParams) WithContentLanguage

func (o *UpdateSnmpTransportParams) WithContentLanguage(contentLanguage *string) *UpdateSnmpTransportParams

WithContentLanguage adds the contentLanguage to the update snmp transport params

func (*UpdateSnmpTransportParams) WithContext

WithContext adds the context to the update snmp transport params

func (*UpdateSnmpTransportParams) WithDefaults

WithDefaults hydrates default values in the update snmp transport params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateSnmpTransportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update snmp transport params

func (*UpdateSnmpTransportParams) WithRequestBody

WithRequestBody adds the requestBody to the update snmp transport params

func (*UpdateSnmpTransportParams) WithTimeout

WithTimeout adds the timeout to the update snmp transport params

func (*UpdateSnmpTransportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateSnmpTransportReader

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

UpdateSnmpTransportReader is a Reader for the UpdateSnmpTransport structure.

func (*UpdateSnmpTransportReader) ReadResponse

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