- Resource: Hold
- HeldOrgUnit
- CorpusQuery
- HeldDriveQuery
- HeldMailQuery
- HeldGroupsQuery
- HeldHangoutsChatQuery
- HeldVoiceQuery
- HeldCalendarQuery
- Methods
Resource: Hold
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 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.
JSON representation |
---|
{ "holdId": string, "name": string, "updateTime": string, "accounts": [ { object ( |
Fields | |
---|---|
holdId |
The unique immutable ID of the hold. Assigned during creation. |
name |
The name of the hold. |
updateTime |
The last time this hold was modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
accounts[] |
If set, the hold applies to the specified accounts and orgUnit must be empty. |
orgUnit |
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. |
corpus |
The service to be searched. |
query |
Service-specific options. If set, CorpusQuery must match CorpusType. |
HeldOrgUnit
The organizational unit covered by a hold. This structure is immutable.
JSON representation |
---|
{ "orgUnitId": string, "holdTime": string } |
Fields | |
---|---|
orgUnitId |
The organizational unit's immutable ID as provided by the Admin SDK. |
holdTime |
When the organizational unit was put on hold. This property is immutable. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
CorpusQuery
Service-specific options for holds.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field corpus_query . If set, this must match the service type. corpus_query can be only one of the following: |
|
driveQuery |
Service-specific options for Drive holds. If set, CorpusType must be DRIVE. |
mailQuery |
Service-specific options for Gmail holds. If set, CorpusType must be MAIL. |
groupsQuery |
Service-specific options for Groups holds. If set, CorpusType must be GROUPS. |
hangoutsChatQuery |
Service-specific options for Chat holds. If set, CorpusType must be HANGOUTS_CHAT. |
voiceQuery |
Service-specific options for Voice holds. If set, CorpusType must be VOICE. |
calendarQuery |
Service-specific options for Calendar holds. If set, CorpusType must be CALENDAR. |
HeldDriveQuery
Options for Drive holds.
JSON representation |
---|
{ "includeTeamDriveFiles": boolean, "includeSharedDriveFiles": boolean } |
Fields | |
---|---|
includeTeamDriveFiles |
To include files in Team Drives in the hold, set to true. |
includeSharedDriveFiles |
To include files in shared drives in the hold, set to true. |
HeldMailQuery
Query options for Gmail holds.
JSON representation |
---|
{ "terms": string, "startTime": string, "endTime": string } |
Fields | |
---|---|
terms |
The search operators used to refine the messages covered by the hold. |
startTime |
The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
HeldGroupsQuery
Query options for group holds.
JSON representation |
---|
{ "terms": string, "startTime": string, "endTime": string } |
Fields | |
---|---|
terms |
The search operators used to refine the messages covered by the hold. |
startTime |
The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
HeldHangoutsChatQuery
Options for Chat holds.
JSON representation |
---|
{ "includeRooms": boolean } |
Fields | |
---|---|
includeRooms |
To include messages in Chat spaces the user was a member of, set to true. |
HeldVoiceQuery
Options for Voice holds.
JSON representation |
---|
{
"coveredData": [
enum ( |
Fields | |
---|---|
coveredData[] |
A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored. |
HeldCalendarQuery
This type has no fields.
Options for Calendar holds.
Methods |
|
---|---|
|
Adds accounts to a hold. |
|
Creates a hold in the specified matter. |
|
Removes the specified hold and releases the accounts or organizational unit covered by the hold. |
|
Gets the specified hold. |
|
Lists the holds in a matter. |
|
Removes the specified accounts from a hold. |
|
Updates the scope (organizational unit or accounts) and query parameters of a hold. |