Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateSnmpTrapReceiver(params *CreateSnmpTrapReceiverParams, opts ...ClientOption) (*CreateSnmpTrapReceiverOK, error)
- func (a *Client) DeleteSnmpTrapReceiver(params *DeleteSnmpTrapReceiverParams, opts ...ClientOption) (*DeleteSnmpTrapReceiverOK, error)
- func (a *Client) GetSnmpTrapReceivers(params *GetSnmpTrapReceiversParams, opts ...ClientOption) (*GetSnmpTrapReceiversOK, error)
- func (a *Client) GetSnmpTrapReceiversConnection(params *GetSnmpTrapReceiversConnectionParams, opts ...ClientOption) (*GetSnmpTrapReceiversConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSnmpTrapReceiver(params *UpdateSnmpTrapReceiverParams, opts ...ClientOption) (*UpdateSnmpTrapReceiverOK, error)
- type ClientOption
- type ClientService
- type CreateSnmpTrapReceiverBadRequest
- type CreateSnmpTrapReceiverInternalServerError
- type CreateSnmpTrapReceiverNotFound
- type CreateSnmpTrapReceiverOK
- type CreateSnmpTrapReceiverParams
- func NewCreateSnmpTrapReceiverParams() *CreateSnmpTrapReceiverParams
- func NewCreateSnmpTrapReceiverParamsWithContext(ctx context.Context) *CreateSnmpTrapReceiverParams
- func NewCreateSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *CreateSnmpTrapReceiverParams
- func NewCreateSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateSnmpTrapReceiverParams) SetContext(ctx context.Context)
- func (o *CreateSnmpTrapReceiverParams) SetDefaults()
- func (o *CreateSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
- func (o *CreateSnmpTrapReceiverParams) SetRequestBody(requestBody []*models.SnmpTrapReceiverCreationParams)
- func (o *CreateSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
- func (o *CreateSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WithContext(ctx context.Context) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WithDefaults() *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WithRequestBody(requestBody []*models.SnmpTrapReceiverCreationParams) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *CreateSnmpTrapReceiverParams
- func (o *CreateSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSnmpTrapReceiverReader
- type DeleteSnmpTrapReceiverBadRequest
- type DeleteSnmpTrapReceiverInternalServerError
- type DeleteSnmpTrapReceiverNotFound
- type DeleteSnmpTrapReceiverOK
- type DeleteSnmpTrapReceiverParams
- func NewDeleteSnmpTrapReceiverParams() *DeleteSnmpTrapReceiverParams
- func NewDeleteSnmpTrapReceiverParamsWithContext(ctx context.Context) *DeleteSnmpTrapReceiverParams
- func NewDeleteSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *DeleteSnmpTrapReceiverParams
- func NewDeleteSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
- func (o *DeleteSnmpTrapReceiverParams) SetContext(ctx context.Context)
- func (o *DeleteSnmpTrapReceiverParams) SetDefaults()
- func (o *DeleteSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSnmpTrapReceiverParams) SetRequestBody(requestBody *models.SnmpTrapReceiverDeletionParams)
- func (o *DeleteSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WithContext(ctx context.Context) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WithDefaults() *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WithRequestBody(requestBody *models.SnmpTrapReceiverDeletionParams) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *DeleteSnmpTrapReceiverParams
- func (o *DeleteSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSnmpTrapReceiverReader
- type GetSnmpTrapReceiversBadRequest
- type GetSnmpTrapReceiversConnectionBadRequest
- type GetSnmpTrapReceiversConnectionInternalServerError
- type GetSnmpTrapReceiversConnectionNotFound
- type GetSnmpTrapReceiversConnectionOK
- type GetSnmpTrapReceiversConnectionParams
- func NewGetSnmpTrapReceiversConnectionParams() *GetSnmpTrapReceiversConnectionParams
- func NewGetSnmpTrapReceiversConnectionParamsWithContext(ctx context.Context) *GetSnmpTrapReceiversConnectionParams
- func NewGetSnmpTrapReceiversConnectionParamsWithHTTPClient(client *http.Client) *GetSnmpTrapReceiversConnectionParams
- func NewGetSnmpTrapReceiversConnectionParamsWithTimeout(timeout time.Duration) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetSnmpTrapReceiversConnectionParams) SetContext(ctx context.Context)
- func (o *GetSnmpTrapReceiversConnectionParams) SetDefaults()
- func (o *GetSnmpTrapReceiversConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetSnmpTrapReceiversConnectionParams) SetRequestBody(requestBody *models.GetSnmpTrapReceiversConnectionRequestBody)
- func (o *GetSnmpTrapReceiversConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetSnmpTrapReceiversConnectionParams) WithContentLanguage(contentLanguage *string) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WithContext(ctx context.Context) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WithDefaults() *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WithHTTPClient(client *http.Client) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WithRequestBody(requestBody *models.GetSnmpTrapReceiversConnectionRequestBody) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WithTimeout(timeout time.Duration) *GetSnmpTrapReceiversConnectionParams
- func (o *GetSnmpTrapReceiversConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnmpTrapReceiversConnectionReader
- type GetSnmpTrapReceiversInternalServerError
- type GetSnmpTrapReceiversNotFound
- type GetSnmpTrapReceiversOK
- type GetSnmpTrapReceiversParams
- func NewGetSnmpTrapReceiversParams() *GetSnmpTrapReceiversParams
- func NewGetSnmpTrapReceiversParamsWithContext(ctx context.Context) *GetSnmpTrapReceiversParams
- func NewGetSnmpTrapReceiversParamsWithHTTPClient(client *http.Client) *GetSnmpTrapReceiversParams
- func NewGetSnmpTrapReceiversParamsWithTimeout(timeout time.Duration) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) SetContentLanguage(contentLanguage *string)
- func (o *GetSnmpTrapReceiversParams) SetContext(ctx context.Context)
- func (o *GetSnmpTrapReceiversParams) SetDefaults()
- func (o *GetSnmpTrapReceiversParams) SetHTTPClient(client *http.Client)
- func (o *GetSnmpTrapReceiversParams) SetRequestBody(requestBody *models.GetSnmpTrapReceiversRequestBody)
- func (o *GetSnmpTrapReceiversParams) SetTimeout(timeout time.Duration)
- func (o *GetSnmpTrapReceiversParams) WithContentLanguage(contentLanguage *string) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WithContext(ctx context.Context) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WithDefaults() *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WithHTTPClient(client *http.Client) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WithRequestBody(requestBody *models.GetSnmpTrapReceiversRequestBody) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WithTimeout(timeout time.Duration) *GetSnmpTrapReceiversParams
- func (o *GetSnmpTrapReceiversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnmpTrapReceiversReader
- type UpdateSnmpTrapReceiverBadRequest
- type UpdateSnmpTrapReceiverInternalServerError
- type UpdateSnmpTrapReceiverNotFound
- type UpdateSnmpTrapReceiverOK
- type UpdateSnmpTrapReceiverParams
- func NewUpdateSnmpTrapReceiverParams() *UpdateSnmpTrapReceiverParams
- func NewUpdateSnmpTrapReceiverParamsWithContext(ctx context.Context) *UpdateSnmpTrapReceiverParams
- func NewUpdateSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *UpdateSnmpTrapReceiverParams
- func NewUpdateSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateSnmpTrapReceiverParams) SetContext(ctx context.Context)
- func (o *UpdateSnmpTrapReceiverParams) SetDefaults()
- func (o *UpdateSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSnmpTrapReceiverParams) SetRequestBody(requestBody *models.SnmpTrapReceiverUpdationParams)
- func (o *UpdateSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WithContext(ctx context.Context) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WithDefaults() *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WithRequestBody(requestBody *models.SnmpTrapReceiverUpdationParams) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *UpdateSnmpTrapReceiverParams
- func (o *UpdateSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSnmpTrapReceiverReader
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 trap receiver API
func (*Client) CreateSnmpTrapReceiver ¶
func (a *Client) CreateSnmpTrapReceiver(params *CreateSnmpTrapReceiverParams, opts ...ClientOption) (*CreateSnmpTrapReceiverOK, error)
CreateSnmpTrapReceiver create snmp trap receiver API
func (*Client) DeleteSnmpTrapReceiver ¶
func (a *Client) DeleteSnmpTrapReceiver(params *DeleteSnmpTrapReceiverParams, opts ...ClientOption) (*DeleteSnmpTrapReceiverOK, error)
DeleteSnmpTrapReceiver delete snmp trap receiver API
func (*Client) GetSnmpTrapReceivers ¶
func (a *Client) GetSnmpTrapReceivers(params *GetSnmpTrapReceiversParams, opts ...ClientOption) (*GetSnmpTrapReceiversOK, error)
GetSnmpTrapReceivers get snmp trap receivers API
func (*Client) GetSnmpTrapReceiversConnection ¶
func (a *Client) GetSnmpTrapReceiversConnection(params *GetSnmpTrapReceiversConnectionParams, opts ...ClientOption) (*GetSnmpTrapReceiversConnectionOK, error)
GetSnmpTrapReceiversConnection get snmp trap receivers connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSnmpTrapReceiver ¶
func (a *Client) UpdateSnmpTrapReceiver(params *UpdateSnmpTrapReceiverParams, opts ...ClientOption) (*UpdateSnmpTrapReceiverOK, error)
UpdateSnmpTrapReceiver update snmp trap receiver API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateSnmpTrapReceiver(params *CreateSnmpTrapReceiverParams, opts ...ClientOption) (*CreateSnmpTrapReceiverOK, error) DeleteSnmpTrapReceiver(params *DeleteSnmpTrapReceiverParams, opts ...ClientOption) (*DeleteSnmpTrapReceiverOK, error) GetSnmpTrapReceivers(params *GetSnmpTrapReceiversParams, opts ...ClientOption) (*GetSnmpTrapReceiversOK, error) GetSnmpTrapReceiversConnection(params *GetSnmpTrapReceiversConnectionParams, opts ...ClientOption) (*GetSnmpTrapReceiversConnectionOK, error) UpdateSnmpTrapReceiver(params *UpdateSnmpTrapReceiverParams, opts ...ClientOption) (*UpdateSnmpTrapReceiverOK, 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 trap receiver API client.
type CreateSnmpTrapReceiverBadRequest ¶
CreateSnmpTrapReceiverBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateSnmpTrapReceiverBadRequest ¶
func NewCreateSnmpTrapReceiverBadRequest() *CreateSnmpTrapReceiverBadRequest
NewCreateSnmpTrapReceiverBadRequest creates a CreateSnmpTrapReceiverBadRequest with default headers values
func (*CreateSnmpTrapReceiverBadRequest) Error ¶
func (o *CreateSnmpTrapReceiverBadRequest) Error() string
func (*CreateSnmpTrapReceiverBadRequest) GetPayload ¶
func (o *CreateSnmpTrapReceiverBadRequest) GetPayload() *models.ErrorBody
type CreateSnmpTrapReceiverInternalServerError ¶
type CreateSnmpTrapReceiverInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
CreateSnmpTrapReceiverInternalServerError describes a response with status code 500, with default header values.
Server error
func NewCreateSnmpTrapReceiverInternalServerError ¶
func NewCreateSnmpTrapReceiverInternalServerError() *CreateSnmpTrapReceiverInternalServerError
NewCreateSnmpTrapReceiverInternalServerError creates a CreateSnmpTrapReceiverInternalServerError with default headers values
func (*CreateSnmpTrapReceiverInternalServerError) Error ¶
func (o *CreateSnmpTrapReceiverInternalServerError) Error() string
func (*CreateSnmpTrapReceiverInternalServerError) GetPayload ¶
func (o *CreateSnmpTrapReceiverInternalServerError) GetPayload() *models.ErrorBody
type CreateSnmpTrapReceiverNotFound ¶
CreateSnmpTrapReceiverNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateSnmpTrapReceiverNotFound ¶
func NewCreateSnmpTrapReceiverNotFound() *CreateSnmpTrapReceiverNotFound
NewCreateSnmpTrapReceiverNotFound creates a CreateSnmpTrapReceiverNotFound with default headers values
func (*CreateSnmpTrapReceiverNotFound) Error ¶
func (o *CreateSnmpTrapReceiverNotFound) Error() string
func (*CreateSnmpTrapReceiverNotFound) GetPayload ¶
func (o *CreateSnmpTrapReceiverNotFound) GetPayload() *models.ErrorBody
type CreateSnmpTrapReceiverOK ¶
type CreateSnmpTrapReceiverOK struct { XTowerRequestID string Payload []*models.WithTaskSnmpTrapReceiver }
CreateSnmpTrapReceiverOK describes a response with status code 200, with default header values.
CreateSnmpTrapReceiverOK create snmp trap receiver o k
func NewCreateSnmpTrapReceiverOK ¶
func NewCreateSnmpTrapReceiverOK() *CreateSnmpTrapReceiverOK
NewCreateSnmpTrapReceiverOK creates a CreateSnmpTrapReceiverOK with default headers values
func (*CreateSnmpTrapReceiverOK) Error ¶
func (o *CreateSnmpTrapReceiverOK) Error() string
func (*CreateSnmpTrapReceiverOK) GetPayload ¶
func (o *CreateSnmpTrapReceiverOK) GetPayload() []*models.WithTaskSnmpTrapReceiver
type CreateSnmpTrapReceiverParams ¶
type CreateSnmpTrapReceiverParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody []*models.SnmpTrapReceiverCreationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSnmpTrapReceiverParams contains all the parameters to send to the API endpoint
for the create snmp trap receiver operation. Typically these are written to a http.Request.
func NewCreateSnmpTrapReceiverParams ¶
func NewCreateSnmpTrapReceiverParams() *CreateSnmpTrapReceiverParams
NewCreateSnmpTrapReceiverParams creates a new CreateSnmpTrapReceiverParams 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 NewCreateSnmpTrapReceiverParamsWithContext ¶
func NewCreateSnmpTrapReceiverParamsWithContext(ctx context.Context) *CreateSnmpTrapReceiverParams
NewCreateSnmpTrapReceiverParamsWithContext creates a new CreateSnmpTrapReceiverParams object with the ability to set a context for a request.
func NewCreateSnmpTrapReceiverParamsWithHTTPClient ¶
func NewCreateSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *CreateSnmpTrapReceiverParams
NewCreateSnmpTrapReceiverParamsWithHTTPClient creates a new CreateSnmpTrapReceiverParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSnmpTrapReceiverParamsWithTimeout ¶
func NewCreateSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *CreateSnmpTrapReceiverParams
NewCreateSnmpTrapReceiverParamsWithTimeout creates a new CreateSnmpTrapReceiverParams object with the ability to set a timeout on a request.
func (*CreateSnmpTrapReceiverParams) SetContentLanguage ¶
func (o *CreateSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) SetContext ¶
func (o *CreateSnmpTrapReceiverParams) SetContext(ctx context.Context)
SetContext adds the context to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) SetDefaults ¶
func (o *CreateSnmpTrapReceiverParams) SetDefaults()
SetDefaults hydrates default values in the create snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSnmpTrapReceiverParams) SetHTTPClient ¶
func (o *CreateSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) SetRequestBody ¶
func (o *CreateSnmpTrapReceiverParams) SetRequestBody(requestBody []*models.SnmpTrapReceiverCreationParams)
SetRequestBody adds the requestBody to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) SetTimeout ¶
func (o *CreateSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WithContentLanguage ¶
func (o *CreateSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *CreateSnmpTrapReceiverParams
WithContentLanguage adds the contentLanguage to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WithContext ¶
func (o *CreateSnmpTrapReceiverParams) WithContext(ctx context.Context) *CreateSnmpTrapReceiverParams
WithContext adds the context to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WithDefaults ¶
func (o *CreateSnmpTrapReceiverParams) WithDefaults() *CreateSnmpTrapReceiverParams
WithDefaults hydrates default values in the create snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSnmpTrapReceiverParams) WithHTTPClient ¶
func (o *CreateSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *CreateSnmpTrapReceiverParams
WithHTTPClient adds the HTTPClient to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WithRequestBody ¶
func (o *CreateSnmpTrapReceiverParams) WithRequestBody(requestBody []*models.SnmpTrapReceiverCreationParams) *CreateSnmpTrapReceiverParams
WithRequestBody adds the requestBody to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WithTimeout ¶
func (o *CreateSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *CreateSnmpTrapReceiverParams
WithTimeout adds the timeout to the create snmp trap receiver params
func (*CreateSnmpTrapReceiverParams) WriteToRequest ¶
func (o *CreateSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSnmpTrapReceiverReader ¶
type CreateSnmpTrapReceiverReader struct {
// contains filtered or unexported fields
}
CreateSnmpTrapReceiverReader is a Reader for the CreateSnmpTrapReceiver structure.
func (*CreateSnmpTrapReceiverReader) ReadResponse ¶
func (o *CreateSnmpTrapReceiverReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSnmpTrapReceiverBadRequest ¶
DeleteSnmpTrapReceiverBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeleteSnmpTrapReceiverBadRequest ¶
func NewDeleteSnmpTrapReceiverBadRequest() *DeleteSnmpTrapReceiverBadRequest
NewDeleteSnmpTrapReceiverBadRequest creates a DeleteSnmpTrapReceiverBadRequest with default headers values
func (*DeleteSnmpTrapReceiverBadRequest) Error ¶
func (o *DeleteSnmpTrapReceiverBadRequest) Error() string
func (*DeleteSnmpTrapReceiverBadRequest) GetPayload ¶
func (o *DeleteSnmpTrapReceiverBadRequest) GetPayload() *models.ErrorBody
type DeleteSnmpTrapReceiverInternalServerError ¶
type DeleteSnmpTrapReceiverInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
DeleteSnmpTrapReceiverInternalServerError describes a response with status code 500, with default header values.
Server error
func NewDeleteSnmpTrapReceiverInternalServerError ¶
func NewDeleteSnmpTrapReceiverInternalServerError() *DeleteSnmpTrapReceiverInternalServerError
NewDeleteSnmpTrapReceiverInternalServerError creates a DeleteSnmpTrapReceiverInternalServerError with default headers values
func (*DeleteSnmpTrapReceiverInternalServerError) Error ¶
func (o *DeleteSnmpTrapReceiverInternalServerError) Error() string
func (*DeleteSnmpTrapReceiverInternalServerError) GetPayload ¶
func (o *DeleteSnmpTrapReceiverInternalServerError) GetPayload() *models.ErrorBody
type DeleteSnmpTrapReceiverNotFound ¶
DeleteSnmpTrapReceiverNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteSnmpTrapReceiverNotFound ¶
func NewDeleteSnmpTrapReceiverNotFound() *DeleteSnmpTrapReceiverNotFound
NewDeleteSnmpTrapReceiverNotFound creates a DeleteSnmpTrapReceiverNotFound with default headers values
func (*DeleteSnmpTrapReceiverNotFound) Error ¶
func (o *DeleteSnmpTrapReceiverNotFound) Error() string
func (*DeleteSnmpTrapReceiverNotFound) GetPayload ¶
func (o *DeleteSnmpTrapReceiverNotFound) GetPayload() *models.ErrorBody
type DeleteSnmpTrapReceiverOK ¶
type DeleteSnmpTrapReceiverOK struct { XTowerRequestID string Payload []*models.WithTaskDeleteSnmpTrapReceiver }
DeleteSnmpTrapReceiverOK describes a response with status code 200, with default header values.
DeleteSnmpTrapReceiverOK delete snmp trap receiver o k
func NewDeleteSnmpTrapReceiverOK ¶
func NewDeleteSnmpTrapReceiverOK() *DeleteSnmpTrapReceiverOK
NewDeleteSnmpTrapReceiverOK creates a DeleteSnmpTrapReceiverOK with default headers values
func (*DeleteSnmpTrapReceiverOK) Error ¶
func (o *DeleteSnmpTrapReceiverOK) Error() string
func (*DeleteSnmpTrapReceiverOK) GetPayload ¶
func (o *DeleteSnmpTrapReceiverOK) GetPayload() []*models.WithTaskDeleteSnmpTrapReceiver
type DeleteSnmpTrapReceiverParams ¶
type DeleteSnmpTrapReceiverParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.SnmpTrapReceiverDeletionParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSnmpTrapReceiverParams contains all the parameters to send to the API endpoint
for the delete snmp trap receiver operation. Typically these are written to a http.Request.
func NewDeleteSnmpTrapReceiverParams ¶
func NewDeleteSnmpTrapReceiverParams() *DeleteSnmpTrapReceiverParams
NewDeleteSnmpTrapReceiverParams creates a new DeleteSnmpTrapReceiverParams 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 NewDeleteSnmpTrapReceiverParamsWithContext ¶
func NewDeleteSnmpTrapReceiverParamsWithContext(ctx context.Context) *DeleteSnmpTrapReceiverParams
NewDeleteSnmpTrapReceiverParamsWithContext creates a new DeleteSnmpTrapReceiverParams object with the ability to set a context for a request.
func NewDeleteSnmpTrapReceiverParamsWithHTTPClient ¶
func NewDeleteSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *DeleteSnmpTrapReceiverParams
NewDeleteSnmpTrapReceiverParamsWithHTTPClient creates a new DeleteSnmpTrapReceiverParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSnmpTrapReceiverParamsWithTimeout ¶
func NewDeleteSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *DeleteSnmpTrapReceiverParams
NewDeleteSnmpTrapReceiverParamsWithTimeout creates a new DeleteSnmpTrapReceiverParams object with the ability to set a timeout on a request.
func (*DeleteSnmpTrapReceiverParams) SetContentLanguage ¶
func (o *DeleteSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) SetContext ¶
func (o *DeleteSnmpTrapReceiverParams) SetContext(ctx context.Context)
SetContext adds the context to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) SetDefaults ¶
func (o *DeleteSnmpTrapReceiverParams) SetDefaults()
SetDefaults hydrates default values in the delete snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSnmpTrapReceiverParams) SetHTTPClient ¶
func (o *DeleteSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) SetRequestBody ¶
func (o *DeleteSnmpTrapReceiverParams) SetRequestBody(requestBody *models.SnmpTrapReceiverDeletionParams)
SetRequestBody adds the requestBody to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) SetTimeout ¶
func (o *DeleteSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WithContentLanguage ¶
func (o *DeleteSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *DeleteSnmpTrapReceiverParams
WithContentLanguage adds the contentLanguage to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WithContext ¶
func (o *DeleteSnmpTrapReceiverParams) WithContext(ctx context.Context) *DeleteSnmpTrapReceiverParams
WithContext adds the context to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WithDefaults ¶
func (o *DeleteSnmpTrapReceiverParams) WithDefaults() *DeleteSnmpTrapReceiverParams
WithDefaults hydrates default values in the delete snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSnmpTrapReceiverParams) WithHTTPClient ¶
func (o *DeleteSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *DeleteSnmpTrapReceiverParams
WithHTTPClient adds the HTTPClient to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WithRequestBody ¶
func (o *DeleteSnmpTrapReceiverParams) WithRequestBody(requestBody *models.SnmpTrapReceiverDeletionParams) *DeleteSnmpTrapReceiverParams
WithRequestBody adds the requestBody to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WithTimeout ¶
func (o *DeleteSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *DeleteSnmpTrapReceiverParams
WithTimeout adds the timeout to the delete snmp trap receiver params
func (*DeleteSnmpTrapReceiverParams) WriteToRequest ¶
func (o *DeleteSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSnmpTrapReceiverReader ¶
type DeleteSnmpTrapReceiverReader struct {
// contains filtered or unexported fields
}
DeleteSnmpTrapReceiverReader is a Reader for the DeleteSnmpTrapReceiver structure.
func (*DeleteSnmpTrapReceiverReader) ReadResponse ¶
func (o *DeleteSnmpTrapReceiverReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSnmpTrapReceiversBadRequest ¶
GetSnmpTrapReceiversBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetSnmpTrapReceiversBadRequest ¶
func NewGetSnmpTrapReceiversBadRequest() *GetSnmpTrapReceiversBadRequest
NewGetSnmpTrapReceiversBadRequest creates a GetSnmpTrapReceiversBadRequest with default headers values
func (*GetSnmpTrapReceiversBadRequest) Error ¶
func (o *GetSnmpTrapReceiversBadRequest) Error() string
func (*GetSnmpTrapReceiversBadRequest) GetPayload ¶
func (o *GetSnmpTrapReceiversBadRequest) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversConnectionBadRequest ¶
type GetSnmpTrapReceiversConnectionBadRequest struct { XTowerRequestID string Payload *models.ErrorBody }
GetSnmpTrapReceiversConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetSnmpTrapReceiversConnectionBadRequest ¶
func NewGetSnmpTrapReceiversConnectionBadRequest() *GetSnmpTrapReceiversConnectionBadRequest
NewGetSnmpTrapReceiversConnectionBadRequest creates a GetSnmpTrapReceiversConnectionBadRequest with default headers values
func (*GetSnmpTrapReceiversConnectionBadRequest) Error ¶
func (o *GetSnmpTrapReceiversConnectionBadRequest) Error() string
func (*GetSnmpTrapReceiversConnectionBadRequest) GetPayload ¶
func (o *GetSnmpTrapReceiversConnectionBadRequest) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversConnectionInternalServerError ¶
type GetSnmpTrapReceiversConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetSnmpTrapReceiversConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetSnmpTrapReceiversConnectionInternalServerError ¶
func NewGetSnmpTrapReceiversConnectionInternalServerError() *GetSnmpTrapReceiversConnectionInternalServerError
NewGetSnmpTrapReceiversConnectionInternalServerError creates a GetSnmpTrapReceiversConnectionInternalServerError with default headers values
func (*GetSnmpTrapReceiversConnectionInternalServerError) Error ¶
func (o *GetSnmpTrapReceiversConnectionInternalServerError) Error() string
func (*GetSnmpTrapReceiversConnectionInternalServerError) GetPayload ¶
func (o *GetSnmpTrapReceiversConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversConnectionNotFound ¶
type GetSnmpTrapReceiversConnectionNotFound struct { XTowerRequestID string Payload *models.ErrorBody }
GetSnmpTrapReceiversConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetSnmpTrapReceiversConnectionNotFound ¶
func NewGetSnmpTrapReceiversConnectionNotFound() *GetSnmpTrapReceiversConnectionNotFound
NewGetSnmpTrapReceiversConnectionNotFound creates a GetSnmpTrapReceiversConnectionNotFound with default headers values
func (*GetSnmpTrapReceiversConnectionNotFound) Error ¶
func (o *GetSnmpTrapReceiversConnectionNotFound) Error() string
func (*GetSnmpTrapReceiversConnectionNotFound) GetPayload ¶
func (o *GetSnmpTrapReceiversConnectionNotFound) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversConnectionOK ¶
type GetSnmpTrapReceiversConnectionOK struct { XTowerRequestID string Payload *models.SnmpTrapReceiverConnection }
GetSnmpTrapReceiversConnectionOK describes a response with status code 200, with default header values.
GetSnmpTrapReceiversConnectionOK get snmp trap receivers connection o k
func NewGetSnmpTrapReceiversConnectionOK ¶
func NewGetSnmpTrapReceiversConnectionOK() *GetSnmpTrapReceiversConnectionOK
NewGetSnmpTrapReceiversConnectionOK creates a GetSnmpTrapReceiversConnectionOK with default headers values
func (*GetSnmpTrapReceiversConnectionOK) Error ¶
func (o *GetSnmpTrapReceiversConnectionOK) Error() string
func (*GetSnmpTrapReceiversConnectionOK) GetPayload ¶
func (o *GetSnmpTrapReceiversConnectionOK) GetPayload() *models.SnmpTrapReceiverConnection
type GetSnmpTrapReceiversConnectionParams ¶
type GetSnmpTrapReceiversConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetSnmpTrapReceiversConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSnmpTrapReceiversConnectionParams contains all the parameters to send to the API endpoint
for the get snmp trap receivers connection operation. Typically these are written to a http.Request.
func NewGetSnmpTrapReceiversConnectionParams ¶
func NewGetSnmpTrapReceiversConnectionParams() *GetSnmpTrapReceiversConnectionParams
NewGetSnmpTrapReceiversConnectionParams creates a new GetSnmpTrapReceiversConnectionParams 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 NewGetSnmpTrapReceiversConnectionParamsWithContext ¶
func NewGetSnmpTrapReceiversConnectionParamsWithContext(ctx context.Context) *GetSnmpTrapReceiversConnectionParams
NewGetSnmpTrapReceiversConnectionParamsWithContext creates a new GetSnmpTrapReceiversConnectionParams object with the ability to set a context for a request.
func NewGetSnmpTrapReceiversConnectionParamsWithHTTPClient ¶
func NewGetSnmpTrapReceiversConnectionParamsWithHTTPClient(client *http.Client) *GetSnmpTrapReceiversConnectionParams
NewGetSnmpTrapReceiversConnectionParamsWithHTTPClient creates a new GetSnmpTrapReceiversConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetSnmpTrapReceiversConnectionParamsWithTimeout ¶
func NewGetSnmpTrapReceiversConnectionParamsWithTimeout(timeout time.Duration) *GetSnmpTrapReceiversConnectionParams
NewGetSnmpTrapReceiversConnectionParamsWithTimeout creates a new GetSnmpTrapReceiversConnectionParams object with the ability to set a timeout on a request.
func (*GetSnmpTrapReceiversConnectionParams) SetContentLanguage ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) SetContext ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) SetDefaults ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get snmp trap receivers connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnmpTrapReceiversConnectionParams) SetHTTPClient ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) SetRequestBody ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetRequestBody(requestBody *models.GetSnmpTrapReceiversConnectionRequestBody)
SetRequestBody adds the requestBody to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) SetTimeout ¶
func (o *GetSnmpTrapReceiversConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WithContentLanguage ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithContentLanguage(contentLanguage *string) *GetSnmpTrapReceiversConnectionParams
WithContentLanguage adds the contentLanguage to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WithContext ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithContext(ctx context.Context) *GetSnmpTrapReceiversConnectionParams
WithContext adds the context to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WithDefaults ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithDefaults() *GetSnmpTrapReceiversConnectionParams
WithDefaults hydrates default values in the get snmp trap receivers connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnmpTrapReceiversConnectionParams) WithHTTPClient ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithHTTPClient(client *http.Client) *GetSnmpTrapReceiversConnectionParams
WithHTTPClient adds the HTTPClient to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WithRequestBody ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithRequestBody(requestBody *models.GetSnmpTrapReceiversConnectionRequestBody) *GetSnmpTrapReceiversConnectionParams
WithRequestBody adds the requestBody to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WithTimeout ¶
func (o *GetSnmpTrapReceiversConnectionParams) WithTimeout(timeout time.Duration) *GetSnmpTrapReceiversConnectionParams
WithTimeout adds the timeout to the get snmp trap receivers connection params
func (*GetSnmpTrapReceiversConnectionParams) WriteToRequest ¶
func (o *GetSnmpTrapReceiversConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSnmpTrapReceiversConnectionReader ¶
type GetSnmpTrapReceiversConnectionReader struct {
// contains filtered or unexported fields
}
GetSnmpTrapReceiversConnectionReader is a Reader for the GetSnmpTrapReceiversConnection structure.
func (*GetSnmpTrapReceiversConnectionReader) ReadResponse ¶
func (o *GetSnmpTrapReceiversConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSnmpTrapReceiversInternalServerError ¶
type GetSnmpTrapReceiversInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetSnmpTrapReceiversInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetSnmpTrapReceiversInternalServerError ¶
func NewGetSnmpTrapReceiversInternalServerError() *GetSnmpTrapReceiversInternalServerError
NewGetSnmpTrapReceiversInternalServerError creates a GetSnmpTrapReceiversInternalServerError with default headers values
func (*GetSnmpTrapReceiversInternalServerError) Error ¶
func (o *GetSnmpTrapReceiversInternalServerError) Error() string
func (*GetSnmpTrapReceiversInternalServerError) GetPayload ¶
func (o *GetSnmpTrapReceiversInternalServerError) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversNotFound ¶
GetSnmpTrapReceiversNotFound describes a response with status code 404, with default header values.
Not found
func NewGetSnmpTrapReceiversNotFound ¶
func NewGetSnmpTrapReceiversNotFound() *GetSnmpTrapReceiversNotFound
NewGetSnmpTrapReceiversNotFound creates a GetSnmpTrapReceiversNotFound with default headers values
func (*GetSnmpTrapReceiversNotFound) Error ¶
func (o *GetSnmpTrapReceiversNotFound) Error() string
func (*GetSnmpTrapReceiversNotFound) GetPayload ¶
func (o *GetSnmpTrapReceiversNotFound) GetPayload() *models.ErrorBody
type GetSnmpTrapReceiversOK ¶
type GetSnmpTrapReceiversOK struct { XTowerRequestID string Payload []*models.SnmpTrapReceiver }
GetSnmpTrapReceiversOK describes a response with status code 200, with default header values.
GetSnmpTrapReceiversOK get snmp trap receivers o k
func NewGetSnmpTrapReceiversOK ¶
func NewGetSnmpTrapReceiversOK() *GetSnmpTrapReceiversOK
NewGetSnmpTrapReceiversOK creates a GetSnmpTrapReceiversOK with default headers values
func (*GetSnmpTrapReceiversOK) Error ¶
func (o *GetSnmpTrapReceiversOK) Error() string
func (*GetSnmpTrapReceiversOK) GetPayload ¶
func (o *GetSnmpTrapReceiversOK) GetPayload() []*models.SnmpTrapReceiver
type GetSnmpTrapReceiversParams ¶
type GetSnmpTrapReceiversParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetSnmpTrapReceiversRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSnmpTrapReceiversParams contains all the parameters to send to the API endpoint
for the get snmp trap receivers operation. Typically these are written to a http.Request.
func NewGetSnmpTrapReceiversParams ¶
func NewGetSnmpTrapReceiversParams() *GetSnmpTrapReceiversParams
NewGetSnmpTrapReceiversParams creates a new GetSnmpTrapReceiversParams 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 NewGetSnmpTrapReceiversParamsWithContext ¶
func NewGetSnmpTrapReceiversParamsWithContext(ctx context.Context) *GetSnmpTrapReceiversParams
NewGetSnmpTrapReceiversParamsWithContext creates a new GetSnmpTrapReceiversParams object with the ability to set a context for a request.
func NewGetSnmpTrapReceiversParamsWithHTTPClient ¶
func NewGetSnmpTrapReceiversParamsWithHTTPClient(client *http.Client) *GetSnmpTrapReceiversParams
NewGetSnmpTrapReceiversParamsWithHTTPClient creates a new GetSnmpTrapReceiversParams object with the ability to set a custom HTTPClient for a request.
func NewGetSnmpTrapReceiversParamsWithTimeout ¶
func NewGetSnmpTrapReceiversParamsWithTimeout(timeout time.Duration) *GetSnmpTrapReceiversParams
NewGetSnmpTrapReceiversParamsWithTimeout creates a new GetSnmpTrapReceiversParams object with the ability to set a timeout on a request.
func (*GetSnmpTrapReceiversParams) SetContentLanguage ¶
func (o *GetSnmpTrapReceiversParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) SetContext ¶
func (o *GetSnmpTrapReceiversParams) SetContext(ctx context.Context)
SetContext adds the context to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) SetDefaults ¶
func (o *GetSnmpTrapReceiversParams) SetDefaults()
SetDefaults hydrates default values in the get snmp trap receivers params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnmpTrapReceiversParams) SetHTTPClient ¶
func (o *GetSnmpTrapReceiversParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) SetRequestBody ¶
func (o *GetSnmpTrapReceiversParams) SetRequestBody(requestBody *models.GetSnmpTrapReceiversRequestBody)
SetRequestBody adds the requestBody to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) SetTimeout ¶
func (o *GetSnmpTrapReceiversParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WithContentLanguage ¶
func (o *GetSnmpTrapReceiversParams) WithContentLanguage(contentLanguage *string) *GetSnmpTrapReceiversParams
WithContentLanguage adds the contentLanguage to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WithContext ¶
func (o *GetSnmpTrapReceiversParams) WithContext(ctx context.Context) *GetSnmpTrapReceiversParams
WithContext adds the context to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WithDefaults ¶
func (o *GetSnmpTrapReceiversParams) WithDefaults() *GetSnmpTrapReceiversParams
WithDefaults hydrates default values in the get snmp trap receivers params (not the query body).
All values with no default are reset to their zero value.
func (*GetSnmpTrapReceiversParams) WithHTTPClient ¶
func (o *GetSnmpTrapReceiversParams) WithHTTPClient(client *http.Client) *GetSnmpTrapReceiversParams
WithHTTPClient adds the HTTPClient to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WithRequestBody ¶
func (o *GetSnmpTrapReceiversParams) WithRequestBody(requestBody *models.GetSnmpTrapReceiversRequestBody) *GetSnmpTrapReceiversParams
WithRequestBody adds the requestBody to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WithTimeout ¶
func (o *GetSnmpTrapReceiversParams) WithTimeout(timeout time.Duration) *GetSnmpTrapReceiversParams
WithTimeout adds the timeout to the get snmp trap receivers params
func (*GetSnmpTrapReceiversParams) WriteToRequest ¶
func (o *GetSnmpTrapReceiversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSnmpTrapReceiversReader ¶
type GetSnmpTrapReceiversReader struct {
// contains filtered or unexported fields
}
GetSnmpTrapReceiversReader is a Reader for the GetSnmpTrapReceivers structure.
func (*GetSnmpTrapReceiversReader) ReadResponse ¶
func (o *GetSnmpTrapReceiversReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSnmpTrapReceiverBadRequest ¶
UpdateSnmpTrapReceiverBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdateSnmpTrapReceiverBadRequest ¶
func NewUpdateSnmpTrapReceiverBadRequest() *UpdateSnmpTrapReceiverBadRequest
NewUpdateSnmpTrapReceiverBadRequest creates a UpdateSnmpTrapReceiverBadRequest with default headers values
func (*UpdateSnmpTrapReceiverBadRequest) Error ¶
func (o *UpdateSnmpTrapReceiverBadRequest) Error() string
func (*UpdateSnmpTrapReceiverBadRequest) GetPayload ¶
func (o *UpdateSnmpTrapReceiverBadRequest) GetPayload() *models.ErrorBody
type UpdateSnmpTrapReceiverInternalServerError ¶
type UpdateSnmpTrapReceiverInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
UpdateSnmpTrapReceiverInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUpdateSnmpTrapReceiverInternalServerError ¶
func NewUpdateSnmpTrapReceiverInternalServerError() *UpdateSnmpTrapReceiverInternalServerError
NewUpdateSnmpTrapReceiverInternalServerError creates a UpdateSnmpTrapReceiverInternalServerError with default headers values
func (*UpdateSnmpTrapReceiverInternalServerError) Error ¶
func (o *UpdateSnmpTrapReceiverInternalServerError) Error() string
func (*UpdateSnmpTrapReceiverInternalServerError) GetPayload ¶
func (o *UpdateSnmpTrapReceiverInternalServerError) GetPayload() *models.ErrorBody
type UpdateSnmpTrapReceiverNotFound ¶
UpdateSnmpTrapReceiverNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateSnmpTrapReceiverNotFound ¶
func NewUpdateSnmpTrapReceiverNotFound() *UpdateSnmpTrapReceiverNotFound
NewUpdateSnmpTrapReceiverNotFound creates a UpdateSnmpTrapReceiverNotFound with default headers values
func (*UpdateSnmpTrapReceiverNotFound) Error ¶
func (o *UpdateSnmpTrapReceiverNotFound) Error() string
func (*UpdateSnmpTrapReceiverNotFound) GetPayload ¶
func (o *UpdateSnmpTrapReceiverNotFound) GetPayload() *models.ErrorBody
type UpdateSnmpTrapReceiverOK ¶
type UpdateSnmpTrapReceiverOK struct { XTowerRequestID string Payload []*models.WithTaskSnmpTrapReceiver }
UpdateSnmpTrapReceiverOK describes a response with status code 200, with default header values.
UpdateSnmpTrapReceiverOK update snmp trap receiver o k
func NewUpdateSnmpTrapReceiverOK ¶
func NewUpdateSnmpTrapReceiverOK() *UpdateSnmpTrapReceiverOK
NewUpdateSnmpTrapReceiverOK creates a UpdateSnmpTrapReceiverOK with default headers values
func (*UpdateSnmpTrapReceiverOK) Error ¶
func (o *UpdateSnmpTrapReceiverOK) Error() string
func (*UpdateSnmpTrapReceiverOK) GetPayload ¶
func (o *UpdateSnmpTrapReceiverOK) GetPayload() []*models.WithTaskSnmpTrapReceiver
type UpdateSnmpTrapReceiverParams ¶
type UpdateSnmpTrapReceiverParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.SnmpTrapReceiverUpdationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSnmpTrapReceiverParams contains all the parameters to send to the API endpoint
for the update snmp trap receiver operation. Typically these are written to a http.Request.
func NewUpdateSnmpTrapReceiverParams ¶
func NewUpdateSnmpTrapReceiverParams() *UpdateSnmpTrapReceiverParams
NewUpdateSnmpTrapReceiverParams creates a new UpdateSnmpTrapReceiverParams 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 NewUpdateSnmpTrapReceiverParamsWithContext ¶
func NewUpdateSnmpTrapReceiverParamsWithContext(ctx context.Context) *UpdateSnmpTrapReceiverParams
NewUpdateSnmpTrapReceiverParamsWithContext creates a new UpdateSnmpTrapReceiverParams object with the ability to set a context for a request.
func NewUpdateSnmpTrapReceiverParamsWithHTTPClient ¶
func NewUpdateSnmpTrapReceiverParamsWithHTTPClient(client *http.Client) *UpdateSnmpTrapReceiverParams
NewUpdateSnmpTrapReceiverParamsWithHTTPClient creates a new UpdateSnmpTrapReceiverParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSnmpTrapReceiverParamsWithTimeout ¶
func NewUpdateSnmpTrapReceiverParamsWithTimeout(timeout time.Duration) *UpdateSnmpTrapReceiverParams
NewUpdateSnmpTrapReceiverParamsWithTimeout creates a new UpdateSnmpTrapReceiverParams object with the ability to set a timeout on a request.
func (*UpdateSnmpTrapReceiverParams) SetContentLanguage ¶
func (o *UpdateSnmpTrapReceiverParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) SetContext ¶
func (o *UpdateSnmpTrapReceiverParams) SetContext(ctx context.Context)
SetContext adds the context to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) SetDefaults ¶
func (o *UpdateSnmpTrapReceiverParams) SetDefaults()
SetDefaults hydrates default values in the update snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSnmpTrapReceiverParams) SetHTTPClient ¶
func (o *UpdateSnmpTrapReceiverParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) SetRequestBody ¶
func (o *UpdateSnmpTrapReceiverParams) SetRequestBody(requestBody *models.SnmpTrapReceiverUpdationParams)
SetRequestBody adds the requestBody to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) SetTimeout ¶
func (o *UpdateSnmpTrapReceiverParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WithContentLanguage ¶
func (o *UpdateSnmpTrapReceiverParams) WithContentLanguage(contentLanguage *string) *UpdateSnmpTrapReceiverParams
WithContentLanguage adds the contentLanguage to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WithContext ¶
func (o *UpdateSnmpTrapReceiverParams) WithContext(ctx context.Context) *UpdateSnmpTrapReceiverParams
WithContext adds the context to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WithDefaults ¶
func (o *UpdateSnmpTrapReceiverParams) WithDefaults() *UpdateSnmpTrapReceiverParams
WithDefaults hydrates default values in the update snmp trap receiver params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSnmpTrapReceiverParams) WithHTTPClient ¶
func (o *UpdateSnmpTrapReceiverParams) WithHTTPClient(client *http.Client) *UpdateSnmpTrapReceiverParams
WithHTTPClient adds the HTTPClient to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WithRequestBody ¶
func (o *UpdateSnmpTrapReceiverParams) WithRequestBody(requestBody *models.SnmpTrapReceiverUpdationParams) *UpdateSnmpTrapReceiverParams
WithRequestBody adds the requestBody to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WithTimeout ¶
func (o *UpdateSnmpTrapReceiverParams) WithTimeout(timeout time.Duration) *UpdateSnmpTrapReceiverParams
WithTimeout adds the timeout to the update snmp trap receiver params
func (*UpdateSnmpTrapReceiverParams) WriteToRequest ¶
func (o *UpdateSnmpTrapReceiverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSnmpTrapReceiverReader ¶
type UpdateSnmpTrapReceiverReader struct {
// contains filtered or unexported fields
}
UpdateSnmpTrapReceiverReader is a Reader for the UpdateSnmpTrapReceiver structure.
func (*UpdateSnmpTrapReceiverReader) ReadResponse ¶
func (o *UpdateSnmpTrapReceiverReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_snmp_trap_receiver_parameters.go
- create_snmp_trap_receiver_responses.go
- delete_snmp_trap_receiver_parameters.go
- delete_snmp_trap_receiver_responses.go
- get_snmp_trap_receivers_connection_parameters.go
- get_snmp_trap_receivers_connection_responses.go
- get_snmp_trap_receivers_parameters.go
- get_snmp_trap_receivers_responses.go
- snmp_trap_receiver_client.go
- update_snmp_trap_receiver_parameters.go
- update_snmp_trap_receiver_responses.go