Class ProjectsResource.LocationsResource.TriggersResource.WebhookRequest
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
Inheritance
ProjectsResource.LocationsResource.TriggersResource.WebhookRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.LocationsResource.TriggersResource.WebhookRequest : CloudBuildBaseServiceRequest<ReceiveTriggerWebhookResponse>, IClientServiceRequest<ReceiveTriggerWebhookResponse>, IClientServiceRequest
Constructors
WebhookRequest(IClientService, HttpBody, string)
Constructs a new Webhook request.
Declaration
public WebhookRequest(IClientService service, HttpBody body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
HttpBody | body | |
string | name |
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
Name
The name of the ReceiveTriggerWebhook
to retrieve. Format:
projects/{project}/locations/{location}/triggers/{trigger}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
ProjectId
Project in which the specified trigger lives
Declaration
[RequestParameter("projectId", RequestParameterType.Query)]
public virtual string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Secret
Secret token used for authorization if an OAuth token isn't provided.
Declaration
[RequestParameter("secret", RequestParameterType.Query)]
public virtual string Secret { get; set; }
Property Value
Type | Description |
---|---|
string |
Trigger
Name of the trigger to run the payload against
Declaration
[RequestParameter("trigger", RequestParameterType.Query)]
public virtual string Trigger { 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()