{ "id": "vault:v1", "schemas": { "ListOperationsResponse": { "id": "ListOperationsResponse", "description": "The response message for Operations.ListOperations.", "type": "object", "properties": { "operations": { "description": "A list of operations that matches the specified filter in the request.", "type": "array", "items": { "$ref": "Operation" } }, "nextPageToken": { "description": "The standard List next-page token.", "type": "string" } } }, "Operation": { "id": "Operation", "description": "This resource represents a long-running operation that is the result of a network API call.", "type": "object", "properties": { "name": { "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", "type": "string" }, "metadata": { "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object. Contains field @type with type URL." } }, "done": { "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", "type": "boolean" }, "error": { "description": "The error result of the operation in case of failure or cancellation.", "$ref": "Status" }, "response": { "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object. Contains field @type with type URL." } } } }, "Status": { "id": "Status", "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "type": "object", "properties": { "code": { "description": "The status code, which should be an enum value of google.rpc.Code.", "type": "integer", "format": "int32" }, "message": { "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", "type": "string" }, "details": { "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", "type": "array", "items": { "type": "object", "additionalProperties": { "type": "any", "description": "Properties of the object. Contains field @type with type URL." } } } } }, "Empty": { "id": "Empty", "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "type": "object", "properties": {} }, "CancelOperationRequest": { "id": "CancelOperationRequest", "description": "The request message for Operations.CancelOperation.", "type": "object", "properties": {} }, "Matter": { "id": "Matter", "description": "Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) 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.", "type": "object", "properties": { "matterId": { "description": "The matter ID, which is generated by the server. Leave blank when creating a matter.", "type": "string" }, "name": { "description": "The name of the matter.", "type": "string" }, "description": { "description": "An optional description for the matter.", "type": "string" }, "state": { "description": "The state of the matter.", "type": "string", "enumDescriptions": [ "The matter has no specified state.", "The matter is open.", "The matter is closed.", "The matter is deleted." ], "enum": [ "STATE_UNSPECIFIED", "OPEN", "CLOSED", "DELETED" ] }, "matterPermissions": { "description": "Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.", "type": "array", "items": { "$ref": "MatterPermission" } } } }, "MatterPermission": { "id": "MatterPermission", "description": "Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.", "type": "object", "properties": { "role": { "description": "The user's role for the matter.", "type": "string", "enumDescriptions": [ "No role assigned.", "A collaborator on the matter.", "The owner of the matter." ], "enum": [ "ROLE_UNSPECIFIED", "COLLABORATOR", "OWNER" ] }, "accountId": { "description": "The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).", "type": "string" } } }, "CloseMatterRequest": { "id": "CloseMatterRequest", "description": "Close a matter by ID.", "type": "object", "properties": {} }, "CloseMatterResponse": { "id": "CloseMatterResponse", "description": "Response to a CloseMatterRequest.", "type": "object", "properties": { "matter": { "description": "The updated matter, with state **CLOSED**.", "$ref": "Matter" } } }, "ReopenMatterRequest": { "id": "ReopenMatterRequest", "description": "Reopen a matter by ID.", "type": "object", "properties": {} }, "ReopenMatterResponse": { "id": "ReopenMatterResponse", "description": "Response to a ReopenMatterRequest.", "type": "object", "properties": { "matter": { "description": "The updated matter, with state **OPEN**.", "$ref": "Matter" } } }, "UndeleteMatterRequest": { "id": "UndeleteMatterRequest", "description": "Undelete a matter by ID.", "type": "object", "properties": {} }, "ListMattersResponse": { "id": "ListMattersResponse", "description": "Provides the list of matters.", "type": "object", "properties": { "matters": { "description": "List of matters.", "type": "array", "items": { "$ref": "Matter" } }, "nextPageToken": { "description": "Page token to retrieve the next page of results in the list.", "type": "string" } } }, "AddMatterPermissionsRequest": { "id": "AddMatterPermissionsRequest", "description": "Add an account with the permission specified. The role cannot be owner. If an account already has a role in the matter, the existing role is overwritten.", "type": "object", "properties": { "matterPermission": { "description": "The account and its role to add.", "$ref": "MatterPermission" }, "sendEmails": { "description": "To send a notification email to the added account, set to **true**. To not send a notification email, set to **false**.", "type": "boolean" }, "ccMe": { "description": "Only relevant if **sendEmails** is **true**. To CC the requestor in the email message, set to **true**. To not CC requestor, set to **false**.", "type": "boolean" } } }, "RemoveMatterPermissionsRequest": { "id": "RemoveMatterPermissionsRequest", "description": "Remove an account as a matter collaborator.", "type": "object", "properties": { "accountId": { "description": "The account ID.", "type": "string" } } }, "CountArtifactsRequest": { "id": "CountArtifactsRequest", "description": "Count artifacts request.", "type": "object", "properties": { "query": { "description": "The search query.", "$ref": "Query" }, "view": { "description": "Sets the granularity of the count results.", "type": "string", "enumDescriptions": [ "Default. Same as **TOTAL_COUNT**.", "Response includes counts of the total accounts, queried accounts, matching accounts, non-queryable accounts, and queried account errors.", "Response includes the same details as **TOTAL_COUNT**, plus additional account breakdown." ], "enum": [ "COUNT_RESULT_VIEW_UNSPECIFIED", "TOTAL_COUNT", "ALL" ] } } }, "Query": { "id": "Query", "description": "The query definition used for search and export.", "type": "object", "properties": { "corpus": { "description": "The Google Workspace service to search.", "type": "string", "enumDescriptions": [ "No service specified.", "Drive, including Meet and Sites.", "For search, Gmail and classic Hangouts. For holds, Gmail only.", "Groups.", "For export, Google Chat only. For holds, Google Chat and classic Hangouts.", "Google Voice.", "Calendar." ], "enum": [ "CORPUS_TYPE_UNSPECIFIED", "DRIVE", "MAIL", "GROUPS", "HANGOUTS_CHAT", "VOICE", "CALENDAR" ] }, "dataScope": { "description": "The data source to search.", "type": "string", "enumDescriptions": [ "No data source specified.", "All available data.", "Only data on hold.", "Only data not yet processed by Vault. (Gmail and Groups only)" ], "enum": [ "DATA_SCOPE_UNSPECIFIED", "ALL_DATA", "HELD_DATA", "UNPROCESSED_DATA" ] }, "searchMethod": { "description": "The search method to use.", "deprecated": true, "type": "string", "enumDescriptions": [ "A search method must be specified or else it is rejected.", "Search the data of the accounts specified in [AccountInfo](https://developers.google.com/vault/reference/rest/v1/Query#accountinfo).", "Search the data of all accounts in the organizational unit specified in [OrgUnitInfo](https://developers.google.com/vault/reference/rest/v1/Query#orgunitinfo).", "Search the data in the Team Drive specified in **team_drive_info**.", "Search the data of all accounts in the organization. Supported only for Gmail. When specified, you don't need to specify **AccountInfo** or **OrgUnitInfo**.", "Search messages in the Chat spaces specified in [HangoutsChatInfo](https://developers.google.com/vault/reference/rest/v1/Query#hangoutschatinfo).", "Search for sites by the published site URLs specified in [SitesUrlInfo](https://developers.google.com/vault/reference/rest/v1/Query#sitesurlinfo).", "Search the files in the shared drives specified in [SharedDriveInfo](https://developers.google.com/vault/reference/rest/v1/Query#shareddriveinfo)." ], "enumDeprecated": [ false, false, false, true, false, false, false, false ], "enum": [ "SEARCH_METHOD_UNSPECIFIED", "ACCOUNT", "ORG_UNIT", "TEAM_DRIVE", "ENTIRE_ORG", "ROOM", "SITES_URL", "SHARED_DRIVE" ] }, "method": { "description": "The entity to search. This field replaces **searchMethod** to support shared drives. When **searchMethod** is **TEAM_DRIVE**, the response of this field is **SHARED_DRIVE**.", "type": "string", "enumDescriptions": [ "A search method must be specified or else it is rejected.", "Search the data of the accounts specified in [AccountInfo](https://developers.google.com/vault/reference/rest/v1/Query#accountinfo).", "Search the data of all accounts in the organizational unit specified in [OrgUnitInfo](https://developers.google.com/vault/reference/rest/v1/Query#orgunitinfo).", "Search the data in the Team Drive specified in **team_drive_info**.", "Search the data of all accounts in the organization. Supported only for Gmail. When specified, you don't need to specify **AccountInfo** or **OrgUnitInfo**.", "Search messages in the Chat spaces specified in [HangoutsChatInfo](https://developers.google.com/vault/reference/rest/v1/Query#hangoutschatinfo).", "Search for sites by the published site URLs specified in [SitesUrlInfo](https://developers.google.com/vault/reference/rest/v1/Query#sitesurlinfo).", "Search the files in the shared drives specified in [SharedDriveInfo](https://developers.google.com/vault/reference/rest/v1/Query#shareddriveinfo)." ], "enumDeprecated": [ false, false, false, true, false, false, false, false ], "enum": [ "SEARCH_METHOD_UNSPECIFIED", "ACCOUNT", "ORG_UNIT", "TEAM_DRIVE", "ENTIRE_ORG", "ROOM", "SITES_URL", "SHARED_DRIVE" ] }, "terms": { "description": "Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter search results.", "type": "string" }, "startTime": { "description": "The start time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" }, "endTime": { "description": "The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" }, "accountInfo": { "description": "Required when **SearchMethod** is **ACCOUNT**.", "$ref": "AccountInfo" }, "orgUnitInfo": { "description": "Required when **SearchMethod** is **ORG_UNIT**.", "$ref": "OrgUnitInfo" }, "sharedDriveInfo": { "description": "Required when **SearchMethod** is **SHARED_DRIVE**.", "$ref": "SharedDriveInfo" }, "hangoutsChatInfo": { "description": "Required when **SearchMethod** is **ROOM**. (read-only)", "$ref": "HangoutsChatInfo" }, "sitesUrlInfo": { "description": "Required when **SearchMethod** is **SITES_URL**.", "$ref": "SitesUrlInfo" }, "teamDriveInfo": { "description": "Required when **SearchMethod** is **TEAM_DRIVE**.", "deprecated": true, "$ref": "TeamDriveInfo" }, "mailOptions": { "description": "Set Gmail search-specific options.", "$ref": "MailOptions" }, "driveOptions": { "description": "Set Drive search-specific options.", "$ref": "DriveOptions" }, "hangoutsChatOptions": { "description": "Set Chat search-specific options. (read-only)", "$ref": "HangoutsChatOptions" }, "voiceOptions": { "description": "Set Voice search-specific options.", "$ref": "VoiceOptions" }, "calendarOptions": { "description": "Set Calendar search-specific options.", "$ref": "CalendarOptions" }, "timeZone": { "description": "The time zone name. It should be an IANA TZ name, such as \"America/Los_Angeles\". For a list of time zone names, see [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For more information about how Vault uses time zones, see [the Vault help center](https://support.google.com/vault/answer/6092995#time).", "type": "string" } } }, "AccountInfo": { "id": "AccountInfo", "description": "The accounts to search", "type": "object", "properties": { "emails": { "description": "A set of accounts to search.", "type": "array", "items": { "type": "string" } } } }, "OrgUnitInfo": { "id": "OrgUnitInfo", "description": "The organizational unit to search", "type": "object", "properties": { "orgUnitId": { "description": "The name of the organizational unit to search, as provided by the [Admin SDK Directory API](https://developers.google.com/admin-sdk/directory/).", "type": "string" } } }, "SharedDriveInfo": { "id": "SharedDriveInfo", "description": "The shared drives to search", "type": "object", "properties": { "sharedDriveIds": { "description": "A list of shared drive IDs, as provided by the [Drive API](https://developers.google.com/drive).", "type": "array", "items": { "type": "string" } } } }, "HangoutsChatInfo": { "id": "HangoutsChatInfo", "description": "The Chat spaces to search", "type": "object", "properties": { "roomId": { "description": "A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/chat). There is a limit of exporting from 500 Chat spaces per request.", "type": "array", "items": { "type": "string" } } } }, "SitesUrlInfo": { "id": "SitesUrlInfo", "description": "The published site URLs of new Google Sites to search", "type": "object", "properties": { "urls": { "description": "A list of published site URLs.", "type": "array", "items": { "type": "string" } } } }, "TeamDriveInfo": { "id": "TeamDriveInfo", "deprecated": true, "description": "Team Drives to search", "type": "object", "properties": { "teamDriveIds": { "description": "List of Team Drive IDs, as provided by the [Drive API](https://developers.google.com/drive).", "deprecated": true, "type": "array", "items": { "type": "string" } } } }, "MailOptions": { "id": "MailOptions", "description": "Additional options for Gmail search", "type": "object", "properties": { "excludeDrafts": { "description": "Set to **true** to exclude drafts.", "type": "boolean" }, "clientSideEncryptedOption": { "description": "Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both.", "type": "string", "enumDescriptions": [ "Encryption status unspecified. Results include both client-side encrypted and non-encrypted content.", "Include both client-side encrypted and unencrypted content in results.", "Include client-side encrypted content only.", "Include unencrypted content only." ], "enum": [ "CLIENT_SIDE_ENCRYPTED_OPTION_UNSPECIFIED", "CLIENT_SIDE_ENCRYPTED_OPTION_ANY", "CLIENT_SIDE_ENCRYPTED_OPTION_ENCRYPTED", "CLIENT_SIDE_ENCRYPTED_OPTION_UNENCRYPTED" ] } } }, "DriveOptions": { "id": "DriveOptions", "description": "Additional options for Drive search", "type": "object", "properties": { "versionDate": { "description": "Search the current version of the Drive file, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.", "type": "string", "format": "google-datetime" }, "includeTeamDrives": { "description": "Set to true to include Team Drive.", "deprecated": true, "type": "boolean" }, "includeSharedDrives": { "description": "Set to **true** to include shared drives.", "type": "boolean" }, "clientSideEncryptedOption": { "description": "Set whether the results include only content encrypted with [Google Workspace Client-side encryption](https://support.google.com/a?p=cse_ov) content, only unencrypted content, or both. Defaults to both. Currently supported for Drive.", "type": "string", "enumDescriptions": [ "Encryption status unspecified. Results include both client-side encrypted and non-encrypted content.", "Include both client-side encrypted and unencrypted content in results.", "Include client-side encrypted content only.", "Include unencrypted content only." ], "enum": [ "CLIENT_SIDE_ENCRYPTED_OPTION_UNSPECIFIED", "CLIENT_SIDE_ENCRYPTED_OPTION_ANY", "CLIENT_SIDE_ENCRYPTED_OPTION_ENCRYPTED", "CLIENT_SIDE_ENCRYPTED_OPTION_UNENCRYPTED" ] } } }, "HangoutsChatOptions": { "id": "HangoutsChatOptions", "description": "Additional options for Google Chat search", "type": "object", "properties": { "includeRooms": { "description": "For searches by account or organizational unit, set to **true** to include rooms.", "type": "boolean" } } }, "VoiceOptions": { "id": "VoiceOptions", "description": "Additional options for Voice search", "type": "object", "properties": { "coveredData": { "description": "Datatypes to search", "type": "array", "items": { "type": "string", "enumDescriptions": [ "Covered data unspecified.", "Voice text messages.", "Voicemails and their transcripts.", "Call logs." ], "enum": [ "COVERED_DATA_UNSPECIFIED", "TEXT_MESSAGES", "VOICEMAILS", "CALL_LOGS" ] } } } }, "CalendarOptions": { "id": "CalendarOptions", "description": "Additional options for Calendar search", "type": "object", "properties": { "locationQuery": { "description": "Matches only those events whose location contains all of the words in the given set. If the string contains quoted phrases, this method only matches those events whose location contain the exact phrase. Entries in the set are considered in \"and\". Word splitting example: [\"New Zealand\"] vs [\"New\",\"Zealand\"] \"New Zealand\": matched by both \"New and better Zealand\": only matched by the later", "type": "array", "items": { "type": "string" } }, "peopleQuery": { "description": "Matches only those events whose attendees contain all of the words in the given set. Entries in the set are considered in \"and\".", "type": "array", "items": { "type": "string" } }, "minusWords": { "description": "Matches only those events that do not contain any of the words in the given set in title, description, location, or attendees. Entries in the set are considered in \"or\".", "type": "array", "items": { "type": "string" } }, "responseStatuses": { "description": "Matches only events for which the custodian gave one of these responses. If the set is empty or contains ATTENDEE_RESPONSE_UNSPECIFIED there will be no filtering on responses.", "type": "array", "items": { "type": "string", "enumDescriptions": [ "Attendee response unspecified. If this is set no filtering on responses will be done, all other attendee responses that are part of the query options are ignored.", "The participant has been invited but has not responded yet.", "The participant plans to attend.", "The participant does not plan to attend.", "The participant expects to possibly attend." ], "enum": [ "ATTENDEE_RESPONSE_UNSPECIFIED", "ATTENDEE_RESPONSE_NEEDS_ACTION", "ATTENDEE_RESPONSE_ACCEPTED", "ATTENDEE_RESPONSE_DECLINED", "ATTENDEE_RESPONSE_TENTATIVE" ] } }, "versionDate": { "description": "Search the current version of the Calendar event, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.", "type": "string", "format": "google-datetime" } } }, "Export": { "id": "Export", "description": "An export. To work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) 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.", "type": "object", "properties": { "id": { "description": "Output only. The generated export ID.", "type": "string" }, "matterId": { "description": "Output only. The matter ID.", "type": "string" }, "parentExportId": { "description": "Output only. Identifies the parent export that spawned this child export. This is only set on child exports.", "readOnly": true, "type": "string" }, "name": { "description": "The export name. Don't use special characters (~!$'(),;@:/?) in the name, they can prevent you from downloading exports.", "type": "string" }, "requester": { "description": "Output only. The requester of the export.", "$ref": "UserInfo" }, "query": { "description": "The query parameters used to create the export.", "$ref": "Query" }, "exportOptions": { "description": "Additional export options.", "$ref": "ExportOptions" }, "createTime": { "description": "Output only. The time when the export was created.", "type": "string", "format": "google-datetime" }, "status": { "description": "Output only. The status of the export.", "type": "string", "enumDescriptions": [ "The status is unspecified.", "The export completed.", "The export failed.", "The export is in progress." ], "enum": [ "EXPORT_STATUS_UNSPECIFIED", "COMPLETED", "FAILED", "IN_PROGRESS" ] }, "stats": { "description": "Output only. Details about the export progress and size.", "$ref": "ExportStats" }, "cloudStorageSink": { "description": "Output only. The sink for export files in Cloud Storage.", "$ref": "CloudStorageSink" } } }, "UserInfo": { "id": "UserInfo", "description": "User's information.", "type": "object", "properties": { "email": { "description": "The email address of the user.", "type": "string" }, "displayName": { "description": "The displayed name of the user.", "type": "string" } } }, "ExportOptions": { "id": "ExportOptions", "description": "Additional options for exports", "type": "object", "properties": { "mailOptions": { "description": "Options for Gmail exports.", "$ref": "MailExportOptions" }, "groupsOptions": { "description": "Options for Groups exports.", "$ref": "GroupsExportOptions" }, "driveOptions": { "description": "Options for Drive exports.", "$ref": "DriveExportOptions" }, "hangoutsChatOptions": { "description": "Options for Chat exports.", "$ref": "HangoutsChatExportOptions" }, "voiceOptions": { "description": "Options for Voice exports.", "$ref": "VoiceExportOptions" }, "calendarOptions": { "description": "Option available for Calendar export.", "$ref": "CalendarExportOptions" }, "region": { "description": "The requested data region for the export.", "type": "string", "enumDescriptions": [ "The region is unspecified. Defaults to ANY.", "Any region.", "United States region.", "Europe region." ], "enum": [ "EXPORT_REGION_UNSPECIFIED", "ANY", "US", "EUROPE" ] } } }, "MailExportOptions": { "id": "MailExportOptions", "description": "Options for Gmail exports.", "type": "object", "properties": { "exportFormat": { "description": "The file format for exported messages.", "type": "string", "enumDescriptions": [ "No export format specified.", "Export as MBOX. Only available for Gmail, Groups, Hangouts and Voice.", "Export as PST. Only available for Gmail, Groups, Hangouts, Voice and Calendar.", "Export as ICS. Only available for Calendar." ], "enum": [ "EXPORT_FORMAT_UNSPECIFIED", "MBOX", "PST", "ICS" ] }, "showConfidentialModeContent": { "description": "To export confidential mode content, set to **true**.", "type": "boolean" }, "useNewExport": { "description": "To use the new export system, set to **true**.", "type": "boolean" }, "exportLinkedDriveFiles": { "description": "Optional. To enable exporting linked Drive files, set to **true**.", "type": "boolean" } } }, "GroupsExportOptions": { "id": "GroupsExportOptions", "description": "Options for Groups exports.", "type": "object", "properties": { "exportFormat": { "description": "The file format for exported messages.", "type": "string", "enumDescriptions": [ "No export format specified.", "Export as MBOX. Only available for Gmail, Groups, Hangouts and Voice.", "Export as PST. Only available for Gmail, Groups, Hangouts, Voice and Calendar.", "Export as ICS. Only available for Calendar." ], "enum": [ "EXPORT_FORMAT_UNSPECIFIED", "MBOX", "PST", "ICS" ] } } }, "DriveExportOptions": { "id": "DriveExportOptions", "description": "Options for Drive exports.", "type": "object", "properties": { "includeAccessInfo": { "description": "To include access level information for users with [indirect access](https://support.google.com/vault/answer/6099459#metadata) to files, set to **true**.", "type": "boolean" } } }, "HangoutsChatExportOptions": { "id": "HangoutsChatExportOptions", "description": "Options for Chat exports.", "type": "object", "properties": { "exportFormat": { "description": "The file format for exported messages.", "type": "string", "enumDescriptions": [ "No export format specified.", "Export as MBOX. Only available for Gmail, Groups, Hangouts and Voice.", "Export as PST. Only available for Gmail, Groups, Hangouts, Voice and Calendar.", "Export as ICS. Only available for Calendar." ], "enum": [ "EXPORT_FORMAT_UNSPECIFIED", "MBOX", "PST", "ICS" ] } } }, "VoiceExportOptions": { "id": "VoiceExportOptions", "description": "The options for Voice exports.", "type": "object", "properties": { "exportFormat": { "description": "The file format for exported text messages.", "type": "string", "enumDescriptions": [ "No export format specified.", "Export as MBOX. Only available for Gmail, Groups, Hangouts and Voice.", "Export as PST. Only available for Gmail, Groups, Hangouts, Voice and Calendar.", "Export as ICS. Only available for Calendar." ], "enum": [ "EXPORT_FORMAT_UNSPECIFIED", "MBOX", "PST", "ICS" ] } } }, "CalendarExportOptions": { "id": "CalendarExportOptions", "description": "The options for Calendar exports.", "type": "object", "properties": { "exportFormat": { "description": "The file format for exported text messages.", "type": "string", "enumDescriptions": [ "No export format specified.", "Export as MBOX. Only available for Gmail, Groups, Hangouts and Voice.", "Export as PST. Only available for Gmail, Groups, Hangouts, Voice and Calendar.", "Export as ICS. Only available for Calendar." ], "enum": [ "EXPORT_FORMAT_UNSPECIFIED", "MBOX", "PST", "ICS" ] } } }, "ExportStats": { "id": "ExportStats", "description": "Progress information for an export.", "type": "object", "properties": { "exportedArtifactCount": { "description": "The number of messages or files already processed for export.", "type": "string", "format": "int64" }, "totalArtifactCount": { "description": "The number of messages or files to be exported.", "type": "string", "format": "int64" }, "sizeInBytes": { "description": "The size of export in bytes.", "type": "string", "format": "int64" } } }, "CloudStorageSink": { "id": "CloudStorageSink", "description": "Export sink for Cloud Storage files.", "type": "object", "properties": { "files": { "description": "Output only. The exported files in Cloud Storage.", "type": "array", "items": { "$ref": "CloudStorageFile" } } } }, "CloudStorageFile": { "id": "CloudStorageFile", "description": "The export file in Cloud Storage", "type": "object", "properties": { "bucketName": { "description": "The name of the Cloud Storage bucket for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api), but not to list the bucket contents. Instead, you can [get individual export files](https://cloud.google.com/storage/docs/json_api/v1/objects/get) by object name.", "type": "string" }, "objectName": { "description": "The name of the Cloud Storage object for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api).", "type": "string" }, "size": { "description": "The export file size.", "type": "string", "format": "int64" }, "md5Hash": { "description": "The md5 hash of the file.", "type": "string" } } }, "ListExportsResponse": { "id": "ListExportsResponse", "description": "The exports for a matter.", "type": "object", "properties": { "exports": { "description": "The list of exports.", "type": "array", "items": { "$ref": "Export" } }, "nextPageToken": { "description": "Page token to retrieve the next page of results in the list.", "type": "string" } } }, "Hold": { "id": "Hold", "description": "A hold. A hold prevents the specified Google Workspace service from purging data for specific accounts or all members of an organizational unit. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) 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.", "type": "object", "properties": { "holdId": { "description": "The unique immutable ID of the hold. Assigned during creation.", "type": "string" }, "name": { "description": "The name of the hold.", "type": "string" }, "updateTime": { "description": "The last time this hold was modified.", "type": "string", "format": "google-datetime" }, "accounts": { "description": "If set, the hold applies to the specified accounts and **orgUnit** must be empty.", "type": "array", "items": { "$ref": "HeldAccount" } }, "orgUnit": { "description": "If set, the hold applies to all members of the organizational unit and **accounts** must be empty. This property is mutable. For Groups holds, set **accounts**.", "$ref": "HeldOrgUnit" }, "corpus": { "description": "The service to be searched.", "type": "string", "enumDescriptions": [ "No service specified.", "Drive, including Meet and Sites.", "For search, Gmail and classic Hangouts. For holds, Gmail only.", "Groups.", "For export, Google Chat only. For holds, Google Chat and classic Hangouts.", "Google Voice.", "Calendar." ], "enum": [ "CORPUS_TYPE_UNSPECIFIED", "DRIVE", "MAIL", "GROUPS", "HANGOUTS_CHAT", "VOICE", "CALENDAR" ] }, "query": { "description": "Service-specific options. If set, **CorpusQuery** must match **CorpusType**.", "$ref": "CorpusQuery" } } }, "HeldAccount": { "id": "HeldAccount", "description": "An account covered by a hold. This structure is immutable. It can be an individual account or a Google Group, depending on the service. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) 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.", "type": "object", "properties": { "accountId": { "description": "The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).", "type": "string" }, "holdTime": { "description": "Output only. When the account was put on hold.", "type": "string", "format": "google-datetime" }, "email": { "description": "The primary email address of the account. If used as an input, this takes precedence over **accountId**.", "type": "string" }, "firstName": { "description": "Output only. The first name of the account holder.", "type": "string" }, "lastName": { "description": "Output only. The last name of the account holder.", "type": "string" } } }, "HeldOrgUnit": { "id": "HeldOrgUnit", "description": "The organizational unit covered by a hold. This structure is immutable.", "type": "object", "properties": { "orgUnitId": { "description": "The organizational unit's immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).", "type": "string" }, "holdTime": { "description": "When the organizational unit was put on hold. This property is immutable.", "type": "string", "format": "google-datetime" } } }, "CorpusQuery": { "id": "CorpusQuery", "description": "Service-specific options for holds.", "type": "object", "properties": { "driveQuery": { "description": "Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.", "$ref": "HeldDriveQuery" }, "mailQuery": { "description": "Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.", "$ref": "HeldMailQuery" }, "groupsQuery": { "description": "Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.", "$ref": "HeldGroupsQuery" }, "hangoutsChatQuery": { "description": "Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.", "$ref": "HeldHangoutsChatQuery" }, "voiceQuery": { "description": "Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.", "$ref": "HeldVoiceQuery" } } }, "HeldDriveQuery": { "id": "HeldDriveQuery", "description": "Options for Drive holds.", "type": "object", "properties": { "includeTeamDriveFiles": { "description": "To include files in Team Drives in the hold, set to **true**.", "deprecated": true, "type": "boolean" }, "includeSharedDriveFiles": { "description": "To include files in shared drives in the hold, set to **true**.", "type": "boolean" } } }, "HeldMailQuery": { "id": "HeldMailQuery", "description": "Query options for Gmail holds.", "type": "object", "properties": { "terms": { "description": "The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.", "type": "string" }, "startTime": { "description": "The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" }, "endTime": { "description": "The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" } } }, "HeldGroupsQuery": { "id": "HeldGroupsQuery", "description": "Query options for group holds.", "type": "object", "properties": { "terms": { "description": "The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.", "type": "string" }, "startTime": { "description": "The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" }, "endTime": { "description": "The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.", "type": "string", "format": "google-datetime" } } }, "HeldHangoutsChatQuery": { "id": "HeldHangoutsChatQuery", "description": "Options for Chat holds.", "type": "object", "properties": { "includeRooms": { "description": "To include messages in Chat spaces the user was a member of, set to **true**.", "type": "boolean" } } }, "HeldVoiceQuery": { "id": "HeldVoiceQuery", "description": "Options for Voice holds.", "type": "object", "properties": { "coveredData": { "description": "A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.", "type": "array", "items": { "type": "string", "enumDescriptions": [ "Covered data unspecified.", "Voice text messages.", "Voicemails and their transcripts.", "Call logs." ], "enum": [ "COVERED_DATA_UNSPECIFIED", "TEXT_MESSAGES", "VOICEMAILS", "CALL_LOGS" ] } } } }, "ListHoldsResponse": { "id": "ListHoldsResponse", "description": "The holds for a matter.", "type": "object", "properties": { "holds": { "description": "The list of holds.", "type": "array", "items": { "$ref": "Hold" } }, "nextPageToken": { "description": "Page token to retrieve the next page of results in the list. If this is empty, then there are no more holds to list.", "type": "string" } } }, "AddHeldAccountsRequest": { "id": "AddHeldAccountsRequest", "description": "Add a list of accounts to a hold.", "type": "object", "properties": { "emails": { "description": "A comma-separated list of the emails of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both.", "type": "array", "items": { "type": "string" } }, "accountIds": { "description": "A comma-separated list of the account IDs of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both.", "type": "array", "items": { "type": "string" } } } }, "AddHeldAccountsResponse": { "id": "AddHeldAccountsResponse", "description": "Response for batch create held accounts.", "type": "object", "properties": { "responses": { "description": "The list of responses, in the same order as the batch request.", "type": "array", "items": { "$ref": "AddHeldAccountResult" } } } }, "AddHeldAccountResult": { "id": "AddHeldAccountResult", "description": "The status of each account creation, and the **HeldAccount**, if successful.", "type": "object", "properties": { "account": { "description": "Returned when the account was successfully created.", "$ref": "HeldAccount" }, "status": { "description": "Reports the request status. If it failed, returns an error message.", "$ref": "Status" } } }, "RemoveHeldAccountsRequest": { "id": "RemoveHeldAccountsRequest", "description": "Remove a list of accounts from a hold.", "type": "object", "properties": { "accountIds": { "description": "The account IDs of the accounts to remove from the hold.", "type": "array", "items": { "type": "string" } } } }, "RemoveHeldAccountsResponse": { "id": "RemoveHeldAccountsResponse", "description": "Response for batch delete held accounts.", "type": "object", "properties": { "statuses": { "description": "A list of statuses for the deleted accounts. Results have the same order as the request.", "type": "array", "items": { "$ref": "Status" } } } }, "ListHeldAccountsResponse": { "id": "ListHeldAccountsResponse", "description": "Returns a list of the accounts covered by a hold.", "type": "object", "properties": { "accounts": { "description": "The held accounts on a hold.", "type": "array", "items": { "$ref": "HeldAccount" } } } }, "SavedQuery": { "id": "SavedQuery", "description": "The definition of a saved query. To work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) 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.", "type": "object", "properties": { "savedQueryId": { "description": "A unique identifier for the saved query.", "type": "string" }, "displayName": { "description": "The name of the saved query.", "type": "string" }, "query": { "description": "The search parameters of the saved query.", "$ref": "Query" }, "matterId": { "description": "Output only. The matter ID of the matter the saved query is saved in. The server does not use this field during create and always uses matter ID in the URL.", "type": "string" }, "createTime": { "description": "Output only. The server-generated timestamp when the saved query was created.", "type": "string", "format": "google-datetime" } } }, "ListSavedQueriesResponse": { "id": "ListSavedQueriesResponse", "description": "Definition of the response for method ListSaveQuery.", "type": "object", "properties": { "savedQueries": { "description": "List of saved queries.", "type": "array", "items": { "$ref": "SavedQuery" } }, "nextPageToken": { "description": "Page token to retrieve the next page of results in the list. If this is empty, then there are no more saved queries to list.", "type": "string" } } }, "CountArtifactsResponse": { "id": "CountArtifactsResponse", "description": "Definition of the response for method CountArtifacts.", "type": "object", "properties": { "totalCount": { "description": "Total count of messages.", "type": "string", "format": "int64" }, "mailCountResult": { "description": "Count metrics for Gmail and classic Hangouts.", "$ref": "MailCountResult" }, "groupsCountResult": { "description": "Count metrics for Groups.", "$ref": "GroupsCountResult" } } }, "MailCountResult": { "id": "MailCountResult", "description": "Gmail and classic Hangouts-specific count metrics.", "type": "object", "properties": { "queriedAccountsCount": { "description": "Total number of accounts involved in this count operation.", "type": "string", "format": "int64" }, "matchingAccountsCount": { "description": "Total number of accounts that can be queried and have more than zero messages.", "type": "string", "format": "int64" }, "nonQueryableAccounts": { "description": "When **DataScope** is **HELD_DATA** and when account emails are passed in explicitly, the list of accounts in the request that are not queried because they are not on hold in the matter. For other data scopes, this field is not set.", "type": "array", "items": { "type": "string" } }, "accountCountErrors": { "description": "Errors occurred when querying these accounts.", "type": "array", "items": { "$ref": "AccountCountError" } }, "accountCounts": { "description": "Subtotal count per matching account that have more than zero messages.", "type": "array", "items": { "$ref": "AccountCount" } } } }, "AccountCountError": { "id": "AccountCountError", "description": "An error that occurred when querying a specific account", "type": "object", "properties": { "account": { "description": "Account owner.", "$ref": "UserInfo" }, "errorType": { "description": "Account query error.", "type": "string", "enumDescriptions": [ "Default.", "Permanent - prefix terms expanded to too many query terms.", "Permanent - query contains too many terms.", "Transient - data in transit between storage replicas, temporarily unavailable.", "Unrecognized error.", "Deadline exceeded when querying the account." ], "enum": [ "ERROR_TYPE_UNSPECIFIED", "WILDCARD_TOO_BROAD", "TOO_MANY_TERMS", "LOCATION_UNAVAILABLE", "UNKNOWN", "DEADLINE_EXCEEDED" ] } } }, "AccountCount": { "id": "AccountCount", "description": "The results count for each account.", "type": "object", "properties": { "account": { "description": "Account owner.", "$ref": "UserInfo" }, "count": { "description": "The number of results (messages or files) found for this account.", "type": "string", "format": "int64" } } }, "GroupsCountResult": { "id": "GroupsCountResult", "description": "Groups specific count metrics.", "type": "object", "properties": { "queriedAccountsCount": { "description": "Total number of accounts involved in this count operation.", "type": "string", "format": "int64" }, "matchingAccountsCount": { "description": "Total number of accounts that can be queried and have more than zero messages.", "type": "string", "format": "int64" }, "nonQueryableAccounts": { "description": "When **DataScope** is **HELD_DATA**, these accounts in the request are not queried because they are not on hold. For other data scope, this field is not set.", "type": "array", "items": { "type": "string" } }, "accountCountErrors": { "description": "Error occurred when querying these accounts.", "type": "array", "items": { "$ref": "AccountCountError" } }, "accountCounts": { "description": "Subtotal count per matching account that have more than zero messages.", "type": "array", "items": { "$ref": "AccountCount" } } } }, "CountArtifactsMetadata": { "id": "CountArtifactsMetadata", "description": "Long running operation metadata for CountArtifacts.", "type": "object", "properties": { "startTime": { "description": "Creation time of count operation.", "type": "string", "format": "google-datetime" }, "endTime": { "description": "End time of count operation. Available when operation is done.", "type": "string", "format": "google-datetime" }, "matterId": { "description": "The matter ID of the associated matter.", "type": "string" }, "query": { "description": "The search query from the request.", "$ref": "Query" } } } }, "title": "Google Vault API", "mtlsRootUrl": "https://vault.mtls.googleapis.com/", "discoveryVersion": "v1", "fullyEncodeReservedExpansion": true, "name": "vault", "ownerName": "Google", "kind": "discovery#restDescription", "version": "v1", "servicePath": "", "resources": { "operations": { "methods": { "list": { "id": "vault.operations.list", "path": "v1/{+name}", "flatPath": "v1/operations", "httpMethod": "GET", "parameters": { "name": { "description": "The name of the operation's parent resource.", "pattern": "^operations$", "location": "path", "required": true, "type": "string" }, "filter": { "description": "The standard list filter.", "location": "query", "type": "string" }, "pageSize": { "description": "The standard list page size.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "The standard list page token.", "location": "query", "type": "string" } }, "parameterOrder": [ "name" ], "response": { "$ref": "ListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`." }, "get": { "id": "vault.operations.get", "path": "v1/{+name}", "flatPath": "v1/operations/{operationsId}", "httpMethod": "GET", "parameters": { "name": { "description": "The name of the operation resource.", "pattern": "^operations/.*$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "name" ], "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service." }, "delete": { "id": "vault.operations.delete", "path": "v1/{+name}", "flatPath": "v1/operations/{operationsId}", "httpMethod": "DELETE", "parameters": { "name": { "description": "The name of the operation resource to be deleted.", "pattern": "^operations/.*$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "name" ], "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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`." }, "cancel": { "id": "vault.operations.cancel", "path": "v1/{+name}:cancel", "flatPath": "v1/operations/{operationsId}:cancel", "httpMethod": "POST", "parameters": { "name": { "description": "The name of the operation resource to be cancelled.", "pattern": "^operations/.*$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "name" ], "request": { "$ref": "CancelOperationRequest" }, "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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`." } } }, "matters": { "methods": { "create": { "id": "vault.matters.create", "path": "v1/matters", "flatPath": "v1/matters", "httpMethod": "POST", "parameters": {}, "parameterOrder": [], "request": { "$ref": "Matter" }, "response": { "$ref": "Matter" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view." }, "update": { "id": "vault.matters.update", "path": "v1/matters/{matterId}", "flatPath": "v1/matters/{matterId}", "httpMethod": "PUT", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "Matter" }, "response": { "$ref": "Matter" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter." }, "close": { "id": "vault.matters.close", "path": "v1/matters/{matterId}:close", "flatPath": "v1/matters/{matterId}:close", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "CloseMatterRequest" }, "response": { "$ref": "CloseMatterResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Closes the specified matter. Returns the matter with updated state." }, "reopen": { "id": "vault.matters.reopen", "path": "v1/matters/{matterId}:reopen", "flatPath": "v1/matters/{matterId}:reopen", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "ReopenMatterRequest" }, "response": { "$ref": "ReopenMatterResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Reopens the specified matter. Returns the matter with updated state." }, "delete": { "id": "vault.matters.delete", "path": "v1/matters/{matterId}", "flatPath": "v1/matters/{matterId}", "httpMethod": "DELETE", "parameters": { "matterId": { "description": "The matter ID", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "response": { "$ref": "Matter" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Deletes the specified matter. Returns the matter with updated state." }, "undelete": { "id": "vault.matters.undelete", "path": "v1/matters/{matterId}:undelete", "flatPath": "v1/matters/{matterId}:undelete", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "UndeleteMatterRequest" }, "response": { "$ref": "Matter" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Undeletes the specified matter. Returns the matter with updated state." }, "get": { "id": "vault.matters.get", "path": "v1/matters/{matterId}", "flatPath": "v1/matters/{matterId}", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "view": { "description": "Specifies how much information about the matter to return in the response.", "location": "query", "type": "string", "enumDescriptions": [ "The amount of detail is unspecified. Same as **BASIC**.", "Returns the matter ID, name, description, and state. Default choice.", "Returns the basic details and a list of matter owners and collaborators (see [MatterPermissions](https://developers.google.com/vault/reference/rest/v1/matters#matterpermission))." ], "enum": [ "VIEW_UNSPECIFIED", "BASIC", "FULL" ] } }, "parameterOrder": [ "matterId" ], "response": { "$ref": "Matter" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Gets the specified matter." }, "list": { "id": "vault.matters.list", "path": "v1/matters", "flatPath": "v1/matters", "httpMethod": "GET", "parameters": { "pageSize": { "description": "The number of matters to return in the response. Default and maximum are 100.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "The pagination token as returned in the response.", "location": "query", "type": "string" }, "view": { "description": "Specifies how much information about the matter to return in response.", "location": "query", "type": "string", "enumDescriptions": [ "The amount of detail is unspecified. Same as **BASIC**.", "Returns the matter ID, name, description, and state. Default choice.", "Returns the basic details and a list of matter owners and collaborators (see [MatterPermissions](https://developers.google.com/vault/reference/rest/v1/matters#matterpermission))." ], "enum": [ "VIEW_UNSPECIFIED", "BASIC", "FULL" ] }, "state": { "description": "If set, lists only matters with the specified state. The default lists matters of all states.", "location": "query", "type": "string", "enumDescriptions": [ "The matter has no specified state.", "The matter is open.", "The matter is closed.", "The matter is deleted." ], "enum": [ "STATE_UNSPECIFIED", "OPEN", "CLOSED", "DELETED" ] } }, "parameterOrder": [], "response": { "$ref": "ListMattersResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists matters the requestor has access to." }, "addPermissions": { "id": "vault.matters.addPermissions", "path": "v1/matters/{matterId}:addPermissions", "flatPath": "v1/matters/{matterId}:addPermissions", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "AddMatterPermissionsRequest" }, "response": { "$ref": "MatterPermission" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Adds an account as a matter collaborator." }, "removePermissions": { "id": "vault.matters.removePermissions", "path": "v1/matters/{matterId}:removePermissions", "flatPath": "v1/matters/{matterId}:removePermissions", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "RemoveMatterPermissionsRequest" }, "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Removes an account as a matter collaborator." }, "count": { "id": "vault.matters.count", "path": "v1/matters/{matterId}:count", "flatPath": "v1/matters/{matterId}:count", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "CountArtifactsRequest" }, "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Counts the accounts processed by the specified query." } }, "resources": { "exports": { "methods": { "create": { "id": "vault.matters.exports.create", "path": "v1/matters/{matterId}/exports", "flatPath": "v1/matters/{matterId}/exports", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "Export" }, "response": { "$ref": "Export" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Creates an export." }, "delete": { "id": "vault.matters.exports.delete", "path": "v1/matters/{matterId}/exports/{exportId}", "flatPath": "v1/matters/{matterId}/exports/{exportId}", "httpMethod": "DELETE", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "exportId": { "description": "The export ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "exportId" ], "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Deletes an export." }, "get": { "id": "vault.matters.exports.get", "path": "v1/matters/{matterId}/exports/{exportId}", "flatPath": "v1/matters/{matterId}/exports/{exportId}", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "exportId": { "description": "The export ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "exportId" ], "response": { "$ref": "Export" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Gets an export." }, "list": { "id": "vault.matters.exports.list", "path": "v1/matters/{matterId}/exports", "flatPath": "v1/matters/{matterId}/exports", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "pageSize": { "description": "The number of exports to return in the response.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "The pagination token as returned in the response.", "location": "query", "type": "string" } }, "parameterOrder": [ "matterId" ], "response": { "$ref": "ListExportsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists details about the exports in the specified matter." } } }, "holds": { "methods": { "create": { "id": "vault.matters.holds.create", "path": "v1/matters/{matterId}/holds", "flatPath": "v1/matters/{matterId}/holds", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "Hold" }, "response": { "$ref": "Hold" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Creates a hold in the specified matter." }, "update": { "id": "vault.matters.holds.update", "path": "v1/matters/{matterId}/holds/{holdId}", "flatPath": "v1/matters/{matterId}/holds/{holdId}", "httpMethod": "PUT", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The ID of the hold.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "request": { "$ref": "Hold" }, "response": { "$ref": "Hold" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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." }, "delete": { "id": "vault.matters.holds.delete", "path": "v1/matters/{matterId}/holds/{holdId}", "flatPath": "v1/matters/{matterId}/holds/{holdId}", "httpMethod": "DELETE", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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." }, "get": { "id": "vault.matters.holds.get", "path": "v1/matters/{matterId}/holds/{holdId}", "flatPath": "v1/matters/{matterId}/holds/{holdId}", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" }, "view": { "description": "The amount of detail to return for a hold.", "location": "query", "type": "string", "enumDescriptions": [ "Not specified. Defaults to **FULL_HOLD**.", "Returns the hold ID, name, update time, service, and query.", "Returns all details of **BASIC_HOLD** and the entities the hold applies to, such as accounts or organizational unit." ], "enum": [ "HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD" ] } }, "parameterOrder": [ "matterId", "holdId" ], "response": { "$ref": "Hold" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Gets the specified hold." }, "list": { "id": "vault.matters.holds.list", "path": "v1/matters/{matterId}/holds", "flatPath": "v1/matters/{matterId}/holds", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "pageSize": { "description": "The number of holds to return in the response, between 0 and 100 inclusive. Leaving this empty, or as 0, is the same as **page_size** = 100.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "The pagination token as returned in the response. An empty token means start from the beginning.", "location": "query", "type": "string" }, "view": { "description": "The amount of detail to return for a hold.", "location": "query", "type": "string", "enumDescriptions": [ "Not specified. Defaults to **FULL_HOLD**.", "Returns the hold ID, name, update time, service, and query.", "Returns all details of **BASIC_HOLD** and the entities the hold applies to, such as accounts or organizational unit." ], "enum": [ "HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD" ] } }, "parameterOrder": [ "matterId" ], "response": { "$ref": "ListHoldsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists the holds in a matter." }, "addHeldAccounts": { "id": "vault.matters.holds.addHeldAccounts", "path": "v1/matters/{matterId}/holds/{holdId}:addHeldAccounts", "flatPath": "v1/matters/{matterId}/holds/{holdId}:addHeldAccounts", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "request": { "$ref": "AddHeldAccountsRequest" }, "response": { "$ref": "AddHeldAccountsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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." }, "removeHeldAccounts": { "id": "vault.matters.holds.removeHeldAccounts", "path": "v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts", "flatPath": "v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "request": { "$ref": "RemoveHeldAccountsRequest" }, "response": { "$ref": "RemoveHeldAccountsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request." } }, "resources": { "accounts": { "methods": { "create": { "id": "vault.matters.holds.accounts.create", "path": "v1/matters/{matterId}/holds/{holdId}/accounts", "flatPath": "v1/matters/{matterId}/holds/{holdId}/accounts", "httpMethod": "POST", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "request": { "$ref": "HeldAccount" }, "response": { "$ref": "HeldAccount" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "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." }, "delete": { "id": "vault.matters.holds.accounts.delete", "path": "v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}", "flatPath": "v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}", "httpMethod": "DELETE", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" }, "accountId": { "description": "The ID of the account to remove from the hold.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId", "accountId" ], "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Removes an account from a hold." }, "list": { "id": "vault.matters.holds.accounts.list", "path": "v1/matters/{matterId}/holds/{holdId}/accounts", "flatPath": "v1/matters/{matterId}/holds/{holdId}/accounts", "httpMethod": "GET", "parameters": { "matterId": { "description": "The matter ID.", "location": "path", "required": true, "type": "string" }, "holdId": { "description": "The hold ID.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "holdId" ], "response": { "$ref": "ListHeldAccountsResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the [Admin SDK](https://developers.google.com/admin-sdk/). to list the members of the organizational unit on hold." } } } } }, "savedQueries": { "methods": { "create": { "id": "vault.matters.savedQueries.create", "path": "v1/matters/{matterId}/savedQueries", "flatPath": "v1/matters/{matterId}/savedQueries", "httpMethod": "POST", "parameters": { "matterId": { "description": "The ID of the matter to create the saved query in.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId" ], "request": { "$ref": "SavedQuery" }, "response": { "$ref": "SavedQuery" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Creates a saved query." }, "delete": { "id": "vault.matters.savedQueries.delete", "path": "v1/matters/{matterId}/savedQueries/{savedQueryId}", "flatPath": "v1/matters/{matterId}/savedQueries/{savedQueryId}", "httpMethod": "DELETE", "parameters": { "matterId": { "description": "The ID of the matter to delete the saved query from.", "location": "path", "required": true, "type": "string" }, "savedQueryId": { "description": "ID of the saved query to delete.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "savedQueryId" ], "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery" ], "description": "Deletes the specified saved query." }, "get": { "id": "vault.matters.savedQueries.get", "path": "v1/matters/{matterId}/savedQueries/{savedQueryId}", "flatPath": "v1/matters/{matterId}/savedQueries/{savedQueryId}", "httpMethod": "GET", "parameters": { "matterId": { "description": "The ID of the matter to get the saved query from.", "location": "path", "required": true, "type": "string" }, "savedQueryId": { "description": "ID of the saved query to retrieve.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "matterId", "savedQueryId" ], "response": { "$ref": "SavedQuery" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Retrieves the specified saved query." }, "list": { "id": "vault.matters.savedQueries.list", "path": "v1/matters/{matterId}/savedQueries", "flatPath": "v1/matters/{matterId}/savedQueries", "httpMethod": "GET", "parameters": { "matterId": { "description": "The ID of the matter to get the saved queries for.", "location": "path", "required": true, "type": "string" }, "pageSize": { "description": "The maximum number of saved queries to return.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "The pagination token as returned in the previous response. An empty token means start from the beginning.", "location": "query", "type": "string" } }, "parameterOrder": [ "matterId" ], "response": { "$ref": "ListSavedQueriesResponse" }, "scopes": [ "https://www.googleapis.com/auth/ediscovery", "https://www.googleapis.com/auth/ediscovery.readonly" ], "description": "Lists the saved queries in a matter." } } } } } }, "documentationLink": "https://developers.google.com/vault", "description": "Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the [required Vault privileges](https://support.google.com/vault/answer/2799699) 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. ", "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/ediscovery": { "description": "Manage your eDiscovery data" }, "https://www.googleapis.com/auth/ediscovery.readonly": { "description": "View your eDiscovery data" } } } }, "canonicalName": "Vault", "batchPath": "batch", "version_module": true, "rootUrl": "https://vault.googleapis.com/", "protocol": "rest", "basePath": "", "revision": "20240226", "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "ownerDomain": "google.com", "baseUrl": "https://vault.googleapis.com/", "parameters": { "access_token": { "type": "string", "description": "OAuth access token.", "location": "query" }, "alt": { "type": "string", "description": "Data format for response.", "default": "json", "enum": [ "json", "media", "proto" ], "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "location": "query" }, "callback": { "type": "string", "description": "JSONP", "location": "query" }, "fields": { "type": "string", "description": "Selector specifying which fields to include in a partial response.", "location": "query" }, "key": { "type": "string", "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "location": "query" }, "oauth_token": { "type": "string", "description": "OAuth 2.0 token for the current user.", "location": "query" }, "prettyPrint": { "type": "boolean", "description": "Returns response with indentations and line breaks.", "default": "true", "location": "query" }, "quotaUser": { "type": "string", "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "location": "query" }, "upload_protocol": { "type": "string", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query" }, "uploadType": { "type": "string", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query" }, "$.xgafv": { "type": "string", "description": "V1 error format.", "enum": [ "1", "2" ], "enumDescriptions": [ "v1 error format", "v2 error format" ], "location": "query" } } }