Debian Codegraph @

docs/dyn/vault_v1.matters.holds.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="vault_v1.html">Google Vault API</a> . <a href="vault_v1.matters.html">matters</a> . <a href="vault_v1.matters.holds.html">holds</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="vault_v1.matters.holds.accounts.html">accounts()</a></code>
79 </p>
80 <p class="firstline">Returns the accounts Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#addHeldAccounts">addHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
84 <p class="firstline">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.</p>
85 <p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87 <p class="firstline">Close httplib2 connections.</p>
88 <p class="toc_element">
89 <code><a href="#create">create(matterId, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Creates a hold in the specified matter.</p>
91 <p class="toc_element">
92 <code><a href="#delete">delete(matterId, holdId, x__xgafv=None)</a></code></p>
93 <p class="firstline">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.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(matterId, holdId, view=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Gets the specified hold.</p>
97 <p class="toc_element">
98 <code><a href="#list">list(matterId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Lists the holds in a matter.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#removeHeldAccounts">removeHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.</p>
106 <p class="toc_element">
107 <code><a href="#update">update(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">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.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="addHeldAccounts">addHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</code>
112 <pre>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.
113
114 Args:
115 matterId: string, The matter ID. (required)
116 holdId: string, The hold ID. (required)
117 body: object, The request body.
118 The object takes the form of:
119
120 { # Add a list of accounts to a hold.
121 &quot;accountIds&quot;: [ # 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.
122 &quot;A String&quot;,
123 ],
124 &quot;emails&quot;: [ # A comma-separated list of the emails of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both.
125 &quot;A String&quot;,
126 ],
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # Response for batch create held accounts.
138 &quot;responses&quot;: [ # The list of responses, in the same order as the batch request.
139 { # The status of each account creation, and the **HeldAccount**, if successful.
140 &quot;account&quot;: { # 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. # Returned when the account was successfully created.
141 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
142 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
143 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
144 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
145 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
146 },
147 &quot;status&quot;: { # 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). # Reports the request status. If it failed, returns an error message.
148 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
149 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
150 {
151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
152 },
153 ],
154 &quot;message&quot;: &quot;A String&quot;, # 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.
155 },
156 },
157 ],
158 }</pre>
159 </div>
160
161 <div class="method">
162 <code class="details" id="close">close()</code>
163 <pre>Close httplib2 connections.</pre>
164 </div>
165
166 <div class="method">
167 <code class="details" id="create">create(matterId, body=None, x__xgafv=None)</code>
168 <pre>Creates a hold in the specified matter.
169
170 Args:
171 matterId: string, The matter ID. (required)
172 body: object, The request body.
173 The object takes the form of:
174
175 { # 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.
176 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
177 { # 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.
178 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
179 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
180 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
181 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
182 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
183 },
184 ],
185 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
186 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
187 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
188 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
189 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
190 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
191 },
192 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
193 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
194 },
195 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
196 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
197 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
198 },
199 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
200 },
201 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
202 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
203 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
204 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
205 },
206 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
207 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
208 },
209 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
210 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
211 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
212 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
213 },
214 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
215 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
216 &quot;A String&quot;,
217 ],
218 },
219 },
220 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
221 }
222
223 x__xgafv: string, V1 error format.
224 Allowed values
225 1 - v1 error format
226 2 - v2 error format
227
228 Returns:
229 An object of the form:
230
231 { # 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.
232 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
233 { # 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.
234 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
235 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
236 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
237 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
238 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
239 },
240 ],
241 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
242 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
243 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
244 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
245 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
246 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
247 },
248 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
249 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
250 },
251 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
252 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
253 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
254 },
255 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
256 },
257 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
258 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
259 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
260 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
261 },
262 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
263 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
264 },
265 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
266 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
267 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
268 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
269 },
270 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
271 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
272 &quot;A String&quot;,
273 ],
274 },
275 },
276 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
277 }</pre>
278 </div>
279
280 <div class="method">
281 <code class="details" id="delete">delete(matterId, holdId, x__xgafv=None)</code>
282 <pre>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.
283
284 Args:
285 matterId: string, The matter ID. (required)
286 holdId: string, The hold ID. (required)
287 x__xgafv: string, V1 error format.
288 Allowed values
289 1 - v1 error format
290 2 - v2 error format
291
292 Returns:
293 An object of the form:
294
295 { # 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); }
296 }</pre>
297 </div>
298
299 <div class="method">
300 <code class="details" id="get">get(matterId, holdId, view=None, x__xgafv=None)</code>
301 <pre>Gets the specified hold.
302
303 Args:
304 matterId: string, The matter ID. (required)
305 holdId: string, The hold ID. (required)
306 view: string, The amount of detail to return for a hold.
307 Allowed values
308 HOLD_VIEW_UNSPECIFIED - Not specified. Defaults to **FULL_HOLD**.
309 BASIC_HOLD - Returns the hold ID, name, update time, service, and query.
310 FULL_HOLD - Returns all details of **BASIC_HOLD** and the entities the hold applies to, such as accounts or organizational unit.
311 x__xgafv: string, V1 error format.
312 Allowed values
313 1 - v1 error format
314 2 - v2 error format
315
316 Returns:
317 An object of the form:
318
319 { # 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.
320 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
321 { # 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.
322 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
323 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
324 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
325 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
326 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
327 },
328 ],
329 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
330 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
331 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
332 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
333 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
334 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
335 },
336 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
337 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
338 },
339 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
340 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
341 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
342 },
343 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
344 },
345 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
346 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
347 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
348 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
349 },
350 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
351 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
352 },
353 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
354 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
355 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
356 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
357 },
358 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
359 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
360 &quot;A String&quot;,
361 ],
362 },
363 },
364 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
365 }</pre>
366 </div>
367
368 <div class="method">
369 <code class="details" id="list">list(matterId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
370 <pre>Lists the holds in a matter.
371
372 Args:
373 matterId: string, The matter ID. (required)
374 pageSize: integer, 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.
375 pageToken: string, The pagination token as returned in the response. An empty token means start from the beginning.
376 view: string, The amount of detail to return for a hold.
377 Allowed values
378 HOLD_VIEW_UNSPECIFIED - Not specified. Defaults to **FULL_HOLD**.
379 BASIC_HOLD - Returns the hold ID, name, update time, service, and query.
380 FULL_HOLD - Returns all details of **BASIC_HOLD** and the entities the hold applies to, such as accounts or organizational unit.
381 x__xgafv: string, V1 error format.
382 Allowed values
383 1 - v1 error format
384 2 - v2 error format
385
386 Returns:
387 An object of the form:
388
389 { # The holds for a matter.
390 &quot;holds&quot;: [ # The list of holds.
391 { # 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.
392 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
393 { # 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.
394 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
395 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
396 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
397 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
398 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
399 },
400 ],
401 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
402 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
403 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
404 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
405 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
406 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
407 },
408 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
409 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
410 },
411 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
412 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
413 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
414 },
415 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
416 },
417 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
418 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
419 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
420 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
421 },
422 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
423 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
424 },
425 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
426 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
427 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
428 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
429 },
430 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
431 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
432 &quot;A String&quot;,
433 ],
434 },
435 },
436 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
437 },
438 ],
439 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token to retrieve the next page of results in the list. If this is empty, then there are no more holds to list.
440 }</pre>
441 </div>
442
443 <div class="method">
444 <code class="details" id="list_next">list_next()</code>
445 <pre>Retrieves the next page of results.
446
447 Args:
448 previous_request: The request for the previous page. (required)
449 previous_response: The response from the request for the previous page. (required)
450
451 Returns:
452 A request object that you can call &#x27;execute()&#x27; on to request the next
453 page. Returns None if there are no more items in the collection.
454 </pre>
455 </div>
456
457 <div class="method">
458 <code class="details" id="removeHeldAccounts">removeHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</code>
459 <pre>Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.
460
461 Args:
462 matterId: string, The matter ID. (required)
463 holdId: string, The hold ID. (required)
464 body: object, The request body.
465 The object takes the form of:
466
467 { # Remove a list of accounts from a hold.
468 &quot;accountIds&quot;: [ # The account IDs of the accounts to remove from the hold.
469 &quot;A String&quot;,
470 ],
471 }
472
473 x__xgafv: string, V1 error format.
474 Allowed values
475 1 - v1 error format
476 2 - v2 error format
477
478 Returns:
479 An object of the form:
480
481 { # Response for batch delete held accounts.
482 &quot;statuses&quot;: [ # A list of statuses for the deleted accounts. Results have the same order as the request.
483 { # 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).
484 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
485 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
486 {
487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
488 },
489 ],
490 &quot;message&quot;: &quot;A String&quot;, # 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.
491 },
492 ],
493 }</pre>
494 </div>
495
496 <div class="method">
497 <code class="details" id="update">update(matterId, holdId, body=None, x__xgafv=None)</code>
498 <pre>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.
499
500 Args:
501 matterId: string, The matter ID. (required)
502 holdId: string, The ID of the hold. (required)
503 body: object, The request body.
504 The object takes the form of:
505
506 { # 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.
507 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
508 { # 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.
509 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
510 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
511 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
512 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
513 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
514 },
515 ],
516 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
517 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
518 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
519 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
520 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
521 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
522 },
523 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
524 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
525 },
526 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
527 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
528 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
529 },
530 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
531 },
532 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
533 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
534 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
535 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
536 },
537 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
538 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
539 },
540 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
541 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
542 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
543 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
544 },
545 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
546 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
547 &quot;A String&quot;,
548 ],
549 },
550 },
551 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
552 }
553
554 x__xgafv: string, V1 error format.
555 Allowed values
556 1 - v1 error format
557 2 - v2 error format
558
559 Returns:
560 An object of the form:
561
562 { # 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.
563 &quot;accounts&quot;: [ # If set, the hold applies to the specified accounts and **orgUnit** must be empty.
564 { # 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.
565 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
566 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over **accountId**.
567 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
568 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
569 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
570 },
571 ],
572 &quot;corpus&quot;: &quot;A String&quot;, # The service to be searched.
573 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
574 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
575 &quot;orgUnit&quot;: { # The organizational unit covered by a hold. This structure is immutable. # 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**.
576 &quot;holdTime&quot;: &quot;A String&quot;, # When the organizational unit was put on hold. This property is immutable.
577 &quot;orgUnitId&quot;: &quot;A String&quot;, # The organizational unit&#x27;s immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
578 },
579 &quot;query&quot;: { # Service-specific options for holds. # Service-specific options. If set, **CorpusQuery** must match **CorpusType**.
580 &quot;calendarQuery&quot;: { # Options for Calendar holds. # Service-specific options for Calendar holds. If set, **CorpusType** must be **CALENDAR**.
581 },
582 &quot;driveQuery&quot;: { # Options for Drive holds. # Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**.
583 &quot;includeSharedDriveFiles&quot;: True or False, # To include files in shared drives in the hold, set to **true**.
584 &quot;includeTeamDriveFiles&quot;: True or False, # To include files in Team Drives in the hold, set to **true**.
585 },
586 &quot;geminiQuery&quot;: { # Options for Gemini holds. # Service-specific options for Gemini holds. If set, **CorpusType** must be **GEMINI**.
587 },
588 &quot;groupsQuery&quot;: { # Query options for group holds. # Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**.
589 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
590 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
591 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
592 },
593 &quot;hangoutsChatQuery&quot;: { # Options for Chat holds. # Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**.
594 &quot;includeRooms&quot;: True or False, # To include messages in Chat spaces the user was a member of, set to **true**.
595 },
596 &quot;mailQuery&quot;: { # Query options for Gmail holds. # Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**.
597 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
598 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date.
599 &quot;terms&quot;: &quot;A String&quot;, # The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold.
600 },
601 &quot;voiceQuery&quot;: { # Options for Voice holds. # Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**.
602 &quot;coveredData&quot;: [ # A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored.
603 &quot;A String&quot;,
604 ],
605 },
606 },
607 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
608 }</pre>
609 </div>
610
611 </body></html>