Class OrganizationsResource.ApprovalRequestsResource
The "approvalRequests" collection of methods.
Inherited Members
Namespace: Google.Apis.AccessApproval.v1
Assembly: Google.Apis.AccessApproval.v1.dll
Syntax
public class OrganizationsResource.ApprovalRequestsResource
Constructors
ApprovalRequestsResource(IClientService)
Constructs a new resource.
Declaration
public ApprovalRequestsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Approve(ApproveApprovalRequestMessage, string)
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.
Declaration
public virtual OrganizationsResource.ApprovalRequestsResource.ApproveRequest Approve(ApproveApprovalRequestMessage body, string name)
Parameters
Type | Name | Description |
---|---|---|
ApproveApprovalRequestMessage | body | The body of the request. |
string | name | Name of the approval request to approve. |
Returns
Type | Description |
---|---|
OrganizationsResource.ApprovalRequestsResource.ApproveRequest |
Dismiss(DismissApprovalRequestMessage, string)
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Declaration
public virtual OrganizationsResource.ApprovalRequestsResource.DismissRequest Dismiss(DismissApprovalRequestMessage body, string name)
Parameters
Type | Name | Description |
---|---|---|
DismissApprovalRequestMessage | body | The body of the request. |
string | name | Name of the ApprovalRequest to dismiss. |
Returns
Type | Description |
---|---|
OrganizationsResource.ApprovalRequestsResource.DismissRequest |
Get(string)
Gets an approval request. Returns NOT_FOUND if the request does not exist.
Declaration
public virtual OrganizationsResource.ApprovalRequestsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}" |
Returns
Type | Description |
---|---|
OrganizationsResource.ApprovalRequestsResource.GetRequest |
Invalidate(InvalidateApprovalRequestMessage, string)
Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.
Declaration
public virtual OrganizationsResource.ApprovalRequestsResource.InvalidateRequest Invalidate(InvalidateApprovalRequestMessage body, string name)
Parameters
Type | Name | Description |
---|---|---|
InvalidateApprovalRequestMessage | body | The body of the request. |
string | name | Name of the ApprovalRequest to invalidate. |
Returns
Type | Description |
---|---|
OrganizationsResource.ApprovalRequestsResource.InvalidateRequest |
List(string)
Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
Declaration
public virtual OrganizationsResource.ApprovalRequestsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}". |
Returns
Type | Description |
---|---|
OrganizationsResource.ApprovalRequestsResource.ListRequest |