webhooks

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for webhooks API

func (*Client) CreateWebhook

func (a *Client) CreateWebhook(params *CreateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWebhookCreated, error)

CreateWebhook creates a webhook

Creates a webhook

func (*Client) DeleteWebhook

func (a *Client) DeleteWebhook(params *DeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWebhookNoContent, error)

DeleteWebhook deletes webhook

Deletes the Webhook.

func (*Client) GetWebhook

func (a *Client) GetWebhook(params *GetWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWebhookOK, error)

GetWebhook gets webhook

Returns a Webhook and its content.

func (*Client) ListServerWebhooks

func (a *Client) ListServerWebhooks(params *ListServerWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServerWebhooksOK, error)

ListServerWebhooks lists webhooks

Returns list of webhooks for server

func (*Client) ListWebhookEvents

func (a *Client) ListWebhookEvents(params *ListWebhookEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWebhookEventsOK, error)

ListWebhookEvents lists available events for a webhook

Returns list of events that can be used with webhooks

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateWebhook

func (a *Client) UpdateWebhook(params *UpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWebhookOK, error)

UpdateWebhook updates a webhook

Updates an existing Webhook

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateWebhook(params *CreateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWebhookCreated, error)

	DeleteWebhook(params *DeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWebhookNoContent, error)

	GetWebhook(params *GetWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWebhookOK, error)

	ListServerWebhooks(params *ListServerWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServerWebhooksOK, error)

	ListWebhookEvents(params *ListWebhookEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWebhookEventsOK, error)

	UpdateWebhook(params *UpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWebhookOK, 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 webhooks API client.

type CreateWebhookBadRequest

type CreateWebhookBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewCreateWebhookBadRequest

func NewCreateWebhookBadRequest() *CreateWebhookBadRequest

NewCreateWebhookBadRequest creates a CreateWebhookBadRequest with default headers values

func (*CreateWebhookBadRequest) Code

func (o *CreateWebhookBadRequest) Code() int

Code gets the status code for the create webhook bad request response

func (*CreateWebhookBadRequest) Error

func (o *CreateWebhookBadRequest) Error() string

func (*CreateWebhookBadRequest) GetPayload

func (o *CreateWebhookBadRequest) GetPayload() *models.Error

func (*CreateWebhookBadRequest) IsClientError

func (o *CreateWebhookBadRequest) IsClientError() bool

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

func (*CreateWebhookBadRequest) IsCode

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

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

func (*CreateWebhookBadRequest) IsRedirect

func (o *CreateWebhookBadRequest) IsRedirect() bool

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

func (*CreateWebhookBadRequest) IsServerError

func (o *CreateWebhookBadRequest) IsServerError() bool

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

func (*CreateWebhookBadRequest) IsSuccess

func (o *CreateWebhookBadRequest) IsSuccess() bool

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

func (*CreateWebhookBadRequest) String

func (o *CreateWebhookBadRequest) String() string

type CreateWebhookCreated

type CreateWebhookCreated struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WebhookOnCreateResponse
}

CreateWebhookCreated describes a response with status code 201, with default header values.

Webhook on create response

func NewCreateWebhookCreated

func NewCreateWebhookCreated() *CreateWebhookCreated

NewCreateWebhookCreated creates a CreateWebhookCreated with default headers values

func (*CreateWebhookCreated) Code

func (o *CreateWebhookCreated) Code() int

Code gets the status code for the create webhook created response

func (*CreateWebhookCreated) Error

func (o *CreateWebhookCreated) Error() string

func (*CreateWebhookCreated) GetPayload

func (*CreateWebhookCreated) IsClientError

func (o *CreateWebhookCreated) IsClientError() bool

IsClientError returns true when this create webhook created response has a 4xx status code

func (*CreateWebhookCreated) IsCode

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

IsCode returns true when this create webhook created response a status code equal to that given

func (*CreateWebhookCreated) IsRedirect

func (o *CreateWebhookCreated) IsRedirect() bool

IsRedirect returns true when this create webhook created response has a 3xx status code

func (*CreateWebhookCreated) IsServerError

func (o *CreateWebhookCreated) IsServerError() bool

IsServerError returns true when this create webhook created response has a 5xx status code

func (*CreateWebhookCreated) IsSuccess

func (o *CreateWebhookCreated) IsSuccess() bool

IsSuccess returns true when this create webhook created response has a 2xx status code

func (*CreateWebhookCreated) String

func (o *CreateWebhookCreated) String() string

type CreateWebhookForbidden

type CreateWebhookForbidden struct {
	Payload *models.Error
}

CreateWebhookForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateWebhookForbidden

func NewCreateWebhookForbidden() *CreateWebhookForbidden

NewCreateWebhookForbidden creates a CreateWebhookForbidden with default headers values

func (*CreateWebhookForbidden) Code

func (o *CreateWebhookForbidden) Code() int

Code gets the status code for the create webhook forbidden response

func (*CreateWebhookForbidden) Error

func (o *CreateWebhookForbidden) Error() string

func (*CreateWebhookForbidden) GetPayload

func (o *CreateWebhookForbidden) GetPayload() *models.Error

func (*CreateWebhookForbidden) IsClientError

func (o *CreateWebhookForbidden) IsClientError() bool

IsClientError returns true when this create webhook forbidden response has a 4xx status code

func (*CreateWebhookForbidden) IsCode

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

IsCode returns true when this create webhook forbidden response a status code equal to that given

func (*CreateWebhookForbidden) IsRedirect

func (o *CreateWebhookForbidden) IsRedirect() bool

IsRedirect returns true when this create webhook forbidden response has a 3xx status code

func (*CreateWebhookForbidden) IsServerError

func (o *CreateWebhookForbidden) IsServerError() bool

IsServerError returns true when this create webhook forbidden response has a 5xx status code

func (*CreateWebhookForbidden) IsSuccess

func (o *CreateWebhookForbidden) IsSuccess() bool

IsSuccess returns true when this create webhook forbidden response has a 2xx status code

func (*CreateWebhookForbidden) String

func (o *CreateWebhookForbidden) String() string

type CreateWebhookNotFound

type CreateWebhookNotFound struct {
	Payload *models.Error
}

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

Not found

func NewCreateWebhookNotFound

func NewCreateWebhookNotFound() *CreateWebhookNotFound

NewCreateWebhookNotFound creates a CreateWebhookNotFound with default headers values

func (*CreateWebhookNotFound) Code

func (o *CreateWebhookNotFound) Code() int

Code gets the status code for the create webhook not found response

func (*CreateWebhookNotFound) Error

func (o *CreateWebhookNotFound) Error() string

func (*CreateWebhookNotFound) GetPayload

func (o *CreateWebhookNotFound) GetPayload() *models.Error

func (*CreateWebhookNotFound) IsClientError

func (o *CreateWebhookNotFound) IsClientError() bool

IsClientError returns true when this create webhook not found response has a 4xx status code

func (*CreateWebhookNotFound) IsCode

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

IsCode returns true when this create webhook not found response a status code equal to that given

func (*CreateWebhookNotFound) IsRedirect

func (o *CreateWebhookNotFound) IsRedirect() bool

IsRedirect returns true when this create webhook not found response has a 3xx status code

func (*CreateWebhookNotFound) IsServerError

func (o *CreateWebhookNotFound) IsServerError() bool

IsServerError returns true when this create webhook not found response has a 5xx status code

func (*CreateWebhookNotFound) IsSuccess

func (o *CreateWebhookNotFound) IsSuccess() bool

IsSuccess returns true when this create webhook not found response has a 2xx status code

func (*CreateWebhookNotFound) String

func (o *CreateWebhookNotFound) String() string

type CreateWebhookParams

type CreateWebhookParams struct {

	// Webhook.
	Webhook *models.Webhook

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

CreateWebhookParams contains all the parameters to send to the API endpoint

for the create webhook operation.

Typically these are written to a http.Request.

func NewCreateWebhookParams

func NewCreateWebhookParams() *CreateWebhookParams

NewCreateWebhookParams creates a new CreateWebhookParams 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 NewCreateWebhookParamsWithContext

func NewCreateWebhookParamsWithContext(ctx context.Context) *CreateWebhookParams

NewCreateWebhookParamsWithContext creates a new CreateWebhookParams object with the ability to set a context for a request.

func NewCreateWebhookParamsWithHTTPClient

func NewCreateWebhookParamsWithHTTPClient(client *http.Client) *CreateWebhookParams

NewCreateWebhookParamsWithHTTPClient creates a new CreateWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewCreateWebhookParamsWithTimeout

func NewCreateWebhookParamsWithTimeout(timeout time.Duration) *CreateWebhookParams

NewCreateWebhookParamsWithTimeout creates a new CreateWebhookParams object with the ability to set a timeout on a request.

func (*CreateWebhookParams) SetContext

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

SetContext adds the context to the create webhook params

func (*CreateWebhookParams) SetDefaults

func (o *CreateWebhookParams) SetDefaults()

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

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

func (*CreateWebhookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create webhook params

func (*CreateWebhookParams) SetIfMatch

func (o *CreateWebhookParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the create webhook params

func (*CreateWebhookParams) SetTimeout

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

SetTimeout adds the timeout to the create webhook params

func (*CreateWebhookParams) SetWebhook

func (o *CreateWebhookParams) SetWebhook(webhook *models.Webhook)

SetWebhook adds the webhook to the create webhook params

func (*CreateWebhookParams) SetWid

func (o *CreateWebhookParams) SetWid(wid string)

SetWid adds the wid to the create webhook params

func (*CreateWebhookParams) WithContext

WithContext adds the context to the create webhook params

func (*CreateWebhookParams) WithDefaults

func (o *CreateWebhookParams) WithDefaults() *CreateWebhookParams

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

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

func (*CreateWebhookParams) WithHTTPClient

func (o *CreateWebhookParams) WithHTTPClient(client *http.Client) *CreateWebhookParams

WithHTTPClient adds the HTTPClient to the create webhook params

func (*CreateWebhookParams) WithIfMatch

func (o *CreateWebhookParams) WithIfMatch(ifMatch *string) *CreateWebhookParams

WithIfMatch adds the ifMatch to the create webhook params

func (*CreateWebhookParams) WithTimeout

func (o *CreateWebhookParams) WithTimeout(timeout time.Duration) *CreateWebhookParams

WithTimeout adds the timeout to the create webhook params

func (*CreateWebhookParams) WithWebhook

func (o *CreateWebhookParams) WithWebhook(webhook *models.Webhook) *CreateWebhookParams

WithWebhook adds the webhook to the create webhook params

func (*CreateWebhookParams) WithWid

WithWid adds the wid to the create webhook params

func (*CreateWebhookParams) WriteToRequest

func (o *CreateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateWebhookReader

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

CreateWebhookReader is a Reader for the CreateWebhook structure.

func (*CreateWebhookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateWebhookTooManyRequests

type CreateWebhookTooManyRequests struct {
	Payload *models.Error
}

CreateWebhookTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewCreateWebhookTooManyRequests

func NewCreateWebhookTooManyRequests() *CreateWebhookTooManyRequests

NewCreateWebhookTooManyRequests creates a CreateWebhookTooManyRequests with default headers values

func (*CreateWebhookTooManyRequests) Code

Code gets the status code for the create webhook too many requests response

func (*CreateWebhookTooManyRequests) Error

func (*CreateWebhookTooManyRequests) GetPayload

func (o *CreateWebhookTooManyRequests) GetPayload() *models.Error

func (*CreateWebhookTooManyRequests) IsClientError

func (o *CreateWebhookTooManyRequests) IsClientError() bool

IsClientError returns true when this create webhook too many requests response has a 4xx status code

func (*CreateWebhookTooManyRequests) IsCode

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

IsCode returns true when this create webhook too many requests response a status code equal to that given

func (*CreateWebhookTooManyRequests) IsRedirect

func (o *CreateWebhookTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create webhook too many requests response has a 3xx status code

func (*CreateWebhookTooManyRequests) IsServerError

func (o *CreateWebhookTooManyRequests) IsServerError() bool

IsServerError returns true when this create webhook too many requests response has a 5xx status code

func (*CreateWebhookTooManyRequests) IsSuccess

func (o *CreateWebhookTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create webhook too many requests response has a 2xx status code

func (*CreateWebhookTooManyRequests) String

type CreateWebhookUnauthorized

type CreateWebhookUnauthorized struct {
	Payload *models.Error
}

CreateWebhookUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateWebhookUnauthorized

func NewCreateWebhookUnauthorized() *CreateWebhookUnauthorized

NewCreateWebhookUnauthorized creates a CreateWebhookUnauthorized with default headers values

func (*CreateWebhookUnauthorized) Code

func (o *CreateWebhookUnauthorized) Code() int

Code gets the status code for the create webhook unauthorized response

func (*CreateWebhookUnauthorized) Error

func (o *CreateWebhookUnauthorized) Error() string

func (*CreateWebhookUnauthorized) GetPayload

func (o *CreateWebhookUnauthorized) GetPayload() *models.Error

func (*CreateWebhookUnauthorized) IsClientError

func (o *CreateWebhookUnauthorized) IsClientError() bool

IsClientError returns true when this create webhook unauthorized response has a 4xx status code

func (*CreateWebhookUnauthorized) IsCode

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

IsCode returns true when this create webhook unauthorized response a status code equal to that given

func (*CreateWebhookUnauthorized) IsRedirect

func (o *CreateWebhookUnauthorized) IsRedirect() bool

IsRedirect returns true when this create webhook unauthorized response has a 3xx status code

func (*CreateWebhookUnauthorized) IsServerError

func (o *CreateWebhookUnauthorized) IsServerError() bool

IsServerError returns true when this create webhook unauthorized response has a 5xx status code

func (*CreateWebhookUnauthorized) IsSuccess

func (o *CreateWebhookUnauthorized) IsSuccess() bool

IsSuccess returns true when this create webhook unauthorized response has a 2xx status code

func (*CreateWebhookUnauthorized) String

func (o *CreateWebhookUnauthorized) String() string

type CreateWebhookUnprocessableEntity

type CreateWebhookUnprocessableEntity struct {
	Payload *models.Error
}

CreateWebhookUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewCreateWebhookUnprocessableEntity

func NewCreateWebhookUnprocessableEntity() *CreateWebhookUnprocessableEntity

NewCreateWebhookUnprocessableEntity creates a CreateWebhookUnprocessableEntity with default headers values

func (*CreateWebhookUnprocessableEntity) Code

Code gets the status code for the create webhook unprocessable entity response

func (*CreateWebhookUnprocessableEntity) Error

func (*CreateWebhookUnprocessableEntity) GetPayload

func (*CreateWebhookUnprocessableEntity) IsClientError

func (o *CreateWebhookUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create webhook unprocessable entity response has a 4xx status code

func (*CreateWebhookUnprocessableEntity) IsCode

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

IsCode returns true when this create webhook unprocessable entity response a status code equal to that given

func (*CreateWebhookUnprocessableEntity) IsRedirect

func (o *CreateWebhookUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this create webhook unprocessable entity response has a 3xx status code

func (*CreateWebhookUnprocessableEntity) IsServerError

func (o *CreateWebhookUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create webhook unprocessable entity response has a 5xx status code

func (*CreateWebhookUnprocessableEntity) IsSuccess

func (o *CreateWebhookUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this create webhook unprocessable entity response has a 2xx status code

func (*CreateWebhookUnprocessableEntity) String

type DeleteWebhookForbidden

type DeleteWebhookForbidden struct {
	Payload *models.Error
}

DeleteWebhookForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteWebhookForbidden

func NewDeleteWebhookForbidden() *DeleteWebhookForbidden

NewDeleteWebhookForbidden creates a DeleteWebhookForbidden with default headers values

func (*DeleteWebhookForbidden) Code

func (o *DeleteWebhookForbidden) Code() int

Code gets the status code for the delete webhook forbidden response

func (*DeleteWebhookForbidden) Error

func (o *DeleteWebhookForbidden) Error() string

func (*DeleteWebhookForbidden) GetPayload

func (o *DeleteWebhookForbidden) GetPayload() *models.Error

func (*DeleteWebhookForbidden) IsClientError

func (o *DeleteWebhookForbidden) IsClientError() bool

IsClientError returns true when this delete webhook forbidden response has a 4xx status code

func (*DeleteWebhookForbidden) IsCode

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

IsCode returns true when this delete webhook forbidden response a status code equal to that given

func (*DeleteWebhookForbidden) IsRedirect

func (o *DeleteWebhookForbidden) IsRedirect() bool

IsRedirect returns true when this delete webhook forbidden response has a 3xx status code

func (*DeleteWebhookForbidden) IsServerError

func (o *DeleteWebhookForbidden) IsServerError() bool

IsServerError returns true when this delete webhook forbidden response has a 5xx status code

func (*DeleteWebhookForbidden) IsSuccess

func (o *DeleteWebhookForbidden) IsSuccess() bool

IsSuccess returns true when this delete webhook forbidden response has a 2xx status code

func (*DeleteWebhookForbidden) String

func (o *DeleteWebhookForbidden) String() string

type DeleteWebhookNoContent

type DeleteWebhookNoContent struct {
}

DeleteWebhookNoContent describes a response with status code 204, with default header values.

Webhook has been deleted

func NewDeleteWebhookNoContent

func NewDeleteWebhookNoContent() *DeleteWebhookNoContent

NewDeleteWebhookNoContent creates a DeleteWebhookNoContent with default headers values

func (*DeleteWebhookNoContent) Code

func (o *DeleteWebhookNoContent) Code() int

Code gets the status code for the delete webhook no content response

func (*DeleteWebhookNoContent) Error

func (o *DeleteWebhookNoContent) Error() string

func (*DeleteWebhookNoContent) IsClientError

func (o *DeleteWebhookNoContent) IsClientError() bool

IsClientError returns true when this delete webhook no content response has a 4xx status code

func (*DeleteWebhookNoContent) IsCode

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

IsCode returns true when this delete webhook no content response a status code equal to that given

func (*DeleteWebhookNoContent) IsRedirect

func (o *DeleteWebhookNoContent) IsRedirect() bool

IsRedirect returns true when this delete webhook no content response has a 3xx status code

func (*DeleteWebhookNoContent) IsServerError

func (o *DeleteWebhookNoContent) IsServerError() bool

IsServerError returns true when this delete webhook no content response has a 5xx status code

func (*DeleteWebhookNoContent) IsSuccess

func (o *DeleteWebhookNoContent) IsSuccess() bool

IsSuccess returns true when this delete webhook no content response has a 2xx status code

func (*DeleteWebhookNoContent) String

func (o *DeleteWebhookNoContent) String() string

type DeleteWebhookNotFound

type DeleteWebhookNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteWebhookNotFound

func NewDeleteWebhookNotFound() *DeleteWebhookNotFound

NewDeleteWebhookNotFound creates a DeleteWebhookNotFound with default headers values

func (*DeleteWebhookNotFound) Code

func (o *DeleteWebhookNotFound) Code() int

Code gets the status code for the delete webhook not found response

func (*DeleteWebhookNotFound) Error

func (o *DeleteWebhookNotFound) Error() string

func (*DeleteWebhookNotFound) GetPayload

func (o *DeleteWebhookNotFound) GetPayload() *models.Error

func (*DeleteWebhookNotFound) IsClientError

func (o *DeleteWebhookNotFound) IsClientError() bool

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

func (*DeleteWebhookNotFound) IsCode

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

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

func (*DeleteWebhookNotFound) IsRedirect

func (o *DeleteWebhookNotFound) IsRedirect() bool

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

func (*DeleteWebhookNotFound) IsServerError

func (o *DeleteWebhookNotFound) IsServerError() bool

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

func (*DeleteWebhookNotFound) IsSuccess

func (o *DeleteWebhookNotFound) IsSuccess() bool

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

func (*DeleteWebhookNotFound) String

func (o *DeleteWebhookNotFound) String() string

type DeleteWebhookParams

type DeleteWebhookParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* WebhookID.

	   Webhook ID
	*/
	WebhookID string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

DeleteWebhookParams contains all the parameters to send to the API endpoint

for the delete webhook operation.

Typically these are written to a http.Request.

func NewDeleteWebhookParams

func NewDeleteWebhookParams() *DeleteWebhookParams

NewDeleteWebhookParams creates a new DeleteWebhookParams 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 NewDeleteWebhookParamsWithContext

func NewDeleteWebhookParamsWithContext(ctx context.Context) *DeleteWebhookParams

NewDeleteWebhookParamsWithContext creates a new DeleteWebhookParams object with the ability to set a context for a request.

func NewDeleteWebhookParamsWithHTTPClient

func NewDeleteWebhookParamsWithHTTPClient(client *http.Client) *DeleteWebhookParams

NewDeleteWebhookParamsWithHTTPClient creates a new DeleteWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteWebhookParamsWithTimeout

func NewDeleteWebhookParamsWithTimeout(timeout time.Duration) *DeleteWebhookParams

NewDeleteWebhookParamsWithTimeout creates a new DeleteWebhookParams object with the ability to set a timeout on a request.

func (*DeleteWebhookParams) SetContext

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

SetContext adds the context to the delete webhook params

func (*DeleteWebhookParams) SetDefaults

func (o *DeleteWebhookParams) SetDefaults()

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

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

func (*DeleteWebhookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete webhook params

func (*DeleteWebhookParams) SetIfMatch

func (o *DeleteWebhookParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete webhook params

func (*DeleteWebhookParams) SetTimeout

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

SetTimeout adds the timeout to the delete webhook params

func (*DeleteWebhookParams) SetWebhookID

func (o *DeleteWebhookParams) SetWebhookID(webhookID string)

SetWebhookID adds the webhookId to the delete webhook params

func (*DeleteWebhookParams) SetWid

func (o *DeleteWebhookParams) SetWid(wid string)

SetWid adds the wid to the delete webhook params

func (*DeleteWebhookParams) WithContext

WithContext adds the context to the delete webhook params

func (*DeleteWebhookParams) WithDefaults

func (o *DeleteWebhookParams) WithDefaults() *DeleteWebhookParams

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

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

func (*DeleteWebhookParams) WithHTTPClient

func (o *DeleteWebhookParams) WithHTTPClient(client *http.Client) *DeleteWebhookParams

WithHTTPClient adds the HTTPClient to the delete webhook params

func (*DeleteWebhookParams) WithIfMatch

func (o *DeleteWebhookParams) WithIfMatch(ifMatch *string) *DeleteWebhookParams

WithIfMatch adds the ifMatch to the delete webhook params

func (*DeleteWebhookParams) WithTimeout

func (o *DeleteWebhookParams) WithTimeout(timeout time.Duration) *DeleteWebhookParams

WithTimeout adds the timeout to the delete webhook params

func (*DeleteWebhookParams) WithWebhookID

func (o *DeleteWebhookParams) WithWebhookID(webhookID string) *DeleteWebhookParams

WithWebhookID adds the webhookID to the delete webhook params

func (*DeleteWebhookParams) WithWid

WithWid adds the wid to the delete webhook params

func (*DeleteWebhookParams) WriteToRequest

func (o *DeleteWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteWebhookReader

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

DeleteWebhookReader is a Reader for the DeleteWebhook structure.

func (*DeleteWebhookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteWebhookTooManyRequests

type DeleteWebhookTooManyRequests struct {
	Payload *models.Error
}

DeleteWebhookTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewDeleteWebhookTooManyRequests

func NewDeleteWebhookTooManyRequests() *DeleteWebhookTooManyRequests

NewDeleteWebhookTooManyRequests creates a DeleteWebhookTooManyRequests with default headers values

func (*DeleteWebhookTooManyRequests) Code

Code gets the status code for the delete webhook too many requests response

func (*DeleteWebhookTooManyRequests) Error

func (*DeleteWebhookTooManyRequests) GetPayload

func (o *DeleteWebhookTooManyRequests) GetPayload() *models.Error

func (*DeleteWebhookTooManyRequests) IsClientError

func (o *DeleteWebhookTooManyRequests) IsClientError() bool

IsClientError returns true when this delete webhook too many requests response has a 4xx status code

func (*DeleteWebhookTooManyRequests) IsCode

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

IsCode returns true when this delete webhook too many requests response a status code equal to that given

func (*DeleteWebhookTooManyRequests) IsRedirect

func (o *DeleteWebhookTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete webhook too many requests response has a 3xx status code

func (*DeleteWebhookTooManyRequests) IsServerError

func (o *DeleteWebhookTooManyRequests) IsServerError() bool

IsServerError returns true when this delete webhook too many requests response has a 5xx status code

func (*DeleteWebhookTooManyRequests) IsSuccess

func (o *DeleteWebhookTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete webhook too many requests response has a 2xx status code

func (*DeleteWebhookTooManyRequests) String

type DeleteWebhookUnauthorized

type DeleteWebhookUnauthorized struct {
	Payload *models.Error
}

DeleteWebhookUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteWebhookUnauthorized

func NewDeleteWebhookUnauthorized() *DeleteWebhookUnauthorized

NewDeleteWebhookUnauthorized creates a DeleteWebhookUnauthorized with default headers values

func (*DeleteWebhookUnauthorized) Code

func (o *DeleteWebhookUnauthorized) Code() int

Code gets the status code for the delete webhook unauthorized response

func (*DeleteWebhookUnauthorized) Error

func (o *DeleteWebhookUnauthorized) Error() string

func (*DeleteWebhookUnauthorized) GetPayload

func (o *DeleteWebhookUnauthorized) GetPayload() *models.Error

func (*DeleteWebhookUnauthorized) IsClientError

func (o *DeleteWebhookUnauthorized) IsClientError() bool

IsClientError returns true when this delete webhook unauthorized response has a 4xx status code

func (*DeleteWebhookUnauthorized) IsCode

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

IsCode returns true when this delete webhook unauthorized response a status code equal to that given

func (*DeleteWebhookUnauthorized) IsRedirect

func (o *DeleteWebhookUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete webhook unauthorized response has a 3xx status code

func (*DeleteWebhookUnauthorized) IsServerError

func (o *DeleteWebhookUnauthorized) IsServerError() bool

IsServerError returns true when this delete webhook unauthorized response has a 5xx status code

func (*DeleteWebhookUnauthorized) IsSuccess

func (o *DeleteWebhookUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete webhook unauthorized response has a 2xx status code

func (*DeleteWebhookUnauthorized) String

func (o *DeleteWebhookUnauthorized) String() string

type GetWebhookForbidden

type GetWebhookForbidden struct {
	Payload *models.Error
}

GetWebhookForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetWebhookForbidden

func NewGetWebhookForbidden() *GetWebhookForbidden

NewGetWebhookForbidden creates a GetWebhookForbidden with default headers values

func (*GetWebhookForbidden) Code

func (o *GetWebhookForbidden) Code() int

Code gets the status code for the get webhook forbidden response

func (*GetWebhookForbidden) Error

func (o *GetWebhookForbidden) Error() string

func (*GetWebhookForbidden) GetPayload

func (o *GetWebhookForbidden) GetPayload() *models.Error

func (*GetWebhookForbidden) IsClientError

func (o *GetWebhookForbidden) IsClientError() bool

IsClientError returns true when this get webhook forbidden response has a 4xx status code

func (*GetWebhookForbidden) IsCode

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

IsCode returns true when this get webhook forbidden response a status code equal to that given

func (*GetWebhookForbidden) IsRedirect

func (o *GetWebhookForbidden) IsRedirect() bool

IsRedirect returns true when this get webhook forbidden response has a 3xx status code

func (*GetWebhookForbidden) IsServerError

func (o *GetWebhookForbidden) IsServerError() bool

IsServerError returns true when this get webhook forbidden response has a 5xx status code

func (*GetWebhookForbidden) IsSuccess

func (o *GetWebhookForbidden) IsSuccess() bool

IsSuccess returns true when this get webhook forbidden response has a 2xx status code

func (*GetWebhookForbidden) String

func (o *GetWebhookForbidden) String() string

type GetWebhookNotFound

type GetWebhookNotFound struct {
	Payload *models.Error
}

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

Not found

func NewGetWebhookNotFound

func NewGetWebhookNotFound() *GetWebhookNotFound

NewGetWebhookNotFound creates a GetWebhookNotFound with default headers values

func (*GetWebhookNotFound) Code

func (o *GetWebhookNotFound) Code() int

Code gets the status code for the get webhook not found response

func (*GetWebhookNotFound) Error

func (o *GetWebhookNotFound) Error() string

func (*GetWebhookNotFound) GetPayload

func (o *GetWebhookNotFound) GetPayload() *models.Error

func (*GetWebhookNotFound) IsClientError

func (o *GetWebhookNotFound) IsClientError() bool

IsClientError returns true when this get webhook not found response has a 4xx status code

func (*GetWebhookNotFound) IsCode

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

IsCode returns true when this get webhook not found response a status code equal to that given

func (*GetWebhookNotFound) IsRedirect

func (o *GetWebhookNotFound) IsRedirect() bool

IsRedirect returns true when this get webhook not found response has a 3xx status code

func (*GetWebhookNotFound) IsServerError

func (o *GetWebhookNotFound) IsServerError() bool

IsServerError returns true when this get webhook not found response has a 5xx status code

func (*GetWebhookNotFound) IsSuccess

func (o *GetWebhookNotFound) IsSuccess() bool

IsSuccess returns true when this get webhook not found response has a 2xx status code

func (*GetWebhookNotFound) String

func (o *GetWebhookNotFound) String() string

type GetWebhookOK

type GetWebhookOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WebhookResponse
}

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

Webhook response

func NewGetWebhookOK

func NewGetWebhookOK() *GetWebhookOK

NewGetWebhookOK creates a GetWebhookOK with default headers values

func (*GetWebhookOK) Code

func (o *GetWebhookOK) Code() int

Code gets the status code for the get webhook o k response

func (*GetWebhookOK) Error

func (o *GetWebhookOK) Error() string

func (*GetWebhookOK) GetPayload

func (o *GetWebhookOK) GetPayload() *models.WebhookResponse

func (*GetWebhookOK) IsClientError

func (o *GetWebhookOK) IsClientError() bool

IsClientError returns true when this get webhook o k response has a 4xx status code

func (*GetWebhookOK) IsCode

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

IsCode returns true when this get webhook o k response a status code equal to that given

func (*GetWebhookOK) IsRedirect

func (o *GetWebhookOK) IsRedirect() bool

IsRedirect returns true when this get webhook o k response has a 3xx status code

func (*GetWebhookOK) IsServerError

func (o *GetWebhookOK) IsServerError() bool

IsServerError returns true when this get webhook o k response has a 5xx status code

func (*GetWebhookOK) IsSuccess

func (o *GetWebhookOK) IsSuccess() bool

IsSuccess returns true when this get webhook o k response has a 2xx status code

func (*GetWebhookOK) String

func (o *GetWebhookOK) String() string

type GetWebhookParams

type GetWebhookParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* WebhookID.

	   Webhook ID
	*/
	WebhookID string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

GetWebhookParams contains all the parameters to send to the API endpoint

for the get webhook operation.

Typically these are written to a http.Request.

func NewGetWebhookParams

func NewGetWebhookParams() *GetWebhookParams

NewGetWebhookParams creates a new GetWebhookParams 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 NewGetWebhookParamsWithContext

func NewGetWebhookParamsWithContext(ctx context.Context) *GetWebhookParams

NewGetWebhookParamsWithContext creates a new GetWebhookParams object with the ability to set a context for a request.

func NewGetWebhookParamsWithHTTPClient

func NewGetWebhookParamsWithHTTPClient(client *http.Client) *GetWebhookParams

NewGetWebhookParamsWithHTTPClient creates a new GetWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewGetWebhookParamsWithTimeout

func NewGetWebhookParamsWithTimeout(timeout time.Duration) *GetWebhookParams

NewGetWebhookParamsWithTimeout creates a new GetWebhookParams object with the ability to set a timeout on a request.

func (*GetWebhookParams) SetContext

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

SetContext adds the context to the get webhook params

func (*GetWebhookParams) SetDefaults

func (o *GetWebhookParams) SetDefaults()

SetDefaults hydrates default values in the get webhook params (not the query body).

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

func (*GetWebhookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get webhook params

func (*GetWebhookParams) SetIfMatch

func (o *GetWebhookParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get webhook params

func (*GetWebhookParams) SetTimeout

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

SetTimeout adds the timeout to the get webhook params

func (*GetWebhookParams) SetWebhookID

func (o *GetWebhookParams) SetWebhookID(webhookID string)

SetWebhookID adds the webhookId to the get webhook params

func (*GetWebhookParams) SetWid

func (o *GetWebhookParams) SetWid(wid string)

SetWid adds the wid to the get webhook params

func (*GetWebhookParams) WithContext

func (o *GetWebhookParams) WithContext(ctx context.Context) *GetWebhookParams

WithContext adds the context to the get webhook params

func (*GetWebhookParams) WithDefaults

func (o *GetWebhookParams) WithDefaults() *GetWebhookParams

WithDefaults hydrates default values in the get webhook params (not the query body).

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

func (*GetWebhookParams) WithHTTPClient

func (o *GetWebhookParams) WithHTTPClient(client *http.Client) *GetWebhookParams

WithHTTPClient adds the HTTPClient to the get webhook params

func (*GetWebhookParams) WithIfMatch

func (o *GetWebhookParams) WithIfMatch(ifMatch *string) *GetWebhookParams

WithIfMatch adds the ifMatch to the get webhook params

func (*GetWebhookParams) WithTimeout

func (o *GetWebhookParams) WithTimeout(timeout time.Duration) *GetWebhookParams

WithTimeout adds the timeout to the get webhook params

func (*GetWebhookParams) WithWebhookID

func (o *GetWebhookParams) WithWebhookID(webhookID string) *GetWebhookParams

WithWebhookID adds the webhookID to the get webhook params

func (*GetWebhookParams) WithWid

func (o *GetWebhookParams) WithWid(wid string) *GetWebhookParams

WithWid adds the wid to the get webhook params

func (*GetWebhookParams) WriteToRequest

func (o *GetWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetWebhookReader

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

GetWebhookReader is a Reader for the GetWebhook structure.

func (*GetWebhookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWebhookTooManyRequests

type GetWebhookTooManyRequests struct {
	Payload *models.Error
}

GetWebhookTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetWebhookTooManyRequests

func NewGetWebhookTooManyRequests() *GetWebhookTooManyRequests

NewGetWebhookTooManyRequests creates a GetWebhookTooManyRequests with default headers values

func (*GetWebhookTooManyRequests) Code

func (o *GetWebhookTooManyRequests) Code() int

Code gets the status code for the get webhook too many requests response

func (*GetWebhookTooManyRequests) Error

func (o *GetWebhookTooManyRequests) Error() string

func (*GetWebhookTooManyRequests) GetPayload

func (o *GetWebhookTooManyRequests) GetPayload() *models.Error

func (*GetWebhookTooManyRequests) IsClientError

func (o *GetWebhookTooManyRequests) IsClientError() bool

IsClientError returns true when this get webhook too many requests response has a 4xx status code

func (*GetWebhookTooManyRequests) IsCode

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

IsCode returns true when this get webhook too many requests response a status code equal to that given

func (*GetWebhookTooManyRequests) IsRedirect

func (o *GetWebhookTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get webhook too many requests response has a 3xx status code

func (*GetWebhookTooManyRequests) IsServerError

func (o *GetWebhookTooManyRequests) IsServerError() bool

IsServerError returns true when this get webhook too many requests response has a 5xx status code

func (*GetWebhookTooManyRequests) IsSuccess

func (o *GetWebhookTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get webhook too many requests response has a 2xx status code

func (*GetWebhookTooManyRequests) String

func (o *GetWebhookTooManyRequests) String() string

type GetWebhookUnauthorized

type GetWebhookUnauthorized struct {
	Payload *models.Error
}

GetWebhookUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetWebhookUnauthorized

func NewGetWebhookUnauthorized() *GetWebhookUnauthorized

NewGetWebhookUnauthorized creates a GetWebhookUnauthorized with default headers values

func (*GetWebhookUnauthorized) Code

func (o *GetWebhookUnauthorized) Code() int

Code gets the status code for the get webhook unauthorized response

func (*GetWebhookUnauthorized) Error

func (o *GetWebhookUnauthorized) Error() string

func (*GetWebhookUnauthorized) GetPayload

func (o *GetWebhookUnauthorized) GetPayload() *models.Error

func (*GetWebhookUnauthorized) IsClientError

func (o *GetWebhookUnauthorized) IsClientError() bool

IsClientError returns true when this get webhook unauthorized response has a 4xx status code

func (*GetWebhookUnauthorized) IsCode

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

IsCode returns true when this get webhook unauthorized response a status code equal to that given

func (*GetWebhookUnauthorized) IsRedirect

func (o *GetWebhookUnauthorized) IsRedirect() bool

IsRedirect returns true when this get webhook unauthorized response has a 3xx status code

func (*GetWebhookUnauthorized) IsServerError

func (o *GetWebhookUnauthorized) IsServerError() bool

IsServerError returns true when this get webhook unauthorized response has a 5xx status code

func (*GetWebhookUnauthorized) IsSuccess

func (o *GetWebhookUnauthorized) IsSuccess() bool

IsSuccess returns true when this get webhook unauthorized response has a 2xx status code

func (*GetWebhookUnauthorized) String

func (o *GetWebhookUnauthorized) String() string

type ListServerWebhooksForbidden

type ListServerWebhooksForbidden struct {
	Payload *models.Error
}

ListServerWebhooksForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListServerWebhooksForbidden

func NewListServerWebhooksForbidden() *ListServerWebhooksForbidden

NewListServerWebhooksForbidden creates a ListServerWebhooksForbidden with default headers values

func (*ListServerWebhooksForbidden) Code

func (o *ListServerWebhooksForbidden) Code() int

Code gets the status code for the list server webhooks forbidden response

func (*ListServerWebhooksForbidden) Error

func (*ListServerWebhooksForbidden) GetPayload

func (o *ListServerWebhooksForbidden) GetPayload() *models.Error

func (*ListServerWebhooksForbidden) IsClientError

func (o *ListServerWebhooksForbidden) IsClientError() bool

IsClientError returns true when this list server webhooks forbidden response has a 4xx status code

func (*ListServerWebhooksForbidden) IsCode

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

IsCode returns true when this list server webhooks forbidden response a status code equal to that given

func (*ListServerWebhooksForbidden) IsRedirect

func (o *ListServerWebhooksForbidden) IsRedirect() bool

IsRedirect returns true when this list server webhooks forbidden response has a 3xx status code

func (*ListServerWebhooksForbidden) IsServerError

func (o *ListServerWebhooksForbidden) IsServerError() bool

IsServerError returns true when this list server webhooks forbidden response has a 5xx status code

func (*ListServerWebhooksForbidden) IsSuccess

func (o *ListServerWebhooksForbidden) IsSuccess() bool

IsSuccess returns true when this list server webhooks forbidden response has a 2xx status code

func (*ListServerWebhooksForbidden) String

func (o *ListServerWebhooksForbidden) String() string

type ListServerWebhooksOK

type ListServerWebhooksOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WebhooksResponse
}

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

Webhooks response

func NewListServerWebhooksOK

func NewListServerWebhooksOK() *ListServerWebhooksOK

NewListServerWebhooksOK creates a ListServerWebhooksOK with default headers values

func (*ListServerWebhooksOK) Code

func (o *ListServerWebhooksOK) Code() int

Code gets the status code for the list server webhooks o k response

func (*ListServerWebhooksOK) Error

func (o *ListServerWebhooksOK) Error() string

func (*ListServerWebhooksOK) GetPayload

func (o *ListServerWebhooksOK) GetPayload() *models.WebhooksResponse

func (*ListServerWebhooksOK) IsClientError

func (o *ListServerWebhooksOK) IsClientError() bool

IsClientError returns true when this list server webhooks o k response has a 4xx status code

func (*ListServerWebhooksOK) IsCode

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

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

func (*ListServerWebhooksOK) IsRedirect

func (o *ListServerWebhooksOK) IsRedirect() bool

IsRedirect returns true when this list server webhooks o k response has a 3xx status code

func (*ListServerWebhooksOK) IsServerError

func (o *ListServerWebhooksOK) IsServerError() bool

IsServerError returns true when this list server webhooks o k response has a 5xx status code

func (*ListServerWebhooksOK) IsSuccess

func (o *ListServerWebhooksOK) IsSuccess() bool

IsSuccess returns true when this list server webhooks o k response has a 2xx status code

func (*ListServerWebhooksOK) String

func (o *ListServerWebhooksOK) String() string

type ListServerWebhooksParams

type ListServerWebhooksParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

ListServerWebhooksParams contains all the parameters to send to the API endpoint

for the list server webhooks operation.

Typically these are written to a http.Request.

func NewListServerWebhooksParams

func NewListServerWebhooksParams() *ListServerWebhooksParams

NewListServerWebhooksParams creates a new ListServerWebhooksParams 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 NewListServerWebhooksParamsWithContext

func NewListServerWebhooksParamsWithContext(ctx context.Context) *ListServerWebhooksParams

NewListServerWebhooksParamsWithContext creates a new ListServerWebhooksParams object with the ability to set a context for a request.

func NewListServerWebhooksParamsWithHTTPClient

func NewListServerWebhooksParamsWithHTTPClient(client *http.Client) *ListServerWebhooksParams

NewListServerWebhooksParamsWithHTTPClient creates a new ListServerWebhooksParams object with the ability to set a custom HTTPClient for a request.

func NewListServerWebhooksParamsWithTimeout

func NewListServerWebhooksParamsWithTimeout(timeout time.Duration) *ListServerWebhooksParams

NewListServerWebhooksParamsWithTimeout creates a new ListServerWebhooksParams object with the ability to set a timeout on a request.

func (*ListServerWebhooksParams) SetContext

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

SetContext adds the context to the list server webhooks params

func (*ListServerWebhooksParams) SetDefaults

func (o *ListServerWebhooksParams) SetDefaults()

SetDefaults hydrates default values in the list server webhooks params (not the query body).

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

func (*ListServerWebhooksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list server webhooks params

func (*ListServerWebhooksParams) SetIfMatch

func (o *ListServerWebhooksParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list server webhooks params

func (*ListServerWebhooksParams) SetTimeout

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

SetTimeout adds the timeout to the list server webhooks params

func (*ListServerWebhooksParams) SetWid

func (o *ListServerWebhooksParams) SetWid(wid string)

SetWid adds the wid to the list server webhooks params

func (*ListServerWebhooksParams) WithContext

WithContext adds the context to the list server webhooks params

func (*ListServerWebhooksParams) WithDefaults

WithDefaults hydrates default values in the list server webhooks params (not the query body).

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

func (*ListServerWebhooksParams) WithHTTPClient

func (o *ListServerWebhooksParams) WithHTTPClient(client *http.Client) *ListServerWebhooksParams

WithHTTPClient adds the HTTPClient to the list server webhooks params

func (*ListServerWebhooksParams) WithIfMatch

func (o *ListServerWebhooksParams) WithIfMatch(ifMatch *string) *ListServerWebhooksParams

WithIfMatch adds the ifMatch to the list server webhooks params

func (*ListServerWebhooksParams) WithTimeout

WithTimeout adds the timeout to the list server webhooks params

func (*ListServerWebhooksParams) WithWid

WithWid adds the wid to the list server webhooks params

func (*ListServerWebhooksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServerWebhooksReader

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

ListServerWebhooksReader is a Reader for the ListServerWebhooks structure.

func (*ListServerWebhooksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServerWebhooksTooManyRequests

type ListServerWebhooksTooManyRequests struct {
	Payload *models.Error
}

ListServerWebhooksTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListServerWebhooksTooManyRequests

func NewListServerWebhooksTooManyRequests() *ListServerWebhooksTooManyRequests

NewListServerWebhooksTooManyRequests creates a ListServerWebhooksTooManyRequests with default headers values

func (*ListServerWebhooksTooManyRequests) Code

Code gets the status code for the list server webhooks too many requests response

func (*ListServerWebhooksTooManyRequests) Error

func (*ListServerWebhooksTooManyRequests) GetPayload

func (*ListServerWebhooksTooManyRequests) IsClientError

func (o *ListServerWebhooksTooManyRequests) IsClientError() bool

IsClientError returns true when this list server webhooks too many requests response has a 4xx status code

func (*ListServerWebhooksTooManyRequests) IsCode

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

IsCode returns true when this list server webhooks too many requests response a status code equal to that given

func (*ListServerWebhooksTooManyRequests) IsRedirect

func (o *ListServerWebhooksTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list server webhooks too many requests response has a 3xx status code

func (*ListServerWebhooksTooManyRequests) IsServerError

func (o *ListServerWebhooksTooManyRequests) IsServerError() bool

IsServerError returns true when this list server webhooks too many requests response has a 5xx status code

func (*ListServerWebhooksTooManyRequests) IsSuccess

func (o *ListServerWebhooksTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list server webhooks too many requests response has a 2xx status code

func (*ListServerWebhooksTooManyRequests) String

type ListServerWebhooksUnauthorized

type ListServerWebhooksUnauthorized struct {
	Payload *models.Error
}

ListServerWebhooksUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListServerWebhooksUnauthorized

func NewListServerWebhooksUnauthorized() *ListServerWebhooksUnauthorized

NewListServerWebhooksUnauthorized creates a ListServerWebhooksUnauthorized with default headers values

func (*ListServerWebhooksUnauthorized) Code

Code gets the status code for the list server webhooks unauthorized response

func (*ListServerWebhooksUnauthorized) Error

func (*ListServerWebhooksUnauthorized) GetPayload

func (o *ListServerWebhooksUnauthorized) GetPayload() *models.Error

func (*ListServerWebhooksUnauthorized) IsClientError

func (o *ListServerWebhooksUnauthorized) IsClientError() bool

IsClientError returns true when this list server webhooks unauthorized response has a 4xx status code

func (*ListServerWebhooksUnauthorized) IsCode

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

IsCode returns true when this list server webhooks unauthorized response a status code equal to that given

func (*ListServerWebhooksUnauthorized) IsRedirect

func (o *ListServerWebhooksUnauthorized) IsRedirect() bool

IsRedirect returns true when this list server webhooks unauthorized response has a 3xx status code

func (*ListServerWebhooksUnauthorized) IsServerError

func (o *ListServerWebhooksUnauthorized) IsServerError() bool

IsServerError returns true when this list server webhooks unauthorized response has a 5xx status code

func (*ListServerWebhooksUnauthorized) IsSuccess

func (o *ListServerWebhooksUnauthorized) IsSuccess() bool

IsSuccess returns true when this list server webhooks unauthorized response has a 2xx status code

func (*ListServerWebhooksUnauthorized) String

type ListWebhookEventsForbidden

type ListWebhookEventsForbidden struct {
	Payload *models.Error
}

ListWebhookEventsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListWebhookEventsForbidden

func NewListWebhookEventsForbidden() *ListWebhookEventsForbidden

NewListWebhookEventsForbidden creates a ListWebhookEventsForbidden with default headers values

func (*ListWebhookEventsForbidden) Code

func (o *ListWebhookEventsForbidden) Code() int

Code gets the status code for the list webhook events forbidden response

func (*ListWebhookEventsForbidden) Error

func (*ListWebhookEventsForbidden) GetPayload

func (o *ListWebhookEventsForbidden) GetPayload() *models.Error

func (*ListWebhookEventsForbidden) IsClientError

func (o *ListWebhookEventsForbidden) IsClientError() bool

IsClientError returns true when this list webhook events forbidden response has a 4xx status code

func (*ListWebhookEventsForbidden) IsCode

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

IsCode returns true when this list webhook events forbidden response a status code equal to that given

func (*ListWebhookEventsForbidden) IsRedirect

func (o *ListWebhookEventsForbidden) IsRedirect() bool

IsRedirect returns true when this list webhook events forbidden response has a 3xx status code

func (*ListWebhookEventsForbidden) IsServerError

func (o *ListWebhookEventsForbidden) IsServerError() bool

IsServerError returns true when this list webhook events forbidden response has a 5xx status code

func (*ListWebhookEventsForbidden) IsSuccess

func (o *ListWebhookEventsForbidden) IsSuccess() bool

IsSuccess returns true when this list webhook events forbidden response has a 2xx status code

func (*ListWebhookEventsForbidden) String

func (o *ListWebhookEventsForbidden) String() string

type ListWebhookEventsOK

type ListWebhookEventsOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.AvailableEvents
}

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

AvailableEventsResponse

func NewListWebhookEventsOK

func NewListWebhookEventsOK() *ListWebhookEventsOK

NewListWebhookEventsOK creates a ListWebhookEventsOK with default headers values

func (*ListWebhookEventsOK) Code

func (o *ListWebhookEventsOK) Code() int

Code gets the status code for the list webhook events o k response

func (*ListWebhookEventsOK) Error

func (o *ListWebhookEventsOK) Error() string

func (*ListWebhookEventsOK) GetPayload

func (o *ListWebhookEventsOK) GetPayload() *models.AvailableEvents

func (*ListWebhookEventsOK) IsClientError

func (o *ListWebhookEventsOK) IsClientError() bool

IsClientError returns true when this list webhook events o k response has a 4xx status code

func (*ListWebhookEventsOK) IsCode

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

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

func (*ListWebhookEventsOK) IsRedirect

func (o *ListWebhookEventsOK) IsRedirect() bool

IsRedirect returns true when this list webhook events o k response has a 3xx status code

func (*ListWebhookEventsOK) IsServerError

func (o *ListWebhookEventsOK) IsServerError() bool

IsServerError returns true when this list webhook events o k response has a 5xx status code

func (*ListWebhookEventsOK) IsSuccess

func (o *ListWebhookEventsOK) IsSuccess() bool

IsSuccess returns true when this list webhook events o k response has a 2xx status code

func (*ListWebhookEventsOK) String

func (o *ListWebhookEventsOK) String() string

type ListWebhookEventsParams

type ListWebhookEventsParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

ListWebhookEventsParams contains all the parameters to send to the API endpoint

for the list webhook events operation.

Typically these are written to a http.Request.

func NewListWebhookEventsParams

func NewListWebhookEventsParams() *ListWebhookEventsParams

NewListWebhookEventsParams creates a new ListWebhookEventsParams 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 NewListWebhookEventsParamsWithContext

func NewListWebhookEventsParamsWithContext(ctx context.Context) *ListWebhookEventsParams

NewListWebhookEventsParamsWithContext creates a new ListWebhookEventsParams object with the ability to set a context for a request.

func NewListWebhookEventsParamsWithHTTPClient

func NewListWebhookEventsParamsWithHTTPClient(client *http.Client) *ListWebhookEventsParams

NewListWebhookEventsParamsWithHTTPClient creates a new ListWebhookEventsParams object with the ability to set a custom HTTPClient for a request.

func NewListWebhookEventsParamsWithTimeout

func NewListWebhookEventsParamsWithTimeout(timeout time.Duration) *ListWebhookEventsParams

NewListWebhookEventsParamsWithTimeout creates a new ListWebhookEventsParams object with the ability to set a timeout on a request.

func (*ListWebhookEventsParams) SetContext

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

SetContext adds the context to the list webhook events params

func (*ListWebhookEventsParams) SetDefaults

func (o *ListWebhookEventsParams) SetDefaults()

SetDefaults hydrates default values in the list webhook events params (not the query body).

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

func (*ListWebhookEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list webhook events params

func (*ListWebhookEventsParams) SetIfMatch

func (o *ListWebhookEventsParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list webhook events params

func (*ListWebhookEventsParams) SetTimeout

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

SetTimeout adds the timeout to the list webhook events params

func (*ListWebhookEventsParams) SetWid

func (o *ListWebhookEventsParams) SetWid(wid string)

SetWid adds the wid to the list webhook events params

func (*ListWebhookEventsParams) WithContext

WithContext adds the context to the list webhook events params

func (*ListWebhookEventsParams) WithDefaults

WithDefaults hydrates default values in the list webhook events params (not the query body).

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

func (*ListWebhookEventsParams) WithHTTPClient

func (o *ListWebhookEventsParams) WithHTTPClient(client *http.Client) *ListWebhookEventsParams

WithHTTPClient adds the HTTPClient to the list webhook events params

func (*ListWebhookEventsParams) WithIfMatch

func (o *ListWebhookEventsParams) WithIfMatch(ifMatch *string) *ListWebhookEventsParams

WithIfMatch adds the ifMatch to the list webhook events params

func (*ListWebhookEventsParams) WithTimeout

WithTimeout adds the timeout to the list webhook events params

func (*ListWebhookEventsParams) WithWid

WithWid adds the wid to the list webhook events params

func (*ListWebhookEventsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListWebhookEventsReader

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

ListWebhookEventsReader is a Reader for the ListWebhookEvents structure.

func (*ListWebhookEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWebhookEventsTooManyRequests

type ListWebhookEventsTooManyRequests struct {
	Payload *models.Error
}

ListWebhookEventsTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListWebhookEventsTooManyRequests

func NewListWebhookEventsTooManyRequests() *ListWebhookEventsTooManyRequests

NewListWebhookEventsTooManyRequests creates a ListWebhookEventsTooManyRequests with default headers values

func (*ListWebhookEventsTooManyRequests) Code

Code gets the status code for the list webhook events too many requests response

func (*ListWebhookEventsTooManyRequests) Error

func (*ListWebhookEventsTooManyRequests) GetPayload

func (*ListWebhookEventsTooManyRequests) IsClientError

func (o *ListWebhookEventsTooManyRequests) IsClientError() bool

IsClientError returns true when this list webhook events too many requests response has a 4xx status code

func (*ListWebhookEventsTooManyRequests) IsCode

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

IsCode returns true when this list webhook events too many requests response a status code equal to that given

func (*ListWebhookEventsTooManyRequests) IsRedirect

func (o *ListWebhookEventsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list webhook events too many requests response has a 3xx status code

func (*ListWebhookEventsTooManyRequests) IsServerError

func (o *ListWebhookEventsTooManyRequests) IsServerError() bool

IsServerError returns true when this list webhook events too many requests response has a 5xx status code

func (*ListWebhookEventsTooManyRequests) IsSuccess

func (o *ListWebhookEventsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list webhook events too many requests response has a 2xx status code

func (*ListWebhookEventsTooManyRequests) String

type ListWebhookEventsUnauthorized

type ListWebhookEventsUnauthorized struct {
	Payload *models.Error
}

ListWebhookEventsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListWebhookEventsUnauthorized

func NewListWebhookEventsUnauthorized() *ListWebhookEventsUnauthorized

NewListWebhookEventsUnauthorized creates a ListWebhookEventsUnauthorized with default headers values

func (*ListWebhookEventsUnauthorized) Code

Code gets the status code for the list webhook events unauthorized response

func (*ListWebhookEventsUnauthorized) Error

func (*ListWebhookEventsUnauthorized) GetPayload

func (o *ListWebhookEventsUnauthorized) GetPayload() *models.Error

func (*ListWebhookEventsUnauthorized) IsClientError

func (o *ListWebhookEventsUnauthorized) IsClientError() bool

IsClientError returns true when this list webhook events unauthorized response has a 4xx status code

func (*ListWebhookEventsUnauthorized) IsCode

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

IsCode returns true when this list webhook events unauthorized response a status code equal to that given

func (*ListWebhookEventsUnauthorized) IsRedirect

func (o *ListWebhookEventsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list webhook events unauthorized response has a 3xx status code

func (*ListWebhookEventsUnauthorized) IsServerError

func (o *ListWebhookEventsUnauthorized) IsServerError() bool

IsServerError returns true when this list webhook events unauthorized response has a 5xx status code

func (*ListWebhookEventsUnauthorized) IsSuccess

func (o *ListWebhookEventsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list webhook events unauthorized response has a 2xx status code

func (*ListWebhookEventsUnauthorized) String

type UpdateWebhookBadRequest

type UpdateWebhookBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewUpdateWebhookBadRequest

func NewUpdateWebhookBadRequest() *UpdateWebhookBadRequest

NewUpdateWebhookBadRequest creates a UpdateWebhookBadRequest with default headers values

func (*UpdateWebhookBadRequest) Code

func (o *UpdateWebhookBadRequest) Code() int

Code gets the status code for the update webhook bad request response

func (*UpdateWebhookBadRequest) Error

func (o *UpdateWebhookBadRequest) Error() string

func (*UpdateWebhookBadRequest) GetPayload

func (o *UpdateWebhookBadRequest) GetPayload() *models.Error

func (*UpdateWebhookBadRequest) IsClientError

func (o *UpdateWebhookBadRequest) IsClientError() bool

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

func (*UpdateWebhookBadRequest) IsCode

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

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

func (*UpdateWebhookBadRequest) IsRedirect

func (o *UpdateWebhookBadRequest) IsRedirect() bool

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

func (*UpdateWebhookBadRequest) IsServerError

func (o *UpdateWebhookBadRequest) IsServerError() bool

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

func (*UpdateWebhookBadRequest) IsSuccess

func (o *UpdateWebhookBadRequest) IsSuccess() bool

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

func (*UpdateWebhookBadRequest) String

func (o *UpdateWebhookBadRequest) String() string

type UpdateWebhookForbidden

type UpdateWebhookForbidden struct {
	Payload *models.Error
}

UpdateWebhookForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateWebhookForbidden

func NewUpdateWebhookForbidden() *UpdateWebhookForbidden

NewUpdateWebhookForbidden creates a UpdateWebhookForbidden with default headers values

func (*UpdateWebhookForbidden) Code

func (o *UpdateWebhookForbidden) Code() int

Code gets the status code for the update webhook forbidden response

func (*UpdateWebhookForbidden) Error

func (o *UpdateWebhookForbidden) Error() string

func (*UpdateWebhookForbidden) GetPayload

func (o *UpdateWebhookForbidden) GetPayload() *models.Error

func (*UpdateWebhookForbidden) IsClientError

func (o *UpdateWebhookForbidden) IsClientError() bool

IsClientError returns true when this update webhook forbidden response has a 4xx status code

func (*UpdateWebhookForbidden) IsCode

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

IsCode returns true when this update webhook forbidden response a status code equal to that given

func (*UpdateWebhookForbidden) IsRedirect

func (o *UpdateWebhookForbidden) IsRedirect() bool

IsRedirect returns true when this update webhook forbidden response has a 3xx status code

func (*UpdateWebhookForbidden) IsServerError

func (o *UpdateWebhookForbidden) IsServerError() bool

IsServerError returns true when this update webhook forbidden response has a 5xx status code

func (*UpdateWebhookForbidden) IsSuccess

func (o *UpdateWebhookForbidden) IsSuccess() bool

IsSuccess returns true when this update webhook forbidden response has a 2xx status code

func (*UpdateWebhookForbidden) String

func (o *UpdateWebhookForbidden) String() string

type UpdateWebhookNotFound

type UpdateWebhookNotFound struct {
	Payload *models.Error
}

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

Not found

func NewUpdateWebhookNotFound

func NewUpdateWebhookNotFound() *UpdateWebhookNotFound

NewUpdateWebhookNotFound creates a UpdateWebhookNotFound with default headers values

func (*UpdateWebhookNotFound) Code

func (o *UpdateWebhookNotFound) Code() int

Code gets the status code for the update webhook not found response

func (*UpdateWebhookNotFound) Error

func (o *UpdateWebhookNotFound) Error() string

func (*UpdateWebhookNotFound) GetPayload

func (o *UpdateWebhookNotFound) GetPayload() *models.Error

func (*UpdateWebhookNotFound) IsClientError

func (o *UpdateWebhookNotFound) IsClientError() bool

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

func (*UpdateWebhookNotFound) IsCode

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

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

func (*UpdateWebhookNotFound) IsRedirect

func (o *UpdateWebhookNotFound) IsRedirect() bool

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

func (*UpdateWebhookNotFound) IsServerError

func (o *UpdateWebhookNotFound) IsServerError() bool

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

func (*UpdateWebhookNotFound) IsSuccess

func (o *UpdateWebhookNotFound) IsSuccess() bool

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

func (*UpdateWebhookNotFound) String

func (o *UpdateWebhookNotFound) String() string

type UpdateWebhookOK

type UpdateWebhookOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WebhookResponse
}

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

Webhook response

func NewUpdateWebhookOK

func NewUpdateWebhookOK() *UpdateWebhookOK

NewUpdateWebhookOK creates a UpdateWebhookOK with default headers values

func (*UpdateWebhookOK) Code

func (o *UpdateWebhookOK) Code() int

Code gets the status code for the update webhook o k response

func (*UpdateWebhookOK) Error

func (o *UpdateWebhookOK) Error() string

func (*UpdateWebhookOK) GetPayload

func (o *UpdateWebhookOK) GetPayload() *models.WebhookResponse

func (*UpdateWebhookOK) IsClientError

func (o *UpdateWebhookOK) IsClientError() bool

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

func (*UpdateWebhookOK) IsCode

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

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

func (*UpdateWebhookOK) IsRedirect

func (o *UpdateWebhookOK) IsRedirect() bool

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

func (*UpdateWebhookOK) IsServerError

func (o *UpdateWebhookOK) IsServerError() bool

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

func (*UpdateWebhookOK) IsSuccess

func (o *UpdateWebhookOK) IsSuccess() bool

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

func (*UpdateWebhookOK) String

func (o *UpdateWebhookOK) String() string

type UpdateWebhookParams

type UpdateWebhookParams struct {

	// Webhook.
	Webhook *models.Webhook

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* WebhookID.

	   Webhook ID
	*/
	WebhookID string

	/* Wid.

	   Authorization server id
	*/
	Wid string

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

UpdateWebhookParams contains all the parameters to send to the API endpoint

for the update webhook operation.

Typically these are written to a http.Request.

func NewUpdateWebhookParams

func NewUpdateWebhookParams() *UpdateWebhookParams

NewUpdateWebhookParams creates a new UpdateWebhookParams 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 NewUpdateWebhookParamsWithContext

func NewUpdateWebhookParamsWithContext(ctx context.Context) *UpdateWebhookParams

NewUpdateWebhookParamsWithContext creates a new UpdateWebhookParams object with the ability to set a context for a request.

func NewUpdateWebhookParamsWithHTTPClient

func NewUpdateWebhookParamsWithHTTPClient(client *http.Client) *UpdateWebhookParams

NewUpdateWebhookParamsWithHTTPClient creates a new UpdateWebhookParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateWebhookParamsWithTimeout

func NewUpdateWebhookParamsWithTimeout(timeout time.Duration) *UpdateWebhookParams

NewUpdateWebhookParamsWithTimeout creates a new UpdateWebhookParams object with the ability to set a timeout on a request.

func (*UpdateWebhookParams) SetContext

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

SetContext adds the context to the update webhook params

func (*UpdateWebhookParams) SetDefaults

func (o *UpdateWebhookParams) SetDefaults()

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

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

func (*UpdateWebhookParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update webhook params

func (*UpdateWebhookParams) SetIfMatch

func (o *UpdateWebhookParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the update webhook params

func (*UpdateWebhookParams) SetTimeout

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

SetTimeout adds the timeout to the update webhook params

func (*UpdateWebhookParams) SetWebhook

func (o *UpdateWebhookParams) SetWebhook(webhook *models.Webhook)

SetWebhook adds the webhook to the update webhook params

func (*UpdateWebhookParams) SetWebhookID

func (o *UpdateWebhookParams) SetWebhookID(webhookID string)

SetWebhookID adds the webhookId to the update webhook params

func (*UpdateWebhookParams) SetWid

func (o *UpdateWebhookParams) SetWid(wid string)

SetWid adds the wid to the update webhook params

func (*UpdateWebhookParams) WithContext

WithContext adds the context to the update webhook params

func (*UpdateWebhookParams) WithDefaults

func (o *UpdateWebhookParams) WithDefaults() *UpdateWebhookParams

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

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

func (*UpdateWebhookParams) WithHTTPClient

func (o *UpdateWebhookParams) WithHTTPClient(client *http.Client) *UpdateWebhookParams

WithHTTPClient adds the HTTPClient to the update webhook params

func (*UpdateWebhookParams) WithIfMatch

func (o *UpdateWebhookParams) WithIfMatch(ifMatch *string) *UpdateWebhookParams

WithIfMatch adds the ifMatch to the update webhook params

func (*UpdateWebhookParams) WithTimeout

func (o *UpdateWebhookParams) WithTimeout(timeout time.Duration) *UpdateWebhookParams

WithTimeout adds the timeout to the update webhook params

func (*UpdateWebhookParams) WithWebhook

func (o *UpdateWebhookParams) WithWebhook(webhook *models.Webhook) *UpdateWebhookParams

WithWebhook adds the webhook to the update webhook params

func (*UpdateWebhookParams) WithWebhookID

func (o *UpdateWebhookParams) WithWebhookID(webhookID string) *UpdateWebhookParams

WithWebhookID adds the webhookID to the update webhook params

func (*UpdateWebhookParams) WithWid

WithWid adds the wid to the update webhook params

func (*UpdateWebhookParams) WriteToRequest

func (o *UpdateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateWebhookReader

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

UpdateWebhookReader is a Reader for the UpdateWebhook structure.

func (*UpdateWebhookReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateWebhookTooManyRequests

type UpdateWebhookTooManyRequests struct {
	Payload *models.Error
}

UpdateWebhookTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewUpdateWebhookTooManyRequests

func NewUpdateWebhookTooManyRequests() *UpdateWebhookTooManyRequests

NewUpdateWebhookTooManyRequests creates a UpdateWebhookTooManyRequests with default headers values

func (*UpdateWebhookTooManyRequests) Code

Code gets the status code for the update webhook too many requests response

func (*UpdateWebhookTooManyRequests) Error

func (*UpdateWebhookTooManyRequests) GetPayload

func (o *UpdateWebhookTooManyRequests) GetPayload() *models.Error

func (*UpdateWebhookTooManyRequests) IsClientError

func (o *UpdateWebhookTooManyRequests) IsClientError() bool

IsClientError returns true when this update webhook too many requests response has a 4xx status code

func (*UpdateWebhookTooManyRequests) IsCode

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

IsCode returns true when this update webhook too many requests response a status code equal to that given

func (*UpdateWebhookTooManyRequests) IsRedirect

func (o *UpdateWebhookTooManyRequests) IsRedirect() bool

IsRedirect returns true when this update webhook too many requests response has a 3xx status code

func (*UpdateWebhookTooManyRequests) IsServerError

func (o *UpdateWebhookTooManyRequests) IsServerError() bool

IsServerError returns true when this update webhook too many requests response has a 5xx status code

func (*UpdateWebhookTooManyRequests) IsSuccess

func (o *UpdateWebhookTooManyRequests) IsSuccess() bool

IsSuccess returns true when this update webhook too many requests response has a 2xx status code

func (*UpdateWebhookTooManyRequests) String

type UpdateWebhookUnauthorized

type UpdateWebhookUnauthorized struct {
	Payload *models.Error
}

UpdateWebhookUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateWebhookUnauthorized

func NewUpdateWebhookUnauthorized() *UpdateWebhookUnauthorized

NewUpdateWebhookUnauthorized creates a UpdateWebhookUnauthorized with default headers values

func (*UpdateWebhookUnauthorized) Code

func (o *UpdateWebhookUnauthorized) Code() int

Code gets the status code for the update webhook unauthorized response

func (*UpdateWebhookUnauthorized) Error

func (o *UpdateWebhookUnauthorized) Error() string

func (*UpdateWebhookUnauthorized) GetPayload

func (o *UpdateWebhookUnauthorized) GetPayload() *models.Error

func (*UpdateWebhookUnauthorized) IsClientError

func (o *UpdateWebhookUnauthorized) IsClientError() bool

IsClientError returns true when this update webhook unauthorized response has a 4xx status code

func (*UpdateWebhookUnauthorized) IsCode

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

IsCode returns true when this update webhook unauthorized response a status code equal to that given

func (*UpdateWebhookUnauthorized) IsRedirect

func (o *UpdateWebhookUnauthorized) IsRedirect() bool

IsRedirect returns true when this update webhook unauthorized response has a 3xx status code

func (*UpdateWebhookUnauthorized) IsServerError

func (o *UpdateWebhookUnauthorized) IsServerError() bool

IsServerError returns true when this update webhook unauthorized response has a 5xx status code

func (*UpdateWebhookUnauthorized) IsSuccess

func (o *UpdateWebhookUnauthorized) IsSuccess() bool

IsSuccess returns true when this update webhook unauthorized response has a 2xx status code

func (*UpdateWebhookUnauthorized) String

func (o *UpdateWebhookUnauthorized) String() string

type UpdateWebhookUnprocessableEntity

type UpdateWebhookUnprocessableEntity struct {
	Payload *models.Error
}

UpdateWebhookUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewUpdateWebhookUnprocessableEntity

func NewUpdateWebhookUnprocessableEntity() *UpdateWebhookUnprocessableEntity

NewUpdateWebhookUnprocessableEntity creates a UpdateWebhookUnprocessableEntity with default headers values

func (*UpdateWebhookUnprocessableEntity) Code

Code gets the status code for the update webhook unprocessable entity response

func (*UpdateWebhookUnprocessableEntity) Error

func (*UpdateWebhookUnprocessableEntity) GetPayload

func (*UpdateWebhookUnprocessableEntity) IsClientError

func (o *UpdateWebhookUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update webhook unprocessable entity response has a 4xx status code

func (*UpdateWebhookUnprocessableEntity) IsCode

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

IsCode returns true when this update webhook unprocessable entity response a status code equal to that given

func (*UpdateWebhookUnprocessableEntity) IsRedirect

func (o *UpdateWebhookUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this update webhook unprocessable entity response has a 3xx status code

func (*UpdateWebhookUnprocessableEntity) IsServerError

func (o *UpdateWebhookUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update webhook unprocessable entity response has a 5xx status code

func (*UpdateWebhookUnprocessableEntity) IsSuccess

func (o *UpdateWebhookUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this update webhook unprocessable entity response has a 2xx status code

func (*UpdateWebhookUnprocessableEntity) String

Jump to

Keyboard shortcuts

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