Class LocationsResource.RegionalWebhookRequest
ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook.
Inheritance
LocationsResource.RegionalWebhookRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class LocationsResource.RegionalWebhookRequest : CloudBuildBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
RegionalWebhookRequest(IClientService, HttpBody, string)
Constructs a new RegionalWebhook request.
Declaration
public RegionalWebhookRequest(IClientService service, HttpBody body, string location)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
HttpBody | body | |
string | location |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Location
Required. The location where the webhook should be sent.
Declaration
[RequestParameter("location", RequestParameterType.Path)]
public virtual string Location { get; }
Property Value
Type | Description |
---|---|
string |
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 RegionalWebhook parameter list.
Declaration
protected override void InitParameters()