Class ProjectsResource.LocationsResource.BuildsResource.ApproveRequest
Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.
Inheritance
ProjectsResource.LocationsResource.BuildsResource.ApproveRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.LocationsResource.BuildsResource.ApproveRequest : CloudBuildBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
ApproveRequest(IClientService, ApproveBuildRequest, string)
Constructs a new Approve request.
Declaration
public ApproveRequest(IClientService service, ApproveBuildRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ApproveBuildRequest | 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
Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"
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 Approve parameter list.
Declaration
protected override void InitParameters()