blob: 97eb39fd5a8ef6d13c17de362ac65a52ce9143d2 [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></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">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#addPermissions">addPermissions(matterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<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 matter with updated state.</p>
98<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code><a href="#count">count(matterId, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Counts the artifacts within the context of a matter and returns a detailed breakdown of metrics.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<p class="firstline">Creates a new 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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<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 matter with updated state.</p>
107<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 <code><a href="#get">get(matterId, view=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Gets the specified matter.</p>
110<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800111 <code><a href="#list">list(pageToken=None, view=None, pageSize=None, state=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Lists matters the user has access to.</p>
113<p class="toc_element">
114 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
115<p class="firstline">Retrieves the next page of results.</p>
116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#removePermissions">removePermissions(matterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<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 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 matter with updated state.</p>
125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#update">update(matterId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<h3>Method Details</h3>
129<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code class="details" id="addPermissions">addPermissions(matterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 <pre>Adds an account as a matter collaborator.
132
133Args:
134 matterId: string, The matter ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 The object takes the form of:
137
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138{ # Add an account with the permission specified. The role cannot be owner. If an account already has a role in the matter, it will be overwritten.
139 &quot;matterPermission&quot;: { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist. # The MatterPermission to add.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800141 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700142 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;ccMe&quot;: True or False, # Only relevant if send_emails is true. True to CC requestor in the email message. False to not CC requestor.
144 &quot;sendEmails&quot;: True or False, # True to send notification email to the added account. False to not send notification email.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700145 }
146
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152Returns:
153 An object of the form:
154
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800157 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 }</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 matter with updated state.
164
165Args:
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
178Returns:
179 An object of the form:
180
181 { # Response to a CloseMatterRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;matter&quot;: { # Represents a matter. # The updated matter, with state CLOSED.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800183 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
184 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
185 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
186 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
187 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
188 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
189 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
190 },
191 ],
192 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
193 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 }</pre>
195</div>
196
197<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700198 <code class="details" id="count">count(matterId, body=None, x__xgafv=None)</code>
199 <pre>Counts the artifacts within the context of a matter and returns a detailed breakdown of metrics.
200
201Args:
202 matterId: string, The matter ID. (required)
203 body: object, The request body.
204 The object takes the form of:
205
206{ # Count artifacts request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 &quot;query&quot;: { # A query definition relevant for search &amp; export. # The search query.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 &quot;method&quot;: &quot;A String&quot;, # The search method to use. This field is similar to the search_method field but is introduced to support shared drives. It supports all search method types. In case the search_method is TEAM_DRIVE the response of this field will be SHARED_DRIVE only.
209 &quot;voiceOptions&quot;: { # Voice search options # For voice search, specify more options in this field.
210 &quot;coveredData&quot;: [ # Datatypes to search
211 &quot;A String&quot;,
212 ],
213 },
214 &quot;teamDriveInfo&quot;: { # Team Drives to search # When &#x27;TEAM_DRIVE&#x27; is chosen as search method, team_drive_info needs to be specified.
215 &quot;teamDriveIds&quot;: [ # List of Team Drive IDs, as provided by Drive API.
216 &quot;A String&quot;,
217 ],
218 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800219 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700220 &quot;sharedDriveInfo&quot;: { # Shared drives to search # When &#x27;SHARED_DRIVE&#x27; is chosen as search method, shared_drive_info needs to be specified.
221 &quot;sharedDriveIds&quot;: [ # List of Shared drive IDs, as provided by Drive API.
222 &quot;A String&quot;,
223 ],
224 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800225 &quot;driveOptions&quot;: { # Drive search advanced options # For Drive search, specify more options in this field.
226 &quot;versionDate&quot;: &quot;A String&quot;, # Search the versions of the Drive file as of the reference date. These timestamps are in GMT and rounded down to the given date.
227 &quot;includeTeamDrives&quot;: True or False, # Set to true to include Team Drive.
228 &quot;includeSharedDrives&quot;: True or False, # Set to true to include shared drive.
229 },
230 &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 more information, see Time Zone.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800231 &quot;terms&quot;: &quot;A String&quot;, # The corpus-specific search operators used to generate search results.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &quot;corpus&quot;: &quot;A String&quot;, # The corpus to search.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800233 &quot;hangoutsChatInfo&quot;: { # Accounts to search # When &#x27;ROOM&#x27; is chosen as search method, hangout_chats_info needs to be specified. (read-only)
234 &quot;roomId&quot;: [ # A set of rooms to search.
235 &quot;A String&quot;,
236 ],
237 },
238 &quot;accountInfo&quot;: { # Accounts to search # When &#x27;ACCOUNT&#x27; is chosen as search method, account_info needs to be specified.
239 &quot;emails&quot;: [ # A set of accounts to search.
240 &quot;A String&quot;,
241 ],
242 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800243 &quot;orgUnitInfo&quot;: { # Org Unit to search # When &#x27;ORG_UNIT&#x27; is chosen as as search method, org_unit_info needs to be specified.
244 &quot;orgUnitId&quot;: &quot;A String&quot;, # Org unit to search, as provided by the Admin SDK Directory API.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800245 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800246 &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.
247 &quot;mailOptions&quot;: { # Mail search advanced options # For mail search, specify more options in this field.
248 &quot;excludeDrafts&quot;: True or False, # Set to true to exclude drafts.
249 },
250 &quot;hangoutsChatOptions&quot;: { # Hangouts chat search advanced options # For hangouts chat search, specify more options in this field. (read-only)
251 &quot;includeRooms&quot;: True or False, # Set to true to include rooms.
252 },
253 &quot;dataScope&quot;: &quot;A String&quot;, # The data source to search from.
254 &quot;searchMethod&quot;: &quot;A String&quot;, # The search method to use.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700255 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800256 &quot;view&quot;: &quot;A String&quot;, # Specifies the granularity of the count result returned in response.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700257 }
258
259 x__xgafv: string, V1 error format.
260 Allowed values
261 1 - v1 error format
262 2 - v2 error format
263
264Returns:
265 An object of the form:
266
267 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800268 &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}`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700269 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
270 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
271 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800272 &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.
273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
274 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800275 &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.
276 &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.
277 &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.
278 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
279 {
280 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
281 },
282 ],
283 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
284 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700285 }</pre>
286</div>
287
288<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700290 <pre>Creates a new 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291
292Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 The object takes the form of:
295
296{ # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800297 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
298 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
299 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
300 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
301 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
302 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
303 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
304 },
305 ],
306 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
307}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313
314Returns:
315 An object of the form:
316
317 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800318 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
319 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
320 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
321 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
322 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
323 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
324 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
325 },
326 ],
327 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
328 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700329</div>
330
331<div class="method">
332 <code class="details" id="delete">delete(matterId, x__xgafv=None)</code>
333 <pre>Deletes the specified matter. Returns matter with updated state.
334
335Args:
336 matterId: string, The matter ID (required)
337 x__xgafv: string, V1 error format.
338 Allowed values
339 1 - v1 error format
340 2 - v2 error format
341
342Returns:
343 An object of the form:
344
345 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800346 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
347 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
348 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
349 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
350 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
351 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
352 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
353 },
354 ],
355 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
356 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357</div>
358
359<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 <code class="details" id="get">get(matterId, view=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 <pre>Gets the specified matter.
362
363Args:
364 matterId: string, The matter ID. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 view: string, Specifies which parts of the Matter to return in the response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700366 Allowed values
367 VIEW_UNSPECIFIED - There is no specified view.
368 BASIC - Response includes the matter_id, name, description, and state. Default choice.
369 FULL - Full representation of matter is returned. Everything above and including MatterPermissions list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370 x__xgafv: string, V1 error format.
371 Allowed values
372 1 - v1 error format
373 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374
375Returns:
376 An object of the form:
377
378 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800379 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
380 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
381 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
382 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
383 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
384 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
385 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
386 },
387 ],
388 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
389 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390</div>
391
392<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800393 <code class="details" id="list">list(pageToken=None, view=None, pageSize=None, state=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 <pre>Lists matters the user has access to.
395
396Args:
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800397 pageToken: string, The pagination token as returned in the response.
398 view: string, Specifies which parts of the matter to return in response.
399 Allowed values
400 VIEW_UNSPECIFIED - There is no specified view.
401 BASIC - Response includes the matter_id, name, description, and state. Default choice.
402 FULL - Full representation of matter is returned. Everything above and including MatterPermissions list.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 pageSize: integer, The number of matters to return in the response. Default and maximum are 100.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700404 state: string, If set, list only matters with that specific state. The default is listing matters of all states.
405 Allowed values
406 STATE_UNSPECIFIED - The matter has no specified state.
407 OPEN - This matter is open.
408 CLOSED - This matter is closed.
409 DELETED - This matter is deleted.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410 x__xgafv: string, V1 error format.
411 Allowed values
412 1 - v1 error format
413 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414
415Returns:
416 An object of the form:
417
418 { # Provides the list of matters.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800419 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token to retrieve the next page of results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 &quot;matters&quot;: [ # List of matters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800422 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
423 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
424 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
425 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
426 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
427 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
428 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
429 },
430 ],
431 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
432 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700433 ],
434 }</pre>
435</div>
436
437<div class="method">
438 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
439 <pre>Retrieves the next page of results.
440
441Args:
442 previous_request: The request for the previous page. (required)
443 previous_response: The response from the request for the previous page. (required)
444
445Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 page. Returns None if there are no more items in the collection.
448 </pre>
449</div>
450
451<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700452 <code class="details" id="removePermissions">removePermissions(matterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 <pre>Removes an account as a matter collaborator.
454
455Args:
456 matterId: string, The matter ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700457 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 The object takes the form of:
459
460{ # Remove an account as a matter collaborator.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;accountId&quot;: &quot;A String&quot;, # The account ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 }
463
464 x__xgafv: string, V1 error format.
465 Allowed values
466 1 - v1 error format
467 2 - v2 error format
468
469Returns:
470 An object of the form:
471
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 { # 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 -0700473 }</pre>
474</div>
475
476<div class="method">
477 <code class="details" id="reopen">reopen(matterId, body=None, x__xgafv=None)</code>
478 <pre>Reopens the specified matter. Returns matter with updated state.
479
480Args:
481 matterId: string, The matter ID. (required)
482 body: object, The request body.
483 The object takes the form of:
484
485{ # Reopen a matter by ID.
486 }
487
488 x__xgafv: string, V1 error format.
489 Allowed values
490 1 - v1 error format
491 2 - v2 error format
492
493Returns:
494 An object of the form:
495
496 { # Response to a ReopenMatterRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;matter&quot;: { # Represents a matter. # The updated matter, with state OPEN.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800498 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
499 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
500 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
501 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
502 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
503 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
504 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
505 },
506 ],
507 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
508 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 }</pre>
510</div>
511
512<div class="method">
513 <code class="details" id="undelete">undelete(matterId, body=None, x__xgafv=None)</code>
514 <pre>Undeletes the specified matter. Returns matter with updated state.
515
516Args:
517 matterId: string, The matter ID. (required)
518 body: object, The request body.
519 The object takes the form of:
520
521{ # Undelete a matter by ID.
522 }
523
524 x__xgafv: string, V1 error format.
525 Allowed values
526 1 - v1 error format
527 2 - v2 error format
528
529Returns:
530 An object of the form:
531
532 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800533 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
534 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
535 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
536 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
537 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
538 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
539 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
540 },
541 ],
542 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
543 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544</div>
545
546<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700547 <code class="details" id="update">update(matterId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700548 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549
550Args:
551 matterId: string, The matter ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700552 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 The object takes the form of:
554
555{ # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800556 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
557 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
558 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
559 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
560 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
561 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
562 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
563 },
564 ],
565 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
566}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567
568 x__xgafv: string, V1 error format.
569 Allowed values
570 1 - v1 error format
571 2 - v2 error format
572
573Returns:
574 An object of the form:
575
576 { # Represents a matter.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800577 &quot;description&quot;: &quot;A String&quot;, # The description of the matter.
578 &quot;name&quot;: &quot;A String&quot;, # The name of the matter.
579 &quot;matterId&quot;: &quot;A String&quot;, # The matter ID which is generated by the server. Should be blank when creating a new matter.
580 &quot;matterPermissions&quot;: [ # List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have.
581 { # Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
582 &quot;role&quot;: &quot;A String&quot;, # The user&#x27;s role in this matter.
583 &quot;accountId&quot;: &quot;A String&quot;, # The account ID, as provided by Admin SDK.
584 },
585 ],
586 &quot;state&quot;: &quot;A String&quot;, # The state of the matter.
587 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588</div>
589
590</body></html>