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