- 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 Mattersprivilege.
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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
accounts[]
|
If set, the hold applies to the specified accounts and orgUnitmust be empty. |
orgUnit
|
If set, the hold applies to all members of the organizational unit and accountsmust be empty. This property is mutable. For Groups holds, set accounts. |
corpus
|
The service to be searched. |
query
|
Service-specific options. If set, CorpusQuerymust 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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
CorpusQuery
Service-specific options for holds.
JSON representation |
---|
{ // Union field |
corpus_query
. If set, this must match the service type. corpus_query
can be only one of the following:driveQuery
object (
HeldDriveQuery
)
Service-specific options for Drive holds. If set, CorpusTypemust be DRIVE.
mailQuery
object (
HeldMailQuery
)
Service-specific options for Gmail holds. If set, CorpusTypemust be MAIL.
groupsQuery
object (
HeldGroupsQuery
)
Service-specific options for Groups holds. If set, CorpusTypemust be GROUPS.
hangoutsChatQuery
object (
HeldHangoutsChatQuery
)
Service-specific options for Chat holds. If set, CorpusTypemust be HANGOUTS_CHAT.
voiceQuery
object (
HeldVoiceQuery
)
Service-specific options for Voice holds. If set, CorpusTypemust be VOICE.
calendarQuery
object (
HeldCalendarQuery
)
Service-specific options for Calendar holds. If set, CorpusTypemust 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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime
|
The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime
|
The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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. |