Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateNotification(params *CreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNotificationCreated, error)
- func (a *Client) DeleteNotification(params *DeleteNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNotificationNoContent, error)
- func (a *Client) GetNotification(params *GetNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationOK, error)
- func (a *Client) GetNotifications(params *GetNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNotification(params *UpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNotificationCreated, *UpdateNotificationNoContent, error)
- func (a *Client) ValidateCreateNotification(params *ValidateCreateNotificationParams, ...) (*ValidateCreateNotificationNoContent, error)
- func (a *Client) ValidateUpdateNotification(params *ValidateUpdateNotificationParams, ...) (*ValidateUpdateNotificationNoContent, error)
- type ClientService
- type CreateNotificationBadRequest
- type CreateNotificationCreated
- type CreateNotificationParams
- func NewCreateNotificationParams() *CreateNotificationParams
- func NewCreateNotificationParamsWithContext(ctx context.Context) *CreateNotificationParams
- func NewCreateNotificationParamsWithHTTPClient(client *http.Client) *CreateNotificationParams
- func NewCreateNotificationParamsWithTimeout(timeout time.Duration) *CreateNotificationParams
- func (o *CreateNotificationParams) SetBody(body dynatrace.NotificationConfig)
- func (o *CreateNotificationParams) SetContext(ctx context.Context)
- func (o *CreateNotificationParams) SetHTTPClient(client *http.Client)
- func (o *CreateNotificationParams) SetTimeout(timeout time.Duration)
- func (o *CreateNotificationParams) WithBody(body dynatrace.NotificationConfig) *CreateNotificationParams
- func (o *CreateNotificationParams) WithContext(ctx context.Context) *CreateNotificationParams
- func (o *CreateNotificationParams) WithHTTPClient(client *http.Client) *CreateNotificationParams
- func (o *CreateNotificationParams) WithTimeout(timeout time.Duration) *CreateNotificationParams
- func (o *CreateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNotificationReader
- type DeleteNotificationNoContent
- type DeleteNotificationParams
- func NewDeleteNotificationParams() *DeleteNotificationParams
- func NewDeleteNotificationParamsWithContext(ctx context.Context) *DeleteNotificationParams
- func NewDeleteNotificationParamsWithHTTPClient(client *http.Client) *DeleteNotificationParams
- func NewDeleteNotificationParamsWithTimeout(timeout time.Duration) *DeleteNotificationParams
- func (o *DeleteNotificationParams) SetContext(ctx context.Context)
- func (o *DeleteNotificationParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNotificationParams) SetID(id strfmt.UUID)
- func (o *DeleteNotificationParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNotificationParams) WithContext(ctx context.Context) *DeleteNotificationParams
- func (o *DeleteNotificationParams) WithHTTPClient(client *http.Client) *DeleteNotificationParams
- func (o *DeleteNotificationParams) WithID(id strfmt.UUID) *DeleteNotificationParams
- func (o *DeleteNotificationParams) WithTimeout(timeout time.Duration) *DeleteNotificationParams
- func (o *DeleteNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNotificationReader
- type GetNotificationOK
- type GetNotificationParams
- func NewGetNotificationParams() *GetNotificationParams
- func NewGetNotificationParamsWithContext(ctx context.Context) *GetNotificationParams
- func NewGetNotificationParamsWithHTTPClient(client *http.Client) *GetNotificationParams
- func NewGetNotificationParamsWithTimeout(timeout time.Duration) *GetNotificationParams
- func (o *GetNotificationParams) SetContext(ctx context.Context)
- func (o *GetNotificationParams) SetHTTPClient(client *http.Client)
- func (o *GetNotificationParams) SetID(id strfmt.UUID)
- func (o *GetNotificationParams) SetTimeout(timeout time.Duration)
- func (o *GetNotificationParams) WithContext(ctx context.Context) *GetNotificationParams
- func (o *GetNotificationParams) WithHTTPClient(client *http.Client) *GetNotificationParams
- func (o *GetNotificationParams) WithID(id strfmt.UUID) *GetNotificationParams
- func (o *GetNotificationParams) WithTimeout(timeout time.Duration) *GetNotificationParams
- func (o *GetNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNotificationReader
- type GetNotificationsOK
- type GetNotificationsParams
- func NewGetNotificationsParams() *GetNotificationsParams
- func NewGetNotificationsParamsWithContext(ctx context.Context) *GetNotificationsParams
- func NewGetNotificationsParamsWithHTTPClient(client *http.Client) *GetNotificationsParams
- func NewGetNotificationsParamsWithTimeout(timeout time.Duration) *GetNotificationsParams
- func (o *GetNotificationsParams) SetContext(ctx context.Context)
- func (o *GetNotificationsParams) SetHTTPClient(client *http.Client)
- func (o *GetNotificationsParams) SetTimeout(timeout time.Duration)
- func (o *GetNotificationsParams) WithContext(ctx context.Context) *GetNotificationsParams
- func (o *GetNotificationsParams) WithHTTPClient(client *http.Client) *GetNotificationsParams
- func (o *GetNotificationsParams) WithTimeout(timeout time.Duration) *GetNotificationsParams
- func (o *GetNotificationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNotificationsReader
- type UpdateNotificationBadRequest
- type UpdateNotificationCreated
- type UpdateNotificationNoContent
- type UpdateNotificationParams
- func NewUpdateNotificationParams() *UpdateNotificationParams
- func NewUpdateNotificationParamsWithContext(ctx context.Context) *UpdateNotificationParams
- func NewUpdateNotificationParamsWithHTTPClient(client *http.Client) *UpdateNotificationParams
- func NewUpdateNotificationParamsWithTimeout(timeout time.Duration) *UpdateNotificationParams
- func (o *UpdateNotificationParams) SetBody(body dynatrace.NotificationConfig)
- func (o *UpdateNotificationParams) SetContext(ctx context.Context)
- func (o *UpdateNotificationParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNotificationParams) SetID(id strfmt.UUID)
- func (o *UpdateNotificationParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNotificationParams) WithBody(body dynatrace.NotificationConfig) *UpdateNotificationParams
- func (o *UpdateNotificationParams) WithContext(ctx context.Context) *UpdateNotificationParams
- func (o *UpdateNotificationParams) WithHTTPClient(client *http.Client) *UpdateNotificationParams
- func (o *UpdateNotificationParams) WithID(id strfmt.UUID) *UpdateNotificationParams
- func (o *UpdateNotificationParams) WithTimeout(timeout time.Duration) *UpdateNotificationParams
- func (o *UpdateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNotificationReader
- type ValidateCreateNotificationBadRequest
- type ValidateCreateNotificationNoContent
- type ValidateCreateNotificationParams
- func NewValidateCreateNotificationParams() *ValidateCreateNotificationParams
- func NewValidateCreateNotificationParamsWithContext(ctx context.Context) *ValidateCreateNotificationParams
- func NewValidateCreateNotificationParamsWithHTTPClient(client *http.Client) *ValidateCreateNotificationParams
- func NewValidateCreateNotificationParamsWithTimeout(timeout time.Duration) *ValidateCreateNotificationParams
- func (o *ValidateCreateNotificationParams) SetBody(body dynatrace.NotificationConfig)
- func (o *ValidateCreateNotificationParams) SetContext(ctx context.Context)
- func (o *ValidateCreateNotificationParams) SetHTTPClient(client *http.Client)
- func (o *ValidateCreateNotificationParams) SetTimeout(timeout time.Duration)
- func (o *ValidateCreateNotificationParams) WithBody(body dynatrace.NotificationConfig) *ValidateCreateNotificationParams
- func (o *ValidateCreateNotificationParams) WithContext(ctx context.Context) *ValidateCreateNotificationParams
- func (o *ValidateCreateNotificationParams) WithHTTPClient(client *http.Client) *ValidateCreateNotificationParams
- func (o *ValidateCreateNotificationParams) WithTimeout(timeout time.Duration) *ValidateCreateNotificationParams
- func (o *ValidateCreateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidateCreateNotificationReader
- type ValidateUpdateNotificationBadRequest
- type ValidateUpdateNotificationNoContent
- type ValidateUpdateNotificationParams
- func NewValidateUpdateNotificationParams() *ValidateUpdateNotificationParams
- func NewValidateUpdateNotificationParamsWithContext(ctx context.Context) *ValidateUpdateNotificationParams
- func NewValidateUpdateNotificationParamsWithHTTPClient(client *http.Client) *ValidateUpdateNotificationParams
- func NewValidateUpdateNotificationParamsWithTimeout(timeout time.Duration) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) SetBody(body dynatrace.NotificationConfig)
- func (o *ValidateUpdateNotificationParams) SetContext(ctx context.Context)
- func (o *ValidateUpdateNotificationParams) SetHTTPClient(client *http.Client)
- func (o *ValidateUpdateNotificationParams) SetID(id strfmt.UUID)
- func (o *ValidateUpdateNotificationParams) SetTimeout(timeout time.Duration)
- func (o *ValidateUpdateNotificationParams) WithBody(body dynatrace.NotificationConfig) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) WithContext(ctx context.Context) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) WithHTTPClient(client *http.Client) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) WithID(id strfmt.UUID) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) WithTimeout(timeout time.Duration) *ValidateUpdateNotificationParams
- func (o *ValidateUpdateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidateUpdateNotificationReader
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 notifications API
func (*Client) CreateNotification ¶
func (a *Client) CreateNotification(params *CreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNotificationCreated, error)
CreateNotification creates a new notification configuration
func (*Client) DeleteNotification ¶
func (a *Client) DeleteNotification(params *DeleteNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNotificationNoContent, error)
DeleteNotification deletes the specified notification configuration
func (*Client) GetNotification ¶
func (a *Client) GetNotification(params *GetNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationOK, error)
GetNotification gets the properties of the specified notification configuration
func (*Client) GetNotifications ¶
func (a *Client) GetNotifications(params *GetNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationsOK, error)
GetNotifications lists all notification configurations available in your environment
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateNotification ¶
func (a *Client) UpdateNotification(params *UpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNotificationCreated, *UpdateNotificationNoContent, error)
UpdateNotification updates an existing notification configuration or creates a new one
If a notification configuration with the specified ID doesn't exist, a new configuration is created.
func (*Client) ValidateCreateNotification ¶
func (a *Client) ValidateCreateNotification(params *ValidateCreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateCreateNotificationNoContent, error)
ValidateCreateNotification validates the payload for the p o s t notifications request
func (*Client) ValidateUpdateNotification ¶
func (a *Client) ValidateUpdateNotification(params *ValidateUpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateUpdateNotificationNoContent, error)
ValidateUpdateNotification validates the payload the p u t notifications id request
type ClientService ¶
type ClientService interface { CreateNotification(params *CreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNotificationCreated, error) DeleteNotification(params *DeleteNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNotificationNoContent, error) GetNotification(params *GetNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationOK, error) GetNotifications(params *GetNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetNotificationsOK, error) UpdateNotification(params *UpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNotificationCreated, *UpdateNotificationNoContent, error) ValidateCreateNotification(params *ValidateCreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateCreateNotificationNoContent, error) ValidateUpdateNotification(params *ValidateUpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateUpdateNotificationNoContent, 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 notifications API client.
type CreateNotificationBadRequest ¶
type CreateNotificationBadRequest struct {
Payload *dynatrace.ErrorEnvelope
}
CreateNotificationBadRequest handles this case with default header values.
Failed. The input is invalid.
func NewCreateNotificationBadRequest ¶
func NewCreateNotificationBadRequest() *CreateNotificationBadRequest
NewCreateNotificationBadRequest creates a CreateNotificationBadRequest with default headers values
func (*CreateNotificationBadRequest) Error ¶
func (o *CreateNotificationBadRequest) Error() string
func (*CreateNotificationBadRequest) GetPayload ¶
func (o *CreateNotificationBadRequest) GetPayload() *dynatrace.ErrorEnvelope
type CreateNotificationCreated ¶
type CreateNotificationCreated struct { }
CreateNotificationCreated handles this case with default header values.
Success. The new notification configuration has been created. The response contains the ID of the new notification configuration.
func NewCreateNotificationCreated ¶
func NewCreateNotificationCreated() *CreateNotificationCreated
NewCreateNotificationCreated creates a CreateNotificationCreated with default headers values
func (*CreateNotificationCreated) Error ¶
func (o *CreateNotificationCreated) Error() string
type CreateNotificationParams ¶
type CreateNotificationParams struct { /*Body The JSON body of the request. Contains parameters of the new notification configuration. */ Body dynatrace.NotificationConfig Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateNotificationParams contains all the parameters to send to the API endpoint for the create notification operation typically these are written to a http.Request
func NewCreateNotificationParams ¶
func NewCreateNotificationParams() *CreateNotificationParams
NewCreateNotificationParams creates a new CreateNotificationParams object with the default values initialized.
func NewCreateNotificationParamsWithContext ¶
func NewCreateNotificationParamsWithContext(ctx context.Context) *CreateNotificationParams
NewCreateNotificationParamsWithContext creates a new CreateNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewCreateNotificationParamsWithHTTPClient ¶
func NewCreateNotificationParamsWithHTTPClient(client *http.Client) *CreateNotificationParams
NewCreateNotificationParamsWithHTTPClient creates a new CreateNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateNotificationParamsWithTimeout ¶
func NewCreateNotificationParamsWithTimeout(timeout time.Duration) *CreateNotificationParams
NewCreateNotificationParamsWithTimeout creates a new CreateNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateNotificationParams) SetBody ¶
func (o *CreateNotificationParams) SetBody(body dynatrace.NotificationConfig)
SetBody adds the body to the create notification params
func (*CreateNotificationParams) SetContext ¶
func (o *CreateNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the create notification params
func (*CreateNotificationParams) SetHTTPClient ¶
func (o *CreateNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create notification params
func (*CreateNotificationParams) SetTimeout ¶
func (o *CreateNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create notification params
func (*CreateNotificationParams) WithBody ¶
func (o *CreateNotificationParams) WithBody(body dynatrace.NotificationConfig) *CreateNotificationParams
WithBody adds the body to the create notification params
func (*CreateNotificationParams) WithContext ¶
func (o *CreateNotificationParams) WithContext(ctx context.Context) *CreateNotificationParams
WithContext adds the context to the create notification params
func (*CreateNotificationParams) WithHTTPClient ¶
func (o *CreateNotificationParams) WithHTTPClient(client *http.Client) *CreateNotificationParams
WithHTTPClient adds the HTTPClient to the create notification params
func (*CreateNotificationParams) WithTimeout ¶
func (o *CreateNotificationParams) WithTimeout(timeout time.Duration) *CreateNotificationParams
WithTimeout adds the timeout to the create notification params
func (*CreateNotificationParams) WriteToRequest ¶
func (o *CreateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateNotificationReader ¶
type CreateNotificationReader struct {
// contains filtered or unexported fields
}
CreateNotificationReader is a Reader for the CreateNotification structure.
func (*CreateNotificationReader) ReadResponse ¶
func (o *CreateNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteNotificationNoContent ¶
type DeleteNotificationNoContent struct { }
DeleteNotificationNoContent handles this case with default header values.
Success. The notification configuration has been deleted. The response doesn't have a body.
func NewDeleteNotificationNoContent ¶
func NewDeleteNotificationNoContent() *DeleteNotificationNoContent
NewDeleteNotificationNoContent creates a DeleteNotificationNoContent with default headers values
func (*DeleteNotificationNoContent) Error ¶
func (o *DeleteNotificationNoContent) Error() string
type DeleteNotificationParams ¶
type DeleteNotificationParams struct { /*ID The ID of the notification configuration to be deleted. */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteNotificationParams contains all the parameters to send to the API endpoint for the delete notification operation typically these are written to a http.Request
func NewDeleteNotificationParams ¶
func NewDeleteNotificationParams() *DeleteNotificationParams
NewDeleteNotificationParams creates a new DeleteNotificationParams object with the default values initialized.
func NewDeleteNotificationParamsWithContext ¶
func NewDeleteNotificationParamsWithContext(ctx context.Context) *DeleteNotificationParams
NewDeleteNotificationParamsWithContext creates a new DeleteNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteNotificationParamsWithHTTPClient ¶
func NewDeleteNotificationParamsWithHTTPClient(client *http.Client) *DeleteNotificationParams
NewDeleteNotificationParamsWithHTTPClient creates a new DeleteNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteNotificationParamsWithTimeout ¶
func NewDeleteNotificationParamsWithTimeout(timeout time.Duration) *DeleteNotificationParams
NewDeleteNotificationParamsWithTimeout creates a new DeleteNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteNotificationParams) SetContext ¶
func (o *DeleteNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the delete notification params
func (*DeleteNotificationParams) SetHTTPClient ¶
func (o *DeleteNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete notification params
func (*DeleteNotificationParams) SetID ¶
func (o *DeleteNotificationParams) SetID(id strfmt.UUID)
SetID adds the id to the delete notification params
func (*DeleteNotificationParams) SetTimeout ¶
func (o *DeleteNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete notification params
func (*DeleteNotificationParams) WithContext ¶
func (o *DeleteNotificationParams) WithContext(ctx context.Context) *DeleteNotificationParams
WithContext adds the context to the delete notification params
func (*DeleteNotificationParams) WithHTTPClient ¶
func (o *DeleteNotificationParams) WithHTTPClient(client *http.Client) *DeleteNotificationParams
WithHTTPClient adds the HTTPClient to the delete notification params
func (*DeleteNotificationParams) WithID ¶
func (o *DeleteNotificationParams) WithID(id strfmt.UUID) *DeleteNotificationParams
WithID adds the id to the delete notification params
func (*DeleteNotificationParams) WithTimeout ¶
func (o *DeleteNotificationParams) WithTimeout(timeout time.Duration) *DeleteNotificationParams
WithTimeout adds the timeout to the delete notification params
func (*DeleteNotificationParams) WriteToRequest ¶
func (o *DeleteNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteNotificationReader ¶
type DeleteNotificationReader struct {
// contains filtered or unexported fields
}
DeleteNotificationReader is a Reader for the DeleteNotification structure.
func (*DeleteNotificationReader) ReadResponse ¶
func (o *DeleteNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNotificationOK ¶
type GetNotificationOK struct {
Payload dynatrace.NotificationConfig
}
GetNotificationOK handles this case with default header values.
successful operation
func NewGetNotificationOK ¶
func NewGetNotificationOK() *GetNotificationOK
NewGetNotificationOK creates a GetNotificationOK with default headers values
func (*GetNotificationOK) Error ¶
func (o *GetNotificationOK) Error() string
func (*GetNotificationOK) GetPayload ¶
func (o *GetNotificationOK) GetPayload() dynatrace.NotificationConfig
type GetNotificationParams ¶
type GetNotificationParams struct { /*ID The ID of the required notification configuration. */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNotificationParams contains all the parameters to send to the API endpoint for the get notification operation typically these are written to a http.Request
func NewGetNotificationParams ¶
func NewGetNotificationParams() *GetNotificationParams
NewGetNotificationParams creates a new GetNotificationParams object with the default values initialized.
func NewGetNotificationParamsWithContext ¶
func NewGetNotificationParamsWithContext(ctx context.Context) *GetNotificationParams
NewGetNotificationParamsWithContext creates a new GetNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewGetNotificationParamsWithHTTPClient ¶
func NewGetNotificationParamsWithHTTPClient(client *http.Client) *GetNotificationParams
NewGetNotificationParamsWithHTTPClient creates a new GetNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNotificationParamsWithTimeout ¶
func NewGetNotificationParamsWithTimeout(timeout time.Duration) *GetNotificationParams
NewGetNotificationParamsWithTimeout creates a new GetNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNotificationParams) SetContext ¶
func (o *GetNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the get notification params
func (*GetNotificationParams) SetHTTPClient ¶
func (o *GetNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get notification params
func (*GetNotificationParams) SetID ¶
func (o *GetNotificationParams) SetID(id strfmt.UUID)
SetID adds the id to the get notification params
func (*GetNotificationParams) SetTimeout ¶
func (o *GetNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get notification params
func (*GetNotificationParams) WithContext ¶
func (o *GetNotificationParams) WithContext(ctx context.Context) *GetNotificationParams
WithContext adds the context to the get notification params
func (*GetNotificationParams) WithHTTPClient ¶
func (o *GetNotificationParams) WithHTTPClient(client *http.Client) *GetNotificationParams
WithHTTPClient adds the HTTPClient to the get notification params
func (*GetNotificationParams) WithID ¶
func (o *GetNotificationParams) WithID(id strfmt.UUID) *GetNotificationParams
WithID adds the id to the get notification params
func (*GetNotificationParams) WithTimeout ¶
func (o *GetNotificationParams) WithTimeout(timeout time.Duration) *GetNotificationParams
WithTimeout adds the timeout to the get notification params
func (*GetNotificationParams) WriteToRequest ¶
func (o *GetNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNotificationReader ¶
type GetNotificationReader struct {
// contains filtered or unexported fields
}
GetNotificationReader is a Reader for the GetNotification structure.
func (*GetNotificationReader) ReadResponse ¶
func (o *GetNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNotificationsOK ¶
type GetNotificationsOK struct {
Payload *dynatrace.NotificationConfigStubListDto
}
GetNotificationsOK handles this case with default header values.
successful operation
func NewGetNotificationsOK ¶
func NewGetNotificationsOK() *GetNotificationsOK
NewGetNotificationsOK creates a GetNotificationsOK with default headers values
func (*GetNotificationsOK) Error ¶
func (o *GetNotificationsOK) Error() string
func (*GetNotificationsOK) GetPayload ¶
func (o *GetNotificationsOK) GetPayload() *dynatrace.NotificationConfigStubListDto
type GetNotificationsParams ¶
type GetNotificationsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNotificationsParams contains all the parameters to send to the API endpoint for the get notifications operation typically these are written to a http.Request
func NewGetNotificationsParams ¶
func NewGetNotificationsParams() *GetNotificationsParams
NewGetNotificationsParams creates a new GetNotificationsParams object with the default values initialized.
func NewGetNotificationsParamsWithContext ¶
func NewGetNotificationsParamsWithContext(ctx context.Context) *GetNotificationsParams
NewGetNotificationsParamsWithContext creates a new GetNotificationsParams object with the default values initialized, and the ability to set a context for a request
func NewGetNotificationsParamsWithHTTPClient ¶
func NewGetNotificationsParamsWithHTTPClient(client *http.Client) *GetNotificationsParams
NewGetNotificationsParamsWithHTTPClient creates a new GetNotificationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNotificationsParamsWithTimeout ¶
func NewGetNotificationsParamsWithTimeout(timeout time.Duration) *GetNotificationsParams
NewGetNotificationsParamsWithTimeout creates a new GetNotificationsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNotificationsParams) SetContext ¶
func (o *GetNotificationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get notifications params
func (*GetNotificationsParams) SetHTTPClient ¶
func (o *GetNotificationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get notifications params
func (*GetNotificationsParams) SetTimeout ¶
func (o *GetNotificationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get notifications params
func (*GetNotificationsParams) WithContext ¶
func (o *GetNotificationsParams) WithContext(ctx context.Context) *GetNotificationsParams
WithContext adds the context to the get notifications params
func (*GetNotificationsParams) WithHTTPClient ¶
func (o *GetNotificationsParams) WithHTTPClient(client *http.Client) *GetNotificationsParams
WithHTTPClient adds the HTTPClient to the get notifications params
func (*GetNotificationsParams) WithTimeout ¶
func (o *GetNotificationsParams) WithTimeout(timeout time.Duration) *GetNotificationsParams
WithTimeout adds the timeout to the get notifications params
func (*GetNotificationsParams) WriteToRequest ¶
func (o *GetNotificationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNotificationsReader ¶
type GetNotificationsReader struct {
// contains filtered or unexported fields
}
GetNotificationsReader is a Reader for the GetNotifications structure.
func (*GetNotificationsReader) ReadResponse ¶
func (o *GetNotificationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateNotificationBadRequest ¶
type UpdateNotificationBadRequest struct {
Payload *dynatrace.ErrorEnvelope
}
UpdateNotificationBadRequest handles this case with default header values.
Failed. The input is invalid.
func NewUpdateNotificationBadRequest ¶
func NewUpdateNotificationBadRequest() *UpdateNotificationBadRequest
NewUpdateNotificationBadRequest creates a UpdateNotificationBadRequest with default headers values
func (*UpdateNotificationBadRequest) Error ¶
func (o *UpdateNotificationBadRequest) Error() string
func (*UpdateNotificationBadRequest) GetPayload ¶
func (o *UpdateNotificationBadRequest) GetPayload() *dynatrace.ErrorEnvelope
type UpdateNotificationCreated ¶
type UpdateNotificationCreated struct {
Payload *dynatrace.NotificationConfigStub
}
UpdateNotificationCreated handles this case with default header values.
Success. The new notification configuration has been created. The response contains the ID of the new notification configuration.
func NewUpdateNotificationCreated ¶
func NewUpdateNotificationCreated() *UpdateNotificationCreated
NewUpdateNotificationCreated creates a UpdateNotificationCreated with default headers values
func (*UpdateNotificationCreated) Error ¶
func (o *UpdateNotificationCreated) Error() string
func (*UpdateNotificationCreated) GetPayload ¶
func (o *UpdateNotificationCreated) GetPayload() *dynatrace.NotificationConfigStub
type UpdateNotificationNoContent ¶
type UpdateNotificationNoContent struct { }
UpdateNotificationNoContent handles this case with default header values.
Success. The notification configuration has been updated. The response doesn't have a body.
func NewUpdateNotificationNoContent ¶
func NewUpdateNotificationNoContent() *UpdateNotificationNoContent
NewUpdateNotificationNoContent creates a UpdateNotificationNoContent with default headers values
func (*UpdateNotificationNoContent) Error ¶
func (o *UpdateNotificationNoContent) Error() string
type UpdateNotificationParams ¶
type UpdateNotificationParams struct { /*Body The JSON body of the request. Contains updated parameters of the notification configuration. */ Body dynatrace.NotificationConfig /*ID The ID of the notification configuration to be updated. If you set the ID in the body as well, it must match this ID. */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateNotificationParams contains all the parameters to send to the API endpoint for the update notification operation typically these are written to a http.Request
func NewUpdateNotificationParams ¶
func NewUpdateNotificationParams() *UpdateNotificationParams
NewUpdateNotificationParams creates a new UpdateNotificationParams object with the default values initialized.
func NewUpdateNotificationParamsWithContext ¶
func NewUpdateNotificationParamsWithContext(ctx context.Context) *UpdateNotificationParams
NewUpdateNotificationParamsWithContext creates a new UpdateNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateNotificationParamsWithHTTPClient ¶
func NewUpdateNotificationParamsWithHTTPClient(client *http.Client) *UpdateNotificationParams
NewUpdateNotificationParamsWithHTTPClient creates a new UpdateNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateNotificationParamsWithTimeout ¶
func NewUpdateNotificationParamsWithTimeout(timeout time.Duration) *UpdateNotificationParams
NewUpdateNotificationParamsWithTimeout creates a new UpdateNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateNotificationParams) SetBody ¶
func (o *UpdateNotificationParams) SetBody(body dynatrace.NotificationConfig)
SetBody adds the body to the update notification params
func (*UpdateNotificationParams) SetContext ¶
func (o *UpdateNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the update notification params
func (*UpdateNotificationParams) SetHTTPClient ¶
func (o *UpdateNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update notification params
func (*UpdateNotificationParams) SetID ¶
func (o *UpdateNotificationParams) SetID(id strfmt.UUID)
SetID adds the id to the update notification params
func (*UpdateNotificationParams) SetTimeout ¶
func (o *UpdateNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update notification params
func (*UpdateNotificationParams) WithBody ¶
func (o *UpdateNotificationParams) WithBody(body dynatrace.NotificationConfig) *UpdateNotificationParams
WithBody adds the body to the update notification params
func (*UpdateNotificationParams) WithContext ¶
func (o *UpdateNotificationParams) WithContext(ctx context.Context) *UpdateNotificationParams
WithContext adds the context to the update notification params
func (*UpdateNotificationParams) WithHTTPClient ¶
func (o *UpdateNotificationParams) WithHTTPClient(client *http.Client) *UpdateNotificationParams
WithHTTPClient adds the HTTPClient to the update notification params
func (*UpdateNotificationParams) WithID ¶
func (o *UpdateNotificationParams) WithID(id strfmt.UUID) *UpdateNotificationParams
WithID adds the id to the update notification params
func (*UpdateNotificationParams) WithTimeout ¶
func (o *UpdateNotificationParams) WithTimeout(timeout time.Duration) *UpdateNotificationParams
WithTimeout adds the timeout to the update notification params
func (*UpdateNotificationParams) WriteToRequest ¶
func (o *UpdateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateNotificationReader ¶
type UpdateNotificationReader struct {
// contains filtered or unexported fields
}
UpdateNotificationReader is a Reader for the UpdateNotification structure.
func (*UpdateNotificationReader) ReadResponse ¶
func (o *UpdateNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ValidateCreateNotificationBadRequest ¶
type ValidateCreateNotificationBadRequest struct {
Payload *dynatrace.ErrorEnvelope
}
ValidateCreateNotificationBadRequest handles this case with default header values.
Failed. The input is invalid.
func NewValidateCreateNotificationBadRequest ¶
func NewValidateCreateNotificationBadRequest() *ValidateCreateNotificationBadRequest
NewValidateCreateNotificationBadRequest creates a ValidateCreateNotificationBadRequest with default headers values
func (*ValidateCreateNotificationBadRequest) Error ¶
func (o *ValidateCreateNotificationBadRequest) Error() string
func (*ValidateCreateNotificationBadRequest) GetPayload ¶
func (o *ValidateCreateNotificationBadRequest) GetPayload() *dynatrace.ErrorEnvelope
type ValidateCreateNotificationNoContent ¶
type ValidateCreateNotificationNoContent struct { }
ValidateCreateNotificationNoContent handles this case with default header values.
Validated. The submitted configuration is valid. The response doesn't have a body
func NewValidateCreateNotificationNoContent ¶
func NewValidateCreateNotificationNoContent() *ValidateCreateNotificationNoContent
NewValidateCreateNotificationNoContent creates a ValidateCreateNotificationNoContent with default headers values
func (*ValidateCreateNotificationNoContent) Error ¶
func (o *ValidateCreateNotificationNoContent) Error() string
type ValidateCreateNotificationParams ¶
type ValidateCreateNotificationParams struct { /*Body The JSON body of the request. Contains the notification configuration to be validated. */ Body dynatrace.NotificationConfig Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ValidateCreateNotificationParams contains all the parameters to send to the API endpoint for the validate create notification operation typically these are written to a http.Request
func NewValidateCreateNotificationParams ¶
func NewValidateCreateNotificationParams() *ValidateCreateNotificationParams
NewValidateCreateNotificationParams creates a new ValidateCreateNotificationParams object with the default values initialized.
func NewValidateCreateNotificationParamsWithContext ¶
func NewValidateCreateNotificationParamsWithContext(ctx context.Context) *ValidateCreateNotificationParams
NewValidateCreateNotificationParamsWithContext creates a new ValidateCreateNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewValidateCreateNotificationParamsWithHTTPClient ¶
func NewValidateCreateNotificationParamsWithHTTPClient(client *http.Client) *ValidateCreateNotificationParams
NewValidateCreateNotificationParamsWithHTTPClient creates a new ValidateCreateNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewValidateCreateNotificationParamsWithTimeout ¶
func NewValidateCreateNotificationParamsWithTimeout(timeout time.Duration) *ValidateCreateNotificationParams
NewValidateCreateNotificationParamsWithTimeout creates a new ValidateCreateNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*ValidateCreateNotificationParams) SetBody ¶
func (o *ValidateCreateNotificationParams) SetBody(body dynatrace.NotificationConfig)
SetBody adds the body to the validate create notification params
func (*ValidateCreateNotificationParams) SetContext ¶
func (o *ValidateCreateNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the validate create notification params
func (*ValidateCreateNotificationParams) SetHTTPClient ¶
func (o *ValidateCreateNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the validate create notification params
func (*ValidateCreateNotificationParams) SetTimeout ¶
func (o *ValidateCreateNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the validate create notification params
func (*ValidateCreateNotificationParams) WithBody ¶
func (o *ValidateCreateNotificationParams) WithBody(body dynatrace.NotificationConfig) *ValidateCreateNotificationParams
WithBody adds the body to the validate create notification params
func (*ValidateCreateNotificationParams) WithContext ¶
func (o *ValidateCreateNotificationParams) WithContext(ctx context.Context) *ValidateCreateNotificationParams
WithContext adds the context to the validate create notification params
func (*ValidateCreateNotificationParams) WithHTTPClient ¶
func (o *ValidateCreateNotificationParams) WithHTTPClient(client *http.Client) *ValidateCreateNotificationParams
WithHTTPClient adds the HTTPClient to the validate create notification params
func (*ValidateCreateNotificationParams) WithTimeout ¶
func (o *ValidateCreateNotificationParams) WithTimeout(timeout time.Duration) *ValidateCreateNotificationParams
WithTimeout adds the timeout to the validate create notification params
func (*ValidateCreateNotificationParams) WriteToRequest ¶
func (o *ValidateCreateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ValidateCreateNotificationReader ¶
type ValidateCreateNotificationReader struct {
// contains filtered or unexported fields
}
ValidateCreateNotificationReader is a Reader for the ValidateCreateNotification structure.
func (*ValidateCreateNotificationReader) ReadResponse ¶
func (o *ValidateCreateNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ValidateUpdateNotificationBadRequest ¶
type ValidateUpdateNotificationBadRequest struct {
Payload *dynatrace.ErrorEnvelope
}
ValidateUpdateNotificationBadRequest handles this case with default header values.
Failed. The input is invalid.
func NewValidateUpdateNotificationBadRequest ¶
func NewValidateUpdateNotificationBadRequest() *ValidateUpdateNotificationBadRequest
NewValidateUpdateNotificationBadRequest creates a ValidateUpdateNotificationBadRequest with default headers values
func (*ValidateUpdateNotificationBadRequest) Error ¶
func (o *ValidateUpdateNotificationBadRequest) Error() string
func (*ValidateUpdateNotificationBadRequest) GetPayload ¶
func (o *ValidateUpdateNotificationBadRequest) GetPayload() *dynatrace.ErrorEnvelope
type ValidateUpdateNotificationNoContent ¶
type ValidateUpdateNotificationNoContent struct { }
ValidateUpdateNotificationNoContent handles this case with default header values.
Validated. The submitted configuration is valid. The response doesn't have a body
func NewValidateUpdateNotificationNoContent ¶
func NewValidateUpdateNotificationNoContent() *ValidateUpdateNotificationNoContent
NewValidateUpdateNotificationNoContent creates a ValidateUpdateNotificationNoContent with default headers values
func (*ValidateUpdateNotificationNoContent) Error ¶
func (o *ValidateUpdateNotificationNoContent) Error() string
type ValidateUpdateNotificationParams ¶
type ValidateUpdateNotificationParams struct { /*Body The JSON body of the request. Contains the notification configuration to be validated. */ Body dynatrace.NotificationConfig /*ID The ID of the notification configuration to be validated. */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ValidateUpdateNotificationParams contains all the parameters to send to the API endpoint for the validate update notification operation typically these are written to a http.Request
func NewValidateUpdateNotificationParams ¶
func NewValidateUpdateNotificationParams() *ValidateUpdateNotificationParams
NewValidateUpdateNotificationParams creates a new ValidateUpdateNotificationParams object with the default values initialized.
func NewValidateUpdateNotificationParamsWithContext ¶
func NewValidateUpdateNotificationParamsWithContext(ctx context.Context) *ValidateUpdateNotificationParams
NewValidateUpdateNotificationParamsWithContext creates a new ValidateUpdateNotificationParams object with the default values initialized, and the ability to set a context for a request
func NewValidateUpdateNotificationParamsWithHTTPClient ¶
func NewValidateUpdateNotificationParamsWithHTTPClient(client *http.Client) *ValidateUpdateNotificationParams
NewValidateUpdateNotificationParamsWithHTTPClient creates a new ValidateUpdateNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewValidateUpdateNotificationParamsWithTimeout ¶
func NewValidateUpdateNotificationParamsWithTimeout(timeout time.Duration) *ValidateUpdateNotificationParams
NewValidateUpdateNotificationParamsWithTimeout creates a new ValidateUpdateNotificationParams object with the default values initialized, and the ability to set a timeout on a request
func (*ValidateUpdateNotificationParams) SetBody ¶
func (o *ValidateUpdateNotificationParams) SetBody(body dynatrace.NotificationConfig)
SetBody adds the body to the validate update notification params
func (*ValidateUpdateNotificationParams) SetContext ¶
func (o *ValidateUpdateNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the validate update notification params
func (*ValidateUpdateNotificationParams) SetHTTPClient ¶
func (o *ValidateUpdateNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the validate update notification params
func (*ValidateUpdateNotificationParams) SetID ¶
func (o *ValidateUpdateNotificationParams) SetID(id strfmt.UUID)
SetID adds the id to the validate update notification params
func (*ValidateUpdateNotificationParams) SetTimeout ¶
func (o *ValidateUpdateNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the validate update notification params
func (*ValidateUpdateNotificationParams) WithBody ¶
func (o *ValidateUpdateNotificationParams) WithBody(body dynatrace.NotificationConfig) *ValidateUpdateNotificationParams
WithBody adds the body to the validate update notification params
func (*ValidateUpdateNotificationParams) WithContext ¶
func (o *ValidateUpdateNotificationParams) WithContext(ctx context.Context) *ValidateUpdateNotificationParams
WithContext adds the context to the validate update notification params
func (*ValidateUpdateNotificationParams) WithHTTPClient ¶
func (o *ValidateUpdateNotificationParams) WithHTTPClient(client *http.Client) *ValidateUpdateNotificationParams
WithHTTPClient adds the HTTPClient to the validate update notification params
func (*ValidateUpdateNotificationParams) WithID ¶
func (o *ValidateUpdateNotificationParams) WithID(id strfmt.UUID) *ValidateUpdateNotificationParams
WithID adds the id to the validate update notification params
func (*ValidateUpdateNotificationParams) WithTimeout ¶
func (o *ValidateUpdateNotificationParams) WithTimeout(timeout time.Duration) *ValidateUpdateNotificationParams
WithTimeout adds the timeout to the validate update notification params
func (*ValidateUpdateNotificationParams) WriteToRequest ¶
func (o *ValidateUpdateNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ValidateUpdateNotificationReader ¶
type ValidateUpdateNotificationReader struct {
// contains filtered or unexported fields
}
ValidateUpdateNotificationReader is a Reader for the ValidateUpdateNotification structure.
func (*ValidateUpdateNotificationReader) ReadResponse ¶
func (o *ValidateUpdateNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_notification_parameters.go
- create_notification_responses.go
- delete_notification_parameters.go
- delete_notification_responses.go
- get_notification_parameters.go
- get_notification_responses.go
- get_notifications_parameters.go
- get_notifications_responses.go
- notifications_client.go
- update_notification_parameters.go
- update_notification_responses.go
- validate_create_notification_parameters.go
- validate_create_notification_responses.go
- validate_update_notification_parameters.go
- validate_update_notification_responses.go