Class ProjectsResource.LocationsResource.ConnectionsResource.ProcessWebhookRequest
ProcessWebhook is called by the external SCM for notifying of events.
Inheritance
ProjectsResource.LocationsResource.ConnectionsResource.ProcessWebhookRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v2
Assembly: Google.Apis.CloudBuild.v2.dll
Syntax
public class ProjectsResource.LocationsResource.ConnectionsResource.ProcessWebhookRequest : CloudBuildBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
ProcessWebhookRequest(IClientService, HttpBody, string)
Constructs a new ProcessWebhook request.
Declaration
public ProcessWebhookRequest(IClientService service, HttpBody body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
HttpBody | body | |
string | parent |
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
Parent
Required. Project and location where the webhook will be received. Format:
projects/*/locations/*
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
WebhookKey
Arbitrary additional key to find the maching repository for a webhook event if needed.
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 ProcessWebhook parameter list.
Declaration
protected override void InitParameters()