notification_policy

package
v0.0.0-...-4232bc2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 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 notification policy API

func (*Client) CreateNotificationPolicy

func (a *Client) CreateNotificationPolicy(params *CreateNotificationPolicyParams, opts ...ClientOption) (*CreateNotificationPolicyOK, error)

CreateNotificationPolicy create notification policy API

func (*Client) DeleteNotificationPolicy

func (a *Client) DeleteNotificationPolicy(params *DeleteNotificationPolicyParams, opts ...ClientOption) (*DeleteNotificationPolicyOK, error)

DeleteNotificationPolicy delete notification policy API

func (*Client) ListNotificationPolicies

func (a *Client) ListNotificationPolicies(params *ListNotificationPoliciesParams, opts ...ClientOption) (*ListNotificationPoliciesOK, error)

ListNotificationPolicies list notification policies API

func (*Client) ReadNotificationPolicy

func (a *Client) ReadNotificationPolicy(params *ReadNotificationPolicyParams, opts ...ClientOption) (*ReadNotificationPolicyOK, error)

ReadNotificationPolicy read notification policy API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateNotificationPolicy

func (a *Client) UpdateNotificationPolicy(params *UpdateNotificationPolicyParams, opts ...ClientOption) (*UpdateNotificationPolicyOK, error)

UpdateNotificationPolicy update notification policy API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateNotificationPolicy(params *CreateNotificationPolicyParams, opts ...ClientOption) (*CreateNotificationPolicyOK, error)

	DeleteNotificationPolicy(params *DeleteNotificationPolicyParams, opts ...ClientOption) (*DeleteNotificationPolicyOK, error)

	ListNotificationPolicies(params *ListNotificationPoliciesParams, opts ...ClientOption) (*ListNotificationPoliciesOK, error)

	ReadNotificationPolicy(params *ReadNotificationPolicyParams, opts ...ClientOption) (*ReadNotificationPolicyOK, error)

	UpdateNotificationPolicy(params *UpdateNotificationPolicyParams, opts ...ClientOption) (*UpdateNotificationPolicyOK, 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 notification policy API client.

type CreateNotificationPolicyBadRequest

type CreateNotificationPolicyBadRequest struct {
	Payload *models.APIError
}

CreateNotificationPolicyBadRequest describes a response with status code 400, with default header values.

Cannot create the NotificationPolicy because the request is invalid.

func NewCreateNotificationPolicyBadRequest

func NewCreateNotificationPolicyBadRequest() *CreateNotificationPolicyBadRequest

NewCreateNotificationPolicyBadRequest creates a CreateNotificationPolicyBadRequest with default headers values

func (*CreateNotificationPolicyBadRequest) Code

Code gets the status code for the create notification policy bad request response

func (*CreateNotificationPolicyBadRequest) Error

func (*CreateNotificationPolicyBadRequest) GetPayload

func (*CreateNotificationPolicyBadRequest) IsClientError

func (o *CreateNotificationPolicyBadRequest) IsClientError() bool

IsClientError returns true when this create notification policy bad request response has a 4xx status code

func (*CreateNotificationPolicyBadRequest) IsCode

IsCode returns true when this create notification policy bad request response a status code equal to that given

func (*CreateNotificationPolicyBadRequest) IsRedirect

func (o *CreateNotificationPolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this create notification policy bad request response has a 3xx status code

func (*CreateNotificationPolicyBadRequest) IsServerError

func (o *CreateNotificationPolicyBadRequest) IsServerError() bool

IsServerError returns true when this create notification policy bad request response has a 5xx status code

func (*CreateNotificationPolicyBadRequest) IsSuccess

IsSuccess returns true when this create notification policy bad request response has a 2xx status code

func (*CreateNotificationPolicyBadRequest) String

type CreateNotificationPolicyConflict

type CreateNotificationPolicyConflict struct {
	Payload *models.APIError
}

CreateNotificationPolicyConflict describes a response with status code 409, with default header values.

Cannot create the NotificationPolicy because there is a conflict with an existing NotificationPolicy.

func NewCreateNotificationPolicyConflict

func NewCreateNotificationPolicyConflict() *CreateNotificationPolicyConflict

NewCreateNotificationPolicyConflict creates a CreateNotificationPolicyConflict with default headers values

func (*CreateNotificationPolicyConflict) Code

Code gets the status code for the create notification policy conflict response

func (*CreateNotificationPolicyConflict) Error

func (*CreateNotificationPolicyConflict) GetPayload

func (*CreateNotificationPolicyConflict) IsClientError

func (o *CreateNotificationPolicyConflict) IsClientError() bool

IsClientError returns true when this create notification policy conflict response has a 4xx status code

func (*CreateNotificationPolicyConflict) IsCode

func (o *CreateNotificationPolicyConflict) IsCode(code int) bool

IsCode returns true when this create notification policy conflict response a status code equal to that given

func (*CreateNotificationPolicyConflict) IsRedirect

func (o *CreateNotificationPolicyConflict) IsRedirect() bool

IsRedirect returns true when this create notification policy conflict response has a 3xx status code

func (*CreateNotificationPolicyConflict) IsServerError

func (o *CreateNotificationPolicyConflict) IsServerError() bool

IsServerError returns true when this create notification policy conflict response has a 5xx status code

func (*CreateNotificationPolicyConflict) IsSuccess

func (o *CreateNotificationPolicyConflict) IsSuccess() bool

IsSuccess returns true when this create notification policy conflict response has a 2xx status code

func (*CreateNotificationPolicyConflict) String

type CreateNotificationPolicyDefault

type CreateNotificationPolicyDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateNotificationPolicyDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateNotificationPolicyDefault

func NewCreateNotificationPolicyDefault(code int) *CreateNotificationPolicyDefault

NewCreateNotificationPolicyDefault creates a CreateNotificationPolicyDefault with default headers values

func (*CreateNotificationPolicyDefault) Code

Code gets the status code for the create notification policy default response

func (*CreateNotificationPolicyDefault) Error

func (*CreateNotificationPolicyDefault) GetPayload

func (*CreateNotificationPolicyDefault) IsClientError

func (o *CreateNotificationPolicyDefault) IsClientError() bool

IsClientError returns true when this create notification policy default response has a 4xx status code

func (*CreateNotificationPolicyDefault) IsCode

func (o *CreateNotificationPolicyDefault) IsCode(code int) bool

IsCode returns true when this create notification policy default response a status code equal to that given

func (*CreateNotificationPolicyDefault) IsRedirect

func (o *CreateNotificationPolicyDefault) IsRedirect() bool

IsRedirect returns true when this create notification policy default response has a 3xx status code

func (*CreateNotificationPolicyDefault) IsServerError

func (o *CreateNotificationPolicyDefault) IsServerError() bool

IsServerError returns true when this create notification policy default response has a 5xx status code

func (*CreateNotificationPolicyDefault) IsSuccess

func (o *CreateNotificationPolicyDefault) IsSuccess() bool

IsSuccess returns true when this create notification policy default response has a 2xx status code

func (*CreateNotificationPolicyDefault) String

type CreateNotificationPolicyInternalServerError

type CreateNotificationPolicyInternalServerError struct {
	Payload *models.APIError
}

CreateNotificationPolicyInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateNotificationPolicyInternalServerError

func NewCreateNotificationPolicyInternalServerError() *CreateNotificationPolicyInternalServerError

NewCreateNotificationPolicyInternalServerError creates a CreateNotificationPolicyInternalServerError with default headers values

func (*CreateNotificationPolicyInternalServerError) Code

Code gets the status code for the create notification policy internal server error response

func (*CreateNotificationPolicyInternalServerError) Error

func (*CreateNotificationPolicyInternalServerError) GetPayload

func (*CreateNotificationPolicyInternalServerError) IsClientError

IsClientError returns true when this create notification policy internal server error response has a 4xx status code

func (*CreateNotificationPolicyInternalServerError) IsCode

IsCode returns true when this create notification policy internal server error response a status code equal to that given

func (*CreateNotificationPolicyInternalServerError) IsRedirect

IsRedirect returns true when this create notification policy internal server error response has a 3xx status code

func (*CreateNotificationPolicyInternalServerError) IsServerError

IsServerError returns true when this create notification policy internal server error response has a 5xx status code

func (*CreateNotificationPolicyInternalServerError) IsSuccess

IsSuccess returns true when this create notification policy internal server error response has a 2xx status code

func (*CreateNotificationPolicyInternalServerError) String

type CreateNotificationPolicyOK

type CreateNotificationPolicyOK struct {
	Payload *models.Configv1CreateNotificationPolicyResponse
}

CreateNotificationPolicyOK describes a response with status code 200, with default header values.

A successful response containing the created NotificationPolicy.

func NewCreateNotificationPolicyOK

func NewCreateNotificationPolicyOK() *CreateNotificationPolicyOK

NewCreateNotificationPolicyOK creates a CreateNotificationPolicyOK with default headers values

func (*CreateNotificationPolicyOK) Code

func (o *CreateNotificationPolicyOK) Code() int

Code gets the status code for the create notification policy o k response

func (*CreateNotificationPolicyOK) Error

func (*CreateNotificationPolicyOK) GetPayload

func (*CreateNotificationPolicyOK) IsClientError

func (o *CreateNotificationPolicyOK) IsClientError() bool

IsClientError returns true when this create notification policy o k response has a 4xx status code

func (*CreateNotificationPolicyOK) IsCode

func (o *CreateNotificationPolicyOK) IsCode(code int) bool

IsCode returns true when this create notification policy o k response a status code equal to that given

func (*CreateNotificationPolicyOK) IsRedirect

func (o *CreateNotificationPolicyOK) IsRedirect() bool

IsRedirect returns true when this create notification policy o k response has a 3xx status code

func (*CreateNotificationPolicyOK) IsServerError

func (o *CreateNotificationPolicyOK) IsServerError() bool

IsServerError returns true when this create notification policy o k response has a 5xx status code

func (*CreateNotificationPolicyOK) IsSuccess

func (o *CreateNotificationPolicyOK) IsSuccess() bool

IsSuccess returns true when this create notification policy o k response has a 2xx status code

func (*CreateNotificationPolicyOK) String

func (o *CreateNotificationPolicyOK) String() string

type CreateNotificationPolicyParams

type CreateNotificationPolicyParams struct {

	// Body.
	Body *models.Configv1CreateNotificationPolicyRequest

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

CreateNotificationPolicyParams contains all the parameters to send to the API endpoint

for the create notification policy operation.

Typically these are written to a http.Request.

func NewCreateNotificationPolicyParams

func NewCreateNotificationPolicyParams() *CreateNotificationPolicyParams

NewCreateNotificationPolicyParams creates a new CreateNotificationPolicyParams 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 NewCreateNotificationPolicyParamsWithContext

func NewCreateNotificationPolicyParamsWithContext(ctx context.Context) *CreateNotificationPolicyParams

NewCreateNotificationPolicyParamsWithContext creates a new CreateNotificationPolicyParams object with the ability to set a context for a request.

func NewCreateNotificationPolicyParamsWithHTTPClient

func NewCreateNotificationPolicyParamsWithHTTPClient(client *http.Client) *CreateNotificationPolicyParams

NewCreateNotificationPolicyParamsWithHTTPClient creates a new CreateNotificationPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNotificationPolicyParamsWithTimeout

func NewCreateNotificationPolicyParamsWithTimeout(timeout time.Duration) *CreateNotificationPolicyParams

NewCreateNotificationPolicyParamsWithTimeout creates a new CreateNotificationPolicyParams object with the ability to set a timeout on a request.

func (*CreateNotificationPolicyParams) SetBody

SetBody adds the body to the create notification policy params

func (*CreateNotificationPolicyParams) SetContext

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

SetContext adds the context to the create notification policy params

func (*CreateNotificationPolicyParams) SetDefaults

func (o *CreateNotificationPolicyParams) SetDefaults()

SetDefaults hydrates default values in the create notification policy params (not the query body).

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

func (*CreateNotificationPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create notification policy params

func (*CreateNotificationPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create notification policy params

func (*CreateNotificationPolicyParams) WithBody

WithBody adds the body to the create notification policy params

func (*CreateNotificationPolicyParams) WithContext

WithContext adds the context to the create notification policy params

func (*CreateNotificationPolicyParams) WithDefaults

WithDefaults hydrates default values in the create notification policy params (not the query body).

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

func (*CreateNotificationPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create notification policy params

func (*CreateNotificationPolicyParams) WithTimeout

WithTimeout adds the timeout to the create notification policy params

func (*CreateNotificationPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNotificationPolicyReader

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

CreateNotificationPolicyReader is a Reader for the CreateNotificationPolicy structure.

func (*CreateNotificationPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNotificationPolicyBadRequest

type DeleteNotificationPolicyBadRequest struct {
	Payload *models.APIError
}

DeleteNotificationPolicyBadRequest describes a response with status code 400, with default header values.

Cannot delete the NotificationPolicy because it is in use.

func NewDeleteNotificationPolicyBadRequest

func NewDeleteNotificationPolicyBadRequest() *DeleteNotificationPolicyBadRequest

NewDeleteNotificationPolicyBadRequest creates a DeleteNotificationPolicyBadRequest with default headers values

func (*DeleteNotificationPolicyBadRequest) Code

Code gets the status code for the delete notification policy bad request response

func (*DeleteNotificationPolicyBadRequest) Error

func (*DeleteNotificationPolicyBadRequest) GetPayload

func (*DeleteNotificationPolicyBadRequest) IsClientError

func (o *DeleteNotificationPolicyBadRequest) IsClientError() bool

IsClientError returns true when this delete notification policy bad request response has a 4xx status code

func (*DeleteNotificationPolicyBadRequest) IsCode

IsCode returns true when this delete notification policy bad request response a status code equal to that given

func (*DeleteNotificationPolicyBadRequest) IsRedirect

func (o *DeleteNotificationPolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this delete notification policy bad request response has a 3xx status code

func (*DeleteNotificationPolicyBadRequest) IsServerError

func (o *DeleteNotificationPolicyBadRequest) IsServerError() bool

IsServerError returns true when this delete notification policy bad request response has a 5xx status code

func (*DeleteNotificationPolicyBadRequest) IsSuccess

IsSuccess returns true when this delete notification policy bad request response has a 2xx status code

func (*DeleteNotificationPolicyBadRequest) String

type DeleteNotificationPolicyDefault

type DeleteNotificationPolicyDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteNotificationPolicyDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteNotificationPolicyDefault

func NewDeleteNotificationPolicyDefault(code int) *DeleteNotificationPolicyDefault

NewDeleteNotificationPolicyDefault creates a DeleteNotificationPolicyDefault with default headers values

func (*DeleteNotificationPolicyDefault) Code

Code gets the status code for the delete notification policy default response

func (*DeleteNotificationPolicyDefault) Error

func (*DeleteNotificationPolicyDefault) GetPayload

func (*DeleteNotificationPolicyDefault) IsClientError

func (o *DeleteNotificationPolicyDefault) IsClientError() bool

IsClientError returns true when this delete notification policy default response has a 4xx status code

func (*DeleteNotificationPolicyDefault) IsCode

func (o *DeleteNotificationPolicyDefault) IsCode(code int) bool

IsCode returns true when this delete notification policy default response a status code equal to that given

func (*DeleteNotificationPolicyDefault) IsRedirect

func (o *DeleteNotificationPolicyDefault) IsRedirect() bool

IsRedirect returns true when this delete notification policy default response has a 3xx status code

func (*DeleteNotificationPolicyDefault) IsServerError

func (o *DeleteNotificationPolicyDefault) IsServerError() bool

IsServerError returns true when this delete notification policy default response has a 5xx status code

func (*DeleteNotificationPolicyDefault) IsSuccess

func (o *DeleteNotificationPolicyDefault) IsSuccess() bool

IsSuccess returns true when this delete notification policy default response has a 2xx status code

func (*DeleteNotificationPolicyDefault) String

type DeleteNotificationPolicyInternalServerError

type DeleteNotificationPolicyInternalServerError struct {
	Payload *models.APIError
}

DeleteNotificationPolicyInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteNotificationPolicyInternalServerError

func NewDeleteNotificationPolicyInternalServerError() *DeleteNotificationPolicyInternalServerError

NewDeleteNotificationPolicyInternalServerError creates a DeleteNotificationPolicyInternalServerError with default headers values

func (*DeleteNotificationPolicyInternalServerError) Code

Code gets the status code for the delete notification policy internal server error response

func (*DeleteNotificationPolicyInternalServerError) Error

func (*DeleteNotificationPolicyInternalServerError) GetPayload

func (*DeleteNotificationPolicyInternalServerError) IsClientError

IsClientError returns true when this delete notification policy internal server error response has a 4xx status code

func (*DeleteNotificationPolicyInternalServerError) IsCode

IsCode returns true when this delete notification policy internal server error response a status code equal to that given

func (*DeleteNotificationPolicyInternalServerError) IsRedirect

IsRedirect returns true when this delete notification policy internal server error response has a 3xx status code

func (*DeleteNotificationPolicyInternalServerError) IsServerError

IsServerError returns true when this delete notification policy internal server error response has a 5xx status code

func (*DeleteNotificationPolicyInternalServerError) IsSuccess

IsSuccess returns true when this delete notification policy internal server error response has a 2xx status code

func (*DeleteNotificationPolicyInternalServerError) String

type DeleteNotificationPolicyNotFound

type DeleteNotificationPolicyNotFound struct {
	Payload *models.APIError
}

DeleteNotificationPolicyNotFound describes a response with status code 404, with default header values.

Cannot delete the NotificationPolicy because the slug does not exist.

func NewDeleteNotificationPolicyNotFound

func NewDeleteNotificationPolicyNotFound() *DeleteNotificationPolicyNotFound

NewDeleteNotificationPolicyNotFound creates a DeleteNotificationPolicyNotFound with default headers values

func (*DeleteNotificationPolicyNotFound) Code

Code gets the status code for the delete notification policy not found response

func (*DeleteNotificationPolicyNotFound) Error

func (*DeleteNotificationPolicyNotFound) GetPayload

func (*DeleteNotificationPolicyNotFound) IsClientError

func (o *DeleteNotificationPolicyNotFound) IsClientError() bool

IsClientError returns true when this delete notification policy not found response has a 4xx status code

func (*DeleteNotificationPolicyNotFound) IsCode

func (o *DeleteNotificationPolicyNotFound) IsCode(code int) bool

IsCode returns true when this delete notification policy not found response a status code equal to that given

func (*DeleteNotificationPolicyNotFound) IsRedirect

func (o *DeleteNotificationPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this delete notification policy not found response has a 3xx status code

func (*DeleteNotificationPolicyNotFound) IsServerError

func (o *DeleteNotificationPolicyNotFound) IsServerError() bool

IsServerError returns true when this delete notification policy not found response has a 5xx status code

func (*DeleteNotificationPolicyNotFound) IsSuccess

func (o *DeleteNotificationPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this delete notification policy not found response has a 2xx status code

func (*DeleteNotificationPolicyNotFound) String

type DeleteNotificationPolicyOK

type DeleteNotificationPolicyOK struct {
	Payload models.Configv1DeleteNotificationPolicyResponse
}

DeleteNotificationPolicyOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteNotificationPolicyOK

func NewDeleteNotificationPolicyOK() *DeleteNotificationPolicyOK

NewDeleteNotificationPolicyOK creates a DeleteNotificationPolicyOK with default headers values

func (*DeleteNotificationPolicyOK) Code

func (o *DeleteNotificationPolicyOK) Code() int

Code gets the status code for the delete notification policy o k response

func (*DeleteNotificationPolicyOK) Error

func (*DeleteNotificationPolicyOK) GetPayload

func (*DeleteNotificationPolicyOK) IsClientError

func (o *DeleteNotificationPolicyOK) IsClientError() bool

IsClientError returns true when this delete notification policy o k response has a 4xx status code

func (*DeleteNotificationPolicyOK) IsCode

func (o *DeleteNotificationPolicyOK) IsCode(code int) bool

IsCode returns true when this delete notification policy o k response a status code equal to that given

func (*DeleteNotificationPolicyOK) IsRedirect

func (o *DeleteNotificationPolicyOK) IsRedirect() bool

IsRedirect returns true when this delete notification policy o k response has a 3xx status code

func (*DeleteNotificationPolicyOK) IsServerError

func (o *DeleteNotificationPolicyOK) IsServerError() bool

IsServerError returns true when this delete notification policy o k response has a 5xx status code

func (*DeleteNotificationPolicyOK) IsSuccess

func (o *DeleteNotificationPolicyOK) IsSuccess() bool

IsSuccess returns true when this delete notification policy o k response has a 2xx status code

func (*DeleteNotificationPolicyOK) String

func (o *DeleteNotificationPolicyOK) String() string

type DeleteNotificationPolicyParams

type DeleteNotificationPolicyParams struct {

	// Slug.
	Slug string

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

DeleteNotificationPolicyParams contains all the parameters to send to the API endpoint

for the delete notification policy operation.

Typically these are written to a http.Request.

func NewDeleteNotificationPolicyParams

func NewDeleteNotificationPolicyParams() *DeleteNotificationPolicyParams

NewDeleteNotificationPolicyParams creates a new DeleteNotificationPolicyParams 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 NewDeleteNotificationPolicyParamsWithContext

func NewDeleteNotificationPolicyParamsWithContext(ctx context.Context) *DeleteNotificationPolicyParams

NewDeleteNotificationPolicyParamsWithContext creates a new DeleteNotificationPolicyParams object with the ability to set a context for a request.

func NewDeleteNotificationPolicyParamsWithHTTPClient

func NewDeleteNotificationPolicyParamsWithHTTPClient(client *http.Client) *DeleteNotificationPolicyParams

NewDeleteNotificationPolicyParamsWithHTTPClient creates a new DeleteNotificationPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNotificationPolicyParamsWithTimeout

func NewDeleteNotificationPolicyParamsWithTimeout(timeout time.Duration) *DeleteNotificationPolicyParams

NewDeleteNotificationPolicyParamsWithTimeout creates a new DeleteNotificationPolicyParams object with the ability to set a timeout on a request.

func (*DeleteNotificationPolicyParams) SetContext

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

SetContext adds the context to the delete notification policy params

func (*DeleteNotificationPolicyParams) SetDefaults

func (o *DeleteNotificationPolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete notification policy params (not the query body).

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

func (*DeleteNotificationPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete notification policy params

func (*DeleteNotificationPolicyParams) SetSlug

func (o *DeleteNotificationPolicyParams) SetSlug(slug string)

SetSlug adds the slug to the delete notification policy params

func (*DeleteNotificationPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete notification policy params

func (*DeleteNotificationPolicyParams) WithContext

WithContext adds the context to the delete notification policy params

func (*DeleteNotificationPolicyParams) WithDefaults

WithDefaults hydrates default values in the delete notification policy params (not the query body).

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

func (*DeleteNotificationPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete notification policy params

func (*DeleteNotificationPolicyParams) WithSlug

WithSlug adds the slug to the delete notification policy params

func (*DeleteNotificationPolicyParams) WithTimeout

WithTimeout adds the timeout to the delete notification policy params

func (*DeleteNotificationPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNotificationPolicyReader

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

DeleteNotificationPolicyReader is a Reader for the DeleteNotificationPolicy structure.

func (*DeleteNotificationPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListNotificationPoliciesDefault

type ListNotificationPoliciesDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListNotificationPoliciesDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListNotificationPoliciesDefault

func NewListNotificationPoliciesDefault(code int) *ListNotificationPoliciesDefault

NewListNotificationPoliciesDefault creates a ListNotificationPoliciesDefault with default headers values

func (*ListNotificationPoliciesDefault) Code

Code gets the status code for the list notification policies default response

func (*ListNotificationPoliciesDefault) Error

func (*ListNotificationPoliciesDefault) GetPayload

func (*ListNotificationPoliciesDefault) IsClientError

func (o *ListNotificationPoliciesDefault) IsClientError() bool

IsClientError returns true when this list notification policies default response has a 4xx status code

func (*ListNotificationPoliciesDefault) IsCode

func (o *ListNotificationPoliciesDefault) IsCode(code int) bool

IsCode returns true when this list notification policies default response a status code equal to that given

func (*ListNotificationPoliciesDefault) IsRedirect

func (o *ListNotificationPoliciesDefault) IsRedirect() bool

IsRedirect returns true when this list notification policies default response has a 3xx status code

func (*ListNotificationPoliciesDefault) IsServerError

func (o *ListNotificationPoliciesDefault) IsServerError() bool

IsServerError returns true when this list notification policies default response has a 5xx status code

func (*ListNotificationPoliciesDefault) IsSuccess

func (o *ListNotificationPoliciesDefault) IsSuccess() bool

IsSuccess returns true when this list notification policies default response has a 2xx status code

func (*ListNotificationPoliciesDefault) String

type ListNotificationPoliciesInternalServerError

type ListNotificationPoliciesInternalServerError struct {
	Payload *models.APIError
}

ListNotificationPoliciesInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListNotificationPoliciesInternalServerError

func NewListNotificationPoliciesInternalServerError() *ListNotificationPoliciesInternalServerError

NewListNotificationPoliciesInternalServerError creates a ListNotificationPoliciesInternalServerError with default headers values

func (*ListNotificationPoliciesInternalServerError) Code

Code gets the status code for the list notification policies internal server error response

func (*ListNotificationPoliciesInternalServerError) Error

func (*ListNotificationPoliciesInternalServerError) GetPayload

func (*ListNotificationPoliciesInternalServerError) IsClientError

IsClientError returns true when this list notification policies internal server error response has a 4xx status code

func (*ListNotificationPoliciesInternalServerError) IsCode

IsCode returns true when this list notification policies internal server error response a status code equal to that given

func (*ListNotificationPoliciesInternalServerError) IsRedirect

IsRedirect returns true when this list notification policies internal server error response has a 3xx status code

func (*ListNotificationPoliciesInternalServerError) IsServerError

IsServerError returns true when this list notification policies internal server error response has a 5xx status code

func (*ListNotificationPoliciesInternalServerError) IsSuccess

IsSuccess returns true when this list notification policies internal server error response has a 2xx status code

func (*ListNotificationPoliciesInternalServerError) String

type ListNotificationPoliciesOK

type ListNotificationPoliciesOK struct {
	Payload *models.Configv1ListNotificationPoliciesResponse
}

ListNotificationPoliciesOK describes a response with status code 200, with default header values.

A successful response.

func NewListNotificationPoliciesOK

func NewListNotificationPoliciesOK() *ListNotificationPoliciesOK

NewListNotificationPoliciesOK creates a ListNotificationPoliciesOK with default headers values

func (*ListNotificationPoliciesOK) Code

func (o *ListNotificationPoliciesOK) Code() int

Code gets the status code for the list notification policies o k response

func (*ListNotificationPoliciesOK) Error

func (*ListNotificationPoliciesOK) GetPayload

func (*ListNotificationPoliciesOK) IsClientError

func (o *ListNotificationPoliciesOK) IsClientError() bool

IsClientError returns true when this list notification policies o k response has a 4xx status code

func (*ListNotificationPoliciesOK) IsCode

func (o *ListNotificationPoliciesOK) IsCode(code int) bool

IsCode returns true when this list notification policies o k response a status code equal to that given

func (*ListNotificationPoliciesOK) IsRedirect

func (o *ListNotificationPoliciesOK) IsRedirect() bool

IsRedirect returns true when this list notification policies o k response has a 3xx status code

func (*ListNotificationPoliciesOK) IsServerError

func (o *ListNotificationPoliciesOK) IsServerError() bool

IsServerError returns true when this list notification policies o k response has a 5xx status code

func (*ListNotificationPoliciesOK) IsSuccess

func (o *ListNotificationPoliciesOK) IsSuccess() bool

IsSuccess returns true when this list notification policies o k response has a 2xx status code

func (*ListNotificationPoliciesOK) String

func (o *ListNotificationPoliciesOK) String() string

type ListNotificationPoliciesParams

type ListNotificationPoliciesParams struct {

	/* BucketSlugs.

	   Filters results by bucket_slug, where any NotificationPolicy with a matching bucket_slug in the given list (and matches all other filters) is returned.
	*/
	BucketSlugs []string

	/* Names.

	   Filters results by name, where any NotificationPolicy with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any NotificationPolicy with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* TeamSlugs.

	   Filters results by team_slug, where any NotificationPolicy with a matching team_slug in the given list (and matches all other filters) is returned.
	*/
	TeamSlugs []string

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

ListNotificationPoliciesParams contains all the parameters to send to the API endpoint

for the list notification policies operation.

Typically these are written to a http.Request.

func NewListNotificationPoliciesParams

func NewListNotificationPoliciesParams() *ListNotificationPoliciesParams

NewListNotificationPoliciesParams creates a new ListNotificationPoliciesParams 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 NewListNotificationPoliciesParamsWithContext

func NewListNotificationPoliciesParamsWithContext(ctx context.Context) *ListNotificationPoliciesParams

NewListNotificationPoliciesParamsWithContext creates a new ListNotificationPoliciesParams object with the ability to set a context for a request.

func NewListNotificationPoliciesParamsWithHTTPClient

func NewListNotificationPoliciesParamsWithHTTPClient(client *http.Client) *ListNotificationPoliciesParams

NewListNotificationPoliciesParamsWithHTTPClient creates a new ListNotificationPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewListNotificationPoliciesParamsWithTimeout

func NewListNotificationPoliciesParamsWithTimeout(timeout time.Duration) *ListNotificationPoliciesParams

NewListNotificationPoliciesParamsWithTimeout creates a new ListNotificationPoliciesParams object with the ability to set a timeout on a request.

func (*ListNotificationPoliciesParams) SetBucketSlugs

func (o *ListNotificationPoliciesParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list notification policies params

func (*ListNotificationPoliciesParams) SetContext

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

SetContext adds the context to the list notification policies params

func (*ListNotificationPoliciesParams) SetDefaults

func (o *ListNotificationPoliciesParams) SetDefaults()

SetDefaults hydrates default values in the list notification policies params (not the query body).

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

func (*ListNotificationPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list notification policies params

func (*ListNotificationPoliciesParams) SetNames

func (o *ListNotificationPoliciesParams) SetNames(names []string)

SetNames adds the names to the list notification policies params

func (*ListNotificationPoliciesParams) SetPageMaxSize

func (o *ListNotificationPoliciesParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list notification policies params

func (*ListNotificationPoliciesParams) SetPageToken

func (o *ListNotificationPoliciesParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list notification policies params

func (*ListNotificationPoliciesParams) SetSlugs

func (o *ListNotificationPoliciesParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list notification policies params

func (*ListNotificationPoliciesParams) SetTeamSlugs

func (o *ListNotificationPoliciesParams) SetTeamSlugs(teamSlugs []string)

SetTeamSlugs adds the teamSlugs to the list notification policies params

func (*ListNotificationPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the list notification policies params

func (*ListNotificationPoliciesParams) WithBucketSlugs

func (o *ListNotificationPoliciesParams) WithBucketSlugs(bucketSlugs []string) *ListNotificationPoliciesParams

WithBucketSlugs adds the bucketSlugs to the list notification policies params

func (*ListNotificationPoliciesParams) WithContext

WithContext adds the context to the list notification policies params

func (*ListNotificationPoliciesParams) WithDefaults

WithDefaults hydrates default values in the list notification policies params (not the query body).

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

func (*ListNotificationPoliciesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list notification policies params

func (*ListNotificationPoliciesParams) WithNames

WithNames adds the names to the list notification policies params

func (*ListNotificationPoliciesParams) WithPageMaxSize

func (o *ListNotificationPoliciesParams) WithPageMaxSize(pageMaxSize *int64) *ListNotificationPoliciesParams

WithPageMaxSize adds the pageMaxSize to the list notification policies params

func (*ListNotificationPoliciesParams) WithPageToken

WithPageToken adds the pageToken to the list notification policies params

func (*ListNotificationPoliciesParams) WithSlugs

WithSlugs adds the slugs to the list notification policies params

func (*ListNotificationPoliciesParams) WithTeamSlugs

WithTeamSlugs adds the teamSlugs to the list notification policies params

func (*ListNotificationPoliciesParams) WithTimeout

WithTimeout adds the timeout to the list notification policies params

func (*ListNotificationPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListNotificationPoliciesReader

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

ListNotificationPoliciesReader is a Reader for the ListNotificationPolicies structure.

func (*ListNotificationPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadNotificationPolicyDefault

type ReadNotificationPolicyDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadNotificationPolicyDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadNotificationPolicyDefault

func NewReadNotificationPolicyDefault(code int) *ReadNotificationPolicyDefault

NewReadNotificationPolicyDefault creates a ReadNotificationPolicyDefault with default headers values

func (*ReadNotificationPolicyDefault) Code

Code gets the status code for the read notification policy default response

func (*ReadNotificationPolicyDefault) Error

func (*ReadNotificationPolicyDefault) GetPayload

func (*ReadNotificationPolicyDefault) IsClientError

func (o *ReadNotificationPolicyDefault) IsClientError() bool

IsClientError returns true when this read notification policy default response has a 4xx status code

func (*ReadNotificationPolicyDefault) IsCode

func (o *ReadNotificationPolicyDefault) IsCode(code int) bool

IsCode returns true when this read notification policy default response a status code equal to that given

func (*ReadNotificationPolicyDefault) IsRedirect

func (o *ReadNotificationPolicyDefault) IsRedirect() bool

IsRedirect returns true when this read notification policy default response has a 3xx status code

func (*ReadNotificationPolicyDefault) IsServerError

func (o *ReadNotificationPolicyDefault) IsServerError() bool

IsServerError returns true when this read notification policy default response has a 5xx status code

func (*ReadNotificationPolicyDefault) IsSuccess

func (o *ReadNotificationPolicyDefault) IsSuccess() bool

IsSuccess returns true when this read notification policy default response has a 2xx status code

func (*ReadNotificationPolicyDefault) String

type ReadNotificationPolicyInternalServerError

type ReadNotificationPolicyInternalServerError struct {
	Payload *models.APIError
}

ReadNotificationPolicyInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadNotificationPolicyInternalServerError

func NewReadNotificationPolicyInternalServerError() *ReadNotificationPolicyInternalServerError

NewReadNotificationPolicyInternalServerError creates a ReadNotificationPolicyInternalServerError with default headers values

func (*ReadNotificationPolicyInternalServerError) Code

Code gets the status code for the read notification policy internal server error response

func (*ReadNotificationPolicyInternalServerError) Error

func (*ReadNotificationPolicyInternalServerError) GetPayload

func (*ReadNotificationPolicyInternalServerError) IsClientError

IsClientError returns true when this read notification policy internal server error response has a 4xx status code

func (*ReadNotificationPolicyInternalServerError) IsCode

IsCode returns true when this read notification policy internal server error response a status code equal to that given

func (*ReadNotificationPolicyInternalServerError) IsRedirect

IsRedirect returns true when this read notification policy internal server error response has a 3xx status code

func (*ReadNotificationPolicyInternalServerError) IsServerError

IsServerError returns true when this read notification policy internal server error response has a 5xx status code

func (*ReadNotificationPolicyInternalServerError) IsSuccess

IsSuccess returns true when this read notification policy internal server error response has a 2xx status code

func (*ReadNotificationPolicyInternalServerError) String

type ReadNotificationPolicyNotFound

type ReadNotificationPolicyNotFound struct {
	Payload *models.APIError
}

ReadNotificationPolicyNotFound describes a response with status code 404, with default header values.

Cannot read the NotificationPolicy because the slug does not exist.

func NewReadNotificationPolicyNotFound

func NewReadNotificationPolicyNotFound() *ReadNotificationPolicyNotFound

NewReadNotificationPolicyNotFound creates a ReadNotificationPolicyNotFound with default headers values

func (*ReadNotificationPolicyNotFound) Code

Code gets the status code for the read notification policy not found response

func (*ReadNotificationPolicyNotFound) Error

func (*ReadNotificationPolicyNotFound) GetPayload

func (*ReadNotificationPolicyNotFound) IsClientError

func (o *ReadNotificationPolicyNotFound) IsClientError() bool

IsClientError returns true when this read notification policy not found response has a 4xx status code

func (*ReadNotificationPolicyNotFound) IsCode

func (o *ReadNotificationPolicyNotFound) IsCode(code int) bool

IsCode returns true when this read notification policy not found response a status code equal to that given

func (*ReadNotificationPolicyNotFound) IsRedirect

func (o *ReadNotificationPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this read notification policy not found response has a 3xx status code

func (*ReadNotificationPolicyNotFound) IsServerError

func (o *ReadNotificationPolicyNotFound) IsServerError() bool

IsServerError returns true when this read notification policy not found response has a 5xx status code

func (*ReadNotificationPolicyNotFound) IsSuccess

func (o *ReadNotificationPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this read notification policy not found response has a 2xx status code

func (*ReadNotificationPolicyNotFound) String

type ReadNotificationPolicyOK

type ReadNotificationPolicyOK struct {
	Payload *models.Configv1ReadNotificationPolicyResponse
}

ReadNotificationPolicyOK describes a response with status code 200, with default header values.

A successful response.

func NewReadNotificationPolicyOK

func NewReadNotificationPolicyOK() *ReadNotificationPolicyOK

NewReadNotificationPolicyOK creates a ReadNotificationPolicyOK with default headers values

func (*ReadNotificationPolicyOK) Code

func (o *ReadNotificationPolicyOK) Code() int

Code gets the status code for the read notification policy o k response

func (*ReadNotificationPolicyOK) Error

func (o *ReadNotificationPolicyOK) Error() string

func (*ReadNotificationPolicyOK) GetPayload

func (*ReadNotificationPolicyOK) IsClientError

func (o *ReadNotificationPolicyOK) IsClientError() bool

IsClientError returns true when this read notification policy o k response has a 4xx status code

func (*ReadNotificationPolicyOK) IsCode

func (o *ReadNotificationPolicyOK) IsCode(code int) bool

IsCode returns true when this read notification policy o k response a status code equal to that given

func (*ReadNotificationPolicyOK) IsRedirect

func (o *ReadNotificationPolicyOK) IsRedirect() bool

IsRedirect returns true when this read notification policy o k response has a 3xx status code

func (*ReadNotificationPolicyOK) IsServerError

func (o *ReadNotificationPolicyOK) IsServerError() bool

IsServerError returns true when this read notification policy o k response has a 5xx status code

func (*ReadNotificationPolicyOK) IsSuccess

func (o *ReadNotificationPolicyOK) IsSuccess() bool

IsSuccess returns true when this read notification policy o k response has a 2xx status code

func (*ReadNotificationPolicyOK) String

func (o *ReadNotificationPolicyOK) String() string

type ReadNotificationPolicyParams

type ReadNotificationPolicyParams struct {

	// Slug.
	Slug string

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

ReadNotificationPolicyParams contains all the parameters to send to the API endpoint

for the read notification policy operation.

Typically these are written to a http.Request.

func NewReadNotificationPolicyParams

func NewReadNotificationPolicyParams() *ReadNotificationPolicyParams

NewReadNotificationPolicyParams creates a new ReadNotificationPolicyParams 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 NewReadNotificationPolicyParamsWithContext

func NewReadNotificationPolicyParamsWithContext(ctx context.Context) *ReadNotificationPolicyParams

NewReadNotificationPolicyParamsWithContext creates a new ReadNotificationPolicyParams object with the ability to set a context for a request.

func NewReadNotificationPolicyParamsWithHTTPClient

func NewReadNotificationPolicyParamsWithHTTPClient(client *http.Client) *ReadNotificationPolicyParams

NewReadNotificationPolicyParamsWithHTTPClient creates a new ReadNotificationPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewReadNotificationPolicyParamsWithTimeout

func NewReadNotificationPolicyParamsWithTimeout(timeout time.Duration) *ReadNotificationPolicyParams

NewReadNotificationPolicyParamsWithTimeout creates a new ReadNotificationPolicyParams object with the ability to set a timeout on a request.

func (*ReadNotificationPolicyParams) SetContext

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

SetContext adds the context to the read notification policy params

func (*ReadNotificationPolicyParams) SetDefaults

func (o *ReadNotificationPolicyParams) SetDefaults()

SetDefaults hydrates default values in the read notification policy params (not the query body).

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

func (*ReadNotificationPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read notification policy params

func (*ReadNotificationPolicyParams) SetSlug

func (o *ReadNotificationPolicyParams) SetSlug(slug string)

SetSlug adds the slug to the read notification policy params

func (*ReadNotificationPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the read notification policy params

func (*ReadNotificationPolicyParams) WithContext

WithContext adds the context to the read notification policy params

func (*ReadNotificationPolicyParams) WithDefaults

WithDefaults hydrates default values in the read notification policy params (not the query body).

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

func (*ReadNotificationPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the read notification policy params

func (*ReadNotificationPolicyParams) WithSlug

WithSlug adds the slug to the read notification policy params

func (*ReadNotificationPolicyParams) WithTimeout

WithTimeout adds the timeout to the read notification policy params

func (*ReadNotificationPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadNotificationPolicyReader

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

ReadNotificationPolicyReader is a Reader for the ReadNotificationPolicy structure.

func (*ReadNotificationPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNotificationPolicyBadRequest

type UpdateNotificationPolicyBadRequest struct {
	Payload *models.APIError
}

UpdateNotificationPolicyBadRequest describes a response with status code 400, with default header values.

Cannot update the NotificationPolicy because the request is invalid.

func NewUpdateNotificationPolicyBadRequest

func NewUpdateNotificationPolicyBadRequest() *UpdateNotificationPolicyBadRequest

NewUpdateNotificationPolicyBadRequest creates a UpdateNotificationPolicyBadRequest with default headers values

func (*UpdateNotificationPolicyBadRequest) Code

Code gets the status code for the update notification policy bad request response

func (*UpdateNotificationPolicyBadRequest) Error

func (*UpdateNotificationPolicyBadRequest) GetPayload

func (*UpdateNotificationPolicyBadRequest) IsClientError

func (o *UpdateNotificationPolicyBadRequest) IsClientError() bool

IsClientError returns true when this update notification policy bad request response has a 4xx status code

func (*UpdateNotificationPolicyBadRequest) IsCode

IsCode returns true when this update notification policy bad request response a status code equal to that given

func (*UpdateNotificationPolicyBadRequest) IsRedirect

func (o *UpdateNotificationPolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this update notification policy bad request response has a 3xx status code

func (*UpdateNotificationPolicyBadRequest) IsServerError

func (o *UpdateNotificationPolicyBadRequest) IsServerError() bool

IsServerError returns true when this update notification policy bad request response has a 5xx status code

func (*UpdateNotificationPolicyBadRequest) IsSuccess

IsSuccess returns true when this update notification policy bad request response has a 2xx status code

func (*UpdateNotificationPolicyBadRequest) String

type UpdateNotificationPolicyBody

type UpdateNotificationPolicyBody struct {

	// If true, the NotificationPolicy will be created if it does not already exist, identified by slug. If false, an error will be returned if the NotificationPolicy does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the NotificationPolicy will not be created nor updated, and no response NotificationPolicy will be returned. The response will return an error if the given NotificationPolicy is invalid.
	DryRun bool `json:"dry_run,omitempty"`

	// notification policy
	NotificationPolicy *models.Configv1NotificationPolicy `json:"notification_policy,omitempty"`
}

UpdateNotificationPolicyBody update notification policy body swagger:model UpdateNotificationPolicyBody

func (*UpdateNotificationPolicyBody) ContextValidate

func (o *UpdateNotificationPolicyBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update notification policy body based on the context it is used

func (*UpdateNotificationPolicyBody) MarshalBinary

func (o *UpdateNotificationPolicyBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateNotificationPolicyBody) UnmarshalBinary

func (o *UpdateNotificationPolicyBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateNotificationPolicyBody) Validate

func (o *UpdateNotificationPolicyBody) Validate(formats strfmt.Registry) error

Validate validates this update notification policy body

type UpdateNotificationPolicyConflict

type UpdateNotificationPolicyConflict struct {
	Payload *models.APIError
}

UpdateNotificationPolicyConflict describes a response with status code 409, with default header values.

Cannot update the NotificationPolicy because there is a conflict with an existing NotificationPolicy.

func NewUpdateNotificationPolicyConflict

func NewUpdateNotificationPolicyConflict() *UpdateNotificationPolicyConflict

NewUpdateNotificationPolicyConflict creates a UpdateNotificationPolicyConflict with default headers values

func (*UpdateNotificationPolicyConflict) Code

Code gets the status code for the update notification policy conflict response

func (*UpdateNotificationPolicyConflict) Error

func (*UpdateNotificationPolicyConflict) GetPayload

func (*UpdateNotificationPolicyConflict) IsClientError

func (o *UpdateNotificationPolicyConflict) IsClientError() bool

IsClientError returns true when this update notification policy conflict response has a 4xx status code

func (*UpdateNotificationPolicyConflict) IsCode

func (o *UpdateNotificationPolicyConflict) IsCode(code int) bool

IsCode returns true when this update notification policy conflict response a status code equal to that given

func (*UpdateNotificationPolicyConflict) IsRedirect

func (o *UpdateNotificationPolicyConflict) IsRedirect() bool

IsRedirect returns true when this update notification policy conflict response has a 3xx status code

func (*UpdateNotificationPolicyConflict) IsServerError

func (o *UpdateNotificationPolicyConflict) IsServerError() bool

IsServerError returns true when this update notification policy conflict response has a 5xx status code

func (*UpdateNotificationPolicyConflict) IsSuccess

func (o *UpdateNotificationPolicyConflict) IsSuccess() bool

IsSuccess returns true when this update notification policy conflict response has a 2xx status code

func (*UpdateNotificationPolicyConflict) String

type UpdateNotificationPolicyDefault

type UpdateNotificationPolicyDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateNotificationPolicyDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateNotificationPolicyDefault

func NewUpdateNotificationPolicyDefault(code int) *UpdateNotificationPolicyDefault

NewUpdateNotificationPolicyDefault creates a UpdateNotificationPolicyDefault with default headers values

func (*UpdateNotificationPolicyDefault) Code

Code gets the status code for the update notification policy default response

func (*UpdateNotificationPolicyDefault) Error

func (*UpdateNotificationPolicyDefault) GetPayload

func (*UpdateNotificationPolicyDefault) IsClientError

func (o *UpdateNotificationPolicyDefault) IsClientError() bool

IsClientError returns true when this update notification policy default response has a 4xx status code

func (*UpdateNotificationPolicyDefault) IsCode

func (o *UpdateNotificationPolicyDefault) IsCode(code int) bool

IsCode returns true when this update notification policy default response a status code equal to that given

func (*UpdateNotificationPolicyDefault) IsRedirect

func (o *UpdateNotificationPolicyDefault) IsRedirect() bool

IsRedirect returns true when this update notification policy default response has a 3xx status code

func (*UpdateNotificationPolicyDefault) IsServerError

func (o *UpdateNotificationPolicyDefault) IsServerError() bool

IsServerError returns true when this update notification policy default response has a 5xx status code

func (*UpdateNotificationPolicyDefault) IsSuccess

func (o *UpdateNotificationPolicyDefault) IsSuccess() bool

IsSuccess returns true when this update notification policy default response has a 2xx status code

func (*UpdateNotificationPolicyDefault) String

type UpdateNotificationPolicyInternalServerError

type UpdateNotificationPolicyInternalServerError struct {
	Payload *models.APIError
}

UpdateNotificationPolicyInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateNotificationPolicyInternalServerError

func NewUpdateNotificationPolicyInternalServerError() *UpdateNotificationPolicyInternalServerError

NewUpdateNotificationPolicyInternalServerError creates a UpdateNotificationPolicyInternalServerError with default headers values

func (*UpdateNotificationPolicyInternalServerError) Code

Code gets the status code for the update notification policy internal server error response

func (*UpdateNotificationPolicyInternalServerError) Error

func (*UpdateNotificationPolicyInternalServerError) GetPayload

func (*UpdateNotificationPolicyInternalServerError) IsClientError

IsClientError returns true when this update notification policy internal server error response has a 4xx status code

func (*UpdateNotificationPolicyInternalServerError) IsCode

IsCode returns true when this update notification policy internal server error response a status code equal to that given

func (*UpdateNotificationPolicyInternalServerError) IsRedirect

IsRedirect returns true when this update notification policy internal server error response has a 3xx status code

func (*UpdateNotificationPolicyInternalServerError) IsServerError

IsServerError returns true when this update notification policy internal server error response has a 5xx status code

func (*UpdateNotificationPolicyInternalServerError) IsSuccess

IsSuccess returns true when this update notification policy internal server error response has a 2xx status code

func (*UpdateNotificationPolicyInternalServerError) String

type UpdateNotificationPolicyNotFound

type UpdateNotificationPolicyNotFound struct {
	Payload *models.APIError
}

UpdateNotificationPolicyNotFound describes a response with status code 404, with default header values.

Cannot update the NotificationPolicy because the slug does not exist.

func NewUpdateNotificationPolicyNotFound

func NewUpdateNotificationPolicyNotFound() *UpdateNotificationPolicyNotFound

NewUpdateNotificationPolicyNotFound creates a UpdateNotificationPolicyNotFound with default headers values

func (*UpdateNotificationPolicyNotFound) Code

Code gets the status code for the update notification policy not found response

func (*UpdateNotificationPolicyNotFound) Error

func (*UpdateNotificationPolicyNotFound) GetPayload

func (*UpdateNotificationPolicyNotFound) IsClientError

func (o *UpdateNotificationPolicyNotFound) IsClientError() bool

IsClientError returns true when this update notification policy not found response has a 4xx status code

func (*UpdateNotificationPolicyNotFound) IsCode

func (o *UpdateNotificationPolicyNotFound) IsCode(code int) bool

IsCode returns true when this update notification policy not found response a status code equal to that given

func (*UpdateNotificationPolicyNotFound) IsRedirect

func (o *UpdateNotificationPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this update notification policy not found response has a 3xx status code

func (*UpdateNotificationPolicyNotFound) IsServerError

func (o *UpdateNotificationPolicyNotFound) IsServerError() bool

IsServerError returns true when this update notification policy not found response has a 5xx status code

func (*UpdateNotificationPolicyNotFound) IsSuccess

func (o *UpdateNotificationPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this update notification policy not found response has a 2xx status code

func (*UpdateNotificationPolicyNotFound) String

type UpdateNotificationPolicyOK

type UpdateNotificationPolicyOK struct {
	Payload *models.Configv1UpdateNotificationPolicyResponse
}

UpdateNotificationPolicyOK describes a response with status code 200, with default header values.

A successful response containing the updated NotificationPolicy.

func NewUpdateNotificationPolicyOK

func NewUpdateNotificationPolicyOK() *UpdateNotificationPolicyOK

NewUpdateNotificationPolicyOK creates a UpdateNotificationPolicyOK with default headers values

func (*UpdateNotificationPolicyOK) Code

func (o *UpdateNotificationPolicyOK) Code() int

Code gets the status code for the update notification policy o k response

func (*UpdateNotificationPolicyOK) Error

func (*UpdateNotificationPolicyOK) GetPayload

func (*UpdateNotificationPolicyOK) IsClientError

func (o *UpdateNotificationPolicyOK) IsClientError() bool

IsClientError returns true when this update notification policy o k response has a 4xx status code

func (*UpdateNotificationPolicyOK) IsCode

func (o *UpdateNotificationPolicyOK) IsCode(code int) bool

IsCode returns true when this update notification policy o k response a status code equal to that given

func (*UpdateNotificationPolicyOK) IsRedirect

func (o *UpdateNotificationPolicyOK) IsRedirect() bool

IsRedirect returns true when this update notification policy o k response has a 3xx status code

func (*UpdateNotificationPolicyOK) IsServerError

func (o *UpdateNotificationPolicyOK) IsServerError() bool

IsServerError returns true when this update notification policy o k response has a 5xx status code

func (*UpdateNotificationPolicyOK) IsSuccess

func (o *UpdateNotificationPolicyOK) IsSuccess() bool

IsSuccess returns true when this update notification policy o k response has a 2xx status code

func (*UpdateNotificationPolicyOK) String

func (o *UpdateNotificationPolicyOK) String() string

type UpdateNotificationPolicyParams

type UpdateNotificationPolicyParams struct {

	// Body.
	Body UpdateNotificationPolicyBody

	// Slug.
	Slug string

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

UpdateNotificationPolicyParams contains all the parameters to send to the API endpoint

for the update notification policy operation.

Typically these are written to a http.Request.

func NewUpdateNotificationPolicyParams

func NewUpdateNotificationPolicyParams() *UpdateNotificationPolicyParams

NewUpdateNotificationPolicyParams creates a new UpdateNotificationPolicyParams 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 NewUpdateNotificationPolicyParamsWithContext

func NewUpdateNotificationPolicyParamsWithContext(ctx context.Context) *UpdateNotificationPolicyParams

NewUpdateNotificationPolicyParamsWithContext creates a new UpdateNotificationPolicyParams object with the ability to set a context for a request.

func NewUpdateNotificationPolicyParamsWithHTTPClient

func NewUpdateNotificationPolicyParamsWithHTTPClient(client *http.Client) *UpdateNotificationPolicyParams

NewUpdateNotificationPolicyParamsWithHTTPClient creates a new UpdateNotificationPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNotificationPolicyParamsWithTimeout

func NewUpdateNotificationPolicyParamsWithTimeout(timeout time.Duration) *UpdateNotificationPolicyParams

NewUpdateNotificationPolicyParamsWithTimeout creates a new UpdateNotificationPolicyParams object with the ability to set a timeout on a request.

func (*UpdateNotificationPolicyParams) SetBody

SetBody adds the body to the update notification policy params

func (*UpdateNotificationPolicyParams) SetContext

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

SetContext adds the context to the update notification policy params

func (*UpdateNotificationPolicyParams) SetDefaults

func (o *UpdateNotificationPolicyParams) SetDefaults()

SetDefaults hydrates default values in the update notification policy params (not the query body).

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

func (*UpdateNotificationPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update notification policy params

func (*UpdateNotificationPolicyParams) SetSlug

func (o *UpdateNotificationPolicyParams) SetSlug(slug string)

SetSlug adds the slug to the update notification policy params

func (*UpdateNotificationPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update notification policy params

func (*UpdateNotificationPolicyParams) WithBody

WithBody adds the body to the update notification policy params

func (*UpdateNotificationPolicyParams) WithContext

WithContext adds the context to the update notification policy params

func (*UpdateNotificationPolicyParams) WithDefaults

WithDefaults hydrates default values in the update notification policy params (not the query body).

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

func (*UpdateNotificationPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update notification policy params

func (*UpdateNotificationPolicyParams) WithSlug

WithSlug adds the slug to the update notification policy params

func (*UpdateNotificationPolicyParams) WithTimeout

WithTimeout adds the timeout to the update notification policy params

func (*UpdateNotificationPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNotificationPolicyReader

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

UpdateNotificationPolicyReader is a Reader for the UpdateNotificationPolicy structure.

func (*UpdateNotificationPolicyReader) ReadResponse

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