|
|
|
@ -101,6 +101,45 @@ message Webhook { |
|
|
|
|
|
|
|
|
|
// Represents configuration for a generic web service. |
|
|
|
|
message GenericWebService { |
|
|
|
|
// Represents the type of webhook configuration. |
|
|
|
|
enum WebhookType { |
|
|
|
|
// Default value. This value is unused. |
|
|
|
|
WEBHOOK_TYPE_UNSPECIFIED = 0; |
|
|
|
|
|
|
|
|
|
// Represents a standard webhook. |
|
|
|
|
STANDARD = 1; |
|
|
|
|
|
|
|
|
|
// Represents a flexible webhook. |
|
|
|
|
FLEXIBLE = 2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// HTTP method to use when calling webhooks. |
|
|
|
|
enum HttpMethod { |
|
|
|
|
// HTTP method not specified. |
|
|
|
|
HTTP_METHOD_UNSPECIFIED = 0; |
|
|
|
|
|
|
|
|
|
// HTTP POST Method. |
|
|
|
|
POST = 1; |
|
|
|
|
|
|
|
|
|
// HTTP GET Method. |
|
|
|
|
GET = 2; |
|
|
|
|
|
|
|
|
|
// HTTP HEAD Method. |
|
|
|
|
HEAD = 3; |
|
|
|
|
|
|
|
|
|
// HTTP PUT Method. |
|
|
|
|
PUT = 4; |
|
|
|
|
|
|
|
|
|
// HTTP DELETE Method. |
|
|
|
|
DELETE = 5; |
|
|
|
|
|
|
|
|
|
// HTTP PATCH Method. |
|
|
|
|
PATCH = 6; |
|
|
|
|
|
|
|
|
|
// HTTP OPTIONS Method. |
|
|
|
|
OPTIONS = 7; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Required. The webhook URI for receiving POST requests. It must use https |
|
|
|
|
// protocol. |
|
|
|
|
string uri = 1 [(google.api.field_behavior) = REQUIRED]; |
|
|
|
@ -129,6 +168,24 @@ message Webhook { |
|
|
|
|
// ``` |
|
|
|
|
repeated bytes allowed_ca_certs = 5 |
|
|
|
|
[(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
|
|
|
|
|
// Optional. Type of the webhook. |
|
|
|
|
WebhookType webhook_type = 6 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
|
|
|
|
|
// Optional. HTTP method for the flexible webhook calls. Standard webhook |
|
|
|
|
// always uses POST. |
|
|
|
|
HttpMethod http_method = 7 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
|
|
|
|
|
// Optional. Defines a custom JSON object as request body to send to |
|
|
|
|
// flexible webhook. |
|
|
|
|
string request_body = 8 [(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
|
|
|
|
|
// Optional. Maps the values extracted from specific fields of the flexible |
|
|
|
|
// webhook response into session parameters. |
|
|
|
|
// - Key: session parameter name |
|
|
|
|
// - Value: field path in the webhook response |
|
|
|
|
map<string, string> parameter_mapping = 9 |
|
|
|
|
[(google.api.field_behavior) = OPTIONAL]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Represents configuration for a [Service |
|
|
|
|