notifications

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

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

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

ValidateCreateNotification validates the payload for the p o s t notifications request

func (*Client) ValidateUpdateNotification

ValidateUpdateNotification validates the payload the p u t notifications id request

type ClientService

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 (*CreateNotificationBadRequest) GetPayload

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

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

WithBody adds the body to the create notification params

func (*CreateNotificationParams) WithContext

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

WithTimeout adds the timeout to the create notification params

func (*CreateNotificationParams) WriteToRequest

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

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

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

WithID adds the id to the delete notification params

func (*DeleteNotificationParams) WithTimeout

WithTimeout adds the timeout to the delete notification params

func (*DeleteNotificationParams) WriteToRequest

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

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

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

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

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

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

WithTimeout adds the timeout to the get notifications params

func (*GetNotificationsParams) WriteToRequest

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 (*UpdateNotificationBadRequest) GetPayload

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

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

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

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

WithBody adds the body to the update notification params

func (*UpdateNotificationParams) WithContext

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

WithID adds the id to the update notification params

func (*UpdateNotificationParams) WithTimeout

WithTimeout adds the timeout to the update notification params

func (*UpdateNotificationParams) WriteToRequest

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 (*ValidateCreateNotificationBadRequest) GetPayload

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

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

SetBody adds the body to the validate create notification params

func (*ValidateCreateNotificationParams) SetContext

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

WithBody adds the body to the validate create notification params

func (*ValidateCreateNotificationParams) WithContext

WithContext adds the context to the validate create notification params

func (*ValidateCreateNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the validate create notification params

func (*ValidateCreateNotificationParams) WithTimeout

WithTimeout adds the timeout to the validate create notification params

func (*ValidateCreateNotificationParams) WriteToRequest

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 (*ValidateUpdateNotificationBadRequest) GetPayload

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

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

SetBody adds the body to the validate update notification params

func (*ValidateUpdateNotificationParams) SetContext

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

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

WithBody adds the body to the validate update notification params

func (*ValidateUpdateNotificationParams) WithContext

WithContext adds the context to the validate update notification params

func (*ValidateUpdateNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the validate update notification params

func (*ValidateUpdateNotificationParams) WithID

WithID adds the id to the validate update notification params

func (*ValidateUpdateNotificationParams) WithTimeout

WithTimeout adds the timeout to the validate update notification params

func (*ValidateUpdateNotificationParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL