Debian Codegraph @

docs/dyn/vault_v1.matters.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></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="vault_v1.matters.exports.html">exports()</a></code>
79 </p>
80 <p class="firstline">Returns the exports Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="vault_v1.matters.holds.html">holds()</a></code>
84 </p>
85 <p class="firstline">Returns the holds Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="vault_v1.matters.savedQueries.html">savedQueries()</a></code>
89 </p>
90 <p class="firstline">Returns the savedQueries Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="#addPermissions">addPermissions(matterId, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Adds an account as a matter collaborator.</p>
95 <p class="toc_element">
96 <code><a href="#close">close(matterId, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Closes the specified matter. Returns the matter with updated state.</p>
98 <p class="toc_element">
99 <code><a href="#count">count(matterId, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Counts the accounts processed by the specified query.</p>
101 <p class="toc_element">
102 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.</p>
104 <p class="toc_element">
105 <code><a href="#delete">delete(matterId, x__xgafv=None)</a></code></p>
106 <p class="firstline">Deletes the specified matter. Returns the matter with updated state.</p>
107 <p class="toc_element">
108 <code><a href="#get">get(matterId, view=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Gets the specified matter.</p>
110 <p class="toc_element">
111 <code><a href="#list">list(pageSize=None, pageToken=None, state=None, view=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Lists matters the requestor has access to.</p>
113 <p class="toc_element">
114 <code><a href="#list_next">list_next()</a></code></p>
115 <p class="firstline">Retrieves the next page of results.</p>
116 <p class="toc_element">
117 <code><a href="#removePermissions">removePermissions(matterId, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Removes an account as a matter collaborator.</p>
119 <p class="toc_element">
120 <code><a href="#reopen">reopen(matterId, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Reopens the specified matter. Returns the matter with updated state.</p>
122 <p class="toc_element">
123 <code><a href="#undelete">undelete(matterId, body=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Undeletes the specified matter. Returns the matter with updated state.</p>
125 <p class="toc_element">
126 <code><a href="#update">update(matterId, body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.</p>
128 <h3>Method Details</h3>
129 <div class="method">
130 <code class="details" id="addPermissions">addPermissions(matterId, body=None, x__xgafv=None)</code>
131 <pre>Adds an account as a matter collaborator.
132
133 Args:
134 matterId: string, The matter ID. (required)
135 body: object, The request body.
136 The object takes the form of:
137
138 { # Add an account with the permission specified. The role cannot be owner. If an account already has a role in the matter, the existing role is overwritten.
139 &quot;ccMe&quot;: True or False, # Only relevant if **sendEmails** is **true**. To CC the requestor in the email message, set to **true**. To not CC requestor, set to **false**.
140 &quot;matterPermission&quot;: { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist. # The account and its role to add.
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;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
143 },
144 &quot;sendEmails&quot;: True or False, # To send a notification email to the added account, set to **true**. To not send a notification email, set to **false**.
145 }
146
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152 Returns:
153 An object of the form:
154
155 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
156 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
157 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
158 }</pre>
159 </div>
160
161 <div class="method">
162 <code class="details" id="close">close(matterId, body=None, x__xgafv=None)</code>
163 <pre>Closes the specified matter. Returns the matter with updated state.
164
165 Args:
166 matterId: string, The matter ID. (required)
167 body: object, The request body.
168 The object takes the form of:
169
170 { # Close a matter by ID.
171 }
172
173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
177
178 Returns:
179 An object of the form:
180
181 { # Response to a CloseMatterRequest.
182 &quot;matter&quot;: { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege. # The updated matter, with state **CLOSED**.
183 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
184 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
185 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
186 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
187 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
188 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
189 },
190 ],
191 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
192 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
193 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
194 },
195 }</pre>
196 </div>
197
198 <div class="method">
199 <code class="details" id="count">count(matterId, body=None, x__xgafv=None)</code>
200 <pre>Counts the accounts processed by the specified query.
201
202 Args:
203 matterId: string, The matter ID. (required)
204 body: object, The request body.
205 The object takes the form of:
206
207 { # Count artifacts request.
208 &quot;query&quot;: { # The query definition used for search and export. # The search query.
209 &quot;accountInfo&quot;: { # The accounts to search # Required when **SearchMethod** is **ACCOUNT**.
210 &quot;emails&quot;: [ # A set of accounts to search.
211 &quot;A String&quot;,
212 ],
213 },
214 &quot;calendarOptions&quot;: { # Additional options for Calendar search # Set Calendar search-specific options.
215 &quot;locationQuery&quot;: [ # Matches only those events whose location contains all of the words in the given set. If the string contains quoted phrases, this method only matches those events whose location contain the exact phrase. Entries in the set are considered in &quot;and&quot;. Word splitting example: [&quot;New Zealand&quot;] vs [&quot;New&quot;,&quot;Zealand&quot;] &quot;New Zealand&quot;: matched by both &quot;New and better Zealand&quot;: only matched by the later
216 &quot;A String&quot;,
217 ],
218 &quot;minusWords&quot;: [ # Matches only those events that do not contain any of the words in the given set in title, description, location, or attendees. Entries in the set are considered in &quot;or&quot;.
219 &quot;A String&quot;,
220 ],
221 &quot;peopleQuery&quot;: [ # Matches only those events whose attendees contain all of the words in the given set. Entries in the set are considered in &quot;and&quot;.
222 &quot;A String&quot;,
223 ],
224 &quot;responseStatuses&quot;: [ # Matches only events for which the custodian gave one of these responses. If the set is empty or contains ATTENDEE_RESPONSE_UNSPECIFIED there will be no filtering on responses.
225 &quot;A String&quot;,
226 ],
227 &quot;versionDate&quot;: &quot;A String&quot;, # Search the current version of the Calendar event, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
228 },
229 &quot;corpus&quot;: &quot;A String&quot;, # The Google Workspace service to search.
230 &quot;dataScope&quot;: &quot;A String&quot;, # The data source to search.
231 &quot;driveDocumentInfo&quot;: { # The Drive documents to search. # Required when **SearchMethod** is **DRIVE_DOCUMENT**.
232 &quot;documentIds&quot;: { # Specify Drive documents by document ID. # Specify Drive documents by document ID.
233 &quot;ids&quot;: [ # Required. A list of Drive document IDs.
234 &quot;A String&quot;,
235 ],
236 },
237 },
238 &quot;driveOptions&quot;: { # Additional options for Drive search. # Set Drive search-specific options.
239 &quot;clientSideEncryptedOption&quot;: &quot;A String&quot;, # Set whether the results include only content encrypted with [Google Workspace Client-side encryption](https://support.google.com/a?p=cse_ov) content, only unencrypted content, or both. Defaults to both. Currently supported for Drive.
240 &quot;includeSharedDrives&quot;: True or False, # Set to **true** to include shared drives.
241 &quot;includeTeamDrives&quot;: True or False, # Set to true to include Team Drive.
242 &quot;sharedDrivesOption&quot;: &quot;A String&quot;, # Optional. Options to include or exclude documents in shared drives. We recommend using this field over include_shared_drives. This field overrides include_shared_drives and include_team_drives when set.
243 &quot;versionDate&quot;: &quot;A String&quot;, # Search the current version of the Drive file, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
244 },
245 &quot;endTime&quot;: &quot;A String&quot;, # The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.
246 &quot;geminiOptions&quot;: { # Additional options for Gemini search # Set Gemini search-specific options.
247 },
248 &quot;hangoutsChatInfo&quot;: { # The Chat spaces to search # Required when **SearchMethod** is **ROOM**. (read-only)
249 &quot;roomId&quot;: [ # A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/workspace/chat). There is a limit of exporting from 500 Chat spaces per request.
250 &quot;A String&quot;,
251 ],
252 },
253 &quot;hangoutsChatOptions&quot;: { # Additional options for Google Chat search # Set Chat search-specific options. (read-only)
254 &quot;includeRooms&quot;: True or False, # For searches by account or organizational unit, set to **true** to include rooms.
255 },
256 &quot;mailOptions&quot;: { # Additional options for Gmail search # Set Gmail search-specific options.
257 &quot;clientSideEncryptedOption&quot;: &quot;A String&quot;, # Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both.
258 &quot;excludeDrafts&quot;: True or False, # Set to **true** to exclude drafts.
259 },
260 &quot;method&quot;: &quot;A String&quot;, # The entity to search. This field replaces **searchMethod** to support shared drives. When **searchMethod** is **TEAM_DRIVE**, the response of this field is **SHARED_DRIVE**.
261 &quot;orgUnitInfo&quot;: { # The organizational unit to search # Required when **SearchMethod** is **ORG_UNIT**.
262 &quot;orgUnitId&quot;: &quot;A String&quot;, # The name of the organizational unit to search, as provided by the [Admin SDK Directory API](https://developers.google.com/admin-sdk/directory/).
263 },
264 &quot;searchMethod&quot;: &quot;A String&quot;, # The search method to use.
265 &quot;sharedDriveInfo&quot;: { # The shared drives to search # Required when **SearchMethod** is **SHARED_DRIVE**.
266 &quot;sharedDriveIds&quot;: [ # A list of shared drive IDs, as provided by the [Drive API](https://developers.google.com/drive).
267 &quot;A String&quot;,
268 ],
269 },
270 &quot;sitesUrlInfo&quot;: { # The published site URLs of new Google Sites to search # Required when **SearchMethod** is **SITES_URL**.
271 &quot;urls&quot;: [ # A list of published site URLs.
272 &quot;A String&quot;,
273 ],
274 },
275 &quot;startTime&quot;: &quot;A String&quot;, # The start time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.
276 &quot;teamDriveInfo&quot;: { # Team Drives to search # Required when **SearchMethod** is **TEAM_DRIVE**.
277 &quot;teamDriveIds&quot;: [ # List of Team Drive IDs, as provided by the [Drive API](https://developers.google.com/drive).
278 &quot;A String&quot;,
279 ],
280 },
281 &quot;terms&quot;: &quot;A String&quot;, # Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter search results.
282 &quot;timeZone&quot;: &quot;A String&quot;, # The time zone name. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For a list of time zone names, see [Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For more information about how Vault uses time zones, see [the Vault help center](https://support.google.com/vault/answer/6092995#time).
283 &quot;voiceOptions&quot;: { # Additional options for Voice search # Set Voice search-specific options.
284 &quot;coveredData&quot;: [ # Datatypes to search
285 &quot;A String&quot;,
286 ],
287 },
288 },
289 &quot;view&quot;: &quot;A String&quot;, # Sets the granularity of the count results.
290 }
291
292 x__xgafv: string, V1 error format.
293 Allowed values
294 1 - v1 error format
295 2 - v2 error format
296
297 Returns:
298 An object of the form:
299
300 { # This resource represents a long-running operation that is the result of a network API call.
301 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
302 &quot;error&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). # The error result of the operation in case of failure or cancellation.
303 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
304 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
305 {
306 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
307 },
308 ],
309 &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.
310 },
311 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
312 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
313 },
314 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
315 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
316 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
317 },
318 }</pre>
319 </div>
320
321 <div class="method">
322 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
323 <pre>Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
324
325 Args:
326 body: object, The request body.
327 The object takes the form of:
328
329 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
330 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
331 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
332 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
333 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
334 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
335 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
336 },
337 ],
338 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
339 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
340 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
341 }
342
343 x__xgafv: string, V1 error format.
344 Allowed values
345 1 - v1 error format
346 2 - v2 error format
347
348 Returns:
349 An object of the form:
350
351 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
352 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
353 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
354 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
355 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
356 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
357 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
358 },
359 ],
360 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
361 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
362 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
363 }</pre>
364 </div>
365
366 <div class="method">
367 <code class="details" id="delete">delete(matterId, x__xgafv=None)</code>
368 <pre>Deletes the specified matter. Returns the matter with updated state.
369
370 Args:
371 matterId: string, The matter ID (required)
372 x__xgafv: string, V1 error format.
373 Allowed values
374 1 - v1 error format
375 2 - v2 error format
376
377 Returns:
378 An object of the form:
379
380 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
381 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
382 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
383 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
384 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
385 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
386 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
387 },
388 ],
389 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
390 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
391 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
392 }</pre>
393 </div>
394
395 <div class="method">
396 <code class="details" id="get">get(matterId, view=None, x__xgafv=None)</code>
397 <pre>Gets the specified matter.
398
399 Args:
400 matterId: string, The matter ID. (required)
401 view: string, Specifies how much information about the matter to return in the response.
402 Allowed values
403 VIEW_UNSPECIFIED - The amount of detail is unspecified. Same as **BASIC**.
404 BASIC - Returns the matter ID, name, description, and state. Default choice.
405 FULL - Returns the basic details and a list of matter owners and collaborators (see [MatterPermissions](https://developers.google.com/workspace/vault/reference/rest/v1/matters#matterpermission)).
406 x__xgafv: string, V1 error format.
407 Allowed values
408 1 - v1 error format
409 2 - v2 error format
410
411 Returns:
412 An object of the form:
413
414 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
415 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
416 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
417 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
418 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
419 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
420 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
421 },
422 ],
423 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
424 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
425 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
426 }</pre>
427 </div>
428
429 <div class="method">
430 <code class="details" id="list">list(pageSize=None, pageToken=None, state=None, view=None, x__xgafv=None)</code>
431 <pre>Lists matters the requestor has access to.
432
433 Args:
434 pageSize: integer, The number of matters to return in the response. Default and maximum are 100.
435 pageToken: string, The pagination token as returned in the response.
436 state: string, If set, lists only matters with the specified state. The default lists matters of all states.
437 Allowed values
438 STATE_UNSPECIFIED - The matter has no specified state.
439 OPEN - The matter is open.
440 CLOSED - The matter is closed.
441 DELETED - The matter is deleted.
442 view: string, Specifies how much information about the matter to return in response.
443 Allowed values
444 VIEW_UNSPECIFIED - The amount of detail is unspecified. Same as **BASIC**.
445 BASIC - Returns the matter ID, name, description, and state. Default choice.
446 FULL - Returns the basic details and a list of matter owners and collaborators (see [MatterPermissions](https://developers.google.com/workspace/vault/reference/rest/v1/matters#matterpermission)).
447 x__xgafv: string, V1 error format.
448 Allowed values
449 1 - v1 error format
450 2 - v2 error format
451
452 Returns:
453 An object of the form:
454
455 { # Provides the list of matters.
456 &quot;matters&quot;: [ # List of matters.
457 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
458 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
459 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
460 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
461 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
462 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
463 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
464 },
465 ],
466 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
467 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
468 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
469 },
470 ],
471 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token to retrieve the next page of results in the list.
472 }</pre>
473 </div>
474
475 <div class="method">
476 <code class="details" id="list_next">list_next()</code>
477 <pre>Retrieves the next page of results.
478
479 Args:
480 previous_request: The request for the previous page. (required)
481 previous_response: The response from the request for the previous page. (required)
482
483 Returns:
484 A request object that you can call &#x27;execute()&#x27; on to request the next
485 page. Returns None if there are no more items in the collection.
486 </pre>
487 </div>
488
489 <div class="method">
490 <code class="details" id="removePermissions">removePermissions(matterId, body=None, x__xgafv=None)</code>
491 <pre>Removes an account as a matter collaborator.
492
493 Args:
494 matterId: string, The matter ID. (required)
495 body: object, The request body.
496 The object takes the form of:
497
498 { # Remove an account as a matter collaborator.
499 &quot;accountId&quot;: &quot;A String&quot;, # The account ID.
500 }
501
502 x__xgafv: string, V1 error format.
503 Allowed values
504 1 - v1 error format
505 2 - v2 error format
506
507 Returns:
508 An object of the form:
509
510 { # 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); }
511 }</pre>
512 </div>
513
514 <div class="method">
515 <code class="details" id="reopen">reopen(matterId, body=None, x__xgafv=None)</code>
516 <pre>Reopens the specified matter. Returns the matter with updated state.
517
518 Args:
519 matterId: string, The matter ID. (required)
520 body: object, The request body.
521 The object takes the form of:
522
523 { # Reopen a matter by ID.
524 }
525
526 x__xgafv: string, V1 error format.
527 Allowed values
528 1 - v1 error format
529 2 - v2 error format
530
531 Returns:
532 An object of the form:
533
534 { # Response to a ReopenMatterRequest.
535 &quot;matter&quot;: { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege. # The updated matter, with state **OPEN**.
536 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
537 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
538 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
539 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
540 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
541 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
542 },
543 ],
544 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
545 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
546 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
547 },
548 }</pre>
549 </div>
550
551 <div class="method">
552 <code class="details" id="undelete">undelete(matterId, body=None, x__xgafv=None)</code>
553 <pre>Undeletes the specified matter. Returns the matter with updated state.
554
555 Args:
556 matterId: string, The matter ID. (required)
557 body: object, The request body.
558 The object takes the form of:
559
560 { # Undelete a matter by ID.
561 }
562
563 x__xgafv: string, V1 error format.
564 Allowed values
565 1 - v1 error format
566 2 - v2 error format
567
568 Returns:
569 An object of the form:
570
571 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
572 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
573 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
574 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
575 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
576 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
577 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
578 },
579 ],
580 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
581 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
582 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
583 }</pre>
584 </div>
585
586 <div class="method">
587 <code class="details" id="update">update(matterId, body=None, x__xgafv=None)</code>
588 <pre>Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.
589
590 Args:
591 matterId: string, The matter ID. (required)
592 body: object, The request body.
593 The object takes the form of:
594
595 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
596 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
597 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
598 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
599 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
600 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
601 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
602 },
603 ],
604 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
605 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
606 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
607 }
608
609 x__xgafv: string, V1 error format.
610 Allowed values
611 1 - v1 error format
612 2 - v2 error format
613
614 Returns:
615 An object of the form:
616
617 { # Represents a matter. To work with Vault resources, the account must have the [required Vault privileges] (https://support.google.com/vault/answer/2799699) and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the **View All Matters** privilege.
618 &quot;description&quot;: &quot;A String&quot;, # An optional description for the matter.
619 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID, which is generated by the server. Leave blank when creating a matter.
620 &quot;matterPermissions&quot;: [ # Lists the users and their permission for the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
621 { # Users can be matter owners or collaborators. Each matter has only one owner. All others users who can access the matter are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
622 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).
623 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role for the matter.
624 },
625 ],
626 &quot;matterRegion&quot;: &quot;A String&quot;, # Optional. The requested data region for the matter.
627 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
628 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
629 }</pre>
630 </div>
631
632 </body></html>