func (a *Client) UpdateNotification(params *UpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNotificationOK, error) {
	if params == nil {
		params = NewUpdateNotificationParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "updateNotification",
		Method:             "PUT",
		PathPattern:        "/notifications/{notification_id}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &UpdateNotificationReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*UpdateNotificationOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for updateNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
/*
UpdateNotification updates an existing notification

Updates an existing notification.
package notifications
import (
	"fmt"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
	return &Client{transport: transport, formats: formats}
}
type Client struct {
	transport runtime.ClientTransport
	formats   strfmt.Registry
}
type ClientService interface {
	CreateNotification(params *CreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNotificationCreated, error)
	DeleteNotification(params *DeleteNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNotificationNoContent, error)
	ListNotifications(params *ListNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*ListNotificationsOK, error)
	UpdateNotification(params *UpdateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateNotificationOK, error)
	SetTransport(transport runtime.ClientTransport)
}
func (a *Client) CreateNotification(params *CreateNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateNotificationCreated, error) {
	if params == nil {
		params = NewCreateNotificationParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "createNotification",
		Method:             "POST",
		PathPattern:        "/notifications",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &CreateNotificationReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*CreateNotificationCreated)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for createNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) DeleteNotification(params *DeleteNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteNotificationNoContent, error) {
	if params == nil {
		params = NewDeleteNotificationParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "deleteNotification",
		Method:             "DELETE",
		PathPattern:        "/notifications/{notification_id}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &DeleteNotificationReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*DeleteNotificationNoContent)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for deleteNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) ListNotifications(params *ListNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*ListNotificationsOK, error) {
	if params == nil {
		params = NewListNotificationsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "listNotifications",
		Method:             "GET",
		PathPattern:        "/notifications",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &ListNotificationsReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*ListNotificationsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for listNotifications: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}