Class ProjectsResource.TriggersResource.RunRequest
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.
Inheritance
ProjectsResource.TriggersResource.RunRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.TriggersResource.RunRequest : CloudBuildBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
RunRequest(IClientService, RepoSource, string, string)
Constructs a new Run request.
Declaration
public RunRequest(IClientService service, RepoSource body, string projectId, string triggerId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RepoSource | body | |
string | projectId | |
string | triggerId |
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 Trigger
to run. Format:
projects/{project}/locations/{location}/triggers/{trigger}
Declaration
[RequestParameter("name", RequestParameterType.Query)]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ProjectId
Required. ID of the project.
Declaration
[RequestParameter("projectId", RequestParameterType.Path)]
public virtual string ProjectId { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
TriggerId
Required. ID of the trigger.
Declaration
[RequestParameter("triggerId", RequestParameterType.Path)]
public virtual string TriggerId { get; }
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 Run parameter list.
Declaration
protected override void InitParameters()