Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error)
- func (a *Client) ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateWebhookNotificationCreated
- func (o *CreateWebhookNotificationCreated) Code() int
- func (o *CreateWebhookNotificationCreated) Error() string
- func (o *CreateWebhookNotificationCreated) GetPayload() *supportmessages.WebhookNotification
- func (o *CreateWebhookNotificationCreated) IsClientError() bool
- func (o *CreateWebhookNotificationCreated) IsCode(code int) bool
- func (o *CreateWebhookNotificationCreated) IsRedirect() bool
- func (o *CreateWebhookNotificationCreated) IsServerError() bool
- func (o *CreateWebhookNotificationCreated) IsSuccess() bool
- func (o *CreateWebhookNotificationCreated) String() string
- type CreateWebhookNotificationInternalServerError
- func (o *CreateWebhookNotificationInternalServerError) Code() int
- func (o *CreateWebhookNotificationInternalServerError) Error() string
- func (o *CreateWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error
- func (o *CreateWebhookNotificationInternalServerError) IsClientError() bool
- func (o *CreateWebhookNotificationInternalServerError) IsCode(code int) bool
- func (o *CreateWebhookNotificationInternalServerError) IsRedirect() bool
- func (o *CreateWebhookNotificationInternalServerError) IsServerError() bool
- func (o *CreateWebhookNotificationInternalServerError) IsSuccess() bool
- func (o *CreateWebhookNotificationInternalServerError) String() string
- type CreateWebhookNotificationParams
- func NewCreateWebhookNotificationParams() *CreateWebhookNotificationParams
- func NewCreateWebhookNotificationParamsWithContext(ctx context.Context) *CreateWebhookNotificationParams
- func NewCreateWebhookNotificationParamsWithHTTPClient(client *http.Client) *CreateWebhookNotificationParams
- func NewCreateWebhookNotificationParamsWithTimeout(timeout time.Duration) *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification)
- func (o *CreateWebhookNotificationParams) SetContext(ctx context.Context)
- func (o *CreateWebhookNotificationParams) SetDefaults()
- func (o *CreateWebhookNotificationParams) SetHTTPClient(client *http.Client)
- func (o *CreateWebhookNotificationParams) SetTimeout(timeout time.Duration)
- func (o *CreateWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) WithContext(ctx context.Context) *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) WithDefaults() *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) WithHTTPClient(client *http.Client) *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) WithTimeout(timeout time.Duration) *CreateWebhookNotificationParams
- func (o *CreateWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWebhookNotificationReader
- type CreateWebhookNotificationUnprocessableEntity
- func (o *CreateWebhookNotificationUnprocessableEntity) Code() int
- func (o *CreateWebhookNotificationUnprocessableEntity) Error() string
- func (o *CreateWebhookNotificationUnprocessableEntity) GetPayload() *supportmessages.ValidationError
- func (o *CreateWebhookNotificationUnprocessableEntity) IsClientError() bool
- func (o *CreateWebhookNotificationUnprocessableEntity) IsCode(code int) bool
- func (o *CreateWebhookNotificationUnprocessableEntity) IsRedirect() bool
- func (o *CreateWebhookNotificationUnprocessableEntity) IsServerError() bool
- func (o *CreateWebhookNotificationUnprocessableEntity) IsSuccess() bool
- func (o *CreateWebhookNotificationUnprocessableEntity) String() string
- type ReceiveWebhookNotificationBadRequest
- func (o *ReceiveWebhookNotificationBadRequest) Code() int
- func (o *ReceiveWebhookNotificationBadRequest) Error() string
- func (o *ReceiveWebhookNotificationBadRequest) GetPayload() *supportmessages.ClientError
- func (o *ReceiveWebhookNotificationBadRequest) IsClientError() bool
- func (o *ReceiveWebhookNotificationBadRequest) IsCode(code int) bool
- func (o *ReceiveWebhookNotificationBadRequest) IsRedirect() bool
- func (o *ReceiveWebhookNotificationBadRequest) IsServerError() bool
- func (o *ReceiveWebhookNotificationBadRequest) IsSuccess() bool
- func (o *ReceiveWebhookNotificationBadRequest) String() string
- type ReceiveWebhookNotificationForbidden
- func (o *ReceiveWebhookNotificationForbidden) Code() int
- func (o *ReceiveWebhookNotificationForbidden) Error() string
- func (o *ReceiveWebhookNotificationForbidden) GetPayload() *supportmessages.ClientError
- func (o *ReceiveWebhookNotificationForbidden) IsClientError() bool
- func (o *ReceiveWebhookNotificationForbidden) IsCode(code int) bool
- func (o *ReceiveWebhookNotificationForbidden) IsRedirect() bool
- func (o *ReceiveWebhookNotificationForbidden) IsServerError() bool
- func (o *ReceiveWebhookNotificationForbidden) IsSuccess() bool
- func (o *ReceiveWebhookNotificationForbidden) String() string
- type ReceiveWebhookNotificationInternalServerError
- func (o *ReceiveWebhookNotificationInternalServerError) Code() int
- func (o *ReceiveWebhookNotificationInternalServerError) Error() string
- func (o *ReceiveWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error
- func (o *ReceiveWebhookNotificationInternalServerError) IsClientError() bool
- func (o *ReceiveWebhookNotificationInternalServerError) IsCode(code int) bool
- func (o *ReceiveWebhookNotificationInternalServerError) IsRedirect() bool
- func (o *ReceiveWebhookNotificationInternalServerError) IsServerError() bool
- func (o *ReceiveWebhookNotificationInternalServerError) IsSuccess() bool
- func (o *ReceiveWebhookNotificationInternalServerError) String() string
- type ReceiveWebhookNotificationOK
- func (o *ReceiveWebhookNotificationOK) Code() int
- func (o *ReceiveWebhookNotificationOK) Error() string
- func (o *ReceiveWebhookNotificationOK) GetPayload() *supportmessages.WebhookNotification
- func (o *ReceiveWebhookNotificationOK) IsClientError() bool
- func (o *ReceiveWebhookNotificationOK) IsCode(code int) bool
- func (o *ReceiveWebhookNotificationOK) IsRedirect() bool
- func (o *ReceiveWebhookNotificationOK) IsServerError() bool
- func (o *ReceiveWebhookNotificationOK) IsSuccess() bool
- func (o *ReceiveWebhookNotificationOK) String() string
- type ReceiveWebhookNotificationParams
- func NewReceiveWebhookNotificationParams() *ReceiveWebhookNotificationParams
- func NewReceiveWebhookNotificationParamsWithContext(ctx context.Context) *ReceiveWebhookNotificationParams
- func NewReceiveWebhookNotificationParamsWithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams
- func NewReceiveWebhookNotificationParamsWithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification)
- func (o *ReceiveWebhookNotificationParams) SetContext(ctx context.Context)
- func (o *ReceiveWebhookNotificationParams) SetDefaults()
- func (o *ReceiveWebhookNotificationParams) SetHTTPClient(client *http.Client)
- func (o *ReceiveWebhookNotificationParams) SetTimeout(timeout time.Duration)
- func (o *ReceiveWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) WithContext(ctx context.Context) *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) WithDefaults() *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) WithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) WithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams
- func (o *ReceiveWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReceiveWebhookNotificationReader
- type ReceiveWebhookNotificationUnauthorized
- func (o *ReceiveWebhookNotificationUnauthorized) Code() int
- func (o *ReceiveWebhookNotificationUnauthorized) Error() string
- func (o *ReceiveWebhookNotificationUnauthorized) GetPayload() *supportmessages.ClientError
- func (o *ReceiveWebhookNotificationUnauthorized) IsClientError() bool
- func (o *ReceiveWebhookNotificationUnauthorized) IsCode(code int) bool
- func (o *ReceiveWebhookNotificationUnauthorized) IsRedirect() bool
- func (o *ReceiveWebhookNotificationUnauthorized) IsServerError() bool
- func (o *ReceiveWebhookNotificationUnauthorized) IsSuccess() bool
- func (o *ReceiveWebhookNotificationUnauthorized) String() string
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 webhook API
func (*Client) CreateWebhookNotification ¶
func (a *Client) CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error)
CreateWebhookNotification tests endpoint for creating webhook notifications
This endpoint creates a webhook notification in the database. If the webhook client is running, it may send the notification soon after creation.
func (*Client) ReceiveWebhookNotification ¶
func (a *Client) ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error)
ReceiveWebhookNotification tests endpoint for receiving messages from our own webhook client
This endpoint receives a notification that matches the webhook notification model. This is a test endpoint that represents a receiving server. In production, the Prime will set up a receiving endpoint. In testing, this server accepts notifications at this endpoint and simply responds with success and logs them. The `webhook-client` is responsible for retrieving messages from the webhook_notifications table and sending them to the Prime (this endpoint in our testing case) via an mTLS connection.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error) ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, 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 webhook API client.
type CreateWebhookNotificationCreated ¶
type CreateWebhookNotificationCreated struct {
Payload *supportmessages.WebhookNotification
}
CreateWebhookNotificationCreated describes a response with status code 201, with default header values.
Successful creation
func NewCreateWebhookNotificationCreated ¶
func NewCreateWebhookNotificationCreated() *CreateWebhookNotificationCreated
NewCreateWebhookNotificationCreated creates a CreateWebhookNotificationCreated with default headers values
func (*CreateWebhookNotificationCreated) Code ¶
func (o *CreateWebhookNotificationCreated) Code() int
Code gets the status code for the create webhook notification created response
func (*CreateWebhookNotificationCreated) Error ¶
func (o *CreateWebhookNotificationCreated) Error() string
func (*CreateWebhookNotificationCreated) GetPayload ¶
func (o *CreateWebhookNotificationCreated) GetPayload() *supportmessages.WebhookNotification
func (*CreateWebhookNotificationCreated) IsClientError ¶
func (o *CreateWebhookNotificationCreated) IsClientError() bool
IsClientError returns true when this create webhook notification created response has a 4xx status code
func (*CreateWebhookNotificationCreated) IsCode ¶
func (o *CreateWebhookNotificationCreated) IsCode(code int) bool
IsCode returns true when this create webhook notification created response a status code equal to that given
func (*CreateWebhookNotificationCreated) IsRedirect ¶
func (o *CreateWebhookNotificationCreated) IsRedirect() bool
IsRedirect returns true when this create webhook notification created response has a 3xx status code
func (*CreateWebhookNotificationCreated) IsServerError ¶
func (o *CreateWebhookNotificationCreated) IsServerError() bool
IsServerError returns true when this create webhook notification created response has a 5xx status code
func (*CreateWebhookNotificationCreated) IsSuccess ¶
func (o *CreateWebhookNotificationCreated) IsSuccess() bool
IsSuccess returns true when this create webhook notification created response has a 2xx status code
func (*CreateWebhookNotificationCreated) String ¶
func (o *CreateWebhookNotificationCreated) String() string
type CreateWebhookNotificationInternalServerError ¶
type CreateWebhookNotificationInternalServerError struct {
Payload *supportmessages.Error
}
CreateWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewCreateWebhookNotificationInternalServerError ¶
func NewCreateWebhookNotificationInternalServerError() *CreateWebhookNotificationInternalServerError
NewCreateWebhookNotificationInternalServerError creates a CreateWebhookNotificationInternalServerError with default headers values
func (*CreateWebhookNotificationInternalServerError) Code ¶
func (o *CreateWebhookNotificationInternalServerError) Code() int
Code gets the status code for the create webhook notification internal server error response
func (*CreateWebhookNotificationInternalServerError) Error ¶
func (o *CreateWebhookNotificationInternalServerError) Error() string
func (*CreateWebhookNotificationInternalServerError) GetPayload ¶
func (o *CreateWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error
func (*CreateWebhookNotificationInternalServerError) IsClientError ¶
func (o *CreateWebhookNotificationInternalServerError) IsClientError() bool
IsClientError returns true when this create webhook notification internal server error response has a 4xx status code
func (*CreateWebhookNotificationInternalServerError) IsCode ¶
func (o *CreateWebhookNotificationInternalServerError) IsCode(code int) bool
IsCode returns true when this create webhook notification internal server error response a status code equal to that given
func (*CreateWebhookNotificationInternalServerError) IsRedirect ¶
func (o *CreateWebhookNotificationInternalServerError) IsRedirect() bool
IsRedirect returns true when this create webhook notification internal server error response has a 3xx status code
func (*CreateWebhookNotificationInternalServerError) IsServerError ¶
func (o *CreateWebhookNotificationInternalServerError) IsServerError() bool
IsServerError returns true when this create webhook notification internal server error response has a 5xx status code
func (*CreateWebhookNotificationInternalServerError) IsSuccess ¶
func (o *CreateWebhookNotificationInternalServerError) IsSuccess() bool
IsSuccess returns true when this create webhook notification internal server error response has a 2xx status code
func (*CreateWebhookNotificationInternalServerError) String ¶
func (o *CreateWebhookNotificationInternalServerError) String() string
type CreateWebhookNotificationParams ¶
type CreateWebhookNotificationParams struct { /* Body. The notification sent by webhook-client. */ Body *supportmessages.WebhookNotification Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWebhookNotificationParams contains all the parameters to send to the API endpoint
for the create webhook notification operation. Typically these are written to a http.Request.
func NewCreateWebhookNotificationParams ¶
func NewCreateWebhookNotificationParams() *CreateWebhookNotificationParams
NewCreateWebhookNotificationParams creates a new CreateWebhookNotificationParams 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 NewCreateWebhookNotificationParamsWithContext ¶
func NewCreateWebhookNotificationParamsWithContext(ctx context.Context) *CreateWebhookNotificationParams
NewCreateWebhookNotificationParamsWithContext creates a new CreateWebhookNotificationParams object with the ability to set a context for a request.
func NewCreateWebhookNotificationParamsWithHTTPClient ¶
func NewCreateWebhookNotificationParamsWithHTTPClient(client *http.Client) *CreateWebhookNotificationParams
NewCreateWebhookNotificationParamsWithHTTPClient creates a new CreateWebhookNotificationParams object with the ability to set a custom HTTPClient for a request.
func NewCreateWebhookNotificationParamsWithTimeout ¶
func NewCreateWebhookNotificationParamsWithTimeout(timeout time.Duration) *CreateWebhookNotificationParams
NewCreateWebhookNotificationParamsWithTimeout creates a new CreateWebhookNotificationParams object with the ability to set a timeout on a request.
func (*CreateWebhookNotificationParams) SetBody ¶
func (o *CreateWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification)
SetBody adds the body to the create webhook notification params
func (*CreateWebhookNotificationParams) SetContext ¶
func (o *CreateWebhookNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the create webhook notification params
func (*CreateWebhookNotificationParams) SetDefaults ¶
func (o *CreateWebhookNotificationParams) SetDefaults()
SetDefaults hydrates default values in the create webhook notification params (not the query body).
All values with no default are reset to their zero value.
func (*CreateWebhookNotificationParams) SetHTTPClient ¶
func (o *CreateWebhookNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create webhook notification params
func (*CreateWebhookNotificationParams) SetTimeout ¶
func (o *CreateWebhookNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create webhook notification params
func (*CreateWebhookNotificationParams) WithBody ¶
func (o *CreateWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *CreateWebhookNotificationParams
WithBody adds the body to the create webhook notification params
func (*CreateWebhookNotificationParams) WithContext ¶
func (o *CreateWebhookNotificationParams) WithContext(ctx context.Context) *CreateWebhookNotificationParams
WithContext adds the context to the create webhook notification params
func (*CreateWebhookNotificationParams) WithDefaults ¶
func (o *CreateWebhookNotificationParams) WithDefaults() *CreateWebhookNotificationParams
WithDefaults hydrates default values in the create webhook notification params (not the query body).
All values with no default are reset to their zero value.
func (*CreateWebhookNotificationParams) WithHTTPClient ¶
func (o *CreateWebhookNotificationParams) WithHTTPClient(client *http.Client) *CreateWebhookNotificationParams
WithHTTPClient adds the HTTPClient to the create webhook notification params
func (*CreateWebhookNotificationParams) WithTimeout ¶
func (o *CreateWebhookNotificationParams) WithTimeout(timeout time.Duration) *CreateWebhookNotificationParams
WithTimeout adds the timeout to the create webhook notification params
func (*CreateWebhookNotificationParams) WriteToRequest ¶
func (o *CreateWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateWebhookNotificationReader ¶
type CreateWebhookNotificationReader struct {
// contains filtered or unexported fields
}
CreateWebhookNotificationReader is a Reader for the CreateWebhookNotification structure.
func (*CreateWebhookNotificationReader) ReadResponse ¶
func (o *CreateWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateWebhookNotificationUnprocessableEntity ¶
type CreateWebhookNotificationUnprocessableEntity struct {
Payload *supportmessages.ValidationError
}
CreateWebhookNotificationUnprocessableEntity describes a response with status code 422, with default header values.
The payload was unprocessable.
func NewCreateWebhookNotificationUnprocessableEntity ¶
func NewCreateWebhookNotificationUnprocessableEntity() *CreateWebhookNotificationUnprocessableEntity
NewCreateWebhookNotificationUnprocessableEntity creates a CreateWebhookNotificationUnprocessableEntity with default headers values
func (*CreateWebhookNotificationUnprocessableEntity) Code ¶
func (o *CreateWebhookNotificationUnprocessableEntity) Code() int
Code gets the status code for the create webhook notification unprocessable entity response
func (*CreateWebhookNotificationUnprocessableEntity) Error ¶
func (o *CreateWebhookNotificationUnprocessableEntity) Error() string
func (*CreateWebhookNotificationUnprocessableEntity) GetPayload ¶
func (o *CreateWebhookNotificationUnprocessableEntity) GetPayload() *supportmessages.ValidationError
func (*CreateWebhookNotificationUnprocessableEntity) IsClientError ¶
func (o *CreateWebhookNotificationUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create webhook notification unprocessable entity response has a 4xx status code
func (*CreateWebhookNotificationUnprocessableEntity) IsCode ¶
func (o *CreateWebhookNotificationUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create webhook notification unprocessable entity response a status code equal to that given
func (*CreateWebhookNotificationUnprocessableEntity) IsRedirect ¶
func (o *CreateWebhookNotificationUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create webhook notification unprocessable entity response has a 3xx status code
func (*CreateWebhookNotificationUnprocessableEntity) IsServerError ¶
func (o *CreateWebhookNotificationUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create webhook notification unprocessable entity response has a 5xx status code
func (*CreateWebhookNotificationUnprocessableEntity) IsSuccess ¶
func (o *CreateWebhookNotificationUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create webhook notification unprocessable entity response has a 2xx status code
func (*CreateWebhookNotificationUnprocessableEntity) String ¶
func (o *CreateWebhookNotificationUnprocessableEntity) String() string
type ReceiveWebhookNotificationBadRequest ¶
type ReceiveWebhookNotificationBadRequest struct {
Payload *supportmessages.ClientError
}
ReceiveWebhookNotificationBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewReceiveWebhookNotificationBadRequest ¶
func NewReceiveWebhookNotificationBadRequest() *ReceiveWebhookNotificationBadRequest
NewReceiveWebhookNotificationBadRequest creates a ReceiveWebhookNotificationBadRequest with default headers values
func (*ReceiveWebhookNotificationBadRequest) Code ¶
func (o *ReceiveWebhookNotificationBadRequest) Code() int
Code gets the status code for the receive webhook notification bad request response
func (*ReceiveWebhookNotificationBadRequest) Error ¶
func (o *ReceiveWebhookNotificationBadRequest) Error() string
func (*ReceiveWebhookNotificationBadRequest) GetPayload ¶
func (o *ReceiveWebhookNotificationBadRequest) GetPayload() *supportmessages.ClientError
func (*ReceiveWebhookNotificationBadRequest) IsClientError ¶
func (o *ReceiveWebhookNotificationBadRequest) IsClientError() bool
IsClientError returns true when this receive webhook notification bad request response has a 4xx status code
func (*ReceiveWebhookNotificationBadRequest) IsCode ¶
func (o *ReceiveWebhookNotificationBadRequest) IsCode(code int) bool
IsCode returns true when this receive webhook notification bad request response a status code equal to that given
func (*ReceiveWebhookNotificationBadRequest) IsRedirect ¶
func (o *ReceiveWebhookNotificationBadRequest) IsRedirect() bool
IsRedirect returns true when this receive webhook notification bad request response has a 3xx status code
func (*ReceiveWebhookNotificationBadRequest) IsServerError ¶
func (o *ReceiveWebhookNotificationBadRequest) IsServerError() bool
IsServerError returns true when this receive webhook notification bad request response has a 5xx status code
func (*ReceiveWebhookNotificationBadRequest) IsSuccess ¶
func (o *ReceiveWebhookNotificationBadRequest) IsSuccess() bool
IsSuccess returns true when this receive webhook notification bad request response has a 2xx status code
func (*ReceiveWebhookNotificationBadRequest) String ¶
func (o *ReceiveWebhookNotificationBadRequest) String() string
type ReceiveWebhookNotificationForbidden ¶
type ReceiveWebhookNotificationForbidden struct {
Payload *supportmessages.ClientError
}
ReceiveWebhookNotificationForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewReceiveWebhookNotificationForbidden ¶
func NewReceiveWebhookNotificationForbidden() *ReceiveWebhookNotificationForbidden
NewReceiveWebhookNotificationForbidden creates a ReceiveWebhookNotificationForbidden with default headers values
func (*ReceiveWebhookNotificationForbidden) Code ¶
func (o *ReceiveWebhookNotificationForbidden) Code() int
Code gets the status code for the receive webhook notification forbidden response
func (*ReceiveWebhookNotificationForbidden) Error ¶
func (o *ReceiveWebhookNotificationForbidden) Error() string
func (*ReceiveWebhookNotificationForbidden) GetPayload ¶
func (o *ReceiveWebhookNotificationForbidden) GetPayload() *supportmessages.ClientError
func (*ReceiveWebhookNotificationForbidden) IsClientError ¶
func (o *ReceiveWebhookNotificationForbidden) IsClientError() bool
IsClientError returns true when this receive webhook notification forbidden response has a 4xx status code
func (*ReceiveWebhookNotificationForbidden) IsCode ¶
func (o *ReceiveWebhookNotificationForbidden) IsCode(code int) bool
IsCode returns true when this receive webhook notification forbidden response a status code equal to that given
func (*ReceiveWebhookNotificationForbidden) IsRedirect ¶
func (o *ReceiveWebhookNotificationForbidden) IsRedirect() bool
IsRedirect returns true when this receive webhook notification forbidden response has a 3xx status code
func (*ReceiveWebhookNotificationForbidden) IsServerError ¶
func (o *ReceiveWebhookNotificationForbidden) IsServerError() bool
IsServerError returns true when this receive webhook notification forbidden response has a 5xx status code
func (*ReceiveWebhookNotificationForbidden) IsSuccess ¶
func (o *ReceiveWebhookNotificationForbidden) IsSuccess() bool
IsSuccess returns true when this receive webhook notification forbidden response has a 2xx status code
func (*ReceiveWebhookNotificationForbidden) String ¶
func (o *ReceiveWebhookNotificationForbidden) String() string
type ReceiveWebhookNotificationInternalServerError ¶
type ReceiveWebhookNotificationInternalServerError struct {
Payload *supportmessages.Error
}
ReceiveWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewReceiveWebhookNotificationInternalServerError ¶
func NewReceiveWebhookNotificationInternalServerError() *ReceiveWebhookNotificationInternalServerError
NewReceiveWebhookNotificationInternalServerError creates a ReceiveWebhookNotificationInternalServerError with default headers values
func (*ReceiveWebhookNotificationInternalServerError) Code ¶
func (o *ReceiveWebhookNotificationInternalServerError) Code() int
Code gets the status code for the receive webhook notification internal server error response
func (*ReceiveWebhookNotificationInternalServerError) Error ¶
func (o *ReceiveWebhookNotificationInternalServerError) Error() string
func (*ReceiveWebhookNotificationInternalServerError) GetPayload ¶
func (o *ReceiveWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error
func (*ReceiveWebhookNotificationInternalServerError) IsClientError ¶
func (o *ReceiveWebhookNotificationInternalServerError) IsClientError() bool
IsClientError returns true when this receive webhook notification internal server error response has a 4xx status code
func (*ReceiveWebhookNotificationInternalServerError) IsCode ¶
func (o *ReceiveWebhookNotificationInternalServerError) IsCode(code int) bool
IsCode returns true when this receive webhook notification internal server error response a status code equal to that given
func (*ReceiveWebhookNotificationInternalServerError) IsRedirect ¶
func (o *ReceiveWebhookNotificationInternalServerError) IsRedirect() bool
IsRedirect returns true when this receive webhook notification internal server error response has a 3xx status code
func (*ReceiveWebhookNotificationInternalServerError) IsServerError ¶
func (o *ReceiveWebhookNotificationInternalServerError) IsServerError() bool
IsServerError returns true when this receive webhook notification internal server error response has a 5xx status code
func (*ReceiveWebhookNotificationInternalServerError) IsSuccess ¶
func (o *ReceiveWebhookNotificationInternalServerError) IsSuccess() bool
IsSuccess returns true when this receive webhook notification internal server error response has a 2xx status code
func (*ReceiveWebhookNotificationInternalServerError) String ¶
func (o *ReceiveWebhookNotificationInternalServerError) String() string
type ReceiveWebhookNotificationOK ¶
type ReceiveWebhookNotificationOK struct {
Payload *supportmessages.WebhookNotification
}
ReceiveWebhookNotificationOK describes a response with status code 200, with default header values.
Received notification
func NewReceiveWebhookNotificationOK ¶
func NewReceiveWebhookNotificationOK() *ReceiveWebhookNotificationOK
NewReceiveWebhookNotificationOK creates a ReceiveWebhookNotificationOK with default headers values
func (*ReceiveWebhookNotificationOK) Code ¶
func (o *ReceiveWebhookNotificationOK) Code() int
Code gets the status code for the receive webhook notification o k response
func (*ReceiveWebhookNotificationOK) Error ¶
func (o *ReceiveWebhookNotificationOK) Error() string
func (*ReceiveWebhookNotificationOK) GetPayload ¶
func (o *ReceiveWebhookNotificationOK) GetPayload() *supportmessages.WebhookNotification
func (*ReceiveWebhookNotificationOK) IsClientError ¶
func (o *ReceiveWebhookNotificationOK) IsClientError() bool
IsClientError returns true when this receive webhook notification o k response has a 4xx status code
func (*ReceiveWebhookNotificationOK) IsCode ¶
func (o *ReceiveWebhookNotificationOK) IsCode(code int) bool
IsCode returns true when this receive webhook notification o k response a status code equal to that given
func (*ReceiveWebhookNotificationOK) IsRedirect ¶
func (o *ReceiveWebhookNotificationOK) IsRedirect() bool
IsRedirect returns true when this receive webhook notification o k response has a 3xx status code
func (*ReceiveWebhookNotificationOK) IsServerError ¶
func (o *ReceiveWebhookNotificationOK) IsServerError() bool
IsServerError returns true when this receive webhook notification o k response has a 5xx status code
func (*ReceiveWebhookNotificationOK) IsSuccess ¶
func (o *ReceiveWebhookNotificationOK) IsSuccess() bool
IsSuccess returns true when this receive webhook notification o k response has a 2xx status code
func (*ReceiveWebhookNotificationOK) String ¶
func (o *ReceiveWebhookNotificationOK) String() string
type ReceiveWebhookNotificationParams ¶
type ReceiveWebhookNotificationParams struct { /* Body. The webhook notification being sent */ Body *supportmessages.WebhookNotification Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReceiveWebhookNotificationParams contains all the parameters to send to the API endpoint
for the receive webhook notification operation. Typically these are written to a http.Request.
func NewReceiveWebhookNotificationParams ¶
func NewReceiveWebhookNotificationParams() *ReceiveWebhookNotificationParams
NewReceiveWebhookNotificationParams creates a new ReceiveWebhookNotificationParams 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 NewReceiveWebhookNotificationParamsWithContext ¶
func NewReceiveWebhookNotificationParamsWithContext(ctx context.Context) *ReceiveWebhookNotificationParams
NewReceiveWebhookNotificationParamsWithContext creates a new ReceiveWebhookNotificationParams object with the ability to set a context for a request.
func NewReceiveWebhookNotificationParamsWithHTTPClient ¶
func NewReceiveWebhookNotificationParamsWithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams
NewReceiveWebhookNotificationParamsWithHTTPClient creates a new ReceiveWebhookNotificationParams object with the ability to set a custom HTTPClient for a request.
func NewReceiveWebhookNotificationParamsWithTimeout ¶
func NewReceiveWebhookNotificationParamsWithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams
NewReceiveWebhookNotificationParamsWithTimeout creates a new ReceiveWebhookNotificationParams object with the ability to set a timeout on a request.
func (*ReceiveWebhookNotificationParams) SetBody ¶
func (o *ReceiveWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification)
SetBody adds the body to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) SetContext ¶
func (o *ReceiveWebhookNotificationParams) SetContext(ctx context.Context)
SetContext adds the context to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) SetDefaults ¶
func (o *ReceiveWebhookNotificationParams) SetDefaults()
SetDefaults hydrates default values in the receive webhook notification params (not the query body).
All values with no default are reset to their zero value.
func (*ReceiveWebhookNotificationParams) SetHTTPClient ¶
func (o *ReceiveWebhookNotificationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) SetTimeout ¶
func (o *ReceiveWebhookNotificationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) WithBody ¶
func (o *ReceiveWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *ReceiveWebhookNotificationParams
WithBody adds the body to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) WithContext ¶
func (o *ReceiveWebhookNotificationParams) WithContext(ctx context.Context) *ReceiveWebhookNotificationParams
WithContext adds the context to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) WithDefaults ¶
func (o *ReceiveWebhookNotificationParams) WithDefaults() *ReceiveWebhookNotificationParams
WithDefaults hydrates default values in the receive webhook notification params (not the query body).
All values with no default are reset to their zero value.
func (*ReceiveWebhookNotificationParams) WithHTTPClient ¶
func (o *ReceiveWebhookNotificationParams) WithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams
WithHTTPClient adds the HTTPClient to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) WithTimeout ¶
func (o *ReceiveWebhookNotificationParams) WithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams
WithTimeout adds the timeout to the receive webhook notification params
func (*ReceiveWebhookNotificationParams) WriteToRequest ¶
func (o *ReceiveWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReceiveWebhookNotificationReader ¶
type ReceiveWebhookNotificationReader struct {
// contains filtered or unexported fields
}
ReceiveWebhookNotificationReader is a Reader for the ReceiveWebhookNotification structure.
func (*ReceiveWebhookNotificationReader) ReadResponse ¶
func (o *ReceiveWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReceiveWebhookNotificationUnauthorized ¶
type ReceiveWebhookNotificationUnauthorized struct {
}ReceiveWebhookNotificationUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewReceiveWebhookNotificationUnauthorized ¶
func NewReceiveWebhookNotificationUnauthorized() *ReceiveWebhookNotificationUnauthorized
NewReceiveWebhookNotificationUnauthorized creates a ReceiveWebhookNotificationUnauthorized with default headers values
func (*ReceiveWebhookNotificationUnauthorized) Code ¶
func (o *ReceiveWebhookNotificationUnauthorized) Code() int
Code gets the status code for the receive webhook notification unauthorized response
func (*ReceiveWebhookNotificationUnauthorized) Error ¶
func (o *ReceiveWebhookNotificationUnauthorized) Error() string
func (*ReceiveWebhookNotificationUnauthorized) GetPayload ¶
func (o *ReceiveWebhookNotificationUnauthorized) GetPayload() *supportmessages.ClientError
func (*ReceiveWebhookNotificationUnauthorized) IsClientError ¶
func (o *ReceiveWebhookNotificationUnauthorized) IsClientError() bool
IsClientError returns true when this receive webhook notification unauthorized response has a 4xx status code
func (*ReceiveWebhookNotificationUnauthorized) IsCode ¶
func (o *ReceiveWebhookNotificationUnauthorized) IsCode(code int) bool
IsCode returns true when this receive webhook notification unauthorized response a status code equal to that given
func (*ReceiveWebhookNotificationUnauthorized) IsRedirect ¶
func (o *ReceiveWebhookNotificationUnauthorized) IsRedirect() bool
IsRedirect returns true when this receive webhook notification unauthorized response has a 3xx status code
func (*ReceiveWebhookNotificationUnauthorized) IsServerError ¶
func (o *ReceiveWebhookNotificationUnauthorized) IsServerError() bool
IsServerError returns true when this receive webhook notification unauthorized response has a 5xx status code
func (*ReceiveWebhookNotificationUnauthorized) IsSuccess ¶
func (o *ReceiveWebhookNotificationUnauthorized) IsSuccess() bool
IsSuccess returns true when this receive webhook notification unauthorized response has a 2xx status code
func (*ReceiveWebhookNotificationUnauthorized) String ¶
func (o *ReceiveWebhookNotificationUnauthorized) String() string