Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateNotificationPolicy(params *CreateNotificationPolicyParams, opts ...ClientOption) (*CreateNotificationPolicyOK, error)
- func (a *Client) DeleteNotificationPolicy(params *DeleteNotificationPolicyParams, opts ...ClientOption) (*DeleteNotificationPolicyOK, error)
- func (a *Client) ListNotificationPolicies(params *ListNotificationPoliciesParams, opts ...ClientOption) (*ListNotificationPoliciesOK, error)
- func (a *Client) ReadNotificationPolicy(params *ReadNotificationPolicyParams, opts ...ClientOption) (*ReadNotificationPolicyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNotificationPolicy(params *UpdateNotificationPolicyParams, opts ...ClientOption) (*UpdateNotificationPolicyOK, error)
- type ClientOption
- type ClientService
- type CreateNotificationPolicyBadRequest
- func (o *CreateNotificationPolicyBadRequest) Code() int
- func (o *CreateNotificationPolicyBadRequest) Error() string
- func (o *CreateNotificationPolicyBadRequest) GetPayload() *models.APIError
- func (o *CreateNotificationPolicyBadRequest) IsClientError() bool
- func (o *CreateNotificationPolicyBadRequest) IsCode(code int) bool
- func (o *CreateNotificationPolicyBadRequest) IsRedirect() bool
- func (o *CreateNotificationPolicyBadRequest) IsServerError() bool
- func (o *CreateNotificationPolicyBadRequest) IsSuccess() bool
- func (o *CreateNotificationPolicyBadRequest) String() string
- type CreateNotificationPolicyConflict
- func (o *CreateNotificationPolicyConflict) Code() int
- func (o *CreateNotificationPolicyConflict) Error() string
- func (o *CreateNotificationPolicyConflict) GetPayload() *models.APIError
- func (o *CreateNotificationPolicyConflict) IsClientError() bool
- func (o *CreateNotificationPolicyConflict) IsCode(code int) bool
- func (o *CreateNotificationPolicyConflict) IsRedirect() bool
- func (o *CreateNotificationPolicyConflict) IsServerError() bool
- func (o *CreateNotificationPolicyConflict) IsSuccess() bool
- func (o *CreateNotificationPolicyConflict) String() string
- type CreateNotificationPolicyDefault
- func (o *CreateNotificationPolicyDefault) Code() int
- func (o *CreateNotificationPolicyDefault) Error() string
- func (o *CreateNotificationPolicyDefault) GetPayload() models.GenericError
- func (o *CreateNotificationPolicyDefault) IsClientError() bool
- func (o *CreateNotificationPolicyDefault) IsCode(code int) bool
- func (o *CreateNotificationPolicyDefault) IsRedirect() bool
- func (o *CreateNotificationPolicyDefault) IsServerError() bool
- func (o *CreateNotificationPolicyDefault) IsSuccess() bool
- func (o *CreateNotificationPolicyDefault) String() string
- type CreateNotificationPolicyInternalServerError
- func (o *CreateNotificationPolicyInternalServerError) Code() int
- func (o *CreateNotificationPolicyInternalServerError) Error() string
- func (o *CreateNotificationPolicyInternalServerError) GetPayload() *models.APIError
- func (o *CreateNotificationPolicyInternalServerError) IsClientError() bool
- func (o *CreateNotificationPolicyInternalServerError) IsCode(code int) bool
- func (o *CreateNotificationPolicyInternalServerError) IsRedirect() bool
- func (o *CreateNotificationPolicyInternalServerError) IsServerError() bool
- func (o *CreateNotificationPolicyInternalServerError) IsSuccess() bool
- func (o *CreateNotificationPolicyInternalServerError) String() string
- type CreateNotificationPolicyOK
- func (o *CreateNotificationPolicyOK) Code() int
- func (o *CreateNotificationPolicyOK) Error() string
- func (o *CreateNotificationPolicyOK) GetPayload() *models.Configv1CreateNotificationPolicyResponse
- func (o *CreateNotificationPolicyOK) IsClientError() bool
- func (o *CreateNotificationPolicyOK) IsCode(code int) bool
- func (o *CreateNotificationPolicyOK) IsRedirect() bool
- func (o *CreateNotificationPolicyOK) IsServerError() bool
- func (o *CreateNotificationPolicyOK) IsSuccess() bool
- func (o *CreateNotificationPolicyOK) String() string
- type CreateNotificationPolicyParams
- func NewCreateNotificationPolicyParams() *CreateNotificationPolicyParams
- func NewCreateNotificationPolicyParamsWithContext(ctx context.Context) *CreateNotificationPolicyParams
- func NewCreateNotificationPolicyParamsWithHTTPClient(client *http.Client) *CreateNotificationPolicyParams
- func NewCreateNotificationPolicyParamsWithTimeout(timeout time.Duration) *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) SetBody(body *models.Configv1CreateNotificationPolicyRequest)
- func (o *CreateNotificationPolicyParams) SetContext(ctx context.Context)
- func (o *CreateNotificationPolicyParams) SetDefaults()
- func (o *CreateNotificationPolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreateNotificationPolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreateNotificationPolicyParams) WithBody(body *models.Configv1CreateNotificationPolicyRequest) *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) WithContext(ctx context.Context) *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) WithDefaults() *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) WithHTTPClient(client *http.Client) *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) WithTimeout(timeout time.Duration) *CreateNotificationPolicyParams
- func (o *CreateNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNotificationPolicyReader
- type DeleteNotificationPolicyBadRequest
- func (o *DeleteNotificationPolicyBadRequest) Code() int
- func (o *DeleteNotificationPolicyBadRequest) Error() string
- func (o *DeleteNotificationPolicyBadRequest) GetPayload() *models.APIError
- func (o *DeleteNotificationPolicyBadRequest) IsClientError() bool
- func (o *DeleteNotificationPolicyBadRequest) IsCode(code int) bool
- func (o *DeleteNotificationPolicyBadRequest) IsRedirect() bool
- func (o *DeleteNotificationPolicyBadRequest) IsServerError() bool
- func (o *DeleteNotificationPolicyBadRequest) IsSuccess() bool
- func (o *DeleteNotificationPolicyBadRequest) String() string
- type DeleteNotificationPolicyDefault
- func (o *DeleteNotificationPolicyDefault) Code() int
- func (o *DeleteNotificationPolicyDefault) Error() string
- func (o *DeleteNotificationPolicyDefault) GetPayload() models.GenericError
- func (o *DeleteNotificationPolicyDefault) IsClientError() bool
- func (o *DeleteNotificationPolicyDefault) IsCode(code int) bool
- func (o *DeleteNotificationPolicyDefault) IsRedirect() bool
- func (o *DeleteNotificationPolicyDefault) IsServerError() bool
- func (o *DeleteNotificationPolicyDefault) IsSuccess() bool
- func (o *DeleteNotificationPolicyDefault) String() string
- type DeleteNotificationPolicyInternalServerError
- func (o *DeleteNotificationPolicyInternalServerError) Code() int
- func (o *DeleteNotificationPolicyInternalServerError) Error() string
- func (o *DeleteNotificationPolicyInternalServerError) GetPayload() *models.APIError
- func (o *DeleteNotificationPolicyInternalServerError) IsClientError() bool
- func (o *DeleteNotificationPolicyInternalServerError) IsCode(code int) bool
- func (o *DeleteNotificationPolicyInternalServerError) IsRedirect() bool
- func (o *DeleteNotificationPolicyInternalServerError) IsServerError() bool
- func (o *DeleteNotificationPolicyInternalServerError) IsSuccess() bool
- func (o *DeleteNotificationPolicyInternalServerError) String() string
- type DeleteNotificationPolicyNotFound
- func (o *DeleteNotificationPolicyNotFound) Code() int
- func (o *DeleteNotificationPolicyNotFound) Error() string
- func (o *DeleteNotificationPolicyNotFound) GetPayload() *models.APIError
- func (o *DeleteNotificationPolicyNotFound) IsClientError() bool
- func (o *DeleteNotificationPolicyNotFound) IsCode(code int) bool
- func (o *DeleteNotificationPolicyNotFound) IsRedirect() bool
- func (o *DeleteNotificationPolicyNotFound) IsServerError() bool
- func (o *DeleteNotificationPolicyNotFound) IsSuccess() bool
- func (o *DeleteNotificationPolicyNotFound) String() string
- type DeleteNotificationPolicyOK
- func (o *DeleteNotificationPolicyOK) Code() int
- func (o *DeleteNotificationPolicyOK) Error() string
- func (o *DeleteNotificationPolicyOK) GetPayload() models.Configv1DeleteNotificationPolicyResponse
- func (o *DeleteNotificationPolicyOK) IsClientError() bool
- func (o *DeleteNotificationPolicyOK) IsCode(code int) bool
- func (o *DeleteNotificationPolicyOK) IsRedirect() bool
- func (o *DeleteNotificationPolicyOK) IsServerError() bool
- func (o *DeleteNotificationPolicyOK) IsSuccess() bool
- func (o *DeleteNotificationPolicyOK) String() string
- type DeleteNotificationPolicyParams
- func NewDeleteNotificationPolicyParams() *DeleteNotificationPolicyParams
- func NewDeleteNotificationPolicyParamsWithContext(ctx context.Context) *DeleteNotificationPolicyParams
- func NewDeleteNotificationPolicyParamsWithHTTPClient(client *http.Client) *DeleteNotificationPolicyParams
- func NewDeleteNotificationPolicyParamsWithTimeout(timeout time.Duration) *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) SetContext(ctx context.Context)
- func (o *DeleteNotificationPolicyParams) SetDefaults()
- func (o *DeleteNotificationPolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNotificationPolicyParams) SetSlug(slug string)
- func (o *DeleteNotificationPolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNotificationPolicyParams) WithContext(ctx context.Context) *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) WithDefaults() *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) WithHTTPClient(client *http.Client) *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) WithSlug(slug string) *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) WithTimeout(timeout time.Duration) *DeleteNotificationPolicyParams
- func (o *DeleteNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNotificationPolicyReader
- type ListNotificationPoliciesDefault
- func (o *ListNotificationPoliciesDefault) Code() int
- func (o *ListNotificationPoliciesDefault) Error() string
- func (o *ListNotificationPoliciesDefault) GetPayload() models.GenericError
- func (o *ListNotificationPoliciesDefault) IsClientError() bool
- func (o *ListNotificationPoliciesDefault) IsCode(code int) bool
- func (o *ListNotificationPoliciesDefault) IsRedirect() bool
- func (o *ListNotificationPoliciesDefault) IsServerError() bool
- func (o *ListNotificationPoliciesDefault) IsSuccess() bool
- func (o *ListNotificationPoliciesDefault) String() string
- type ListNotificationPoliciesInternalServerError
- func (o *ListNotificationPoliciesInternalServerError) Code() int
- func (o *ListNotificationPoliciesInternalServerError) Error() string
- func (o *ListNotificationPoliciesInternalServerError) GetPayload() *models.APIError
- func (o *ListNotificationPoliciesInternalServerError) IsClientError() bool
- func (o *ListNotificationPoliciesInternalServerError) IsCode(code int) bool
- func (o *ListNotificationPoliciesInternalServerError) IsRedirect() bool
- func (o *ListNotificationPoliciesInternalServerError) IsServerError() bool
- func (o *ListNotificationPoliciesInternalServerError) IsSuccess() bool
- func (o *ListNotificationPoliciesInternalServerError) String() string
- type ListNotificationPoliciesOK
- func (o *ListNotificationPoliciesOK) Code() int
- func (o *ListNotificationPoliciesOK) Error() string
- func (o *ListNotificationPoliciesOK) GetPayload() *models.Configv1ListNotificationPoliciesResponse
- func (o *ListNotificationPoliciesOK) IsClientError() bool
- func (o *ListNotificationPoliciesOK) IsCode(code int) bool
- func (o *ListNotificationPoliciesOK) IsRedirect() bool
- func (o *ListNotificationPoliciesOK) IsServerError() bool
- func (o *ListNotificationPoliciesOK) IsSuccess() bool
- func (o *ListNotificationPoliciesOK) String() string
- type ListNotificationPoliciesParams
- func NewListNotificationPoliciesParams() *ListNotificationPoliciesParams
- func NewListNotificationPoliciesParamsWithContext(ctx context.Context) *ListNotificationPoliciesParams
- func NewListNotificationPoliciesParamsWithHTTPClient(client *http.Client) *ListNotificationPoliciesParams
- func NewListNotificationPoliciesParamsWithTimeout(timeout time.Duration) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) SetBucketSlugs(bucketSlugs []string)
- func (o *ListNotificationPoliciesParams) SetContext(ctx context.Context)
- func (o *ListNotificationPoliciesParams) SetDefaults()
- func (o *ListNotificationPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ListNotificationPoliciesParams) SetNames(names []string)
- func (o *ListNotificationPoliciesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListNotificationPoliciesParams) SetPageToken(pageToken *string)
- func (o *ListNotificationPoliciesParams) SetSlugs(slugs []string)
- func (o *ListNotificationPoliciesParams) SetTeamSlugs(teamSlugs []string)
- func (o *ListNotificationPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ListNotificationPoliciesParams) WithBucketSlugs(bucketSlugs []string) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithContext(ctx context.Context) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithDefaults() *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithHTTPClient(client *http.Client) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithNames(names []string) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithPageMaxSize(pageMaxSize *int64) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithPageToken(pageToken *string) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithSlugs(slugs []string) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithTeamSlugs(teamSlugs []string) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WithTimeout(timeout time.Duration) *ListNotificationPoliciesParams
- func (o *ListNotificationPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListNotificationPoliciesReader
- type ReadNotificationPolicyDefault
- func (o *ReadNotificationPolicyDefault) Code() int
- func (o *ReadNotificationPolicyDefault) Error() string
- func (o *ReadNotificationPolicyDefault) GetPayload() models.GenericError
- func (o *ReadNotificationPolicyDefault) IsClientError() bool
- func (o *ReadNotificationPolicyDefault) IsCode(code int) bool
- func (o *ReadNotificationPolicyDefault) IsRedirect() bool
- func (o *ReadNotificationPolicyDefault) IsServerError() bool
- func (o *ReadNotificationPolicyDefault) IsSuccess() bool
- func (o *ReadNotificationPolicyDefault) String() string
- type ReadNotificationPolicyInternalServerError
- func (o *ReadNotificationPolicyInternalServerError) Code() int
- func (o *ReadNotificationPolicyInternalServerError) Error() string
- func (o *ReadNotificationPolicyInternalServerError) GetPayload() *models.APIError
- func (o *ReadNotificationPolicyInternalServerError) IsClientError() bool
- func (o *ReadNotificationPolicyInternalServerError) IsCode(code int) bool
- func (o *ReadNotificationPolicyInternalServerError) IsRedirect() bool
- func (o *ReadNotificationPolicyInternalServerError) IsServerError() bool
- func (o *ReadNotificationPolicyInternalServerError) IsSuccess() bool
- func (o *ReadNotificationPolicyInternalServerError) String() string
- type ReadNotificationPolicyNotFound
- func (o *ReadNotificationPolicyNotFound) Code() int
- func (o *ReadNotificationPolicyNotFound) Error() string
- func (o *ReadNotificationPolicyNotFound) GetPayload() *models.APIError
- func (o *ReadNotificationPolicyNotFound) IsClientError() bool
- func (o *ReadNotificationPolicyNotFound) IsCode(code int) bool
- func (o *ReadNotificationPolicyNotFound) IsRedirect() bool
- func (o *ReadNotificationPolicyNotFound) IsServerError() bool
- func (o *ReadNotificationPolicyNotFound) IsSuccess() bool
- func (o *ReadNotificationPolicyNotFound) String() string
- type ReadNotificationPolicyOK
- func (o *ReadNotificationPolicyOK) Code() int
- func (o *ReadNotificationPolicyOK) Error() string
- func (o *ReadNotificationPolicyOK) GetPayload() *models.Configv1ReadNotificationPolicyResponse
- func (o *ReadNotificationPolicyOK) IsClientError() bool
- func (o *ReadNotificationPolicyOK) IsCode(code int) bool
- func (o *ReadNotificationPolicyOK) IsRedirect() bool
- func (o *ReadNotificationPolicyOK) IsServerError() bool
- func (o *ReadNotificationPolicyOK) IsSuccess() bool
- func (o *ReadNotificationPolicyOK) String() string
- type ReadNotificationPolicyParams
- func NewReadNotificationPolicyParams() *ReadNotificationPolicyParams
- func NewReadNotificationPolicyParamsWithContext(ctx context.Context) *ReadNotificationPolicyParams
- func NewReadNotificationPolicyParamsWithHTTPClient(client *http.Client) *ReadNotificationPolicyParams
- func NewReadNotificationPolicyParamsWithTimeout(timeout time.Duration) *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) SetContext(ctx context.Context)
- func (o *ReadNotificationPolicyParams) SetDefaults()
- func (o *ReadNotificationPolicyParams) SetHTTPClient(client *http.Client)
- func (o *ReadNotificationPolicyParams) SetSlug(slug string)
- func (o *ReadNotificationPolicyParams) SetTimeout(timeout time.Duration)
- func (o *ReadNotificationPolicyParams) WithContext(ctx context.Context) *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) WithDefaults() *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) WithHTTPClient(client *http.Client) *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) WithSlug(slug string) *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) WithTimeout(timeout time.Duration) *ReadNotificationPolicyParams
- func (o *ReadNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadNotificationPolicyReader
- type UpdateNotificationPolicyBadRequest
- func (o *UpdateNotificationPolicyBadRequest) Code() int
- func (o *UpdateNotificationPolicyBadRequest) Error() string
- func (o *UpdateNotificationPolicyBadRequest) GetPayload() *models.APIError
- func (o *UpdateNotificationPolicyBadRequest) IsClientError() bool
- func (o *UpdateNotificationPolicyBadRequest) IsCode(code int) bool
- func (o *UpdateNotificationPolicyBadRequest) IsRedirect() bool
- func (o *UpdateNotificationPolicyBadRequest) IsServerError() bool
- func (o *UpdateNotificationPolicyBadRequest) IsSuccess() bool
- func (o *UpdateNotificationPolicyBadRequest) String() string
- type UpdateNotificationPolicyBody
- func (o *UpdateNotificationPolicyBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateNotificationPolicyBody) MarshalBinary() ([]byte, error)
- func (o *UpdateNotificationPolicyBody) UnmarshalBinary(b []byte) error
- func (o *UpdateNotificationPolicyBody) Validate(formats strfmt.Registry) error
- type UpdateNotificationPolicyConflict
- func (o *UpdateNotificationPolicyConflict) Code() int
- func (o *UpdateNotificationPolicyConflict) Error() string
- func (o *UpdateNotificationPolicyConflict) GetPayload() *models.APIError
- func (o *UpdateNotificationPolicyConflict) IsClientError() bool
- func (o *UpdateNotificationPolicyConflict) IsCode(code int) bool
- func (o *UpdateNotificationPolicyConflict) IsRedirect() bool
- func (o *UpdateNotificationPolicyConflict) IsServerError() bool
- func (o *UpdateNotificationPolicyConflict) IsSuccess() bool
- func (o *UpdateNotificationPolicyConflict) String() string
- type UpdateNotificationPolicyDefault
- func (o *UpdateNotificationPolicyDefault) Code() int
- func (o *UpdateNotificationPolicyDefault) Error() string
- func (o *UpdateNotificationPolicyDefault) GetPayload() models.GenericError
- func (o *UpdateNotificationPolicyDefault) IsClientError() bool
- func (o *UpdateNotificationPolicyDefault) IsCode(code int) bool
- func (o *UpdateNotificationPolicyDefault) IsRedirect() bool
- func (o *UpdateNotificationPolicyDefault) IsServerError() bool
- func (o *UpdateNotificationPolicyDefault) IsSuccess() bool
- func (o *UpdateNotificationPolicyDefault) String() string
- type UpdateNotificationPolicyInternalServerError
- func (o *UpdateNotificationPolicyInternalServerError) Code() int
- func (o *UpdateNotificationPolicyInternalServerError) Error() string
- func (o *UpdateNotificationPolicyInternalServerError) GetPayload() *models.APIError
- func (o *UpdateNotificationPolicyInternalServerError) IsClientError() bool
- func (o *UpdateNotificationPolicyInternalServerError) IsCode(code int) bool
- func (o *UpdateNotificationPolicyInternalServerError) IsRedirect() bool
- func (o *UpdateNotificationPolicyInternalServerError) IsServerError() bool
- func (o *UpdateNotificationPolicyInternalServerError) IsSuccess() bool
- func (o *UpdateNotificationPolicyInternalServerError) String() string
- type UpdateNotificationPolicyNotFound
- func (o *UpdateNotificationPolicyNotFound) Code() int
- func (o *UpdateNotificationPolicyNotFound) Error() string
- func (o *UpdateNotificationPolicyNotFound) GetPayload() *models.APIError
- func (o *UpdateNotificationPolicyNotFound) IsClientError() bool
- func (o *UpdateNotificationPolicyNotFound) IsCode(code int) bool
- func (o *UpdateNotificationPolicyNotFound) IsRedirect() bool
- func (o *UpdateNotificationPolicyNotFound) IsServerError() bool
- func (o *UpdateNotificationPolicyNotFound) IsSuccess() bool
- func (o *UpdateNotificationPolicyNotFound) String() string
- type UpdateNotificationPolicyOK
- func (o *UpdateNotificationPolicyOK) Code() int
- func (o *UpdateNotificationPolicyOK) Error() string
- func (o *UpdateNotificationPolicyOK) GetPayload() *models.Configv1UpdateNotificationPolicyResponse
- func (o *UpdateNotificationPolicyOK) IsClientError() bool
- func (o *UpdateNotificationPolicyOK) IsCode(code int) bool
- func (o *UpdateNotificationPolicyOK) IsRedirect() bool
- func (o *UpdateNotificationPolicyOK) IsServerError() bool
- func (o *UpdateNotificationPolicyOK) IsSuccess() bool
- func (o *UpdateNotificationPolicyOK) String() string
- type UpdateNotificationPolicyParams
- func NewUpdateNotificationPolicyParams() *UpdateNotificationPolicyParams
- func NewUpdateNotificationPolicyParamsWithContext(ctx context.Context) *UpdateNotificationPolicyParams
- func NewUpdateNotificationPolicyParamsWithHTTPClient(client *http.Client) *UpdateNotificationPolicyParams
- func NewUpdateNotificationPolicyParamsWithTimeout(timeout time.Duration) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) SetBody(body UpdateNotificationPolicyBody)
- func (o *UpdateNotificationPolicyParams) SetContext(ctx context.Context)
- func (o *UpdateNotificationPolicyParams) SetDefaults()
- func (o *UpdateNotificationPolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNotificationPolicyParams) SetSlug(slug string)
- func (o *UpdateNotificationPolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNotificationPolicyParams) WithBody(body UpdateNotificationPolicyBody) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WithContext(ctx context.Context) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WithDefaults() *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WithHTTPClient(client *http.Client) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WithSlug(slug string) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WithTimeout(timeout time.Duration) *UpdateNotificationPolicyParams
- func (o *UpdateNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNotificationPolicyReader
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 ¶
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 ¶
func (o *CreateNotificationPolicyBadRequest) Code() int
Code gets the status code for the create notification policy bad request response
func (*CreateNotificationPolicyBadRequest) Error ¶
func (o *CreateNotificationPolicyBadRequest) Error() string
func (*CreateNotificationPolicyBadRequest) GetPayload ¶
func (o *CreateNotificationPolicyBadRequest) GetPayload() *models.APIError
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 ¶
func (o *CreateNotificationPolicyBadRequest) IsCode(code int) bool
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 ¶
func (o *CreateNotificationPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this create notification policy bad request response has a 2xx status code
func (*CreateNotificationPolicyBadRequest) String ¶
func (o *CreateNotificationPolicyBadRequest) String() string
type CreateNotificationPolicyConflict ¶
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 ¶
func (o *CreateNotificationPolicyConflict) Code() int
Code gets the status code for the create notification policy conflict response
func (*CreateNotificationPolicyConflict) Error ¶
func (o *CreateNotificationPolicyConflict) Error() string
func (*CreateNotificationPolicyConflict) GetPayload ¶
func (o *CreateNotificationPolicyConflict) GetPayload() *models.APIError
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 ¶
func (o *CreateNotificationPolicyConflict) String() 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 ¶
func (o *CreateNotificationPolicyDefault) Code() int
Code gets the status code for the create notification policy default response
func (*CreateNotificationPolicyDefault) Error ¶
func (o *CreateNotificationPolicyDefault) Error() string
func (*CreateNotificationPolicyDefault) GetPayload ¶
func (o *CreateNotificationPolicyDefault) GetPayload() models.GenericError
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 ¶
func (o *CreateNotificationPolicyDefault) String() string
type CreateNotificationPolicyInternalServerError ¶
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 ¶
func (o *CreateNotificationPolicyInternalServerError) Code() int
Code gets the status code for the create notification policy internal server error response
func (*CreateNotificationPolicyInternalServerError) Error ¶
func (o *CreateNotificationPolicyInternalServerError) Error() string
func (*CreateNotificationPolicyInternalServerError) GetPayload ¶
func (o *CreateNotificationPolicyInternalServerError) GetPayload() *models.APIError
func (*CreateNotificationPolicyInternalServerError) IsClientError ¶
func (o *CreateNotificationPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this create notification policy internal server error response has a 4xx status code
func (*CreateNotificationPolicyInternalServerError) IsCode ¶
func (o *CreateNotificationPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this create notification policy internal server error response a status code equal to that given
func (*CreateNotificationPolicyInternalServerError) IsRedirect ¶
func (o *CreateNotificationPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this create notification policy internal server error response has a 3xx status code
func (*CreateNotificationPolicyInternalServerError) IsServerError ¶
func (o *CreateNotificationPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this create notification policy internal server error response has a 5xx status code
func (*CreateNotificationPolicyInternalServerError) IsSuccess ¶
func (o *CreateNotificationPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this create notification policy internal server error response has a 2xx status code
func (*CreateNotificationPolicyInternalServerError) String ¶
func (o *CreateNotificationPolicyInternalServerError) String() 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 (o *CreateNotificationPolicyOK) Error() string
func (*CreateNotificationPolicyOK) GetPayload ¶
func (o *CreateNotificationPolicyOK) GetPayload() *models.Configv1CreateNotificationPolicyResponse
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 ¶
func (o *CreateNotificationPolicyParams) SetBody(body *models.Configv1CreateNotificationPolicyRequest)
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 ¶
func (o *CreateNotificationPolicyParams) WithBody(body *models.Configv1CreateNotificationPolicyRequest) *CreateNotificationPolicyParams
WithBody adds the body to the create notification policy params
func (*CreateNotificationPolicyParams) WithContext ¶
func (o *CreateNotificationPolicyParams) WithContext(ctx context.Context) *CreateNotificationPolicyParams
WithContext adds the context to the create notification policy params
func (*CreateNotificationPolicyParams) WithDefaults ¶
func (o *CreateNotificationPolicyParams) WithDefaults() *CreateNotificationPolicyParams
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 ¶
func (o *CreateNotificationPolicyParams) WithHTTPClient(client *http.Client) *CreateNotificationPolicyParams
WithHTTPClient adds the HTTPClient to the create notification policy params
func (*CreateNotificationPolicyParams) WithTimeout ¶
func (o *CreateNotificationPolicyParams) WithTimeout(timeout time.Duration) *CreateNotificationPolicyParams
WithTimeout adds the timeout to the create notification policy params
func (*CreateNotificationPolicyParams) WriteToRequest ¶
func (o *CreateNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *DeleteNotificationPolicyBadRequest) Code() int
Code gets the status code for the delete notification policy bad request response
func (*DeleteNotificationPolicyBadRequest) Error ¶
func (o *DeleteNotificationPolicyBadRequest) Error() string
func (*DeleteNotificationPolicyBadRequest) GetPayload ¶
func (o *DeleteNotificationPolicyBadRequest) GetPayload() *models.APIError
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 ¶
func (o *DeleteNotificationPolicyBadRequest) IsCode(code int) bool
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 ¶
func (o *DeleteNotificationPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this delete notification policy bad request response has a 2xx status code
func (*DeleteNotificationPolicyBadRequest) String ¶
func (o *DeleteNotificationPolicyBadRequest) String() 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 ¶
func (o *DeleteNotificationPolicyDefault) Code() int
Code gets the status code for the delete notification policy default response
func (*DeleteNotificationPolicyDefault) Error ¶
func (o *DeleteNotificationPolicyDefault) Error() string
func (*DeleteNotificationPolicyDefault) GetPayload ¶
func (o *DeleteNotificationPolicyDefault) GetPayload() models.GenericError
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 ¶
func (o *DeleteNotificationPolicyDefault) String() string
type DeleteNotificationPolicyInternalServerError ¶
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 ¶
func (o *DeleteNotificationPolicyInternalServerError) Code() int
Code gets the status code for the delete notification policy internal server error response
func (*DeleteNotificationPolicyInternalServerError) Error ¶
func (o *DeleteNotificationPolicyInternalServerError) Error() string
func (*DeleteNotificationPolicyInternalServerError) GetPayload ¶
func (o *DeleteNotificationPolicyInternalServerError) GetPayload() *models.APIError
func (*DeleteNotificationPolicyInternalServerError) IsClientError ¶
func (o *DeleteNotificationPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this delete notification policy internal server error response has a 4xx status code
func (*DeleteNotificationPolicyInternalServerError) IsCode ¶
func (o *DeleteNotificationPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this delete notification policy internal server error response a status code equal to that given
func (*DeleteNotificationPolicyInternalServerError) IsRedirect ¶
func (o *DeleteNotificationPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete notification policy internal server error response has a 3xx status code
func (*DeleteNotificationPolicyInternalServerError) IsServerError ¶
func (o *DeleteNotificationPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this delete notification policy internal server error response has a 5xx status code
func (*DeleteNotificationPolicyInternalServerError) IsSuccess ¶
func (o *DeleteNotificationPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete notification policy internal server error response has a 2xx status code
func (*DeleteNotificationPolicyInternalServerError) String ¶
func (o *DeleteNotificationPolicyInternalServerError) String() string
type DeleteNotificationPolicyNotFound ¶
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 ¶
func (o *DeleteNotificationPolicyNotFound) Code() int
Code gets the status code for the delete notification policy not found response
func (*DeleteNotificationPolicyNotFound) Error ¶
func (o *DeleteNotificationPolicyNotFound) Error() string
func (*DeleteNotificationPolicyNotFound) GetPayload ¶
func (o *DeleteNotificationPolicyNotFound) GetPayload() *models.APIError
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 ¶
func (o *DeleteNotificationPolicyNotFound) String() 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 (o *DeleteNotificationPolicyOK) Error() string
func (*DeleteNotificationPolicyOK) GetPayload ¶
func (o *DeleteNotificationPolicyOK) GetPayload() models.Configv1DeleteNotificationPolicyResponse
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 ¶
func (o *DeleteNotificationPolicyParams) WithContext(ctx context.Context) *DeleteNotificationPolicyParams
WithContext adds the context to the delete notification policy params
func (*DeleteNotificationPolicyParams) WithDefaults ¶
func (o *DeleteNotificationPolicyParams) WithDefaults() *DeleteNotificationPolicyParams
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 ¶
func (o *DeleteNotificationPolicyParams) WithHTTPClient(client *http.Client) *DeleteNotificationPolicyParams
WithHTTPClient adds the HTTPClient to the delete notification policy params
func (*DeleteNotificationPolicyParams) WithSlug ¶
func (o *DeleteNotificationPolicyParams) WithSlug(slug string) *DeleteNotificationPolicyParams
WithSlug adds the slug to the delete notification policy params
func (*DeleteNotificationPolicyParams) WithTimeout ¶
func (o *DeleteNotificationPolicyParams) WithTimeout(timeout time.Duration) *DeleteNotificationPolicyParams
WithTimeout adds the timeout to the delete notification policy params
func (*DeleteNotificationPolicyParams) WriteToRequest ¶
func (o *DeleteNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListNotificationPoliciesDefault) Code() int
Code gets the status code for the list notification policies default response
func (*ListNotificationPoliciesDefault) Error ¶
func (o *ListNotificationPoliciesDefault) Error() string
func (*ListNotificationPoliciesDefault) GetPayload ¶
func (o *ListNotificationPoliciesDefault) GetPayload() models.GenericError
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 ¶
func (o *ListNotificationPoliciesDefault) String() string
type ListNotificationPoliciesInternalServerError ¶
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 ¶
func (o *ListNotificationPoliciesInternalServerError) Code() int
Code gets the status code for the list notification policies internal server error response
func (*ListNotificationPoliciesInternalServerError) Error ¶
func (o *ListNotificationPoliciesInternalServerError) Error() string
func (*ListNotificationPoliciesInternalServerError) GetPayload ¶
func (o *ListNotificationPoliciesInternalServerError) GetPayload() *models.APIError
func (*ListNotificationPoliciesInternalServerError) IsClientError ¶
func (o *ListNotificationPoliciesInternalServerError) IsClientError() bool
IsClientError returns true when this list notification policies internal server error response has a 4xx status code
func (*ListNotificationPoliciesInternalServerError) IsCode ¶
func (o *ListNotificationPoliciesInternalServerError) IsCode(code int) bool
IsCode returns true when this list notification policies internal server error response a status code equal to that given
func (*ListNotificationPoliciesInternalServerError) IsRedirect ¶
func (o *ListNotificationPoliciesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list notification policies internal server error response has a 3xx status code
func (*ListNotificationPoliciesInternalServerError) IsServerError ¶
func (o *ListNotificationPoliciesInternalServerError) IsServerError() bool
IsServerError returns true when this list notification policies internal server error response has a 5xx status code
func (*ListNotificationPoliciesInternalServerError) IsSuccess ¶
func (o *ListNotificationPoliciesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list notification policies internal server error response has a 2xx status code
func (*ListNotificationPoliciesInternalServerError) String ¶
func (o *ListNotificationPoliciesInternalServerError) String() 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 (o *ListNotificationPoliciesOK) Error() string
func (*ListNotificationPoliciesOK) GetPayload ¶
func (o *ListNotificationPoliciesOK) GetPayload() *models.Configv1ListNotificationPoliciesResponse
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 ¶
func (o *ListNotificationPoliciesParams) WithContext(ctx context.Context) *ListNotificationPoliciesParams
WithContext adds the context to the list notification policies params
func (*ListNotificationPoliciesParams) WithDefaults ¶
func (o *ListNotificationPoliciesParams) WithDefaults() *ListNotificationPoliciesParams
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 ¶
func (o *ListNotificationPoliciesParams) WithHTTPClient(client *http.Client) *ListNotificationPoliciesParams
WithHTTPClient adds the HTTPClient to the list notification policies params
func (*ListNotificationPoliciesParams) WithNames ¶
func (o *ListNotificationPoliciesParams) WithNames(names []string) *ListNotificationPoliciesParams
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 ¶
func (o *ListNotificationPoliciesParams) WithPageToken(pageToken *string) *ListNotificationPoliciesParams
WithPageToken adds the pageToken to the list notification policies params
func (*ListNotificationPoliciesParams) WithSlugs ¶
func (o *ListNotificationPoliciesParams) WithSlugs(slugs []string) *ListNotificationPoliciesParams
WithSlugs adds the slugs to the list notification policies params
func (*ListNotificationPoliciesParams) WithTeamSlugs ¶
func (o *ListNotificationPoliciesParams) WithTeamSlugs(teamSlugs []string) *ListNotificationPoliciesParams
WithTeamSlugs adds the teamSlugs to the list notification policies params
func (*ListNotificationPoliciesParams) WithTimeout ¶
func (o *ListNotificationPoliciesParams) WithTimeout(timeout time.Duration) *ListNotificationPoliciesParams
WithTimeout adds the timeout to the list notification policies params
func (*ListNotificationPoliciesParams) WriteToRequest ¶
func (o *ListNotificationPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ReadNotificationPolicyDefault) Code() int
Code gets the status code for the read notification policy default response
func (*ReadNotificationPolicyDefault) Error ¶
func (o *ReadNotificationPolicyDefault) Error() string
func (*ReadNotificationPolicyDefault) GetPayload ¶
func (o *ReadNotificationPolicyDefault) GetPayload() models.GenericError
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 ¶
func (o *ReadNotificationPolicyDefault) String() string
type ReadNotificationPolicyInternalServerError ¶
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 ¶
func (o *ReadNotificationPolicyInternalServerError) Code() int
Code gets the status code for the read notification policy internal server error response
func (*ReadNotificationPolicyInternalServerError) Error ¶
func (o *ReadNotificationPolicyInternalServerError) Error() string
func (*ReadNotificationPolicyInternalServerError) GetPayload ¶
func (o *ReadNotificationPolicyInternalServerError) GetPayload() *models.APIError
func (*ReadNotificationPolicyInternalServerError) IsClientError ¶
func (o *ReadNotificationPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this read notification policy internal server error response has a 4xx status code
func (*ReadNotificationPolicyInternalServerError) IsCode ¶
func (o *ReadNotificationPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this read notification policy internal server error response a status code equal to that given
func (*ReadNotificationPolicyInternalServerError) IsRedirect ¶
func (o *ReadNotificationPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this read notification policy internal server error response has a 3xx status code
func (*ReadNotificationPolicyInternalServerError) IsServerError ¶
func (o *ReadNotificationPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this read notification policy internal server error response has a 5xx status code
func (*ReadNotificationPolicyInternalServerError) IsSuccess ¶
func (o *ReadNotificationPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this read notification policy internal server error response has a 2xx status code
func (*ReadNotificationPolicyInternalServerError) String ¶
func (o *ReadNotificationPolicyInternalServerError) String() string
type ReadNotificationPolicyNotFound ¶
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 ¶
func (o *ReadNotificationPolicyNotFound) Code() int
Code gets the status code for the read notification policy not found response
func (*ReadNotificationPolicyNotFound) Error ¶
func (o *ReadNotificationPolicyNotFound) Error() string
func (*ReadNotificationPolicyNotFound) GetPayload ¶
func (o *ReadNotificationPolicyNotFound) GetPayload() *models.APIError
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 ¶
func (o *ReadNotificationPolicyNotFound) String() 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 (o *ReadNotificationPolicyOK) GetPayload() *models.Configv1ReadNotificationPolicyResponse
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 ¶
func (o *ReadNotificationPolicyParams) WithContext(ctx context.Context) *ReadNotificationPolicyParams
WithContext adds the context to the read notification policy params
func (*ReadNotificationPolicyParams) WithDefaults ¶
func (o *ReadNotificationPolicyParams) WithDefaults() *ReadNotificationPolicyParams
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 ¶
func (o *ReadNotificationPolicyParams) WithHTTPClient(client *http.Client) *ReadNotificationPolicyParams
WithHTTPClient adds the HTTPClient to the read notification policy params
func (*ReadNotificationPolicyParams) WithSlug ¶
func (o *ReadNotificationPolicyParams) WithSlug(slug string) *ReadNotificationPolicyParams
WithSlug adds the slug to the read notification policy params
func (*ReadNotificationPolicyParams) WithTimeout ¶
func (o *ReadNotificationPolicyParams) WithTimeout(timeout time.Duration) *ReadNotificationPolicyParams
WithTimeout adds the timeout to the read notification policy params
func (*ReadNotificationPolicyParams) WriteToRequest ¶
func (o *ReadNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *UpdateNotificationPolicyBadRequest) Code() int
Code gets the status code for the update notification policy bad request response
func (*UpdateNotificationPolicyBadRequest) Error ¶
func (o *UpdateNotificationPolicyBadRequest) Error() string
func (*UpdateNotificationPolicyBadRequest) GetPayload ¶
func (o *UpdateNotificationPolicyBadRequest) GetPayload() *models.APIError
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 ¶
func (o *UpdateNotificationPolicyBadRequest) IsCode(code int) bool
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 ¶
func (o *UpdateNotificationPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this update notification policy bad request response has a 2xx status code
func (*UpdateNotificationPolicyBadRequest) String ¶
func (o *UpdateNotificationPolicyBadRequest) String() 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
type UpdateNotificationPolicyConflict ¶
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 ¶
func (o *UpdateNotificationPolicyConflict) Code() int
Code gets the status code for the update notification policy conflict response
func (*UpdateNotificationPolicyConflict) Error ¶
func (o *UpdateNotificationPolicyConflict) Error() string
func (*UpdateNotificationPolicyConflict) GetPayload ¶
func (o *UpdateNotificationPolicyConflict) GetPayload() *models.APIError
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 ¶
func (o *UpdateNotificationPolicyConflict) String() 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 ¶
func (o *UpdateNotificationPolicyDefault) Code() int
Code gets the status code for the update notification policy default response
func (*UpdateNotificationPolicyDefault) Error ¶
func (o *UpdateNotificationPolicyDefault) Error() string
func (*UpdateNotificationPolicyDefault) GetPayload ¶
func (o *UpdateNotificationPolicyDefault) GetPayload() models.GenericError
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 ¶
func (o *UpdateNotificationPolicyDefault) String() string
type UpdateNotificationPolicyInternalServerError ¶
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 ¶
func (o *UpdateNotificationPolicyInternalServerError) Code() int
Code gets the status code for the update notification policy internal server error response
func (*UpdateNotificationPolicyInternalServerError) Error ¶
func (o *UpdateNotificationPolicyInternalServerError) Error() string
func (*UpdateNotificationPolicyInternalServerError) GetPayload ¶
func (o *UpdateNotificationPolicyInternalServerError) GetPayload() *models.APIError
func (*UpdateNotificationPolicyInternalServerError) IsClientError ¶
func (o *UpdateNotificationPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this update notification policy internal server error response has a 4xx status code
func (*UpdateNotificationPolicyInternalServerError) IsCode ¶
func (o *UpdateNotificationPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this update notification policy internal server error response a status code equal to that given
func (*UpdateNotificationPolicyInternalServerError) IsRedirect ¶
func (o *UpdateNotificationPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this update notification policy internal server error response has a 3xx status code
func (*UpdateNotificationPolicyInternalServerError) IsServerError ¶
func (o *UpdateNotificationPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this update notification policy internal server error response has a 5xx status code
func (*UpdateNotificationPolicyInternalServerError) IsSuccess ¶
func (o *UpdateNotificationPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this update notification policy internal server error response has a 2xx status code
func (*UpdateNotificationPolicyInternalServerError) String ¶
func (o *UpdateNotificationPolicyInternalServerError) String() string
type UpdateNotificationPolicyNotFound ¶
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 ¶
func (o *UpdateNotificationPolicyNotFound) Code() int
Code gets the status code for the update notification policy not found response
func (*UpdateNotificationPolicyNotFound) Error ¶
func (o *UpdateNotificationPolicyNotFound) Error() string
func (*UpdateNotificationPolicyNotFound) GetPayload ¶
func (o *UpdateNotificationPolicyNotFound) GetPayload() *models.APIError
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 ¶
func (o *UpdateNotificationPolicyNotFound) String() 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 (o *UpdateNotificationPolicyOK) Error() string
func (*UpdateNotificationPolicyOK) GetPayload ¶
func (o *UpdateNotificationPolicyOK) GetPayload() *models.Configv1UpdateNotificationPolicyResponse
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 ¶
func (o *UpdateNotificationPolicyParams) SetBody(body UpdateNotificationPolicyBody)
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 ¶
func (o *UpdateNotificationPolicyParams) WithBody(body UpdateNotificationPolicyBody) *UpdateNotificationPolicyParams
WithBody adds the body to the update notification policy params
func (*UpdateNotificationPolicyParams) WithContext ¶
func (o *UpdateNotificationPolicyParams) WithContext(ctx context.Context) *UpdateNotificationPolicyParams
WithContext adds the context to the update notification policy params
func (*UpdateNotificationPolicyParams) WithDefaults ¶
func (o *UpdateNotificationPolicyParams) WithDefaults() *UpdateNotificationPolicyParams
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 ¶
func (o *UpdateNotificationPolicyParams) WithHTTPClient(client *http.Client) *UpdateNotificationPolicyParams
WithHTTPClient adds the HTTPClient to the update notification policy params
func (*UpdateNotificationPolicyParams) WithSlug ¶
func (o *UpdateNotificationPolicyParams) WithSlug(slug string) *UpdateNotificationPolicyParams
WithSlug adds the slug to the update notification policy params
func (*UpdateNotificationPolicyParams) WithTimeout ¶
func (o *UpdateNotificationPolicyParams) WithTimeout(timeout time.Duration) *UpdateNotificationPolicyParams
WithTimeout adds the timeout to the update notification policy params
func (*UpdateNotificationPolicyParams) WriteToRequest ¶
func (o *UpdateNotificationPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_notification_policy_parameters.go
- create_notification_policy_responses.go
- delete_notification_policy_parameters.go
- delete_notification_policy_responses.go
- list_notification_policies_parameters.go
- list_notification_policies_responses.go
- notification_policy_client.go
- read_notification_policy_parameters.go
- read_notification_policy_responses.go
- update_notification_policy_parameters.go
- update_notification_policy_responses.go