Class FoldersResource.ApprovalRequestsResource.ApproveRequest
Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Inheritance
FoldersResource.ApprovalRequestsResource.ApproveRequest
Inherited Members
Namespace: Google.Apis.AccessApproval.v1
Assembly: Google.Apis.AccessApproval.v1.dll
Syntax
public class FoldersResource.ApprovalRequestsResource.ApproveRequest : AccessApprovalBaseServiceRequest<ApprovalRequest>, IClientServiceRequest<ApprovalRequest>, IClientServiceRequest
Constructors
ApproveRequest(IClientService, ApproveApprovalRequestMessage, string)
Constructs a new Approve request.
Declaration
public ApproveRequest(IClientService service, ApproveApprovalRequestMessage body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ApproveApprovalRequestMessage | 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
Name of the approval request to approve.
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()