All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.accessapproval.v1.AccessApproval.Organizations.ApprovalRequests.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240820-2.0.0
Show newest version






AccessApproval.Organizations.ApprovalRequests (Access Approval API v1-rev20240424-2.0.0)












com.google.api.services.accessapproval.v1

Class AccessApproval.Organizations.ApprovalRequests

  • java.lang.Object
    • com.google.api.services.accessapproval.v1.AccessApproval.Organizations.ApprovalRequests
    • Constructor Detail

      • ApprovalRequests

        public ApprovalRequests()
    • Method Detail

      • approve

        public AccessApproval.Organizations.ApprovalRequests.Approve approve(String name,
                                                                             ApproveApprovalRequestMessage content)
                                                                      throws IOException
        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. Create a request for the method "approvalRequests.approve". This request holds the parameters needed by the accessapproval server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Name of the approval request to approve.
        content - the ApproveApprovalRequestMessage
        Returns:
        the request
        Throws:
        IOException
      • dismiss

        public AccessApproval.Organizations.ApprovalRequests.Dismiss dismiss(String name,
                                                                             DismissApprovalRequestMessage content)
                                                                      throws IOException
        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. Create a request for the method "approvalRequests.dismiss". This request holds the parameters needed by the accessapproval server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Name of the ApprovalRequest to dismiss.
        content - the DismissApprovalRequestMessage
        Returns:
        the request
        Throws:
        IOException
      • get

        public AccessApproval.Organizations.ApprovalRequests.Get get(String name)
                                                              throws IOException
        Gets an approval request. Returns NOT_FOUND if the request does not exist. Create a request for the method "approvalRequests.get". This request holds the parameters needed by the accessapproval server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"
        Returns:
        the request
        Throws:
        IOException
      • invalidate

        public AccessApproval.Organizations.ApprovalRequests.Invalidate invalidate(String name,
                                                                                   InvalidateApprovalRequestMessage content)
                                                                            throws IOException
        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. Create a request for the method "approvalRequests.invalidate". This request holds the parameters needed by the accessapproval server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        name - Name of the ApprovalRequest to invalidate.
        content - the InvalidateApprovalRequestMessage
        Returns:
        the request
        Throws:
        IOException
      • list

        public AccessApproval.Organizations.ApprovalRequests.List list(String parent)
                                                                throws IOException
        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. Create a request for the method "approvalRequests.list". This request holds the parameters needed by the accessapproval server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy