blob: 468ac174454a42112b7ff5881a927e38c50eddfd [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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">G Suite 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">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#addHeldAccounts">addHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084<p class="firstline">Adds HeldAccounts to a hold. Returns a list of accounts that have been successfully added. Accounts can only be added 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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#create">create(matterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Creates a hold in the given 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 a hold by ID. This will release any HeldAccounts on this Hold.</p>
94<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070095 <code><a href="#get">get(matterId, holdId, view=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096<p class="firstline">Gets a hold by ID.</p>
97<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080098 <code><a href="#list">list(matterId, pageToken=None, pageSize=None, view=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<p class="firstline">Lists holds within a matter. An empty page token in ListHoldsResponse denotes no more holds to list.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="toc_element">
101 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
102<p class="firstline">Retrieves the next page of results.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#removeHeldAccounts">removeHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105<p class="firstline">Removes HeldAccounts from a hold. Returns a list of statuses in the same order as the request. If this request leaves the hold with no held accounts, the hold will not apply to any accounts.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#update">update(matterId, holdId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<p class="firstline">Updates the OU and/or query parameters of a hold. You cannot add accounts to a hold that covers an OU, nor can you add OUs to a hold that covers individual accounts. Accounts listed in the hold will be ignored.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<h3>Method Details</h3>
110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code class="details" id="addHeldAccounts">addHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 <pre>Adds HeldAccounts to a hold. Returns a list of accounts that have been successfully added. Accounts can only be added to an existing account-based hold.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113
114Args:
115 matterId: string, The matter ID. (required)
116 holdId: string, The hold ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 The object takes the form of:
119
120{ # Add a list of accounts to a hold.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800121 &quot;emails&quot;: [ # Emails to identify which accounts to add. Only emails or only account_ids should be specified, but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;A String&quot;,
123 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800124 &quot;accountIds&quot;: [ # Account IDs to identify which accounts to add. Only account_ids or only emails should be specified, but not both.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 ],
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134Returns:
135 An object of the form:
136
137 { # Response for batch create held accounts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;responses&quot;: [ # The list of responses, in the same order as the batch request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 { # A status detailing the status of each account creation, and the HeldAccount, if successful.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800140 &quot;account&quot;: { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus. # If present, this account was successfully created.
141 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
142 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
143 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
144 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
145 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
146 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700147 &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). # This represents the success status. If failed, check message.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800148 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 },
153 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 },
157 ],
158 }</pre>
159</div>
160
161<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 <code class="details" id="close">close()</code>
163 <pre>Close httplib2 connections.</pre>
164</div>
165
166<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700167 <code class="details" id="create">create(matterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 <pre>Creates a hold in the given matter.
169
170Args:
171 matterId: string, The matter ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700172 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 The object takes the form of:
174
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700175{ # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800176 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
177 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
178 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800180 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
181 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
182 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
183 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
184 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
185 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
186 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
187 },
188 ],
189 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
190 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
191 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
192 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
193 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
194 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
195 },
196 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
197 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
198 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
199 },
200 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
201 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
202 &quot;A String&quot;,
203 ],
204 },
205 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
206 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
207 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
208 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
209 },
210 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
211 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
212 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
215 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
216 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
217 }
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224Returns:
225 An object of the form:
226
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 { # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800228 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
229 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
230 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
233 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
234 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
235 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
236 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
237 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
238 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
239 },
240 ],
241 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
242 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
243 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
244 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
245 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
246 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
247 },
248 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
249 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
250 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
251 },
252 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
253 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
254 &quot;A String&quot;,
255 ],
256 },
257 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
258 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
259 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
260 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
261 },
262 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
263 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
264 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700265 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800266 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
267 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
268 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
269 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270</div>
271
272<div class="method">
273 <code class="details" id="delete">delete(matterId, holdId, x__xgafv=None)</code>
274 <pre>Removes a hold by ID. This will release any HeldAccounts on this Hold.
275
276Args:
277 matterId: string, The matter ID. (required)
278 holdId: string, The hold ID. (required)
279 x__xgafv: string, V1 error format.
280 Allowed values
281 1 - v1 error format
282 2 - v2 error format
283
284Returns:
285 An object of the form:
286
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 { # 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); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 }</pre>
289</div>
290
291<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 <code class="details" id="get">get(matterId, holdId, view=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 <pre>Gets a hold by ID.
294
295Args:
296 matterId: string, The matter ID. (required)
297 holdId: string, The hold ID. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 view: string, Specifies which parts of the Hold to return.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700299 Allowed values
300 HOLD_VIEW_UNSPECIFIED - There is no specified view. Defaults to FULL_HOLD.
301 BASIC_HOLD - Response includes the id, name, update time, corpus, and query.
302 FULL_HOLD - Full representation of a Hold. Response includes all fields of &#x27;BASIC&#x27; and the entities the Hold applies to, such as accounts, or OU.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 x__xgafv: string, V1 error format.
304 Allowed values
305 1 - v1 error format
306 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307
308Returns:
309 An object of the form:
310
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700311 { # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800312 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
313 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
314 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700315 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800316 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
317 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
318 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
319 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
320 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
321 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
322 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
323 },
324 ],
325 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
326 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
327 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
328 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
329 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
330 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
331 },
332 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
333 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
334 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
335 },
336 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
337 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
338 &quot;A String&quot;,
339 ],
340 },
341 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
342 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
343 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
344 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
345 },
346 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
347 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800350 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
351 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
352 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
353 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354</div>
355
356<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800357 <code class="details" id="list">list(matterId, pageToken=None, pageSize=None, view=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 <pre>Lists holds within a matter. An empty page token in ListHoldsResponse denotes no more holds to list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359
360Args:
361 matterId: string, The matter ID. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800362 pageToken: string, The pagination token as returned in the response. An empty token means start from the beginning.
363 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700364 view: string, Specifies which parts of the Hold to return.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700365 Allowed values
366 HOLD_VIEW_UNSPECIFIED - There is no specified view. Defaults to FULL_HOLD.
367 BASIC_HOLD - Response includes the id, name, update time, corpus, and query.
368 FULL_HOLD - Full representation of a Hold. Response includes all fields of &#x27;BASIC&#x27; and the entities the Hold applies to, such as accounts, or OU.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 x__xgafv: string, V1 error format.
370 Allowed values
371 1 - v1 error format
372 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373
374Returns:
375 An object of the form:
376
377 { # The holds for a matter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700378 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;holds&quot;: [ # The list of holds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700380 { # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800381 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
382 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
383 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800385 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
386 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
387 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
388 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
389 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
390 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
391 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
392 },
393 ],
394 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
395 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
396 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
397 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
398 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
399 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
400 },
401 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
402 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
403 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
404 },
405 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
406 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
407 &quot;A String&quot;,
408 ],
409 },
410 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
411 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
412 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
413 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
414 },
415 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
416 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
417 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800418 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800419 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
420 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
421 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 ],
424 }</pre>
425</div>
426
427<div class="method">
428 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
429 <pre>Retrieves the next page of results.
430
431Args:
432 previous_request: The request for the previous page. (required)
433 previous_response: The response from the request for the previous page. (required)
434
435Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700437 page. Returns None if there are no more items in the collection.
438 </pre>
439</div>
440
441<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700442 <code class="details" id="removeHeldAccounts">removeHeldAccounts(matterId, holdId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 <pre>Removes HeldAccounts from a hold. Returns a list of statuses in the same order as the request. If this request leaves the hold with no held accounts, the hold will not apply to any accounts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700444
445Args:
446 matterId: string, The matter ID. (required)
447 holdId: string, The hold ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700448 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 The object takes the form of:
450
451{ # Remove a list of accounts from a hold.
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;accountIds&quot;: [ # Account IDs to identify HeldAccounts to remove.
453 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454 ],
455 }
456
457 x__xgafv: string, V1 error format.
458 Allowed values
459 1 - v1 error format
460 2 - v2 error format
461
462Returns:
463 An object of the form:
464
465 { # Response for batch delete held accounts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 &quot;statuses&quot;: [ # A list of statuses for deleted accounts. Results have the same order as the request.
467 { # 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).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800468 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700469 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 },
473 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800474 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
476 ],
477 }</pre>
478</div>
479
480<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700481 <code class="details" id="update">update(matterId, holdId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700482 <pre>Updates the OU and/or query parameters of a hold. You cannot add accounts to a hold that covers an OU, nor can you add OUs to a hold that covers individual accounts. Accounts listed in the hold will be ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483
484Args:
485 matterId: string, The matter ID. (required)
486 holdId: string, The ID of the hold. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488 The object takes the form of:
489
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490{ # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800491 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
492 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
493 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700494 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800495 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
496 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
497 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
498 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
499 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
500 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
501 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
502 },
503 ],
504 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
505 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
506 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
507 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
508 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
509 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
510 },
511 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
512 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
513 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
514 },
515 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
516 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
517 &quot;A String&quot;,
518 ],
519 },
520 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
521 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
522 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
523 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
524 },
525 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
526 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
527 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800529 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
530 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
531 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
532 }
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700533
534 x__xgafv: string, V1 error format.
535 Allowed values
536 1 - v1 error format
537 2 - v2 error format
538
539Returns:
540 An object of the form:
541
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700542 { # Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800543 &quot;orgUnit&quot;: { # A organizational unit being held in a particular 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 the accounts field.
544 &quot;holdTime&quot;: &quot;A String&quot;, # When the org unit was put on hold. This property is immutable.
545 &quot;orgUnitId&quot;: &quot;A String&quot;, # The org unit&#x27;s immutable ID as provided by the Admin SDK.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700546 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800547 &quot;accounts&quot;: [ # If set, the hold applies to the enumerated accounts and org_unit must be empty.
548 { # An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
549 &quot;firstName&quot;: &quot;A String&quot;, # Output only. The first name of the account holder.
550 &quot;email&quot;: &quot;A String&quot;, # The primary email address of the account. If used as an input, this takes precedence over account ID.
551 &quot;holdTime&quot;: &quot;A String&quot;, # Output only. When the account was put on hold.
552 &quot;lastName&quot;: &quot;A String&quot;, # Output only. The last name of the account holder.
553 &quot;accountId&quot;: &quot;A String&quot;, # The account&#x27;s ID as provided by the Admin SDK.
554 },
555 ],
556 &quot;name&quot;: &quot;A String&quot;, # The name of the hold.
557 &quot;query&quot;: { # Corpus specific queries. # The corpus-specific query. If set, the corpusQuery must match corpus type.
558 &quot;groupsQuery&quot;: { # Query options for group holds. # Details pertaining to Groups holds. If set, corpus must be Groups.
559 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
560 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
561 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
562 },
563 &quot;driveQuery&quot;: { # Query options for Drive holds. # Details pertaining to Drive holds. If set, corpus must be Drive.
564 &quot;includeTeamDriveFiles&quot;: True or False, # If true, include files in Team Drives in the hold.
565 &quot;includeSharedDriveFiles&quot;: True or False, # If true, include files in shared drives in the hold.
566 },
567 &quot;voiceQuery&quot;: { # Query options for Voice holds. # Details pertaining to Voice holds. If set, corpus must be Voice.
568 &quot;coveredData&quot;: [ # Data covered by this rule. Should be non-empty. Order does not matter and duplicates will be ignored.
569 &quot;A String&quot;,
570 ],
571 },
572 &quot;mailQuery&quot;: { # Query options for mail holds. # Details pertaining to mail holds. If set, corpus must be mail.
573 &quot;endTime&quot;: &quot;A String&quot;, # The end time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
574 &quot;terms&quot;: &quot;A String&quot;, # The search terms for the hold.
575 &quot;startTime&quot;: &quot;A String&quot;, # The start time range for the search query. These timestamps are in GMT and rounded down to the start of the given date.
576 },
577 &quot;hangoutsChatQuery&quot;: { # Query options for hangouts chat holds. # Details pertaining to Hangouts Chat holds. If set, corpus must be Hangouts Chat.
578 &quot;includeRooms&quot;: True or False, # If true, include rooms the user has participated in.
579 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700580 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800581 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to be searched.
582 &quot;holdId&quot;: &quot;A String&quot;, # The unique immutable ID of the hold. Assigned during creation.
583 &quot;updateTime&quot;: &quot;A String&quot;, # The last time this hold was modified.
584 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700585</div>
586
587</body></html>