Class ProjectsResource.TriggersResource
The "triggers" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.TriggersResource
Constructors
TriggersResource(IClientService)
Constructs a new resource.
Declaration
public TriggersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(BuildTrigger, string)
Creates a new BuildTrigger
.
Declaration
public virtual ProjectsResource.TriggersResource.CreateRequest Create(BuildTrigger body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
BuildTrigger | body | The body of the request. |
string | projectId | Required. ID of the project for which to configure automatic builds. |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.CreateRequest |
Delete(string, string)
Deletes a BuildTrigger
by its project ID and trigger ID.
Declaration
public virtual ProjectsResource.TriggersResource.DeleteRequest Delete(string projectId, string triggerId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. ID of the project that owns the trigger. |
string | triggerId | Required. ID of the |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.DeleteRequest |
Get(string, string)
Returns information about a BuildTrigger
.
Declaration
public virtual ProjectsResource.TriggersResource.GetRequest Get(string projectId, string triggerId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. ID of the project that owns the trigger. |
string | triggerId | Required. Identifier ( |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.GetRequest |
List(string)
Lists existing BuildTrigger
s.
Declaration
public virtual ProjectsResource.TriggersResource.ListRequest List(string projectId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Required. ID of the project for which to list BuildTriggers. |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.ListRequest |
Patch(BuildTrigger, string, string)
Updates a BuildTrigger
by its project ID and trigger ID.
Declaration
public virtual ProjectsResource.TriggersResource.PatchRequest Patch(BuildTrigger body, string projectId, string triggerId)
Parameters
Type | Name | Description |
---|---|---|
BuildTrigger | body | The body of the request. |
string | projectId | Required. ID of the project that owns the trigger. |
string | triggerId | Required. ID of the |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.PatchRequest |
Run(RepoSource, string, string)
Runs a BuildTrigger
at a particular source revision. To run a regional or global trigger, use the POST
request that includes the location endpoint in the path (ex.
v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not
include the location endpoint in the path can only be used when running global triggers.
Declaration
public virtual ProjectsResource.TriggersResource.RunRequest Run(RepoSource body, string projectId, string triggerId)
Parameters
Type | Name | Description |
---|---|---|
RepoSource | body | The body of the request. |
string | projectId | Required. ID of the project. |
string | triggerId | Required. ID of the trigger. |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.RunRequest |
Webhook(HttpBody, string, string)
ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.
Declaration
public virtual ProjectsResource.TriggersResource.WebhookRequest Webhook(HttpBody body, string projectId, string trigger)
Parameters
Type | Name | Description |
---|---|---|
HttpBody | body | The body of the request. |
string | projectId | Project in which the specified trigger lives |
string | trigger | Name of the trigger to run the payload against |
Returns
Type | Description |
---|---|
ProjectsResource.TriggersResource.WebhookRequest |