Class V1Resource.WebhookRequest
ReceiveWebhook is called when the API receives a GitHub webhook.
Inheritance
V1Resource.WebhookRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class V1Resource.WebhookRequest : CloudBuildBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
WebhookRequest(IClientService, HttpBody)
Constructs a new Webhook request.
Declaration
public WebhookRequest(IClientService service, HttpBody body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
HttpBody | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
WebhookKey
For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation.
Declaration
[RequestParameter("webhookKey", RequestParameterType.Query)]
public virtual string WebhookKey { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Webhook parameter list.
Declaration
protected override void InitParameters()