Vault
import { Vault } from "https://googleapis.deno.dev/v1/vault:v1.ts";
Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the required Vault privileges and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the View All Matters privilege. For example, to download an export, an account needs the Manage Exports privilege and the matter shared with them.
§Methods
Adds an account as a matter collaborator.
The matter ID.
Closes the specified matter. Returns the matter with updated state.
The matter ID.
Lists details about the exports in the specified matter.
The matter ID.
Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned.
The hold ID.
The matter ID.
Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold.
The hold ID.
The matter ID.
Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged.
The hold ID.
The matter ID.
Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.
The hold ID.
The matter ID.
Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored.
The ID of the hold.
The matter ID.
Lists matters the requestor has access to.
Reopens the specified matter. Returns the matter with updated state.
The matter ID.
Retrieves the specified saved query.
The ID of the matter to get the saved query from.
ID of the saved query to retrieve.
Lists the saved queries in a matter.
The ID of the matter to get the saved queries for.
Undeletes the specified matter. Returns the matter with updated state.
The matter ID.
Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not guaranteed.
If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation, the
operation is not deleted; instead, it becomes an operation with an
Operation.error value with a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
.
The name of the operation resource to be cancelled.
Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
google.rpc.Code.UNIMPLEMENTED
.
The name of the operation resource to be deleted.