Class ApprovalsResource.ApproveRequest
Approves an approval. For more information, see Manage
approvals. This is used to update the
ReviewerResponse of the requesting user with a Response of APPROVED. If this is the last required reviewer
response, this also completes the approval and sets the approval Status to APPROVED.
Inheritance
ApprovalsResource.ApproveRequest
Inherited Members
Namespace: Google.Apis.Drive.v3
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class ApprovalsResource.ApproveRequest : DriveBaseServiceRequest<Approval>, IClientServiceRequest<Approval>, IClientServiceRequest
Constructors
ApproveRequest(IClientService, ApproveApprovalRequest, string, string)
Constructs a new Approve request.
Declaration
public ApproveRequest(IClientService service, ApproveApprovalRequest body, string fileId, string approvalId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ApproveApprovalRequest | body | |
| string | fileId | |
| string | approvalId |
Properties
ApprovalId
Required. The ID of the approval to approve.
Declaration
[RequestParameter("approvalId", RequestParameterType.Path)]
public virtual string ApprovalId { get; }
Property Value
| Type | Description |
|---|---|
| string |
FileId
Required. The ID of the file that the approval is on.
Declaration
[RequestParameter("fileId", RequestParameterType.Path)]
public virtual string FileId { get; }
Property Value
| Type | Description |
|---|---|
| string |
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
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()