Class ProjectsResource.BuildsResource.CancelRequest
Cancels a build in progress.
Inheritance
ProjectsResource.BuildsResource.CancelRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v1
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class ProjectsResource.BuildsResource.CancelRequest : CloudBuildBaseServiceRequest<Build>, IClientServiceRequest<Build>, IClientServiceRequest
Constructors
CancelRequest(IClientService, CancelBuildRequest, string, string)
Constructs a new Cancel request.
Declaration
public CancelRequest(IClientService service, CancelBuildRequest body, string projectId, string id)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CancelBuildRequest | body | |
string | projectId | |
string | id |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Id
Required. ID of the build.
Declaration
[RequestParameter("id", RequestParameterType.Path)]
public virtual string Id { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Cancel parameter list.
Declaration
protected override void InitParameters()