@maxim_mazurok/gapi.client.vault-v1 0.0.20231116 → 0.0.20231211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -9,2755 +9,1930 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://vault.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231116
12
+ // Revision: 20231211
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Google Vault API v1 */
18
- function load(urlOrObject: "https://vault.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "vault", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "vault", version: "v1", callback: () => any): void;
17
+ /** Load Google Vault API v1 */
18
+ function load(
19
+ urlOrObject: 'https://vault.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'vault', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'vault', version: 'v1', callback: () => any): void;
23
25
 
24
- namespace vault {
25
- interface AccountCount {
26
- /** Account owner. */
27
- account?:
28
- UserInfo;
29
- /** The number of results (messages or files) found for this account. */
30
- count?:
31
- string;
32
- }
33
- interface AccountCountError {
34
- /** Account owner. */
35
- account?:
36
- UserInfo;
37
- /** Account query error. */
38
- errorType?:
39
- string;
40
- }
41
- interface AccountInfo {
42
- /** A set of accounts to search. */
43
- emails?:
44
- string[];
45
- }
46
- interface AddHeldAccountResult {
47
- /** Returned when the account was successfully created. */
48
- account?:
49
- HeldAccount;
50
- /** Reports the request status. If it failed, returns an error message. */
51
- status?:
52
- Status;
53
- }
54
- interface AddHeldAccountsRequest {
55
- /** A comma-separated list of the account IDs of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both. */
56
- accountIds?:
57
- string[];
58
- /** A comma-separated list of the emails of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both. */
59
- emails?:
60
- string[];
61
- }
62
- interface AddHeldAccountsResponse {
63
- /** The list of responses, in the same order as the batch request. */
64
- responses?:
65
- AddHeldAccountResult[];
66
- }
67
- interface AddMatterPermissionsRequest {
68
- /** Only relevant if **sendEmails** is **true**. To CC the requestor in the email message, set to **true**. To not CC requestor, set to **false**. */
69
- ccMe?:
70
- boolean;
71
- /** The account and its role to add. */
72
- matterPermission?:
73
- MatterPermission;
74
- /** To send a notification email to the added account, set to **true**. To not send a notification email, set to **false**. */
75
- sendEmails?:
76
- boolean;
77
- }
78
- // tslint:disable-next-line:no-empty-interface
79
- interface CancelOperationRequest {
80
- }
81
- // tslint:disable-next-line:no-empty-interface
82
- interface CloseMatterRequest {
83
- }
84
- interface CloseMatterResponse {
85
- /** The updated matter, with state **CLOSED**. */
86
- matter?:
87
- Matter;
88
- }
89
- interface CloudStorageFile {
90
- /**
91
- * The name of the Cloud Storage bucket for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML
92
- * API](https://cloud.google.com/storage/docs/xml-api), but not to list the bucket contents. Instead, you can [get individual export
93
- * files](https://cloud.google.com/storage/docs/json_api/v1/objects/get) by object name.
94
- */
95
- bucketName?:
96
- string;
97
- /** The md5 hash of the file. */
98
- md5Hash?:
99
- string;
100
- /**
101
- * The name of the Cloud Storage object for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML
102
- * API](https://cloud.google.com/storage/docs/xml-api).
103
- */
104
- objectName?:
105
- string;
106
- /** The export file size. */
107
- size?:
108
- string;
109
- }
110
- interface CloudStorageSink {
111
- /** Output only. The exported files in Cloud Storage. */
112
- files?:
113
- CloudStorageFile[];
114
- }
115
- interface CorpusQuery {
116
- /** Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**. */
117
- driveQuery?:
118
- HeldDriveQuery;
119
- /** Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**. */
120
- groupsQuery?:
121
- HeldGroupsQuery;
122
- /** Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**. */
123
- hangoutsChatQuery?:
124
- HeldHangoutsChatQuery;
125
- /** Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**. */
126
- mailQuery?:
127
- HeldMailQuery;
128
- /** Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**. */
129
- voiceQuery?:
130
- HeldVoiceQuery;
131
- }
132
- interface CountArtifactsMetadata {
133
- /** End time of count operation. Available when operation is done. */
134
- endTime?:
135
- string;
136
- /** The matter ID of the associated matter. */
137
- matterId?:
138
- string;
139
- /** The search query from the request. */
140
- query?:
141
- Query;
142
- /** Creation time of count operation. */
143
- startTime?:
144
- string;
145
- }
146
- interface CountArtifactsRequest {
147
- /** The search query. */
148
- query?:
149
- Query;
150
- /** Sets the granularity of the count results. */
151
- view?:
152
- string;
153
- }
154
- interface CountArtifactsResponse {
155
- /** Count metrics for Groups. */
156
- groupsCountResult?:
157
- GroupsCountResult;
158
- /** Count metrics for Gmail and classic Hangouts. */
159
- mailCountResult?:
160
- MailCountResult;
161
- /** Total count of messages. */
162
- totalCount?:
163
- string;
164
- }
165
- interface DriveExportOptions {
166
- /** To include access level information for users with [indirect access](https://support.google.com/vault/answer/6099459#metadata) to files, set to **true**. */
167
- includeAccessInfo?:
168
- boolean;
169
- }
170
- interface DriveOptions {
171
- /**
172
- * 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
173
- * both. Defaults to both. Currently supported for Drive.
174
- */
175
- clientSideEncryptedOption?:
176
- string;
177
- /** Set to **true** to include shared drives. */
178
- includeSharedDrives?:
179
- boolean;
180
- /** Set to true to include Team Drive. */
181
- includeTeamDrives?:
182
- boolean;
183
- /** 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. */
184
- versionDate?:
185
- string;
186
- }
187
- // tslint:disable-next-line:no-empty-interface
188
- interface Empty {
189
- }
190
- interface Export {
191
- /** Output only. The sink for export files in Cloud Storage. */
192
- cloudStorageSink?:
193
- CloudStorageSink;
194
- /** Output only. The time when the export was created. */
195
- createTime?:
196
- string;
197
- /** Additional export options. */
198
- exportOptions?:
199
- ExportOptions;
200
- /** Output only. The generated export ID. */
201
- id?:
202
- string;
203
- /** Output only. The matter ID. */
204
- matterId?:
205
- string;
206
- /** The export name. Don't use special characters (~!$'(),;@:/?) in the name, they can prevent you from downloading exports. */
207
- name?:
208
- string;
209
- /** The query parameters used to create the export. */
210
- query?:
211
- Query;
212
- /** Output only. The requester of the export. */
213
- requester?:
214
- UserInfo;
215
- /** Output only. Details about the export progress and size. */
216
- stats?:
217
- ExportStats;
218
- /** Output only. The status of the export. */
219
- status?:
220
- string;
221
- }
222
- interface ExportOptions {
223
- /** Options for Drive exports. */
224
- driveOptions?:
225
- DriveExportOptions;
226
- /** Options for Groups exports. */
227
- groupsOptions?:
228
- GroupsExportOptions;
229
- /** Options for Chat exports. */
230
- hangoutsChatOptions?:
231
- HangoutsChatExportOptions;
232
- /** Options for Gmail exports. */
233
- mailOptions?:
234
- MailExportOptions;
235
- /** The requested data region for the export. */
236
- region?:
237
- string;
238
- /** Options for Voice exports. */
239
- voiceOptions?:
240
- VoiceExportOptions;
241
- }
242
- interface ExportStats {
243
- /** The number of messages or files already processed for export. */
244
- exportedArtifactCount?:
245
- string;
246
- /** The size of export in bytes. */
247
- sizeInBytes?:
248
- string;
249
- /** The number of messages or files to be exported. */
250
- totalArtifactCount?:
251
- string;
252
- }
253
- interface GroupsCountResult {
254
- /** Error occurred when querying these accounts. */
255
- accountCountErrors?:
256
- AccountCountError[];
257
- /** Subtotal count per matching account that have more than zero messages. */
258
- accountCounts?:
259
- AccountCount[];
260
- /** Total number of accounts that can be queried and have more than zero messages. */
261
- matchingAccountsCount?:
262
- string;
263
- /** When **DataScope** is **HELD_DATA**, these accounts in the request are not queried because they are not on hold. For other data scope, this field is not set. */
264
- nonQueryableAccounts?:
265
- string[];
266
- /** Total number of accounts involved in this count operation. */
267
- queriedAccountsCount?:
268
- string;
269
- }
270
- interface GroupsExportOptions {
271
- /** The file format for exported messages. */
272
- exportFormat?:
273
- string;
274
- }
275
- interface HangoutsChatExportOptions {
276
- /** The file format for exported messages. */
277
- exportFormat?:
278
- string;
279
- }
280
- interface HangoutsChatInfo {
281
- /** A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/chat). There is a limit of exporting from 500 Chat spaces per request. */
282
- roomId?:
283
- string[];
284
- }
285
- interface HangoutsChatOptions {
286
- /** For searches by account or organizational unit, set to **true** to include rooms. */
287
- includeRooms?:
288
- boolean;
289
- }
290
- interface HeldAccount {
291
- /** The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
292
- accountId?:
293
- string;
294
- /** The primary email address of the account. If used as an input, this takes precedence over **accountId**. */
295
- email?:
296
- string;
297
- /** Output only. The first name of the account holder. */
298
- firstName?:
299
- string;
300
- /** Output only. When the account was put on hold. */
301
- holdTime?:
302
- string;
303
- /** Output only. The last name of the account holder. */
304
- lastName?:
305
- string;
306
- }
307
- interface HeldDriveQuery {
308
- /** To include files in shared drives in the hold, set to **true**. */
309
- includeSharedDriveFiles?:
310
- boolean;
311
- /** To include files in Team Drives in the hold, set to **true**. */
312
- includeTeamDriveFiles?:
313
- boolean;
314
- }
315
- interface HeldGroupsQuery {
316
- /** The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
317
- endTime?:
318
- string;
319
- /** The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
320
- startTime?:
321
- string;
322
- /** The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold. */
323
- terms?:
324
- string;
325
- }
326
- interface HeldHangoutsChatQuery {
327
- /** To include messages in Chat spaces the user was a member of, set to **true**. */
328
- includeRooms?:
329
- boolean;
330
- }
331
- interface HeldMailQuery {
332
- /** The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
333
- endTime?:
334
- string;
335
- /** The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
336
- startTime?:
337
- string;
338
- /** The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold. */
339
- terms?:
340
- string;
341
- }
342
- interface HeldOrgUnit {
343
- /** When the organizational unit was put on hold. This property is immutable. */
344
- holdTime?:
345
- string;
346
- /** The organizational unit's immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
347
- orgUnitId?:
348
- string;
349
- }
350
- interface HeldVoiceQuery {
351
- /** A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored. */
352
- coveredData?:
353
- string[];
354
- }
355
- interface Hold {
356
- /** If set, the hold applies to the specified accounts and **orgUnit** must be empty. */
357
- accounts?:
358
- HeldAccount[];
359
- /** The service to be searched. */
360
- corpus?:
361
- string;
362
- /** The unique immutable ID of the hold. Assigned during creation. */
363
- holdId?:
364
- string;
365
- /** The name of the hold. */
366
- name?:
367
- string;
368
- /** If set, the hold applies to all members of the organizational unit and **accounts** must be empty. This property is mutable. For Groups holds, set **accounts**. */
369
- orgUnit?:
370
- HeldOrgUnit;
371
- /** Service-specific options. If set, **CorpusQuery** must match **CorpusType**. */
372
- query?:
373
- CorpusQuery;
374
- /** The last time this hold was modified. */
375
- updateTime?:
376
- string;
377
- }
378
- interface ListExportsResponse {
379
- /** The list of exports. */
380
- exports?:
381
- Export[];
382
- /** Page token to retrieve the next page of results in the list. */
383
- nextPageToken?:
384
- string;
385
- }
386
- interface ListHeldAccountsResponse {
387
- /** The held accounts on a hold. */
388
- accounts?:
389
- HeldAccount[];
390
- }
391
- interface ListHoldsResponse {
392
- /** The list of holds. */
393
- holds?:
394
- Hold[];
395
- /** Page token to retrieve the next page of results in the list. If this is empty, then there are no more holds to list. */
396
- nextPageToken?:
397
- string;
398
- }
399
- interface ListMattersResponse {
400
- /** List of matters. */
401
- matters?:
402
- Matter[];
403
- /** Page token to retrieve the next page of results in the list. */
404
- nextPageToken?:
405
- string;
406
- }
407
- interface ListOperationsResponse {
408
- /** The standard List next-page token. */
409
- nextPageToken?:
410
- string;
411
- /** A list of operations that matches the specified filter in the request. */
412
- operations?:
413
- Operation[];
414
- }
415
- interface ListSavedQueriesResponse {
416
- /** Page token to retrieve the next page of results in the list. If this is empty, then there are no more saved queries to list. */
417
- nextPageToken?:
418
- string;
419
- /** List of saved queries. */
420
- savedQueries?:
421
- SavedQuery[];
422
- }
423
- interface MailCountResult {
424
- /** Errors occurred when querying these accounts. */
425
- accountCountErrors?:
426
- AccountCountError[];
427
- /** Subtotal count per matching account that have more than zero messages. */
428
- accountCounts?:
429
- AccountCount[];
430
- /** Total number of accounts that can be queried and have more than zero messages. */
431
- matchingAccountsCount?:
432
- string;
433
- /**
434
- * When **DataScope** is **HELD_DATA** and when account emails are passed in explicitly, the list of accounts in the request that are not queried because they are not on hold in the
435
- * matter. For other data scopes, this field is not set.
436
- */
437
- nonQueryableAccounts?:
438
- string[];
439
- /** Total number of accounts involved in this count operation. */
440
- queriedAccountsCount?:
441
- string;
442
- }
443
- interface MailExportOptions {
444
- /** The file format for exported messages. */
445
- exportFormat?:
446
- string;
447
- /** To export confidential mode content, set to **true**. */
448
- showConfidentialModeContent?:
449
- boolean;
450
- /** To use the new export system, set to **true**. */
451
- useNewExport?:
452
- boolean;
453
- }
454
- interface MailOptions {
455
- /** Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both. */
456
- clientSideEncryptedOption?:
457
- string;
458
- /** Set to **true** to exclude drafts. */
459
- excludeDrafts?:
460
- boolean;
461
- }
462
- interface Matter {
463
- /** An optional description for the matter. */
464
- description?:
465
- string;
466
- /** The matter ID, which is generated by the server. Leave blank when creating a matter. */
467
- matterId?:
468
- string;
469
- /** 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. */
470
- matterPermissions?:
471
- MatterPermission[];
472
- /** The name of the matter. */
473
- name?:
474
- string;
475
- /** The state of the matter. */
476
- state?:
477
- string;
478
- }
479
- interface MatterPermission {
480
- /** The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
481
- accountId?:
482
- string;
483
- /** The user's role for the matter. */
484
- role?:
485
- string;
486
- }
487
- interface Operation {
488
- /** 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. */
489
- done?:
490
- boolean;
491
- /** The error result of the operation in case of failure or cancellation. */
492
- error?:
493
- Status;
494
- /**
495
- * 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
496
- * metadata. Any method that returns a long-running operation should document the metadata type, if any.
497
- */
498
- metadata?:
499
- { [P in string]: any };
500
- /**
501
- * 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
502
- * with `operations/{unique_id}`.
503
- */
504
- name?:
505
- string;
506
- /**
507
- * 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
508
- * 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
509
- * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
510
- */
511
- response?:
512
- { [P in string]: any };
513
- }
514
- interface OrgUnitInfo {
515
- /** The name of the organizational unit to search, as provided by the [Admin SDK Directory API](https://developers.google.com/admin-sdk/directory/). */
516
- orgUnitId?:
517
- string;
518
- }
519
- interface Query {
520
- /** Required when **SearchMethod** is **ACCOUNT**. */
521
- accountInfo?:
522
- AccountInfo;
523
- /** The Google Workspace service to search. */
524
- corpus?:
525
- string;
526
- /** The data source to search. */
527
- dataScope?:
528
- string;
529
- /** Set Drive search-specific options. */
530
- driveOptions?:
531
- DriveOptions;
532
- /** The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
533
- endTime?:
534
- string;
535
- /** Required when **SearchMethod** is **ROOM**. (read-only) */
536
- hangoutsChatInfo?:
537
- HangoutsChatInfo;
538
- /** Set Chat search-specific options. (read-only) */
539
- hangoutsChatOptions?:
540
- HangoutsChatOptions;
541
- /** Set Gmail search-specific options. */
542
- mailOptions?:
543
- MailOptions;
544
- /** 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**. */
545
- method?:
546
- string;
547
- /** Required when **SearchMethod** is **ORG_UNIT**. */
548
- orgUnitInfo?:
549
- OrgUnitInfo;
550
- /** The search method to use. */
551
- searchMethod?:
552
- string;
553
- /** Required when **SearchMethod** is **SHARED_DRIVE**. */
554
- sharedDriveInfo?:
555
- SharedDriveInfo;
556
- /** Required when **SearchMethod** is **SITES_URL**. */
557
- sitesUrlInfo?:
558
- SitesUrlInfo;
559
- /** The start time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
560
- startTime?:
561
- string;
562
- /** Required when **SearchMethod** is **TEAM_DRIVE**. */
563
- teamDriveInfo?:
564
- TeamDriveInfo;
565
- /** Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter search results. */
566
- terms?:
567
- string;
568
- /**
569
- * The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles". For a list of time zone names, see [Time
570
- * 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
571
- * center](https://support.google.com/vault/answer/6092995#time).
572
- */
573
- timeZone?:
574
- string;
575
- /** Set Voice search-specific options. */
576
- voiceOptions?:
577
- VoiceOptions;
578
- }
579
- interface RemoveHeldAccountsRequest {
580
- /** The account IDs of the accounts to remove from the hold. */
581
- accountIds?:
582
- string[];
583
- }
584
- interface RemoveHeldAccountsResponse {
585
- /** A list of statuses for the deleted accounts. Results have the same order as the request. */
586
- statuses?:
587
- Status[];
588
- }
589
- interface RemoveMatterPermissionsRequest {
590
- /** The account ID. */
591
- accountId?:
592
- string;
593
- }
594
- // tslint:disable-next-line:no-empty-interface
595
- interface ReopenMatterRequest {
596
- }
597
- interface ReopenMatterResponse {
598
- /** The updated matter, with state **OPEN**. */
599
- matter?:
600
- Matter;
601
- }
602
- interface SavedQuery {
603
- /** Output only. The server-generated timestamp when the saved query was created. */
604
- createTime?:
605
- string;
606
- /** The name of the saved query. */
607
- displayName?:
608
- string;
609
- /** Output only. The matter ID of the matter the saved query is saved in. The server does not use this field during create and always uses matter ID in the URL. */
610
- matterId?:
611
- string;
612
- /** The search parameters of the saved query. */
613
- query?:
614
- Query;
615
- /** A unique identifier for the saved query. */
616
- savedQueryId?:
617
- string;
618
- }
619
- interface SharedDriveInfo {
620
- /** A list of shared drive IDs, as provided by the [Drive API](https://developers.google.com/drive). */
621
- sharedDriveIds?:
622
- string[];
623
- }
624
- interface SitesUrlInfo {
625
- /** A list of published site URLs. */
626
- urls?:
627
- string[];
628
- }
629
- interface Status {
630
- /** The status code, which should be an enum value of google.rpc.Code. */
631
- code?:
632
- number;
633
- /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
634
- details?:
635
- Array<{ [P in string]: any }>;
636
- /**
637
- * 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
638
- * client.
639
- */
640
- message?:
641
- string;
642
- }
643
- interface TeamDriveInfo {
644
- /** List of Team Drive IDs, as provided by the [Drive API](https://developers.google.com/drive). */
645
- teamDriveIds?:
646
- string[];
647
- }
648
- // tslint:disable-next-line:no-empty-interface
649
- interface UndeleteMatterRequest {
650
- }
651
- interface UserInfo {
652
- /** The displayed name of the user. */
653
- displayName?:
654
- string;
655
- /** The email address of the user. */
656
- email?:
657
- string;
658
- }
659
- interface VoiceExportOptions {
660
- /** The file format for exported text messages. */
661
- exportFormat?:
662
- string;
663
- }
664
- interface VoiceOptions {
665
- /** Datatypes to search */
666
- coveredData?:
667
- string[];
668
- }
669
- interface ExportsResource {
670
- /** Creates an export. */
671
- create(request: {
672
- /** V1 error format. */
673
- "$.xgafv"?:
674
- string;
675
- /** OAuth access token. */
676
- access_token?:
677
- string;
678
- /** Data format for response. */
679
- alt?:
680
- string;
681
- /** JSONP */
682
- callback?:
683
- string;
684
- /** Selector specifying which fields to include in a partial response. */
685
- fields?:
686
- string;
687
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
688
- key?:
689
- string;
690
- /** The matter ID. */
691
- matterId:
692
- string;
693
- /** OAuth 2.0 token for the current user. */
694
- oauth_token?:
695
- string;
696
- /** Returns response with indentations and line breaks. */
697
- prettyPrint?:
698
- boolean;
699
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
700
- quotaUser?:
701
- string;
702
- /** Upload protocol for media (e.g. "raw", "multipart"). */
703
- upload_protocol?:
704
- string;
705
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
706
- uploadType?:
707
- string;
708
- /** Request body */
709
- resource:
710
- Export;
711
- }): Request<Export>;
712
- create(request: {
713
- /** V1 error format. */
714
- "$.xgafv"?:
715
- string;
716
- /** OAuth access token. */
717
- access_token?:
718
- string;
719
- /** Data format for response. */
720
- alt?:
721
- string;
722
- /** JSONP */
723
- callback?:
724
- string;
725
- /** Selector specifying which fields to include in a partial response. */
726
- fields?:
727
- string;
728
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
729
- key?:
730
- string;
731
- /** The matter ID. */
732
- matterId:
733
- string;
734
- /** OAuth 2.0 token for the current user. */
735
- oauth_token?:
736
- string;
737
- /** Returns response with indentations and line breaks. */
738
- prettyPrint?:
739
- boolean;
740
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
741
- quotaUser?:
742
- string;
743
- /** Upload protocol for media (e.g. "raw", "multipart"). */
744
- upload_protocol?:
745
- string;
746
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
747
- uploadType?:
748
- string;
749
- },
750
- body: Export): Request<Export>;
751
- /** Deletes an export. */
752
- delete(request?: {
753
- /** V1 error format. */
754
- "$.xgafv"?:
755
- string;
756
- /** OAuth access token. */
757
- access_token?:
758
- string;
759
- /** Data format for response. */
760
- alt?:
761
- string;
762
- /** JSONP */
763
- callback?:
764
- string;
765
- /** The export ID. */
766
- exportId:
767
- string;
768
- /** Selector specifying which fields to include in a partial response. */
769
- fields?:
770
- string;
771
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
772
- key?:
773
- string;
774
- /** The matter ID. */
775
- matterId:
776
- string;
777
- /** OAuth 2.0 token for the current user. */
778
- oauth_token?:
779
- string;
780
- /** Returns response with indentations and line breaks. */
781
- prettyPrint?:
782
- boolean;
783
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
784
- quotaUser?:
785
- string;
786
- /** Upload protocol for media (e.g. "raw", "multipart"). */
787
- upload_protocol?:
788
- string;
789
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
790
- uploadType?:
791
- string;
792
- }): Request<{}>;
793
- /** Gets an export. */
794
- get(request?: {
795
- /** V1 error format. */
796
- "$.xgafv"?:
797
- string;
798
- /** OAuth access token. */
799
- access_token?:
800
- string;
801
- /** Data format for response. */
802
- alt?:
803
- string;
804
- /** JSONP */
805
- callback?:
806
- string;
807
- /** The export ID. */
808
- exportId:
809
- string;
810
- /** Selector specifying which fields to include in a partial response. */
811
- fields?:
812
- string;
813
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
814
- key?:
815
- string;
816
- /** The matter ID. */
817
- matterId:
818
- string;
819
- /** OAuth 2.0 token for the current user. */
820
- oauth_token?:
821
- string;
822
- /** Returns response with indentations and line breaks. */
823
- prettyPrint?:
824
- boolean;
825
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
826
- quotaUser?:
827
- string;
828
- /** Upload protocol for media (e.g. "raw", "multipart"). */
829
- upload_protocol?:
830
- string;
831
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
832
- uploadType?:
833
- string;
834
- }): Request<Export>;
835
- /** Lists details about the exports in the specified matter. */
836
- list(request?: {
837
- /** V1 error format. */
838
- "$.xgafv"?:
839
- string;
840
- /** OAuth access token. */
841
- access_token?:
842
- string;
843
- /** Data format for response. */
844
- alt?:
845
- string;
846
- /** JSONP */
847
- callback?:
848
- string;
849
- /** Selector specifying which fields to include in a partial response. */
850
- fields?:
851
- string;
852
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
853
- key?:
854
- string;
855
- /** The matter ID. */
856
- matterId:
857
- string;
858
- /** OAuth 2.0 token for the current user. */
859
- oauth_token?:
860
- string;
861
- /** The number of exports to return in the response. */
862
- pageSize?:
863
- number;
864
- /** The pagination token as returned in the response. */
865
- pageToken?:
866
- string;
867
- /** Returns response with indentations and line breaks. */
868
- prettyPrint?:
869
- boolean;
870
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
871
- quotaUser?:
872
- string;
873
- /** Upload protocol for media (e.g. "raw", "multipart"). */
874
- upload_protocol?:
875
- string;
876
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
877
- uploadType?:
878
- string;
879
- }): Request<ListExportsResponse>;
880
- }
881
- interface AccountsResource {
882
- /**
883
- * Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an
884
- * error is returned.
885
- */
886
- create(request: {
887
- /** V1 error format. */
888
- "$.xgafv"?:
889
- string;
890
- /** OAuth access token. */
891
- access_token?:
892
- string;
893
- /** Data format for response. */
894
- alt?:
895
- string;
896
- /** JSONP */
897
- callback?:
898
- string;
899
- /** Selector specifying which fields to include in a partial response. */
900
- fields?:
901
- string;
902
- /** The hold ID. */
903
- holdId:
904
- string;
905
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
906
- key?:
907
- string;
908
- /** The matter ID. */
909
- matterId:
910
- string;
911
- /** OAuth 2.0 token for the current user. */
912
- oauth_token?:
913
- string;
914
- /** Returns response with indentations and line breaks. */
915
- prettyPrint?:
916
- boolean;
917
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
918
- quotaUser?:
919
- string;
920
- /** Upload protocol for media (e.g. "raw", "multipart"). */
921
- upload_protocol?:
922
- string;
923
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
924
- uploadType?:
925
- string;
926
- /** Request body */
927
- resource:
928
- HeldAccount;
929
- }): Request<HeldAccount>;
930
- create(request: {
931
- /** V1 error format. */
932
- "$.xgafv"?:
933
- string;
934
- /** OAuth access token. */
935
- access_token?:
936
- string;
937
- /** Data format for response. */
938
- alt?:
939
- string;
940
- /** JSONP */
941
- callback?:
942
- string;
943
- /** Selector specifying which fields to include in a partial response. */
944
- fields?:
945
- string;
946
- /** The hold ID. */
947
- holdId:
948
- string;
949
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
950
- key?:
951
- string;
952
- /** The matter ID. */
953
- matterId:
954
- string;
955
- /** OAuth 2.0 token for the current user. */
956
- oauth_token?:
957
- string;
958
- /** Returns response with indentations and line breaks. */
959
- prettyPrint?:
960
- boolean;
961
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
962
- quotaUser?:
963
- string;
964
- /** Upload protocol for media (e.g. "raw", "multipart"). */
965
- upload_protocol?:
966
- string;
967
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
968
- uploadType?:
969
- string;
970
- },
971
- body: HeldAccount): Request<HeldAccount>;
972
- /** Removes an account from a hold. */
973
- delete(request?: {
974
- /** V1 error format. */
975
- "$.xgafv"?:
976
- string;
977
- /** OAuth access token. */
978
- access_token?:
979
- string;
980
- /** The ID of the account to remove from the hold. */
981
- accountId:
982
- string;
983
- /** Data format for response. */
984
- alt?:
985
- string;
986
- /** JSONP */
987
- callback?:
988
- string;
989
- /** Selector specifying which fields to include in a partial response. */
990
- fields?:
991
- string;
992
- /** The hold ID. */
993
- holdId:
994
- string;
995
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
996
- key?:
997
- string;
998
- /** The matter ID. */
999
- matterId:
1000
- string;
1001
- /** OAuth 2.0 token for the current user. */
1002
- oauth_token?:
1003
- string;
1004
- /** Returns response with indentations and line breaks. */
1005
- prettyPrint?:
1006
- boolean;
1007
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1008
- quotaUser?:
1009
- string;
1010
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1011
- upload_protocol?:
1012
- string;
1013
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1014
- uploadType?:
1015
- string;
1016
- }): Request<{}>;
1017
- /**
1018
- * Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the [Admin
1019
- * SDK](https://developers.google.com/admin-sdk/). to list the members of the organizational unit on hold.
1020
- */
1021
- list(request?: {
1022
- /** V1 error format. */
1023
- "$.xgafv"?:
1024
- string;
1025
- /** OAuth access token. */
1026
- access_token?:
1027
- string;
1028
- /** Data format for response. */
1029
- alt?:
1030
- string;
1031
- /** JSONP */
1032
- callback?:
1033
- string;
1034
- /** Selector specifying which fields to include in a partial response. */
1035
- fields?:
1036
- string;
1037
- /** The hold ID. */
1038
- holdId:
1039
- string;
1040
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1041
- key?:
1042
- string;
1043
- /** The matter ID. */
1044
- matterId:
1045
- string;
1046
- /** OAuth 2.0 token for the current user. */
1047
- oauth_token?:
1048
- string;
1049
- /** Returns response with indentations and line breaks. */
1050
- prettyPrint?:
1051
- boolean;
1052
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1053
- quotaUser?:
1054
- string;
1055
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1056
- upload_protocol?:
1057
- string;
1058
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1059
- uploadType?:
1060
- string;
1061
- }): Request<ListHeldAccountsResponse>;
1062
- }
1063
- interface HoldsResource {
1064
- /** Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold. */
1065
- addHeldAccounts(request: {
1066
- /** V1 error format. */
1067
- "$.xgafv"?:
1068
- string;
1069
- /** OAuth access token. */
1070
- access_token?:
1071
- string;
1072
- /** Data format for response. */
1073
- alt?:
1074
- string;
1075
- /** JSONP */
1076
- callback?:
1077
- string;
1078
- /** Selector specifying which fields to include in a partial response. */
1079
- fields?:
1080
- string;
1081
- /** The hold ID. */
1082
- holdId:
1083
- string;
1084
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1085
- key?:
1086
- string;
1087
- /** The matter ID. */
1088
- matterId:
1089
- string;
1090
- /** OAuth 2.0 token for the current user. */
1091
- oauth_token?:
1092
- string;
1093
- /** Returns response with indentations and line breaks. */
1094
- prettyPrint?:
1095
- boolean;
1096
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1097
- quotaUser?:
1098
- string;
1099
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1100
- upload_protocol?:
1101
- string;
1102
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1103
- uploadType?:
1104
- string;
1105
- /** Request body */
1106
- resource:
1107
- AddHeldAccountsRequest;
1108
- }): Request<AddHeldAccountsResponse>;
1109
- addHeldAccounts(request: {
1110
- /** V1 error format. */
1111
- "$.xgafv"?:
1112
- string;
1113
- /** OAuth access token. */
1114
- access_token?:
1115
- string;
1116
- /** Data format for response. */
1117
- alt?:
1118
- string;
1119
- /** JSONP */
1120
- callback?:
1121
- string;
1122
- /** Selector specifying which fields to include in a partial response. */
1123
- fields?:
1124
- string;
1125
- /** The hold ID. */
1126
- holdId:
1127
- string;
1128
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1129
- key?:
1130
- string;
1131
- /** The matter ID. */
1132
- matterId:
1133
- string;
1134
- /** OAuth 2.0 token for the current user. */
1135
- oauth_token?:
1136
- string;
1137
- /** Returns response with indentations and line breaks. */
1138
- prettyPrint?:
1139
- boolean;
1140
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1141
- quotaUser?:
1142
- string;
1143
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1144
- upload_protocol?:
1145
- string;
1146
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1147
- uploadType?:
1148
- string;
1149
- },
1150
- body: AddHeldAccountsRequest): Request<AddHeldAccountsResponse>;
1151
- /** Creates a hold in the specified matter. */
1152
- create(request: {
1153
- /** V1 error format. */
1154
- "$.xgafv"?:
1155
- string;
1156
- /** OAuth access token. */
1157
- access_token?:
1158
- string;
1159
- /** Data format for response. */
1160
- alt?:
1161
- string;
1162
- /** JSONP */
1163
- callback?:
1164
- string;
1165
- /** Selector specifying which fields to include in a partial response. */
1166
- fields?:
1167
- string;
1168
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1169
- key?:
1170
- string;
1171
- /** The matter ID. */
1172
- matterId:
1173
- string;
1174
- /** OAuth 2.0 token for the current user. */
1175
- oauth_token?:
1176
- string;
1177
- /** Returns response with indentations and line breaks. */
1178
- prettyPrint?:
1179
- boolean;
1180
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1181
- quotaUser?:
1182
- string;
1183
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1184
- upload_protocol?:
1185
- string;
1186
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1187
- uploadType?:
1188
- string;
1189
- /** Request body */
1190
- resource:
1191
- Hold;
1192
- }): Request<Hold>;
1193
- create(request: {
1194
- /** V1 error format. */
1195
- "$.xgafv"?:
1196
- string;
1197
- /** OAuth access token. */
1198
- access_token?:
1199
- string;
1200
- /** Data format for response. */
1201
- alt?:
1202
- string;
1203
- /** JSONP */
1204
- callback?:
1205
- string;
1206
- /** Selector specifying which fields to include in a partial response. */
1207
- fields?:
1208
- string;
1209
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1210
- key?:
1211
- string;
1212
- /** The matter ID. */
1213
- matterId:
1214
- string;
1215
- /** OAuth 2.0 token for the current user. */
1216
- oauth_token?:
1217
- string;
1218
- /** Returns response with indentations and line breaks. */
1219
- prettyPrint?:
1220
- boolean;
1221
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1222
- quotaUser?:
1223
- string;
1224
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1225
- upload_protocol?:
1226
- string;
1227
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1228
- uploadType?:
1229
- string;
1230
- },
1231
- body: Hold): Request<Hold>;
1232
- /** Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged. */
1233
- delete(request?: {
1234
- /** V1 error format. */
1235
- "$.xgafv"?:
1236
- string;
1237
- /** OAuth access token. */
1238
- access_token?:
1239
- string;
1240
- /** Data format for response. */
1241
- alt?:
1242
- string;
1243
- /** JSONP */
1244
- callback?:
1245
- string;
1246
- /** Selector specifying which fields to include in a partial response. */
1247
- fields?:
1248
- string;
1249
- /** The hold ID. */
1250
- holdId:
1251
- string;
1252
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1253
- key?:
1254
- string;
1255
- /** The matter ID. */
1256
- matterId:
1257
- string;
1258
- /** OAuth 2.0 token for the current user. */
1259
- oauth_token?:
1260
- string;
1261
- /** Returns response with indentations and line breaks. */
1262
- prettyPrint?:
1263
- boolean;
1264
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1265
- quotaUser?:
1266
- string;
1267
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1268
- upload_protocol?:
1269
- string;
1270
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1271
- uploadType?:
1272
- string;
1273
- }): Request<{}>;
1274
- /** Gets the specified hold. */
1275
- get(request?: {
1276
- /** V1 error format. */
1277
- "$.xgafv"?:
1278
- string;
1279
- /** OAuth access token. */
1280
- access_token?:
1281
- string;
1282
- /** Data format for response. */
1283
- alt?:
1284
- string;
1285
- /** JSONP */
1286
- callback?:
1287
- string;
1288
- /** Selector specifying which fields to include in a partial response. */
1289
- fields?:
1290
- string;
1291
- /** The hold ID. */
1292
- holdId:
1293
- string;
1294
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1295
- key?:
1296
- string;
1297
- /** The matter ID. */
1298
- matterId:
1299
- string;
1300
- /** OAuth 2.0 token for the current user. */
1301
- oauth_token?:
1302
- string;
1303
- /** Returns response with indentations and line breaks. */
1304
- prettyPrint?:
1305
- boolean;
1306
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1307
- quotaUser?:
1308
- string;
1309
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1310
- upload_protocol?:
1311
- string;
1312
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1313
- uploadType?:
1314
- string;
1315
- /** The amount of detail to return for a hold. */
1316
- view?:
1317
- string;
1318
- }): Request<Hold>;
1319
- /** Lists the holds in a matter. */
1320
- list(request?: {
1321
- /** V1 error format. */
1322
- "$.xgafv"?:
1323
- string;
1324
- /** OAuth access token. */
1325
- access_token?:
1326
- string;
1327
- /** Data format for response. */
1328
- alt?:
1329
- string;
1330
- /** JSONP */
1331
- callback?:
1332
- string;
1333
- /** Selector specifying which fields to include in a partial response. */
1334
- fields?:
1335
- string;
1336
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1337
- key?:
1338
- string;
1339
- /** The matter ID. */
1340
- matterId:
1341
- string;
1342
- /** OAuth 2.0 token for the current user. */
1343
- oauth_token?:
1344
- string;
1345
- /** 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. */
1346
- pageSize?:
1347
- number;
1348
- /** The pagination token as returned in the response. An empty token means start from the beginning. */
1349
- pageToken?:
1350
- string;
1351
- /** Returns response with indentations and line breaks. */
1352
- prettyPrint?:
1353
- boolean;
1354
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1355
- quotaUser?:
1356
- string;
1357
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1358
- upload_protocol?:
1359
- string;
1360
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1361
- uploadType?:
1362
- string;
1363
- /** The amount of detail to return for a hold. */
1364
- view?:
1365
- string;
1366
- }): Request<ListHoldsResponse>;
1367
- /** Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request. */
1368
- removeHeldAccounts(request: {
1369
- /** V1 error format. */
1370
- "$.xgafv"?:
1371
- string;
1372
- /** OAuth access token. */
1373
- access_token?:
1374
- string;
1375
- /** Data format for response. */
1376
- alt?:
1377
- string;
1378
- /** JSONP */
1379
- callback?:
1380
- string;
1381
- /** Selector specifying which fields to include in a partial response. */
1382
- fields?:
1383
- string;
1384
- /** The hold ID. */
1385
- holdId:
1386
- string;
1387
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1388
- key?:
1389
- string;
1390
- /** The matter ID. */
1391
- matterId:
1392
- string;
1393
- /** OAuth 2.0 token for the current user. */
1394
- oauth_token?:
1395
- string;
1396
- /** Returns response with indentations and line breaks. */
1397
- prettyPrint?:
1398
- boolean;
1399
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1400
- quotaUser?:
1401
- string;
1402
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1403
- upload_protocol?:
1404
- string;
1405
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1406
- uploadType?:
1407
- string;
1408
- /** Request body */
1409
- resource:
1410
- RemoveHeldAccountsRequest;
1411
- }): Request<RemoveHeldAccountsResponse>;
1412
- removeHeldAccounts(request: {
1413
- /** V1 error format. */
1414
- "$.xgafv"?:
1415
- string;
1416
- /** OAuth access token. */
1417
- access_token?:
1418
- string;
1419
- /** Data format for response. */
1420
- alt?:
1421
- string;
1422
- /** JSONP */
1423
- callback?:
1424
- string;
1425
- /** Selector specifying which fields to include in a partial response. */
1426
- fields?:
1427
- string;
1428
- /** The hold ID. */
1429
- holdId:
1430
- string;
1431
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1432
- key?:
1433
- string;
1434
- /** The matter ID. */
1435
- matterId:
1436
- string;
1437
- /** OAuth 2.0 token for the current user. */
1438
- oauth_token?:
1439
- string;
1440
- /** Returns response with indentations and line breaks. */
1441
- prettyPrint?:
1442
- boolean;
1443
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1444
- quotaUser?:
1445
- string;
1446
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1447
- upload_protocol?:
1448
- string;
1449
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1450
- uploadType?:
1451
- string;
1452
- },
1453
- body: RemoveHeldAccountsRequest): Request<RemoveHeldAccountsResponse>;
1454
- /**
1455
- * Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add
1456
- * organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored.
1457
- */
1458
- update(request: {
1459
- /** V1 error format. */
1460
- "$.xgafv"?:
1461
- string;
1462
- /** OAuth access token. */
1463
- access_token?:
1464
- string;
1465
- /** Data format for response. */
1466
- alt?:
1467
- string;
1468
- /** JSONP */
1469
- callback?:
1470
- string;
1471
- /** Selector specifying which fields to include in a partial response. */
1472
- fields?:
1473
- string;
1474
- /** The ID of the hold. */
1475
- holdId:
1476
- string;
1477
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1478
- key?:
1479
- string;
1480
- /** The matter ID. */
1481
- matterId:
1482
- string;
1483
- /** OAuth 2.0 token for the current user. */
1484
- oauth_token?:
1485
- string;
1486
- /** Returns response with indentations and line breaks. */
1487
- prettyPrint?:
1488
- boolean;
1489
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1490
- quotaUser?:
1491
- string;
1492
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1493
- upload_protocol?:
1494
- string;
1495
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1496
- uploadType?:
1497
- string;
1498
- /** Request body */
1499
- resource:
1500
- Hold;
1501
- }): Request<Hold>;
1502
- update(request: {
1503
- /** V1 error format. */
1504
- "$.xgafv"?:
1505
- string;
1506
- /** OAuth access token. */
1507
- access_token?:
1508
- string;
1509
- /** Data format for response. */
1510
- alt?:
1511
- string;
1512
- /** JSONP */
1513
- callback?:
1514
- string;
1515
- /** Selector specifying which fields to include in a partial response. */
1516
- fields?:
1517
- string;
1518
- /** The ID of the hold. */
1519
- holdId:
1520
- string;
1521
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1522
- key?:
1523
- string;
1524
- /** The matter ID. */
1525
- matterId:
1526
- string;
1527
- /** OAuth 2.0 token for the current user. */
1528
- oauth_token?:
1529
- string;
1530
- /** Returns response with indentations and line breaks. */
1531
- prettyPrint?:
1532
- boolean;
1533
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1534
- quotaUser?:
1535
- string;
1536
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1537
- upload_protocol?:
1538
- string;
1539
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1540
- uploadType?:
1541
- string;
1542
- },
1543
- body: Hold): Request<Hold>;
1544
- accounts:
1545
- AccountsResource;
1546
- }
1547
- interface SavedQueriesResource {
1548
- /** Creates a saved query. */
1549
- create(request: {
1550
- /** V1 error format. */
1551
- "$.xgafv"?:
1552
- string;
1553
- /** OAuth access token. */
1554
- access_token?:
1555
- string;
1556
- /** Data format for response. */
1557
- alt?:
1558
- string;
1559
- /** JSONP */
1560
- callback?:
1561
- string;
1562
- /** Selector specifying which fields to include in a partial response. */
1563
- fields?:
1564
- string;
1565
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1566
- key?:
1567
- string;
1568
- /** The ID of the matter to create the saved query in. */
1569
- matterId:
1570
- string;
1571
- /** OAuth 2.0 token for the current user. */
1572
- oauth_token?:
1573
- string;
1574
- /** Returns response with indentations and line breaks. */
1575
- prettyPrint?:
1576
- boolean;
1577
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1578
- quotaUser?:
1579
- string;
1580
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1581
- upload_protocol?:
1582
- string;
1583
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1584
- uploadType?:
1585
- string;
1586
- /** Request body */
1587
- resource:
1588
- SavedQuery;
1589
- }): Request<SavedQuery>;
1590
- create(request: {
1591
- /** V1 error format. */
1592
- "$.xgafv"?:
1593
- string;
1594
- /** OAuth access token. */
1595
- access_token?:
1596
- string;
1597
- /** Data format for response. */
1598
- alt?:
1599
- string;
1600
- /** JSONP */
1601
- callback?:
1602
- string;
1603
- /** Selector specifying which fields to include in a partial response. */
1604
- fields?:
1605
- string;
1606
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1607
- key?:
1608
- string;
1609
- /** The ID of the matter to create the saved query in. */
1610
- matterId:
1611
- string;
1612
- /** OAuth 2.0 token for the current user. */
1613
- oauth_token?:
1614
- string;
1615
- /** Returns response with indentations and line breaks. */
1616
- prettyPrint?:
1617
- boolean;
1618
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1619
- quotaUser?:
1620
- string;
1621
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1622
- upload_protocol?:
1623
- string;
1624
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1625
- uploadType?:
1626
- string;
1627
- },
1628
- body: SavedQuery): Request<SavedQuery>;
1629
- /** Deletes the specified saved query. */
1630
- delete(request?: {
1631
- /** V1 error format. */
1632
- "$.xgafv"?:
1633
- string;
1634
- /** OAuth access token. */
1635
- access_token?:
1636
- string;
1637
- /** Data format for response. */
1638
- alt?:
1639
- string;
1640
- /** JSONP */
1641
- callback?:
1642
- string;
1643
- /** Selector specifying which fields to include in a partial response. */
1644
- fields?:
1645
- string;
1646
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1647
- key?:
1648
- string;
1649
- /** The ID of the matter to delete the saved query from. */
1650
- matterId:
1651
- string;
1652
- /** OAuth 2.0 token for the current user. */
1653
- oauth_token?:
1654
- string;
1655
- /** Returns response with indentations and line breaks. */
1656
- prettyPrint?:
1657
- boolean;
1658
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1659
- quotaUser?:
1660
- string;
1661
- /** ID of the saved query to delete. */
1662
- savedQueryId:
1663
- string;
1664
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1665
- upload_protocol?:
1666
- string;
1667
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1668
- uploadType?:
1669
- string;
1670
- }): Request<{}>;
1671
- /** Retrieves the specified saved query. */
1672
- get(request?: {
1673
- /** V1 error format. */
1674
- "$.xgafv"?:
1675
- string;
1676
- /** OAuth access token. */
1677
- access_token?:
1678
- string;
1679
- /** Data format for response. */
1680
- alt?:
1681
- string;
1682
- /** JSONP */
1683
- callback?:
1684
- string;
1685
- /** Selector specifying which fields to include in a partial response. */
1686
- fields?:
1687
- string;
1688
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1689
- key?:
1690
- string;
1691
- /** The ID of the matter to get the saved query from. */
1692
- matterId:
1693
- string;
1694
- /** OAuth 2.0 token for the current user. */
1695
- oauth_token?:
1696
- string;
1697
- /** Returns response with indentations and line breaks. */
1698
- prettyPrint?:
1699
- boolean;
1700
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1701
- quotaUser?:
1702
- string;
1703
- /** ID of the saved query to retrieve. */
1704
- savedQueryId:
1705
- string;
1706
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1707
- upload_protocol?:
1708
- string;
1709
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1710
- uploadType?:
1711
- string;
1712
- }): Request<SavedQuery>;
1713
- /** Lists the saved queries in a matter. */
1714
- list(request?: {
1715
- /** V1 error format. */
1716
- "$.xgafv"?:
1717
- string;
1718
- /** OAuth access token. */
1719
- access_token?:
1720
- string;
1721
- /** Data format for response. */
1722
- alt?:
1723
- string;
1724
- /** JSONP */
1725
- callback?:
1726
- string;
1727
- /** Selector specifying which fields to include in a partial response. */
1728
- fields?:
1729
- string;
1730
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1731
- key?:
1732
- string;
1733
- /** The ID of the matter to get the saved queries for. */
1734
- matterId:
1735
- string;
1736
- /** OAuth 2.0 token for the current user. */
1737
- oauth_token?:
1738
- string;
1739
- /** The maximum number of saved queries to return. */
1740
- pageSize?:
1741
- number;
1742
- /** The pagination token as returned in the previous response. An empty token means start from the beginning. */
1743
- pageToken?:
1744
- string;
1745
- /** Returns response with indentations and line breaks. */
1746
- prettyPrint?:
1747
- boolean;
1748
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1749
- quotaUser?:
1750
- string;
1751
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1752
- upload_protocol?:
1753
- string;
1754
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1755
- uploadType?:
1756
- string;
1757
- }): Request<ListSavedQueriesResponse>;
1758
- }
1759
- interface MattersResource {
1760
- /** Adds an account as a matter collaborator. */
1761
- addPermissions(request: {
1762
- /** V1 error format. */
1763
- "$.xgafv"?:
1764
- string;
1765
- /** OAuth access token. */
1766
- access_token?:
1767
- string;
1768
- /** Data format for response. */
1769
- alt?:
1770
- string;
1771
- /** JSONP */
1772
- callback?:
1773
- string;
1774
- /** Selector specifying which fields to include in a partial response. */
1775
- fields?:
1776
- string;
1777
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1778
- key?:
1779
- string;
1780
- /** The matter ID. */
1781
- matterId:
1782
- string;
1783
- /** OAuth 2.0 token for the current user. */
1784
- oauth_token?:
1785
- string;
1786
- /** Returns response with indentations and line breaks. */
1787
- prettyPrint?:
1788
- boolean;
1789
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1790
- quotaUser?:
1791
- string;
1792
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1793
- upload_protocol?:
1794
- string;
1795
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1796
- uploadType?:
1797
- string;
1798
- /** Request body */
1799
- resource:
1800
- AddMatterPermissionsRequest;
1801
- }): Request<MatterPermission>;
1802
- addPermissions(request: {
1803
- /** V1 error format. */
1804
- "$.xgafv"?:
1805
- string;
1806
- /** OAuth access token. */
1807
- access_token?:
1808
- string;
1809
- /** Data format for response. */
1810
- alt?:
1811
- string;
1812
- /** JSONP */
1813
- callback?:
1814
- string;
1815
- /** Selector specifying which fields to include in a partial response. */
1816
- fields?:
1817
- string;
1818
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1819
- key?:
1820
- string;
1821
- /** The matter ID. */
1822
- matterId:
1823
- string;
1824
- /** OAuth 2.0 token for the current user. */
1825
- oauth_token?:
1826
- string;
1827
- /** Returns response with indentations and line breaks. */
1828
- prettyPrint?:
1829
- boolean;
1830
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1831
- quotaUser?:
1832
- string;
1833
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1834
- upload_protocol?:
1835
- string;
1836
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1837
- uploadType?:
1838
- string;
1839
- },
1840
- body: AddMatterPermissionsRequest): Request<MatterPermission>;
1841
- /** Closes the specified matter. Returns the matter with updated state. */
1842
- close(request: {
1843
- /** V1 error format. */
1844
- "$.xgafv"?:
1845
- string;
1846
- /** OAuth access token. */
1847
- access_token?:
1848
- string;
1849
- /** Data format for response. */
1850
- alt?:
1851
- string;
1852
- /** JSONP */
1853
- callback?:
1854
- string;
1855
- /** Selector specifying which fields to include in a partial response. */
1856
- fields?:
1857
- string;
1858
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1859
- key?:
1860
- string;
1861
- /** The matter ID. */
1862
- matterId:
1863
- string;
1864
- /** OAuth 2.0 token for the current user. */
1865
- oauth_token?:
1866
- string;
1867
- /** Returns response with indentations and line breaks. */
1868
- prettyPrint?:
1869
- boolean;
1870
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1871
- quotaUser?:
1872
- string;
1873
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1874
- upload_protocol?:
1875
- string;
1876
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1877
- uploadType?:
1878
- string;
1879
- /** Request body */
1880
- resource:
1881
- CloseMatterRequest;
1882
- }): Request<CloseMatterResponse>;
1883
- close(request: {
1884
- /** V1 error format. */
1885
- "$.xgafv"?:
1886
- string;
1887
- /** OAuth access token. */
1888
- access_token?:
1889
- string;
1890
- /** Data format for response. */
1891
- alt?:
1892
- string;
1893
- /** JSONP */
1894
- callback?:
1895
- string;
1896
- /** Selector specifying which fields to include in a partial response. */
1897
- fields?:
1898
- string;
1899
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1900
- key?:
1901
- string;
1902
- /** The matter ID. */
1903
- matterId:
1904
- string;
1905
- /** OAuth 2.0 token for the current user. */
1906
- oauth_token?:
1907
- string;
1908
- /** Returns response with indentations and line breaks. */
1909
- prettyPrint?:
1910
- boolean;
1911
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1912
- quotaUser?:
1913
- string;
1914
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1915
- upload_protocol?:
1916
- string;
1917
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1918
- uploadType?:
1919
- string;
1920
- },
1921
- body: CloseMatterRequest): Request<CloseMatterResponse>;
1922
- /** Counts the accounts processed by the specified query. */
1923
- count(request: {
1924
- /** V1 error format. */
1925
- "$.xgafv"?:
1926
- string;
1927
- /** OAuth access token. */
1928
- access_token?:
1929
- string;
1930
- /** Data format for response. */
1931
- alt?:
1932
- string;
1933
- /** JSONP */
1934
- callback?:
1935
- string;
1936
- /** Selector specifying which fields to include in a partial response. */
1937
- fields?:
1938
- string;
1939
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1940
- key?:
1941
- string;
1942
- /** The matter ID. */
1943
- matterId:
1944
- string;
1945
- /** OAuth 2.0 token for the current user. */
1946
- oauth_token?:
1947
- string;
1948
- /** Returns response with indentations and line breaks. */
1949
- prettyPrint?:
1950
- boolean;
1951
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1952
- quotaUser?:
1953
- string;
1954
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1955
- upload_protocol?:
1956
- string;
1957
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1958
- uploadType?:
1959
- string;
1960
- /** Request body */
1961
- resource:
1962
- CountArtifactsRequest;
1963
- }): Request<Operation>;
1964
- count(request: {
1965
- /** V1 error format. */
1966
- "$.xgafv"?:
1967
- string;
1968
- /** OAuth access token. */
1969
- access_token?:
1970
- string;
1971
- /** Data format for response. */
1972
- alt?:
1973
- string;
1974
- /** JSONP */
1975
- callback?:
1976
- string;
1977
- /** Selector specifying which fields to include in a partial response. */
1978
- fields?:
1979
- string;
1980
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1981
- key?:
1982
- string;
1983
- /** The matter ID. */
1984
- matterId:
1985
- string;
1986
- /** OAuth 2.0 token for the current user. */
1987
- oauth_token?:
1988
- string;
1989
- /** Returns response with indentations and line breaks. */
1990
- prettyPrint?:
1991
- boolean;
1992
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1993
- quotaUser?:
1994
- string;
1995
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1996
- upload_protocol?:
1997
- string;
1998
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1999
- uploadType?:
2000
- string;
2001
- },
2002
- body: CountArtifactsRequest): Request<Operation>;
2003
- /** 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. */
2004
- create(request: {
2005
- /** V1 error format. */
2006
- "$.xgafv"?:
2007
- string;
2008
- /** OAuth access token. */
2009
- access_token?:
2010
- string;
2011
- /** Data format for response. */
2012
- alt?:
2013
- string;
2014
- /** JSONP */
2015
- callback?:
2016
- string;
2017
- /** Selector specifying which fields to include in a partial response. */
2018
- fields?:
2019
- string;
2020
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2021
- key?:
2022
- string;
2023
- /** OAuth 2.0 token for the current user. */
2024
- oauth_token?:
2025
- string;
2026
- /** Returns response with indentations and line breaks. */
2027
- prettyPrint?:
2028
- boolean;
2029
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2030
- quotaUser?:
2031
- string;
2032
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2033
- upload_protocol?:
2034
- string;
2035
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2036
- uploadType?:
2037
- string;
2038
- /** Request body */
2039
- resource:
2040
- Matter;
2041
- }): Request<Matter>;
2042
- create(request: {
2043
- /** V1 error format. */
2044
- "$.xgafv"?:
2045
- string;
2046
- /** OAuth access token. */
2047
- access_token?:
2048
- string;
2049
- /** Data format for response. */
2050
- alt?:
2051
- string;
2052
- /** JSONP */
2053
- callback?:
2054
- string;
2055
- /** Selector specifying which fields to include in a partial response. */
2056
- fields?:
2057
- string;
2058
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2059
- key?:
2060
- string;
2061
- /** OAuth 2.0 token for the current user. */
2062
- oauth_token?:
2063
- string;
2064
- /** Returns response with indentations and line breaks. */
2065
- prettyPrint?:
2066
- boolean;
2067
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2068
- quotaUser?:
2069
- string;
2070
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2071
- upload_protocol?:
2072
- string;
2073
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2074
- uploadType?:
2075
- string;
2076
- },
2077
- body: Matter): Request<Matter>;
2078
- /** Deletes the specified matter. Returns the matter with updated state. */
2079
- delete(request?: {
2080
- /** V1 error format. */
2081
- "$.xgafv"?:
2082
- string;
2083
- /** OAuth access token. */
2084
- access_token?:
2085
- string;
2086
- /** Data format for response. */
2087
- alt?:
2088
- string;
2089
- /** JSONP */
2090
- callback?:
2091
- string;
2092
- /** Selector specifying which fields to include in a partial response. */
2093
- fields?:
2094
- string;
2095
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2096
- key?:
2097
- string;
2098
- /** The matter ID */
2099
- matterId:
2100
- string;
2101
- /** OAuth 2.0 token for the current user. */
2102
- oauth_token?:
2103
- string;
2104
- /** Returns response with indentations and line breaks. */
2105
- prettyPrint?:
2106
- boolean;
2107
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2108
- quotaUser?:
2109
- string;
2110
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2111
- upload_protocol?:
2112
- string;
2113
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2114
- uploadType?:
2115
- string;
2116
- }): Request<Matter>;
2117
- /** Gets the specified matter. */
2118
- get(request?: {
2119
- /** V1 error format. */
2120
- "$.xgafv"?:
2121
- string;
2122
- /** OAuth access token. */
2123
- access_token?:
2124
- string;
2125
- /** Data format for response. */
2126
- alt?:
2127
- string;
2128
- /** JSONP */
2129
- callback?:
2130
- string;
2131
- /** Selector specifying which fields to include in a partial response. */
2132
- fields?:
2133
- string;
2134
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2135
- key?:
2136
- string;
2137
- /** The matter ID. */
2138
- matterId:
2139
- string;
2140
- /** OAuth 2.0 token for the current user. */
2141
- oauth_token?:
2142
- string;
2143
- /** Returns response with indentations and line breaks. */
2144
- prettyPrint?:
2145
- boolean;
2146
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2147
- quotaUser?:
2148
- string;
2149
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2150
- upload_protocol?:
2151
- string;
2152
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2153
- uploadType?:
2154
- string;
2155
- /** Specifies how much information about the matter to return in the response. */
2156
- view?:
2157
- string;
2158
- }): Request<Matter>;
2159
- /** Lists matters the requestor has access to. */
2160
- list(request?: {
2161
- /** V1 error format. */
2162
- "$.xgafv"?:
2163
- string;
2164
- /** OAuth access token. */
2165
- access_token?:
2166
- string;
2167
- /** Data format for response. */
2168
- alt?:
2169
- string;
2170
- /** JSONP */
2171
- callback?:
2172
- string;
2173
- /** Selector specifying which fields to include in a partial response. */
2174
- fields?:
2175
- string;
2176
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2177
- key?:
2178
- string;
2179
- /** OAuth 2.0 token for the current user. */
2180
- oauth_token?:
2181
- string;
2182
- /** The number of matters to return in the response. Default and maximum are 100. */
2183
- pageSize?:
2184
- number;
2185
- /** The pagination token as returned in the response. */
2186
- pageToken?:
2187
- string;
2188
- /** Returns response with indentations and line breaks. */
2189
- prettyPrint?:
2190
- boolean;
2191
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2192
- quotaUser?:
2193
- string;
2194
- /** If set, lists only matters with the specified state. The default lists matters of all states. */
2195
- state?:
2196
- string;
2197
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2198
- upload_protocol?:
2199
- string;
2200
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2201
- uploadType?:
2202
- string;
2203
- /** Specifies how much information about the matter to return in response. */
2204
- view?:
2205
- string;
2206
- }): Request<ListMattersResponse>;
2207
- /** Removes an account as a matter collaborator. */
2208
- removePermissions(request: {
2209
- /** V1 error format. */
2210
- "$.xgafv"?:
2211
- string;
2212
- /** OAuth access token. */
2213
- access_token?:
2214
- string;
2215
- /** Data format for response. */
2216
- alt?:
2217
- string;
2218
- /** JSONP */
2219
- callback?:
2220
- string;
2221
- /** Selector specifying which fields to include in a partial response. */
2222
- fields?:
2223
- string;
2224
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2225
- key?:
2226
- string;
2227
- /** The matter ID. */
2228
- matterId:
2229
- string;
2230
- /** OAuth 2.0 token for the current user. */
2231
- oauth_token?:
2232
- string;
2233
- /** Returns response with indentations and line breaks. */
2234
- prettyPrint?:
2235
- boolean;
2236
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2237
- quotaUser?:
2238
- string;
2239
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2240
- upload_protocol?:
2241
- string;
2242
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2243
- uploadType?:
2244
- string;
2245
- /** Request body */
2246
- resource:
2247
- RemoveMatterPermissionsRequest;
2248
- }): Request<{}>;
2249
- removePermissions(request: {
2250
- /** V1 error format. */
2251
- "$.xgafv"?:
2252
- string;
2253
- /** OAuth access token. */
2254
- access_token?:
2255
- string;
2256
- /** Data format for response. */
2257
- alt?:
2258
- string;
2259
- /** JSONP */
2260
- callback?:
2261
- string;
2262
- /** Selector specifying which fields to include in a partial response. */
2263
- fields?:
2264
- string;
2265
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2266
- key?:
2267
- string;
2268
- /** The matter ID. */
2269
- matterId:
2270
- string;
2271
- /** OAuth 2.0 token for the current user. */
2272
- oauth_token?:
2273
- string;
2274
- /** Returns response with indentations and line breaks. */
2275
- prettyPrint?:
2276
- boolean;
2277
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2278
- quotaUser?:
2279
- string;
2280
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2281
- upload_protocol?:
2282
- string;
2283
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2284
- uploadType?:
2285
- string;
2286
- },
2287
- body: RemoveMatterPermissionsRequest): Request<{}>;
2288
- /** Reopens the specified matter. Returns the matter with updated state. */
2289
- reopen(request: {
2290
- /** V1 error format. */
2291
- "$.xgafv"?:
2292
- string;
2293
- /** OAuth access token. */
2294
- access_token?:
2295
- string;
2296
- /** Data format for response. */
2297
- alt?:
2298
- string;
2299
- /** JSONP */
2300
- callback?:
2301
- string;
2302
- /** Selector specifying which fields to include in a partial response. */
2303
- fields?:
2304
- string;
2305
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2306
- key?:
2307
- string;
2308
- /** The matter ID. */
2309
- matterId:
2310
- string;
2311
- /** OAuth 2.0 token for the current user. */
2312
- oauth_token?:
2313
- string;
2314
- /** Returns response with indentations and line breaks. */
2315
- prettyPrint?:
2316
- boolean;
2317
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2318
- quotaUser?:
2319
- string;
2320
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2321
- upload_protocol?:
2322
- string;
2323
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2324
- uploadType?:
2325
- string;
2326
- /** Request body */
2327
- resource:
2328
- ReopenMatterRequest;
2329
- }): Request<ReopenMatterResponse>;
2330
- reopen(request: {
2331
- /** V1 error format. */
2332
- "$.xgafv"?:
2333
- string;
2334
- /** OAuth access token. */
2335
- access_token?:
2336
- string;
2337
- /** Data format for response. */
2338
- alt?:
2339
- string;
2340
- /** JSONP */
2341
- callback?:
2342
- string;
2343
- /** Selector specifying which fields to include in a partial response. */
2344
- fields?:
2345
- string;
2346
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2347
- key?:
2348
- string;
2349
- /** The matter ID. */
2350
- matterId:
2351
- string;
2352
- /** OAuth 2.0 token for the current user. */
2353
- oauth_token?:
2354
- string;
2355
- /** Returns response with indentations and line breaks. */
2356
- prettyPrint?:
2357
- boolean;
2358
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2359
- quotaUser?:
2360
- string;
2361
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2362
- upload_protocol?:
2363
- string;
2364
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2365
- uploadType?:
2366
- string;
2367
- },
2368
- body: ReopenMatterRequest): Request<ReopenMatterResponse>;
2369
- /** Undeletes the specified matter. Returns the matter with updated state. */
2370
- undelete(request: {
2371
- /** V1 error format. */
2372
- "$.xgafv"?:
2373
- string;
2374
- /** OAuth access token. */
2375
- access_token?:
2376
- string;
2377
- /** Data format for response. */
2378
- alt?:
2379
- string;
2380
- /** JSONP */
2381
- callback?:
2382
- string;
2383
- /** Selector specifying which fields to include in a partial response. */
2384
- fields?:
2385
- string;
2386
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2387
- key?:
2388
- string;
2389
- /** The matter ID. */
2390
- matterId:
2391
- string;
2392
- /** OAuth 2.0 token for the current user. */
2393
- oauth_token?:
2394
- string;
2395
- /** Returns response with indentations and line breaks. */
2396
- prettyPrint?:
2397
- boolean;
2398
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2399
- quotaUser?:
2400
- string;
2401
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2402
- upload_protocol?:
2403
- string;
2404
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2405
- uploadType?:
2406
- string;
2407
- /** Request body */
2408
- resource:
2409
- UndeleteMatterRequest;
2410
- }): Request<Matter>;
2411
- undelete(request: {
2412
- /** V1 error format. */
2413
- "$.xgafv"?:
2414
- string;
2415
- /** OAuth access token. */
2416
- access_token?:
2417
- string;
2418
- /** Data format for response. */
2419
- alt?:
2420
- string;
2421
- /** JSONP */
2422
- callback?:
2423
- string;
2424
- /** Selector specifying which fields to include in a partial response. */
2425
- fields?:
2426
- string;
2427
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2428
- key?:
2429
- string;
2430
- /** The matter ID. */
2431
- matterId:
2432
- string;
2433
- /** OAuth 2.0 token for the current user. */
2434
- oauth_token?:
2435
- string;
2436
- /** Returns response with indentations and line breaks. */
2437
- prettyPrint?:
2438
- boolean;
2439
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2440
- quotaUser?:
2441
- string;
2442
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2443
- upload_protocol?:
2444
- string;
2445
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2446
- uploadType?:
2447
- string;
2448
- },
2449
- body: UndeleteMatterRequest): Request<Matter>;
2450
- /**
2451
- * 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
2452
- * the matter.
2453
- */
2454
- update(request: {
2455
- /** V1 error format. */
2456
- "$.xgafv"?:
2457
- string;
2458
- /** OAuth access token. */
2459
- access_token?:
2460
- string;
2461
- /** Data format for response. */
2462
- alt?:
2463
- string;
2464
- /** JSONP */
2465
- callback?:
2466
- string;
2467
- /** Selector specifying which fields to include in a partial response. */
2468
- fields?:
2469
- string;
2470
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2471
- key?:
2472
- string;
2473
- /** The matter ID. */
2474
- matterId:
2475
- string;
2476
- /** OAuth 2.0 token for the current user. */
2477
- oauth_token?:
2478
- string;
2479
- /** Returns response with indentations and line breaks. */
2480
- prettyPrint?:
2481
- boolean;
2482
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2483
- quotaUser?:
2484
- string;
2485
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2486
- upload_protocol?:
2487
- string;
2488
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2489
- uploadType?:
2490
- string;
2491
- /** Request body */
2492
- resource:
2493
- Matter;
2494
- }): Request<Matter>;
2495
- update(request: {
2496
- /** V1 error format. */
2497
- "$.xgafv"?:
2498
- string;
2499
- /** OAuth access token. */
2500
- access_token?:
2501
- string;
2502
- /** Data format for response. */
2503
- alt?:
2504
- string;
2505
- /** JSONP */
2506
- callback?:
2507
- string;
2508
- /** Selector specifying which fields to include in a partial response. */
2509
- fields?:
2510
- string;
2511
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2512
- key?:
2513
- string;
2514
- /** The matter ID. */
2515
- matterId:
2516
- string;
2517
- /** OAuth 2.0 token for the current user. */
2518
- oauth_token?:
2519
- string;
2520
- /** Returns response with indentations and line breaks. */
2521
- prettyPrint?:
2522
- boolean;
2523
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2524
- quotaUser?:
2525
- string;
2526
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2527
- upload_protocol?:
2528
- string;
2529
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2530
- uploadType?:
2531
- string;
2532
- },
2533
- body: Matter): Request<Matter>;
2534
- exports:
2535
- ExportsResource;
2536
- holds:
2537
- HoldsResource;
2538
- savedQueries:
2539
- SavedQueriesResource;
2540
- }
2541
- interface OperationsResource {
2542
- /**
2543
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
2544
- * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
2545
- * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
2546
- * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
2547
- */
2548
- cancel(request: {
2549
- /** V1 error format. */
2550
- "$.xgafv"?:
2551
- string;
2552
- /** OAuth access token. */
2553
- access_token?:
2554
- string;
2555
- /** Data format for response. */
2556
- alt?:
2557
- string;
2558
- /** JSONP */
2559
- callback?:
2560
- string;
2561
- /** Selector specifying which fields to include in a partial response. */
2562
- fields?:
2563
- string;
2564
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2565
- key?:
2566
- string;
2567
- /** The name of the operation resource to be cancelled. */
2568
- name:
2569
- string;
2570
- /** OAuth 2.0 token for the current user. */
2571
- oauth_token?:
2572
- string;
2573
- /** Returns response with indentations and line breaks. */
2574
- prettyPrint?:
2575
- boolean;
2576
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2577
- quotaUser?:
2578
- string;
2579
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2580
- upload_protocol?:
2581
- string;
2582
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2583
- uploadType?:
2584
- string;
2585
- /** Request body */
2586
- resource:
2587
- CancelOperationRequest;
2588
- }): Request<{}>;
2589
- cancel(request: {
2590
- /** V1 error format. */
2591
- "$.xgafv"?:
2592
- string;
2593
- /** OAuth access token. */
2594
- access_token?:
2595
- string;
2596
- /** Data format for response. */
2597
- alt?:
2598
- string;
2599
- /** JSONP */
2600
- callback?:
2601
- string;
2602
- /** Selector specifying which fields to include in a partial response. */
2603
- fields?:
2604
- string;
2605
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2606
- key?:
2607
- string;
2608
- /** The name of the operation resource to be cancelled. */
2609
- name:
2610
- string;
2611
- /** OAuth 2.0 token for the current user. */
2612
- oauth_token?:
2613
- string;
2614
- /** Returns response with indentations and line breaks. */
2615
- prettyPrint?:
2616
- boolean;
2617
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2618
- quotaUser?:
2619
- string;
2620
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2621
- upload_protocol?:
2622
- string;
2623
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2624
- uploadType?:
2625
- string;
2626
- },
2627
- body: CancelOperationRequest): Request<{}>;
2628
- /**
2629
- * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
2630
- * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2631
- */
2632
- delete(request?: {
2633
- /** V1 error format. */
2634
- "$.xgafv"?:
2635
- string;
2636
- /** OAuth access token. */
2637
- access_token?:
2638
- string;
2639
- /** Data format for response. */
2640
- alt?:
2641
- string;
2642
- /** JSONP */
2643
- callback?:
2644
- string;
2645
- /** Selector specifying which fields to include in a partial response. */
2646
- fields?:
2647
- string;
2648
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2649
- key?:
2650
- string;
2651
- /** The name of the operation resource to be deleted. */
2652
- name:
2653
- string;
2654
- /** OAuth 2.0 token for the current user. */
2655
- oauth_token?:
2656
- string;
2657
- /** Returns response with indentations and line breaks. */
2658
- prettyPrint?:
2659
- boolean;
2660
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2661
- quotaUser?:
2662
- string;
2663
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2664
- upload_protocol?:
2665
- string;
2666
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2667
- uploadType?:
2668
- string;
2669
- }): Request<{}>;
2670
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2671
- get(request?: {
2672
- /** V1 error format. */
2673
- "$.xgafv"?:
2674
- string;
2675
- /** OAuth access token. */
2676
- access_token?:
2677
- string;
2678
- /** Data format for response. */
2679
- alt?:
2680
- string;
2681
- /** JSONP */
2682
- callback?:
2683
- string;
2684
- /** Selector specifying which fields to include in a partial response. */
2685
- fields?:
2686
- string;
2687
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2688
- key?:
2689
- string;
2690
- /** The name of the operation resource. */
2691
- name:
2692
- string;
2693
- /** OAuth 2.0 token for the current user. */
2694
- oauth_token?:
2695
- string;
2696
- /** Returns response with indentations and line breaks. */
2697
- prettyPrint?:
2698
- boolean;
2699
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2700
- quotaUser?:
2701
- string;
2702
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2703
- upload_protocol?:
2704
- string;
2705
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2706
- uploadType?:
2707
- string;
2708
- }): Request<Operation>;
2709
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2710
- list(request?: {
2711
- /** V1 error format. */
2712
- "$.xgafv"?:
2713
- string;
2714
- /** OAuth access token. */
2715
- access_token?:
2716
- string;
2717
- /** Data format for response. */
2718
- alt?:
2719
- string;
2720
- /** JSONP */
2721
- callback?:
2722
- string;
2723
- /** Selector specifying which fields to include in a partial response. */
2724
- fields?:
2725
- string;
2726
- /** The standard list filter. */
2727
- filter?:
2728
- string;
2729
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2730
- key?:
2731
- string;
2732
- /** The name of the operation's parent resource. */
2733
- name:
2734
- string;
2735
- /** OAuth 2.0 token for the current user. */
2736
- oauth_token?:
2737
- string;
2738
- /** The standard list page size. */
2739
- pageSize?:
2740
- number;
2741
- /** The standard list page token. */
2742
- pageToken?:
2743
- string;
2744
- /** Returns response with indentations and line breaks. */
2745
- prettyPrint?:
2746
- boolean;
2747
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2748
- quotaUser?:
2749
- string;
2750
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2751
- upload_protocol?:
2752
- string;
2753
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2754
- uploadType?:
2755
- string;
2756
- }): Request<ListOperationsResponse>;
2757
- }
26
+ namespace vault {
27
+ interface AccountCount {
28
+ /** Account owner. */
29
+ account?: UserInfo;
30
+ /** The number of results (messages or files) found for this account. */
31
+ count?: string;
32
+ }
33
+ interface AccountCountError {
34
+ /** Account owner. */
35
+ account?: UserInfo;
36
+ /** Account query error. */
37
+ errorType?: string;
38
+ }
39
+ interface AccountInfo {
40
+ /** A set of accounts to search. */
41
+ emails?: string[];
42
+ }
43
+ interface AddHeldAccountResult {
44
+ /** Returned when the account was successfully created. */
45
+ account?: HeldAccount;
46
+ /** Reports the request status. If it failed, returns an error message. */
47
+ status?: Status;
48
+ }
49
+ interface AddHeldAccountsRequest {
50
+ /** A comma-separated list of the account IDs of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both. */
51
+ accountIds?: string[];
52
+ /** A comma-separated list of the emails of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both. */
53
+ emails?: string[];
54
+ }
55
+ interface AddHeldAccountsResponse {
56
+ /** The list of responses, in the same order as the batch request. */
57
+ responses?: AddHeldAccountResult[];
58
+ }
59
+ interface AddMatterPermissionsRequest {
60
+ /** Only relevant if **sendEmails** is **true**. To CC the requestor in the email message, set to **true**. To not CC requestor, set to **false**. */
61
+ ccMe?: boolean;
62
+ /** The account and its role to add. */
63
+ matterPermission?: MatterPermission;
64
+ /** To send a notification email to the added account, set to **true**. To not send a notification email, set to **false**. */
65
+ sendEmails?: boolean;
66
+ }
67
+ interface CancelOperationRequest {}
68
+ interface CloseMatterRequest {}
69
+ interface CloseMatterResponse {
70
+ /** The updated matter, with state **CLOSED**. */
71
+ matter?: Matter;
72
+ }
73
+ interface CloudStorageFile {
74
+ /** The name of the Cloud Storage bucket for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api), but not to list the bucket contents. Instead, you can [get individual export files](https://cloud.google.com/storage/docs/json_api/v1/objects/get) by object name. */
75
+ bucketName?: string;
76
+ /** The md5 hash of the file. */
77
+ md5Hash?: string;
78
+ /** The name of the Cloud Storage object for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api). */
79
+ objectName?: string;
80
+ /** The export file size. */
81
+ size?: string;
82
+ }
83
+ interface CloudStorageSink {
84
+ /** Output only. The exported files in Cloud Storage. */
85
+ files?: CloudStorageFile[];
86
+ }
87
+ interface CorpusQuery {
88
+ /** Service-specific options for Drive holds. If set, **CorpusType** must be **DRIVE**. */
89
+ driveQuery?: HeldDriveQuery;
90
+ /** Service-specific options for Groups holds. If set, **CorpusType** must be **GROUPS**. */
91
+ groupsQuery?: HeldGroupsQuery;
92
+ /** Service-specific options for Chat holds. If set, **CorpusType** must be **HANGOUTS_CHAT**. */
93
+ hangoutsChatQuery?: HeldHangoutsChatQuery;
94
+ /** Service-specific options for Gmail holds. If set, **CorpusType** must be **MAIL**. */
95
+ mailQuery?: HeldMailQuery;
96
+ /** Service-specific options for Voice holds. If set, **CorpusType** must be **VOICE**. */
97
+ voiceQuery?: HeldVoiceQuery;
98
+ }
99
+ interface CountArtifactsMetadata {
100
+ /** End time of count operation. Available when operation is done. */
101
+ endTime?: string;
102
+ /** The matter ID of the associated matter. */
103
+ matterId?: string;
104
+ /** The search query from the request. */
105
+ query?: Query;
106
+ /** Creation time of count operation. */
107
+ startTime?: string;
108
+ }
109
+ interface CountArtifactsRequest {
110
+ /** The search query. */
111
+ query?: Query;
112
+ /** Sets the granularity of the count results. */
113
+ view?: string;
114
+ }
115
+ interface CountArtifactsResponse {
116
+ /** Count metrics for Groups. */
117
+ groupsCountResult?: GroupsCountResult;
118
+ /** Count metrics for Gmail and classic Hangouts. */
119
+ mailCountResult?: MailCountResult;
120
+ /** Total count of messages. */
121
+ totalCount?: string;
122
+ }
123
+ interface DriveExportOptions {
124
+ /** To include access level information for users with [indirect access](https://support.google.com/vault/answer/6099459#metadata) to files, set to **true**. */
125
+ includeAccessInfo?: boolean;
126
+ }
127
+ interface DriveOptions {
128
+ /** 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. */
129
+ clientSideEncryptedOption?: string;
130
+ /** Set to **true** to include shared drives. */
131
+ includeSharedDrives?: boolean;
132
+ /** Set to true to include Team Drive. */
133
+ includeTeamDrives?: boolean;
134
+ /** 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. */
135
+ versionDate?: string;
136
+ }
137
+ interface Empty {}
138
+ interface Export {
139
+ /** Output only. The sink for export files in Cloud Storage. */
140
+ cloudStorageSink?: CloudStorageSink;
141
+ /** Output only. The time when the export was created. */
142
+ createTime?: string;
143
+ /** Additional export options. */
144
+ exportOptions?: ExportOptions;
145
+ /** Output only. The generated export ID. */
146
+ id?: string;
147
+ /** Output only. The matter ID. */
148
+ matterId?: string;
149
+ /** The export name. Don't use special characters (~!$'(),;@:/?) in the name, they can prevent you from downloading exports. */
150
+ name?: string;
151
+ /** The query parameters used to create the export. */
152
+ query?: Query;
153
+ /** Output only. The requester of the export. */
154
+ requester?: UserInfo;
155
+ /** Output only. Details about the export progress and size. */
156
+ stats?: ExportStats;
157
+ /** Output only. The status of the export. */
158
+ status?: string;
159
+ }
160
+ interface ExportOptions {
161
+ /** Options for Drive exports. */
162
+ driveOptions?: DriveExportOptions;
163
+ /** Options for Groups exports. */
164
+ groupsOptions?: GroupsExportOptions;
165
+ /** Options for Chat exports. */
166
+ hangoutsChatOptions?: HangoutsChatExportOptions;
167
+ /** Options for Gmail exports. */
168
+ mailOptions?: MailExportOptions;
169
+ /** The requested data region for the export. */
170
+ region?: string;
171
+ /** Options for Voice exports. */
172
+ voiceOptions?: VoiceExportOptions;
173
+ }
174
+ interface ExportStats {
175
+ /** The number of messages or files already processed for export. */
176
+ exportedArtifactCount?: string;
177
+ /** The size of export in bytes. */
178
+ sizeInBytes?: string;
179
+ /** The number of messages or files to be exported. */
180
+ totalArtifactCount?: string;
181
+ }
182
+ interface GroupsCountResult {
183
+ /** Error occurred when querying these accounts. */
184
+ accountCountErrors?: AccountCountError[];
185
+ /** Subtotal count per matching account that have more than zero messages. */
186
+ accountCounts?: AccountCount[];
187
+ /** Total number of accounts that can be queried and have more than zero messages. */
188
+ matchingAccountsCount?: string;
189
+ /** When **DataScope** is **HELD_DATA**, these accounts in the request are not queried because they are not on hold. For other data scope, this field is not set. */
190
+ nonQueryableAccounts?: string[];
191
+ /** Total number of accounts involved in this count operation. */
192
+ queriedAccountsCount?: string;
193
+ }
194
+ interface GroupsExportOptions {
195
+ /** The file format for exported messages. */
196
+ exportFormat?: string;
197
+ }
198
+ interface HangoutsChatExportOptions {
199
+ /** The file format for exported messages. */
200
+ exportFormat?: string;
201
+ }
202
+ interface HangoutsChatInfo {
203
+ /** A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/chat). There is a limit of exporting from 500 Chat spaces per request. */
204
+ roomId?: string[];
205
+ }
206
+ interface HangoutsChatOptions {
207
+ /** For searches by account or organizational unit, set to **true** to include rooms. */
208
+ includeRooms?: boolean;
209
+ }
210
+ interface HeldAccount {
211
+ /** The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
212
+ accountId?: string;
213
+ /** The primary email address of the account. If used as an input, this takes precedence over **accountId**. */
214
+ email?: string;
215
+ /** Output only. The first name of the account holder. */
216
+ firstName?: string;
217
+ /** Output only. When the account was put on hold. */
218
+ holdTime?: string;
219
+ /** Output only. The last name of the account holder. */
220
+ lastName?: string;
221
+ }
222
+ interface HeldDriveQuery {
223
+ /** To include files in shared drives in the hold, set to **true**. */
224
+ includeSharedDriveFiles?: boolean;
225
+ /** To include files in Team Drives in the hold, set to **true**. */
226
+ includeTeamDriveFiles?: boolean;
227
+ }
228
+ interface HeldGroupsQuery {
229
+ /** The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
230
+ endTime?: string;
231
+ /** The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
232
+ startTime?: string;
233
+ /** The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold. */
234
+ terms?: string;
235
+ }
236
+ interface HeldHangoutsChatQuery {
237
+ /** To include messages in Chat spaces the user was a member of, set to **true**. */
238
+ includeRooms?: boolean;
239
+ }
240
+ interface HeldMailQuery {
241
+ /** The end time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
242
+ endTime?: string;
243
+ /** The start time for the query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
244
+ startTime?: string;
245
+ /** The [search operators](https://support.google.com/vault/answer/2474474) used to refine the messages covered by the hold. */
246
+ terms?: string;
247
+ }
248
+ interface HeldOrgUnit {
249
+ /** When the organizational unit was put on hold. This property is immutable. */
250
+ holdTime?: string;
251
+ /** The organizational unit's immutable ID as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
252
+ orgUnitId?: string;
253
+ }
254
+ interface HeldVoiceQuery {
255
+ /** A list of data types covered by the hold. Should be non-empty. Order does not matter and duplicates are ignored. */
256
+ coveredData?: string[];
257
+ }
258
+ interface Hold {
259
+ /** If set, the hold applies to the specified accounts and **orgUnit** must be empty. */
260
+ accounts?: HeldAccount[];
261
+ /** The service to be searched. */
262
+ corpus?: string;
263
+ /** The unique immutable ID of the hold. Assigned during creation. */
264
+ holdId?: string;
265
+ /** The name of the hold. */
266
+ name?: string;
267
+ /** If set, the hold applies to all members of the organizational unit and **accounts** must be empty. This property is mutable. For Groups holds, set **accounts**. */
268
+ orgUnit?: HeldOrgUnit;
269
+ /** Service-specific options. If set, **CorpusQuery** must match **CorpusType**. */
270
+ query?: CorpusQuery;
271
+ /** The last time this hold was modified. */
272
+ updateTime?: string;
273
+ }
274
+ interface ListExportsResponse {
275
+ /** The list of exports. */
276
+ exports?: Export[];
277
+ /** Page token to retrieve the next page of results in the list. */
278
+ nextPageToken?: string;
279
+ }
280
+ interface ListHeldAccountsResponse {
281
+ /** The held accounts on a hold. */
282
+ accounts?: HeldAccount[];
283
+ }
284
+ interface ListHoldsResponse {
285
+ /** The list of holds. */
286
+ holds?: Hold[];
287
+ /** Page token to retrieve the next page of results in the list. If this is empty, then there are no more holds to list. */
288
+ nextPageToken?: string;
289
+ }
290
+ interface ListMattersResponse {
291
+ /** List of matters. */
292
+ matters?: Matter[];
293
+ /** Page token to retrieve the next page of results in the list. */
294
+ nextPageToken?: string;
295
+ }
296
+ interface ListOperationsResponse {
297
+ /** The standard List next-page token. */
298
+ nextPageToken?: string;
299
+ /** A list of operations that matches the specified filter in the request. */
300
+ operations?: Operation[];
301
+ }
302
+ interface ListSavedQueriesResponse {
303
+ /** Page token to retrieve the next page of results in the list. If this is empty, then there are no more saved queries to list. */
304
+ nextPageToken?: string;
305
+ /** List of saved queries. */
306
+ savedQueries?: SavedQuery[];
307
+ }
308
+ interface MailCountResult {
309
+ /** Errors occurred when querying these accounts. */
310
+ accountCountErrors?: AccountCountError[];
311
+ /** Subtotal count per matching account that have more than zero messages. */
312
+ accountCounts?: AccountCount[];
313
+ /** Total number of accounts that can be queried and have more than zero messages. */
314
+ matchingAccountsCount?: string;
315
+ /** When **DataScope** is **HELD_DATA** and when account emails are passed in explicitly, the list of accounts in the request that are not queried because they are not on hold in the matter. For other data scopes, this field is not set. */
316
+ nonQueryableAccounts?: string[];
317
+ /** Total number of accounts involved in this count operation. */
318
+ queriedAccountsCount?: string;
319
+ }
320
+ interface MailExportOptions {
321
+ /** The file format for exported messages. */
322
+ exportFormat?: string;
323
+ /** To export confidential mode content, set to **true**. */
324
+ showConfidentialModeContent?: boolean;
325
+ /** To use the new export system, set to **true**. */
326
+ useNewExport?: boolean;
327
+ }
328
+ interface MailOptions {
329
+ /** Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both. */
330
+ clientSideEncryptedOption?: string;
331
+ /** Set to **true** to exclude drafts. */
332
+ excludeDrafts?: boolean;
333
+ }
334
+ interface Matter {
335
+ /** An optional description for the matter. */
336
+ description?: string;
337
+ /** The matter ID, which is generated by the server. Leave blank when creating a matter. */
338
+ matterId?: string;
339
+ /** 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. */
340
+ matterPermissions?: MatterPermission[];
341
+ /** The name of the matter. */
342
+ name?: string;
343
+ /** The state of the matter. */
344
+ state?: string;
345
+ }
346
+ interface MatterPermission {
347
+ /** The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/). */
348
+ accountId?: string;
349
+ /** The user's role for the matter. */
350
+ role?: string;
351
+ }
352
+ interface Operation {
353
+ /** 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. */
354
+ done?: boolean;
355
+ /** The error result of the operation in case of failure or cancellation. */
356
+ error?: Status;
357
+ /** 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. */
358
+ metadata?: {[P in string]: any};
359
+ /** 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}`. */
360
+ name?: string;
361
+ /** 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`. */
362
+ response?: {[P in string]: any};
363
+ }
364
+ interface OrgUnitInfo {
365
+ /** The name of the organizational unit to search, as provided by the [Admin SDK Directory API](https://developers.google.com/admin-sdk/directory/). */
366
+ orgUnitId?: string;
367
+ }
368
+ interface Query {
369
+ /** Required when **SearchMethod** is **ACCOUNT**. */
370
+ accountInfo?: AccountInfo;
371
+ /** The Google Workspace service to search. */
372
+ corpus?: string;
373
+ /** The data source to search. */
374
+ dataScope?: string;
375
+ /** Set Drive search-specific options. */
376
+ driveOptions?: DriveOptions;
377
+ /** The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
378
+ endTime?: string;
379
+ /** Required when **SearchMethod** is **ROOM**. (read-only) */
380
+ hangoutsChatInfo?: HangoutsChatInfo;
381
+ /** Set Chat search-specific options. (read-only) */
382
+ hangoutsChatOptions?: HangoutsChatOptions;
383
+ /** Set Gmail search-specific options. */
384
+ mailOptions?: MailOptions;
385
+ /** 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**. */
386
+ method?: string;
387
+ /** Required when **SearchMethod** is **ORG_UNIT**. */
388
+ orgUnitInfo?: OrgUnitInfo;
389
+ /** The search method to use. */
390
+ searchMethod?: string;
391
+ /** Required when **SearchMethod** is **SHARED_DRIVE**. */
392
+ sharedDriveInfo?: SharedDriveInfo;
393
+ /** Required when **SearchMethod** is **SITES_URL**. */
394
+ sitesUrlInfo?: SitesUrlInfo;
395
+ /** The start time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date. */
396
+ startTime?: string;
397
+ /** Required when **SearchMethod** is **TEAM_DRIVE**. */
398
+ teamDriveInfo?: TeamDriveInfo;
399
+ /** Service-specific [search operators](https://support.google.com/vault/answer/2474474) to filter search results. */
400
+ terms?: string;
401
+ /** The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles". 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). */
402
+ timeZone?: string;
403
+ /** Set Voice search-specific options. */
404
+ voiceOptions?: VoiceOptions;
405
+ }
406
+ interface RemoveHeldAccountsRequest {
407
+ /** The account IDs of the accounts to remove from the hold. */
408
+ accountIds?: string[];
409
+ }
410
+ interface RemoveHeldAccountsResponse {
411
+ /** A list of statuses for the deleted accounts. Results have the same order as the request. */
412
+ statuses?: Status[];
413
+ }
414
+ interface RemoveMatterPermissionsRequest {
415
+ /** The account ID. */
416
+ accountId?: string;
417
+ }
418
+ interface ReopenMatterRequest {}
419
+ interface ReopenMatterResponse {
420
+ /** The updated matter, with state **OPEN**. */
421
+ matter?: Matter;
422
+ }
423
+ interface SavedQuery {
424
+ /** Output only. The server-generated timestamp when the saved query was created. */
425
+ createTime?: string;
426
+ /** The name of the saved query. */
427
+ displayName?: string;
428
+ /** Output only. The matter ID of the matter the saved query is saved in. The server does not use this field during create and always uses matter ID in the URL. */
429
+ matterId?: string;
430
+ /** The search parameters of the saved query. */
431
+ query?: Query;
432
+ /** A unique identifier for the saved query. */
433
+ savedQueryId?: string;
434
+ }
435
+ interface SharedDriveInfo {
436
+ /** A list of shared drive IDs, as provided by the [Drive API](https://developers.google.com/drive). */
437
+ sharedDriveIds?: string[];
438
+ }
439
+ interface SitesUrlInfo {
440
+ /** A list of published site URLs. */
441
+ urls?: string[];
442
+ }
443
+ interface Status {
444
+ /** The status code, which should be an enum value of google.rpc.Code. */
445
+ code?: number;
446
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
447
+ details?: Array<{[P in string]: any}>;
448
+ /** 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. */
449
+ message?: string;
450
+ }
451
+ interface TeamDriveInfo {
452
+ /** List of Team Drive IDs, as provided by the [Drive API](https://developers.google.com/drive). */
453
+ teamDriveIds?: string[];
454
+ }
455
+ interface UndeleteMatterRequest {}
456
+ interface UserInfo {
457
+ /** The displayed name of the user. */
458
+ displayName?: string;
459
+ /** The email address of the user. */
460
+ email?: string;
461
+ }
462
+ interface VoiceExportOptions {
463
+ /** The file format for exported text messages. */
464
+ exportFormat?: string;
465
+ }
466
+ interface VoiceOptions {
467
+ /** Datatypes to search */
468
+ coveredData?: string[];
469
+ }
470
+ interface ExportsResource {
471
+ /** Creates an export. */
472
+ create(request: {
473
+ /** V1 error format. */
474
+ '$.xgafv'?: string;
475
+ /** OAuth access token. */
476
+ access_token?: string;
477
+ /** Data format for response. */
478
+ alt?: string;
479
+ /** JSONP */
480
+ callback?: string;
481
+ /** Selector specifying which fields to include in a partial response. */
482
+ fields?: string;
483
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
484
+ key?: string;
485
+ /** The matter ID. */
486
+ matterId: string;
487
+ /** OAuth 2.0 token for the current user. */
488
+ oauth_token?: string;
489
+ /** Returns response with indentations and line breaks. */
490
+ prettyPrint?: boolean;
491
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
492
+ quotaUser?: string;
493
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
494
+ upload_protocol?: string;
495
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
496
+ uploadType?: string;
497
+ /** Request body */
498
+ resource: Export;
499
+ }): Request<Export>;
500
+ create(
501
+ request: {
502
+ /** V1 error format. */
503
+ '$.xgafv'?: string;
504
+ /** OAuth access token. */
505
+ access_token?: string;
506
+ /** Data format for response. */
507
+ alt?: string;
508
+ /** JSONP */
509
+ callback?: string;
510
+ /** Selector specifying which fields to include in a partial response. */
511
+ fields?: string;
512
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
513
+ key?: string;
514
+ /** The matter ID. */
515
+ matterId: string;
516
+ /** OAuth 2.0 token for the current user. */
517
+ oauth_token?: string;
518
+ /** Returns response with indentations and line breaks. */
519
+ prettyPrint?: boolean;
520
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
521
+ quotaUser?: string;
522
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
523
+ upload_protocol?: string;
524
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
525
+ uploadType?: string;
526
+ },
527
+ body: Export
528
+ ): Request<Export>;
529
+ /** Deletes an export. */
530
+ delete(request?: {
531
+ /** V1 error format. */
532
+ '$.xgafv'?: string;
533
+ /** OAuth access token. */
534
+ access_token?: string;
535
+ /** Data format for response. */
536
+ alt?: string;
537
+ /** JSONP */
538
+ callback?: string;
539
+ /** The export ID. */
540
+ exportId: string;
541
+ /** Selector specifying which fields to include in a partial response. */
542
+ fields?: string;
543
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
544
+ key?: string;
545
+ /** The matter ID. */
546
+ matterId: string;
547
+ /** OAuth 2.0 token for the current user. */
548
+ oauth_token?: string;
549
+ /** Returns response with indentations and line breaks. */
550
+ prettyPrint?: boolean;
551
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
552
+ quotaUser?: string;
553
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
554
+ upload_protocol?: string;
555
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
556
+ uploadType?: string;
557
+ }): Request<{}>;
558
+ /** Gets an export. */
559
+ get(request?: {
560
+ /** V1 error format. */
561
+ '$.xgafv'?: string;
562
+ /** OAuth access token. */
563
+ access_token?: string;
564
+ /** Data format for response. */
565
+ alt?: string;
566
+ /** JSONP */
567
+ callback?: string;
568
+ /** The export ID. */
569
+ exportId: string;
570
+ /** Selector specifying which fields to include in a partial response. */
571
+ fields?: string;
572
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
573
+ key?: string;
574
+ /** The matter ID. */
575
+ matterId: string;
576
+ /** OAuth 2.0 token for the current user. */
577
+ oauth_token?: string;
578
+ /** Returns response with indentations and line breaks. */
579
+ prettyPrint?: boolean;
580
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
581
+ quotaUser?: string;
582
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
583
+ upload_protocol?: string;
584
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
585
+ uploadType?: string;
586
+ }): Request<Export>;
587
+ /** Lists details about the exports in the specified matter. */
588
+ list(request?: {
589
+ /** V1 error format. */
590
+ '$.xgafv'?: string;
591
+ /** OAuth access token. */
592
+ access_token?: string;
593
+ /** Data format for response. */
594
+ alt?: string;
595
+ /** JSONP */
596
+ callback?: string;
597
+ /** Selector specifying which fields to include in a partial response. */
598
+ fields?: string;
599
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
600
+ key?: string;
601
+ /** The matter ID. */
602
+ matterId: string;
603
+ /** OAuth 2.0 token for the current user. */
604
+ oauth_token?: string;
605
+ /** The number of exports to return in the response. */
606
+ pageSize?: number;
607
+ /** The pagination token as returned in the response. */
608
+ pageToken?: string;
609
+ /** Returns response with indentations and line breaks. */
610
+ prettyPrint?: boolean;
611
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
612
+ quotaUser?: string;
613
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
614
+ upload_protocol?: string;
615
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
616
+ uploadType?: string;
617
+ }): Request<ListExportsResponse>;
618
+ }
619
+ interface AccountsResource {
620
+ /** Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned. */
621
+ create(request: {
622
+ /** V1 error format. */
623
+ '$.xgafv'?: string;
624
+ /** OAuth access token. */
625
+ access_token?: string;
626
+ /** Data format for response. */
627
+ alt?: string;
628
+ /** JSONP */
629
+ callback?: string;
630
+ /** Selector specifying which fields to include in a partial response. */
631
+ fields?: string;
632
+ /** The hold ID. */
633
+ holdId: string;
634
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
635
+ key?: string;
636
+ /** The matter ID. */
637
+ matterId: string;
638
+ /** OAuth 2.0 token for the current user. */
639
+ oauth_token?: string;
640
+ /** Returns response with indentations and line breaks. */
641
+ prettyPrint?: boolean;
642
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
643
+ quotaUser?: string;
644
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
645
+ upload_protocol?: string;
646
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
647
+ uploadType?: string;
648
+ /** Request body */
649
+ resource: HeldAccount;
650
+ }): Request<HeldAccount>;
651
+ create(
652
+ request: {
653
+ /** V1 error format. */
654
+ '$.xgafv'?: string;
655
+ /** OAuth access token. */
656
+ access_token?: string;
657
+ /** Data format for response. */
658
+ alt?: string;
659
+ /** JSONP */
660
+ callback?: string;
661
+ /** Selector specifying which fields to include in a partial response. */
662
+ fields?: string;
663
+ /** The hold ID. */
664
+ holdId: string;
665
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
666
+ key?: string;
667
+ /** The matter ID. */
668
+ matterId: string;
669
+ /** OAuth 2.0 token for the current user. */
670
+ oauth_token?: string;
671
+ /** Returns response with indentations and line breaks. */
672
+ prettyPrint?: boolean;
673
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
674
+ quotaUser?: string;
675
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
676
+ upload_protocol?: string;
677
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
678
+ uploadType?: string;
679
+ },
680
+ body: HeldAccount
681
+ ): Request<HeldAccount>;
682
+ /** Removes an account from a hold. */
683
+ delete(request?: {
684
+ /** V1 error format. */
685
+ '$.xgafv'?: string;
686
+ /** OAuth access token. */
687
+ access_token?: string;
688
+ /** The ID of the account to remove from the hold. */
689
+ accountId: string;
690
+ /** Data format for response. */
691
+ alt?: string;
692
+ /** JSONP */
693
+ callback?: string;
694
+ /** Selector specifying which fields to include in a partial response. */
695
+ fields?: string;
696
+ /** The hold ID. */
697
+ holdId: string;
698
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
699
+ key?: string;
700
+ /** The matter ID. */
701
+ matterId: string;
702
+ /** OAuth 2.0 token for the current user. */
703
+ oauth_token?: string;
704
+ /** Returns response with indentations and line breaks. */
705
+ prettyPrint?: boolean;
706
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
707
+ quotaUser?: string;
708
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
709
+ upload_protocol?: string;
710
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
711
+ uploadType?: string;
712
+ }): Request<{}>;
713
+ /** Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the [Admin SDK](https://developers.google.com/admin-sdk/). to list the members of the organizational unit on hold. */
714
+ list(request?: {
715
+ /** V1 error format. */
716
+ '$.xgafv'?: string;
717
+ /** OAuth access token. */
718
+ access_token?: string;
719
+ /** Data format for response. */
720
+ alt?: string;
721
+ /** JSONP */
722
+ callback?: string;
723
+ /** Selector specifying which fields to include in a partial response. */
724
+ fields?: string;
725
+ /** The hold ID. */
726
+ holdId: string;
727
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
728
+ key?: string;
729
+ /** The matter ID. */
730
+ matterId: string;
731
+ /** OAuth 2.0 token for the current user. */
732
+ oauth_token?: string;
733
+ /** Returns response with indentations and line breaks. */
734
+ prettyPrint?: boolean;
735
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
736
+ quotaUser?: string;
737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
738
+ upload_protocol?: string;
739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
740
+ uploadType?: string;
741
+ }): Request<ListHeldAccountsResponse>;
742
+ }
743
+ interface HoldsResource {
744
+ /** Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold. */
745
+ addHeldAccounts(request: {
746
+ /** V1 error format. */
747
+ '$.xgafv'?: string;
748
+ /** OAuth access token. */
749
+ access_token?: string;
750
+ /** Data format for response. */
751
+ alt?: string;
752
+ /** JSONP */
753
+ callback?: string;
754
+ /** Selector specifying which fields to include in a partial response. */
755
+ fields?: string;
756
+ /** The hold ID. */
757
+ holdId: string;
758
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
759
+ key?: string;
760
+ /** The matter ID. */
761
+ matterId: string;
762
+ /** OAuth 2.0 token for the current user. */
763
+ oauth_token?: string;
764
+ /** Returns response with indentations and line breaks. */
765
+ prettyPrint?: boolean;
766
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
767
+ quotaUser?: string;
768
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
769
+ upload_protocol?: string;
770
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
771
+ uploadType?: string;
772
+ /** Request body */
773
+ resource: AddHeldAccountsRequest;
774
+ }): Request<AddHeldAccountsResponse>;
775
+ addHeldAccounts(
776
+ request: {
777
+ /** V1 error format. */
778
+ '$.xgafv'?: string;
779
+ /** OAuth access token. */
780
+ access_token?: string;
781
+ /** Data format for response. */
782
+ alt?: string;
783
+ /** JSONP */
784
+ callback?: string;
785
+ /** Selector specifying which fields to include in a partial response. */
786
+ fields?: string;
787
+ /** The hold ID. */
788
+ holdId: string;
789
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
790
+ key?: string;
791
+ /** The matter ID. */
792
+ matterId: string;
793
+ /** OAuth 2.0 token for the current user. */
794
+ oauth_token?: string;
795
+ /** Returns response with indentations and line breaks. */
796
+ prettyPrint?: boolean;
797
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
798
+ quotaUser?: string;
799
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
800
+ upload_protocol?: string;
801
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
802
+ uploadType?: string;
803
+ },
804
+ body: AddHeldAccountsRequest
805
+ ): Request<AddHeldAccountsResponse>;
806
+ /** Creates a hold in the specified matter. */
807
+ create(request: {
808
+ /** V1 error format. */
809
+ '$.xgafv'?: string;
810
+ /** OAuth access token. */
811
+ access_token?: string;
812
+ /** Data format for response. */
813
+ alt?: string;
814
+ /** JSONP */
815
+ callback?: string;
816
+ /** Selector specifying which fields to include in a partial response. */
817
+ fields?: string;
818
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
819
+ key?: string;
820
+ /** The matter ID. */
821
+ matterId: string;
822
+ /** OAuth 2.0 token for the current user. */
823
+ oauth_token?: string;
824
+ /** Returns response with indentations and line breaks. */
825
+ prettyPrint?: boolean;
826
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
827
+ quotaUser?: string;
828
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
829
+ upload_protocol?: string;
830
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
831
+ uploadType?: string;
832
+ /** Request body */
833
+ resource: Hold;
834
+ }): Request<Hold>;
835
+ create(
836
+ request: {
837
+ /** V1 error format. */
838
+ '$.xgafv'?: string;
839
+ /** OAuth access token. */
840
+ access_token?: string;
841
+ /** Data format for response. */
842
+ alt?: string;
843
+ /** JSONP */
844
+ callback?: string;
845
+ /** Selector specifying which fields to include in a partial response. */
846
+ fields?: string;
847
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
848
+ key?: string;
849
+ /** The matter ID. */
850
+ matterId: string;
851
+ /** OAuth 2.0 token for the current user. */
852
+ oauth_token?: string;
853
+ /** Returns response with indentations and line breaks. */
854
+ prettyPrint?: boolean;
855
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
856
+ quotaUser?: string;
857
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
858
+ upload_protocol?: string;
859
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
860
+ uploadType?: string;
861
+ },
862
+ body: Hold
863
+ ): Request<Hold>;
864
+ /** Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged. */
865
+ delete(request?: {
866
+ /** V1 error format. */
867
+ '$.xgafv'?: string;
868
+ /** OAuth access token. */
869
+ access_token?: string;
870
+ /** Data format for response. */
871
+ alt?: string;
872
+ /** JSONP */
873
+ callback?: string;
874
+ /** Selector specifying which fields to include in a partial response. */
875
+ fields?: string;
876
+ /** The hold ID. */
877
+ holdId: string;
878
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
879
+ key?: string;
880
+ /** The matter ID. */
881
+ matterId: string;
882
+ /** OAuth 2.0 token for the current user. */
883
+ oauth_token?: string;
884
+ /** Returns response with indentations and line breaks. */
885
+ prettyPrint?: boolean;
886
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
887
+ quotaUser?: string;
888
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
889
+ upload_protocol?: string;
890
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
891
+ uploadType?: string;
892
+ }): Request<{}>;
893
+ /** Gets the specified hold. */
894
+ get(request?: {
895
+ /** V1 error format. */
896
+ '$.xgafv'?: string;
897
+ /** OAuth access token. */
898
+ access_token?: string;
899
+ /** Data format for response. */
900
+ alt?: string;
901
+ /** JSONP */
902
+ callback?: string;
903
+ /** Selector specifying which fields to include in a partial response. */
904
+ fields?: string;
905
+ /** The hold ID. */
906
+ holdId: string;
907
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
908
+ key?: string;
909
+ /** The matter ID. */
910
+ matterId: string;
911
+ /** OAuth 2.0 token for the current user. */
912
+ oauth_token?: string;
913
+ /** Returns response with indentations and line breaks. */
914
+ prettyPrint?: boolean;
915
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
916
+ quotaUser?: string;
917
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
918
+ upload_protocol?: string;
919
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
920
+ uploadType?: string;
921
+ /** The amount of detail to return for a hold. */
922
+ view?: string;
923
+ }): Request<Hold>;
924
+ /** Lists the holds in a matter. */
925
+ list(request?: {
926
+ /** V1 error format. */
927
+ '$.xgafv'?: string;
928
+ /** OAuth access token. */
929
+ access_token?: string;
930
+ /** Data format for response. */
931
+ alt?: string;
932
+ /** JSONP */
933
+ callback?: string;
934
+ /** Selector specifying which fields to include in a partial response. */
935
+ fields?: string;
936
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
937
+ key?: string;
938
+ /** The matter ID. */
939
+ matterId: string;
940
+ /** OAuth 2.0 token for the current user. */
941
+ oauth_token?: string;
942
+ /** 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. */
943
+ pageSize?: number;
944
+ /** The pagination token as returned in the response. An empty token means start from the beginning. */
945
+ pageToken?: string;
946
+ /** Returns response with indentations and line breaks. */
947
+ prettyPrint?: boolean;
948
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
949
+ quotaUser?: string;
950
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
951
+ upload_protocol?: string;
952
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
953
+ uploadType?: string;
954
+ /** The amount of detail to return for a hold. */
955
+ view?: string;
956
+ }): Request<ListHoldsResponse>;
957
+ /** Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request. */
958
+ removeHeldAccounts(request: {
959
+ /** V1 error format. */
960
+ '$.xgafv'?: string;
961
+ /** OAuth access token. */
962
+ access_token?: string;
963
+ /** Data format for response. */
964
+ alt?: string;
965
+ /** JSONP */
966
+ callback?: string;
967
+ /** Selector specifying which fields to include in a partial response. */
968
+ fields?: string;
969
+ /** The hold ID. */
970
+ holdId: string;
971
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
972
+ key?: string;
973
+ /** The matter ID. */
974
+ matterId: string;
975
+ /** OAuth 2.0 token for the current user. */
976
+ oauth_token?: string;
977
+ /** Returns response with indentations and line breaks. */
978
+ prettyPrint?: boolean;
979
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
980
+ quotaUser?: string;
981
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
982
+ upload_protocol?: string;
983
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
984
+ uploadType?: string;
985
+ /** Request body */
986
+ resource: RemoveHeldAccountsRequest;
987
+ }): Request<RemoveHeldAccountsResponse>;
988
+ removeHeldAccounts(
989
+ request: {
990
+ /** V1 error format. */
991
+ '$.xgafv'?: string;
992
+ /** OAuth access token. */
993
+ access_token?: string;
994
+ /** Data format for response. */
995
+ alt?: string;
996
+ /** JSONP */
997
+ callback?: string;
998
+ /** Selector specifying which fields to include in a partial response. */
999
+ fields?: string;
1000
+ /** The hold ID. */
1001
+ holdId: string;
1002
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1003
+ key?: string;
1004
+ /** The matter ID. */
1005
+ matterId: string;
1006
+ /** OAuth 2.0 token for the current user. */
1007
+ oauth_token?: string;
1008
+ /** Returns response with indentations and line breaks. */
1009
+ prettyPrint?: boolean;
1010
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1011
+ quotaUser?: string;
1012
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1013
+ upload_protocol?: string;
1014
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1015
+ uploadType?: string;
1016
+ },
1017
+ body: RemoveHeldAccountsRequest
1018
+ ): Request<RemoveHeldAccountsResponse>;
1019
+ /** Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored. */
1020
+ update(request: {
1021
+ /** V1 error format. */
1022
+ '$.xgafv'?: string;
1023
+ /** OAuth access token. */
1024
+ access_token?: string;
1025
+ /** Data format for response. */
1026
+ alt?: string;
1027
+ /** JSONP */
1028
+ callback?: string;
1029
+ /** Selector specifying which fields to include in a partial response. */
1030
+ fields?: string;
1031
+ /** The ID of the hold. */
1032
+ holdId: string;
1033
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1034
+ key?: string;
1035
+ /** The matter ID. */
1036
+ matterId: string;
1037
+ /** OAuth 2.0 token for the current user. */
1038
+ oauth_token?: string;
1039
+ /** Returns response with indentations and line breaks. */
1040
+ prettyPrint?: boolean;
1041
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1042
+ quotaUser?: string;
1043
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1044
+ upload_protocol?: string;
1045
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1046
+ uploadType?: string;
1047
+ /** Request body */
1048
+ resource: Hold;
1049
+ }): Request<Hold>;
1050
+ update(
1051
+ request: {
1052
+ /** V1 error format. */
1053
+ '$.xgafv'?: string;
1054
+ /** OAuth access token. */
1055
+ access_token?: string;
1056
+ /** Data format for response. */
1057
+ alt?: string;
1058
+ /** JSONP */
1059
+ callback?: string;
1060
+ /** Selector specifying which fields to include in a partial response. */
1061
+ fields?: string;
1062
+ /** The ID of the hold. */
1063
+ holdId: string;
1064
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1065
+ key?: string;
1066
+ /** The matter ID. */
1067
+ matterId: string;
1068
+ /** OAuth 2.0 token for the current user. */
1069
+ oauth_token?: string;
1070
+ /** Returns response with indentations and line breaks. */
1071
+ prettyPrint?: boolean;
1072
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1073
+ quotaUser?: string;
1074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1075
+ upload_protocol?: string;
1076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1077
+ uploadType?: string;
1078
+ },
1079
+ body: Hold
1080
+ ): Request<Hold>;
1081
+ accounts: AccountsResource;
1082
+ }
1083
+ interface SavedQueriesResource {
1084
+ /** Creates a saved query. */
1085
+ create(request: {
1086
+ /** V1 error format. */
1087
+ '$.xgafv'?: string;
1088
+ /** OAuth access token. */
1089
+ access_token?: string;
1090
+ /** Data format for response. */
1091
+ alt?: string;
1092
+ /** JSONP */
1093
+ callback?: string;
1094
+ /** Selector specifying which fields to include in a partial response. */
1095
+ fields?: string;
1096
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1097
+ key?: string;
1098
+ /** The ID of the matter to create the saved query in. */
1099
+ matterId: string;
1100
+ /** OAuth 2.0 token for the current user. */
1101
+ oauth_token?: string;
1102
+ /** Returns response with indentations and line breaks. */
1103
+ prettyPrint?: boolean;
1104
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1105
+ quotaUser?: string;
1106
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1107
+ upload_protocol?: string;
1108
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1109
+ uploadType?: string;
1110
+ /** Request body */
1111
+ resource: SavedQuery;
1112
+ }): Request<SavedQuery>;
1113
+ create(
1114
+ request: {
1115
+ /** V1 error format. */
1116
+ '$.xgafv'?: string;
1117
+ /** OAuth access token. */
1118
+ access_token?: string;
1119
+ /** Data format for response. */
1120
+ alt?: string;
1121
+ /** JSONP */
1122
+ callback?: string;
1123
+ /** Selector specifying which fields to include in a partial response. */
1124
+ fields?: string;
1125
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1126
+ key?: string;
1127
+ /** The ID of the matter to create the saved query in. */
1128
+ matterId: string;
1129
+ /** OAuth 2.0 token for the current user. */
1130
+ oauth_token?: string;
1131
+ /** Returns response with indentations and line breaks. */
1132
+ prettyPrint?: boolean;
1133
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1134
+ quotaUser?: string;
1135
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1136
+ upload_protocol?: string;
1137
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1138
+ uploadType?: string;
1139
+ },
1140
+ body: SavedQuery
1141
+ ): Request<SavedQuery>;
1142
+ /** Deletes the specified saved query. */
1143
+ delete(request?: {
1144
+ /** V1 error format. */
1145
+ '$.xgafv'?: string;
1146
+ /** OAuth access token. */
1147
+ access_token?: string;
1148
+ /** Data format for response. */
1149
+ alt?: string;
1150
+ /** JSONP */
1151
+ callback?: string;
1152
+ /** Selector specifying which fields to include in a partial response. */
1153
+ fields?: string;
1154
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1155
+ key?: string;
1156
+ /** The ID of the matter to delete the saved query from. */
1157
+ matterId: string;
1158
+ /** OAuth 2.0 token for the current user. */
1159
+ oauth_token?: string;
1160
+ /** Returns response with indentations and line breaks. */
1161
+ prettyPrint?: boolean;
1162
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1163
+ quotaUser?: string;
1164
+ /** ID of the saved query to delete. */
1165
+ savedQueryId: string;
1166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1167
+ upload_protocol?: string;
1168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1169
+ uploadType?: string;
1170
+ }): Request<{}>;
1171
+ /** Retrieves the specified saved query. */
1172
+ get(request?: {
1173
+ /** V1 error format. */
1174
+ '$.xgafv'?: string;
1175
+ /** OAuth access token. */
1176
+ access_token?: string;
1177
+ /** Data format for response. */
1178
+ alt?: string;
1179
+ /** JSONP */
1180
+ callback?: string;
1181
+ /** Selector specifying which fields to include in a partial response. */
1182
+ fields?: string;
1183
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1184
+ key?: string;
1185
+ /** The ID of the matter to get the saved query from. */
1186
+ matterId: string;
1187
+ /** OAuth 2.0 token for the current user. */
1188
+ oauth_token?: string;
1189
+ /** Returns response with indentations and line breaks. */
1190
+ prettyPrint?: boolean;
1191
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1192
+ quotaUser?: string;
1193
+ /** ID of the saved query to retrieve. */
1194
+ savedQueryId: string;
1195
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1196
+ upload_protocol?: string;
1197
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1198
+ uploadType?: string;
1199
+ }): Request<SavedQuery>;
1200
+ /** Lists the saved queries in a matter. */
1201
+ list(request?: {
1202
+ /** V1 error format. */
1203
+ '$.xgafv'?: string;
1204
+ /** OAuth access token. */
1205
+ access_token?: string;
1206
+ /** Data format for response. */
1207
+ alt?: string;
1208
+ /** JSONP */
1209
+ callback?: string;
1210
+ /** Selector specifying which fields to include in a partial response. */
1211
+ fields?: string;
1212
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1213
+ key?: string;
1214
+ /** The ID of the matter to get the saved queries for. */
1215
+ matterId: string;
1216
+ /** OAuth 2.0 token for the current user. */
1217
+ oauth_token?: string;
1218
+ /** The maximum number of saved queries to return. */
1219
+ pageSize?: number;
1220
+ /** The pagination token as returned in the previous response. An empty token means start from the beginning. */
1221
+ pageToken?: string;
1222
+ /** Returns response with indentations and line breaks. */
1223
+ prettyPrint?: boolean;
1224
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1225
+ quotaUser?: string;
1226
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1227
+ upload_protocol?: string;
1228
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1229
+ uploadType?: string;
1230
+ }): Request<ListSavedQueriesResponse>;
1231
+ }
1232
+ interface MattersResource {
1233
+ /** Adds an account as a matter collaborator. */
1234
+ addPermissions(request: {
1235
+ /** V1 error format. */
1236
+ '$.xgafv'?: string;
1237
+ /** OAuth access token. */
1238
+ access_token?: string;
1239
+ /** Data format for response. */
1240
+ alt?: string;
1241
+ /** JSONP */
1242
+ callback?: string;
1243
+ /** Selector specifying which fields to include in a partial response. */
1244
+ fields?: string;
1245
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1246
+ key?: string;
1247
+ /** The matter ID. */
1248
+ matterId: string;
1249
+ /** OAuth 2.0 token for the current user. */
1250
+ oauth_token?: string;
1251
+ /** Returns response with indentations and line breaks. */
1252
+ prettyPrint?: boolean;
1253
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1254
+ quotaUser?: string;
1255
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1256
+ upload_protocol?: string;
1257
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1258
+ uploadType?: string;
1259
+ /** Request body */
1260
+ resource: AddMatterPermissionsRequest;
1261
+ }): Request<MatterPermission>;
1262
+ addPermissions(
1263
+ request: {
1264
+ /** V1 error format. */
1265
+ '$.xgafv'?: string;
1266
+ /** OAuth access token. */
1267
+ access_token?: string;
1268
+ /** Data format for response. */
1269
+ alt?: string;
1270
+ /** JSONP */
1271
+ callback?: string;
1272
+ /** Selector specifying which fields to include in a partial response. */
1273
+ fields?: string;
1274
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1275
+ key?: string;
1276
+ /** The matter ID. */
1277
+ matterId: string;
1278
+ /** OAuth 2.0 token for the current user. */
1279
+ oauth_token?: string;
1280
+ /** Returns response with indentations and line breaks. */
1281
+ prettyPrint?: boolean;
1282
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1283
+ quotaUser?: string;
1284
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1285
+ upload_protocol?: string;
1286
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1287
+ uploadType?: string;
1288
+ },
1289
+ body: AddMatterPermissionsRequest
1290
+ ): Request<MatterPermission>;
1291
+ /** Closes the specified matter. Returns the matter with updated state. */
1292
+ close(request: {
1293
+ /** V1 error format. */
1294
+ '$.xgafv'?: string;
1295
+ /** OAuth access token. */
1296
+ access_token?: string;
1297
+ /** Data format for response. */
1298
+ alt?: string;
1299
+ /** JSONP */
1300
+ callback?: string;
1301
+ /** Selector specifying which fields to include in a partial response. */
1302
+ fields?: string;
1303
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1304
+ key?: string;
1305
+ /** The matter ID. */
1306
+ matterId: string;
1307
+ /** OAuth 2.0 token for the current user. */
1308
+ oauth_token?: string;
1309
+ /** Returns response with indentations and line breaks. */
1310
+ prettyPrint?: boolean;
1311
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1312
+ quotaUser?: string;
1313
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1314
+ upload_protocol?: string;
1315
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1316
+ uploadType?: string;
1317
+ /** Request body */
1318
+ resource: CloseMatterRequest;
1319
+ }): Request<CloseMatterResponse>;
1320
+ close(
1321
+ request: {
1322
+ /** V1 error format. */
1323
+ '$.xgafv'?: string;
1324
+ /** OAuth access token. */
1325
+ access_token?: string;
1326
+ /** Data format for response. */
1327
+ alt?: string;
1328
+ /** JSONP */
1329
+ callback?: string;
1330
+ /** Selector specifying which fields to include in a partial response. */
1331
+ fields?: string;
1332
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1333
+ key?: string;
1334
+ /** The matter ID. */
1335
+ matterId: string;
1336
+ /** OAuth 2.0 token for the current user. */
1337
+ oauth_token?: string;
1338
+ /** Returns response with indentations and line breaks. */
1339
+ prettyPrint?: boolean;
1340
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1341
+ quotaUser?: string;
1342
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1343
+ upload_protocol?: string;
1344
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1345
+ uploadType?: string;
1346
+ },
1347
+ body: CloseMatterRequest
1348
+ ): Request<CloseMatterResponse>;
1349
+ /** Counts the accounts processed by the specified query. */
1350
+ count(request: {
1351
+ /** V1 error format. */
1352
+ '$.xgafv'?: string;
1353
+ /** OAuth access token. */
1354
+ access_token?: string;
1355
+ /** Data format for response. */
1356
+ alt?: string;
1357
+ /** JSONP */
1358
+ callback?: string;
1359
+ /** Selector specifying which fields to include in a partial response. */
1360
+ fields?: string;
1361
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1362
+ key?: string;
1363
+ /** The matter ID. */
1364
+ matterId: string;
1365
+ /** OAuth 2.0 token for the current user. */
1366
+ oauth_token?: string;
1367
+ /** Returns response with indentations and line breaks. */
1368
+ prettyPrint?: boolean;
1369
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1370
+ quotaUser?: string;
1371
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1372
+ upload_protocol?: string;
1373
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1374
+ uploadType?: string;
1375
+ /** Request body */
1376
+ resource: CountArtifactsRequest;
1377
+ }): Request<Operation>;
1378
+ count(
1379
+ request: {
1380
+ /** V1 error format. */
1381
+ '$.xgafv'?: string;
1382
+ /** OAuth access token. */
1383
+ access_token?: string;
1384
+ /** Data format for response. */
1385
+ alt?: string;
1386
+ /** JSONP */
1387
+ callback?: string;
1388
+ /** Selector specifying which fields to include in a partial response. */
1389
+ fields?: string;
1390
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1391
+ key?: string;
1392
+ /** The matter ID. */
1393
+ matterId: string;
1394
+ /** OAuth 2.0 token for the current user. */
1395
+ oauth_token?: string;
1396
+ /** Returns response with indentations and line breaks. */
1397
+ prettyPrint?: boolean;
1398
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1399
+ quotaUser?: string;
1400
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1401
+ upload_protocol?: string;
1402
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1403
+ uploadType?: string;
1404
+ },
1405
+ body: CountArtifactsRequest
1406
+ ): Request<Operation>;
1407
+ /** 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. */
1408
+ create(request: {
1409
+ /** V1 error format. */
1410
+ '$.xgafv'?: string;
1411
+ /** OAuth access token. */
1412
+ access_token?: string;
1413
+ /** Data format for response. */
1414
+ alt?: string;
1415
+ /** JSONP */
1416
+ callback?: string;
1417
+ /** Selector specifying which fields to include in a partial response. */
1418
+ fields?: string;
1419
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1420
+ key?: string;
1421
+ /** OAuth 2.0 token for the current user. */
1422
+ oauth_token?: string;
1423
+ /** Returns response with indentations and line breaks. */
1424
+ prettyPrint?: boolean;
1425
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1426
+ quotaUser?: string;
1427
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1428
+ upload_protocol?: string;
1429
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1430
+ uploadType?: string;
1431
+ /** Request body */
1432
+ resource: Matter;
1433
+ }): Request<Matter>;
1434
+ create(
1435
+ request: {
1436
+ /** V1 error format. */
1437
+ '$.xgafv'?: string;
1438
+ /** OAuth access token. */
1439
+ access_token?: string;
1440
+ /** Data format for response. */
1441
+ alt?: string;
1442
+ /** JSONP */
1443
+ callback?: string;
1444
+ /** Selector specifying which fields to include in a partial response. */
1445
+ fields?: string;
1446
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1447
+ key?: string;
1448
+ /** OAuth 2.0 token for the current user. */
1449
+ oauth_token?: string;
1450
+ /** Returns response with indentations and line breaks. */
1451
+ prettyPrint?: boolean;
1452
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1453
+ quotaUser?: string;
1454
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1455
+ upload_protocol?: string;
1456
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
+ uploadType?: string;
1458
+ },
1459
+ body: Matter
1460
+ ): Request<Matter>;
1461
+ /** Deletes the specified matter. Returns the matter with updated state. */
1462
+ delete(request?: {
1463
+ /** V1 error format. */
1464
+ '$.xgafv'?: string;
1465
+ /** OAuth access token. */
1466
+ access_token?: string;
1467
+ /** Data format for response. */
1468
+ alt?: string;
1469
+ /** JSONP */
1470
+ callback?: string;
1471
+ /** Selector specifying which fields to include in a partial response. */
1472
+ fields?: string;
1473
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1474
+ key?: string;
1475
+ /** The matter ID */
1476
+ matterId: string;
1477
+ /** OAuth 2.0 token for the current user. */
1478
+ oauth_token?: string;
1479
+ /** Returns response with indentations and line breaks. */
1480
+ prettyPrint?: boolean;
1481
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1482
+ quotaUser?: string;
1483
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1484
+ upload_protocol?: string;
1485
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1486
+ uploadType?: string;
1487
+ }): Request<Matter>;
1488
+ /** Gets the specified matter. */
1489
+ get(request?: {
1490
+ /** V1 error format. */
1491
+ '$.xgafv'?: string;
1492
+ /** OAuth access token. */
1493
+ access_token?: string;
1494
+ /** Data format for response. */
1495
+ alt?: string;
1496
+ /** JSONP */
1497
+ callback?: string;
1498
+ /** Selector specifying which fields to include in a partial response. */
1499
+ fields?: string;
1500
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1501
+ key?: string;
1502
+ /** The matter ID. */
1503
+ matterId: string;
1504
+ /** OAuth 2.0 token for the current user. */
1505
+ oauth_token?: string;
1506
+ /** Returns response with indentations and line breaks. */
1507
+ prettyPrint?: boolean;
1508
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1509
+ quotaUser?: string;
1510
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1511
+ upload_protocol?: string;
1512
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1513
+ uploadType?: string;
1514
+ /** Specifies how much information about the matter to return in the response. */
1515
+ view?: string;
1516
+ }): Request<Matter>;
1517
+ /** Lists matters the requestor has access to. */
1518
+ list(request?: {
1519
+ /** V1 error format. */
1520
+ '$.xgafv'?: string;
1521
+ /** OAuth access token. */
1522
+ access_token?: string;
1523
+ /** Data format for response. */
1524
+ alt?: string;
1525
+ /** JSONP */
1526
+ callback?: string;
1527
+ /** Selector specifying which fields to include in a partial response. */
1528
+ fields?: string;
1529
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1530
+ key?: string;
1531
+ /** OAuth 2.0 token for the current user. */
1532
+ oauth_token?: string;
1533
+ /** The number of matters to return in the response. Default and maximum are 100. */
1534
+ pageSize?: number;
1535
+ /** The pagination token as returned in the response. */
1536
+ pageToken?: string;
1537
+ /** Returns response with indentations and line breaks. */
1538
+ prettyPrint?: boolean;
1539
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1540
+ quotaUser?: string;
1541
+ /** If set, lists only matters with the specified state. The default lists matters of all states. */
1542
+ state?: string;
1543
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1544
+ upload_protocol?: string;
1545
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1546
+ uploadType?: string;
1547
+ /** Specifies how much information about the matter to return in response. */
1548
+ view?: string;
1549
+ }): Request<ListMattersResponse>;
1550
+ /** Removes an account as a matter collaborator. */
1551
+ removePermissions(request: {
1552
+ /** V1 error format. */
1553
+ '$.xgafv'?: string;
1554
+ /** OAuth access token. */
1555
+ access_token?: string;
1556
+ /** Data format for response. */
1557
+ alt?: string;
1558
+ /** JSONP */
1559
+ callback?: string;
1560
+ /** Selector specifying which fields to include in a partial response. */
1561
+ fields?: string;
1562
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1563
+ key?: string;
1564
+ /** The matter ID. */
1565
+ matterId: string;
1566
+ /** OAuth 2.0 token for the current user. */
1567
+ oauth_token?: string;
1568
+ /** Returns response with indentations and line breaks. */
1569
+ prettyPrint?: boolean;
1570
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1571
+ quotaUser?: string;
1572
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1573
+ upload_protocol?: string;
1574
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1575
+ uploadType?: string;
1576
+ /** Request body */
1577
+ resource: RemoveMatterPermissionsRequest;
1578
+ }): Request<{}>;
1579
+ removePermissions(
1580
+ request: {
1581
+ /** V1 error format. */
1582
+ '$.xgafv'?: string;
1583
+ /** OAuth access token. */
1584
+ access_token?: string;
1585
+ /** Data format for response. */
1586
+ alt?: string;
1587
+ /** JSONP */
1588
+ callback?: string;
1589
+ /** Selector specifying which fields to include in a partial response. */
1590
+ fields?: string;
1591
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1592
+ key?: string;
1593
+ /** The matter ID. */
1594
+ matterId: string;
1595
+ /** OAuth 2.0 token for the current user. */
1596
+ oauth_token?: string;
1597
+ /** Returns response with indentations and line breaks. */
1598
+ prettyPrint?: boolean;
1599
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1600
+ quotaUser?: string;
1601
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1602
+ upload_protocol?: string;
1603
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1604
+ uploadType?: string;
1605
+ },
1606
+ body: RemoveMatterPermissionsRequest
1607
+ ): Request<{}>;
1608
+ /** Reopens the specified matter. Returns the matter with updated state. */
1609
+ reopen(request: {
1610
+ /** V1 error format. */
1611
+ '$.xgafv'?: string;
1612
+ /** OAuth access token. */
1613
+ access_token?: string;
1614
+ /** Data format for response. */
1615
+ alt?: string;
1616
+ /** JSONP */
1617
+ callback?: string;
1618
+ /** Selector specifying which fields to include in a partial response. */
1619
+ fields?: string;
1620
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1621
+ key?: string;
1622
+ /** The matter ID. */
1623
+ matterId: string;
1624
+ /** OAuth 2.0 token for the current user. */
1625
+ oauth_token?: string;
1626
+ /** Returns response with indentations and line breaks. */
1627
+ prettyPrint?: boolean;
1628
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1629
+ quotaUser?: string;
1630
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1631
+ upload_protocol?: string;
1632
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1633
+ uploadType?: string;
1634
+ /** Request body */
1635
+ resource: ReopenMatterRequest;
1636
+ }): Request<ReopenMatterResponse>;
1637
+ reopen(
1638
+ request: {
1639
+ /** V1 error format. */
1640
+ '$.xgafv'?: string;
1641
+ /** OAuth access token. */
1642
+ access_token?: string;
1643
+ /** Data format for response. */
1644
+ alt?: string;
1645
+ /** JSONP */
1646
+ callback?: string;
1647
+ /** Selector specifying which fields to include in a partial response. */
1648
+ fields?: string;
1649
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1650
+ key?: string;
1651
+ /** The matter ID. */
1652
+ matterId: string;
1653
+ /** OAuth 2.0 token for the current user. */
1654
+ oauth_token?: string;
1655
+ /** Returns response with indentations and line breaks. */
1656
+ prettyPrint?: boolean;
1657
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1658
+ quotaUser?: string;
1659
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1660
+ upload_protocol?: string;
1661
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1662
+ uploadType?: string;
1663
+ },
1664
+ body: ReopenMatterRequest
1665
+ ): Request<ReopenMatterResponse>;
1666
+ /** Undeletes the specified matter. Returns the matter with updated state. */
1667
+ undelete(request: {
1668
+ /** V1 error format. */
1669
+ '$.xgafv'?: string;
1670
+ /** OAuth access token. */
1671
+ access_token?: string;
1672
+ /** Data format for response. */
1673
+ alt?: string;
1674
+ /** JSONP */
1675
+ callback?: string;
1676
+ /** Selector specifying which fields to include in a partial response. */
1677
+ fields?: string;
1678
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1679
+ key?: string;
1680
+ /** The matter ID. */
1681
+ matterId: string;
1682
+ /** OAuth 2.0 token for the current user. */
1683
+ oauth_token?: string;
1684
+ /** Returns response with indentations and line breaks. */
1685
+ prettyPrint?: boolean;
1686
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1687
+ quotaUser?: string;
1688
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1689
+ upload_protocol?: string;
1690
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1691
+ uploadType?: string;
1692
+ /** Request body */
1693
+ resource: UndeleteMatterRequest;
1694
+ }): Request<Matter>;
1695
+ undelete(
1696
+ request: {
1697
+ /** V1 error format. */
1698
+ '$.xgafv'?: string;
1699
+ /** OAuth access token. */
1700
+ access_token?: string;
1701
+ /** Data format for response. */
1702
+ alt?: string;
1703
+ /** JSONP */
1704
+ callback?: string;
1705
+ /** Selector specifying which fields to include in a partial response. */
1706
+ fields?: string;
1707
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1708
+ key?: string;
1709
+ /** The matter ID. */
1710
+ matterId: string;
1711
+ /** OAuth 2.0 token for the current user. */
1712
+ oauth_token?: string;
1713
+ /** Returns response with indentations and line breaks. */
1714
+ prettyPrint?: boolean;
1715
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1716
+ quotaUser?: string;
1717
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1718
+ upload_protocol?: string;
1719
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1720
+ uploadType?: string;
1721
+ },
1722
+ body: UndeleteMatterRequest
1723
+ ): Request<Matter>;
1724
+ /** 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. */
1725
+ update(request: {
1726
+ /** V1 error format. */
1727
+ '$.xgafv'?: string;
1728
+ /** OAuth access token. */
1729
+ access_token?: string;
1730
+ /** Data format for response. */
1731
+ alt?: string;
1732
+ /** JSONP */
1733
+ callback?: string;
1734
+ /** Selector specifying which fields to include in a partial response. */
1735
+ fields?: string;
1736
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1737
+ key?: string;
1738
+ /** The matter ID. */
1739
+ matterId: string;
1740
+ /** OAuth 2.0 token for the current user. */
1741
+ oauth_token?: string;
1742
+ /** Returns response with indentations and line breaks. */
1743
+ prettyPrint?: boolean;
1744
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1745
+ quotaUser?: string;
1746
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1747
+ upload_protocol?: string;
1748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1749
+ uploadType?: string;
1750
+ /** Request body */
1751
+ resource: Matter;
1752
+ }): Request<Matter>;
1753
+ update(
1754
+ request: {
1755
+ /** V1 error format. */
1756
+ '$.xgafv'?: string;
1757
+ /** OAuth access token. */
1758
+ access_token?: string;
1759
+ /** Data format for response. */
1760
+ alt?: string;
1761
+ /** JSONP */
1762
+ callback?: string;
1763
+ /** Selector specifying which fields to include in a partial response. */
1764
+ fields?: string;
1765
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1766
+ key?: string;
1767
+ /** The matter ID. */
1768
+ matterId: string;
1769
+ /** OAuth 2.0 token for the current user. */
1770
+ oauth_token?: string;
1771
+ /** Returns response with indentations and line breaks. */
1772
+ prettyPrint?: boolean;
1773
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1774
+ quotaUser?: string;
1775
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1776
+ upload_protocol?: string;
1777
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1778
+ uploadType?: string;
1779
+ },
1780
+ body: Matter
1781
+ ): Request<Matter>;
1782
+ exports: ExportsResource;
1783
+ holds: HoldsResource;
1784
+ savedQueries: SavedQueriesResource;
1785
+ }
1786
+ interface OperationsResource {
1787
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
1788
+ cancel(request: {
1789
+ /** V1 error format. */
1790
+ '$.xgafv'?: string;
1791
+ /** OAuth access token. */
1792
+ access_token?: string;
1793
+ /** Data format for response. */
1794
+ alt?: string;
1795
+ /** JSONP */
1796
+ callback?: string;
1797
+ /** Selector specifying which fields to include in a partial response. */
1798
+ fields?: string;
1799
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1800
+ key?: string;
1801
+ /** The name of the operation resource to be cancelled. */
1802
+ name: string;
1803
+ /** OAuth 2.0 token for the current user. */
1804
+ oauth_token?: string;
1805
+ /** Returns response with indentations and line breaks. */
1806
+ prettyPrint?: boolean;
1807
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1808
+ quotaUser?: string;
1809
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1810
+ upload_protocol?: string;
1811
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1812
+ uploadType?: string;
1813
+ /** Request body */
1814
+ resource: CancelOperationRequest;
1815
+ }): Request<{}>;
1816
+ cancel(
1817
+ request: {
1818
+ /** V1 error format. */
1819
+ '$.xgafv'?: string;
1820
+ /** OAuth access token. */
1821
+ access_token?: string;
1822
+ /** Data format for response. */
1823
+ alt?: string;
1824
+ /** JSONP */
1825
+ callback?: string;
1826
+ /** Selector specifying which fields to include in a partial response. */
1827
+ fields?: string;
1828
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1829
+ key?: string;
1830
+ /** The name of the operation resource to be cancelled. */
1831
+ name: string;
1832
+ /** OAuth 2.0 token for the current user. */
1833
+ oauth_token?: string;
1834
+ /** Returns response with indentations and line breaks. */
1835
+ prettyPrint?: boolean;
1836
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1837
+ quotaUser?: string;
1838
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1839
+ upload_protocol?: string;
1840
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1841
+ uploadType?: string;
1842
+ },
1843
+ body: CancelOperationRequest
1844
+ ): Request<{}>;
1845
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1846
+ delete(request?: {
1847
+ /** V1 error format. */
1848
+ '$.xgafv'?: string;
1849
+ /** OAuth access token. */
1850
+ access_token?: string;
1851
+ /** Data format for response. */
1852
+ alt?: string;
1853
+ /** JSONP */
1854
+ callback?: string;
1855
+ /** Selector specifying which fields to include in a partial response. */
1856
+ fields?: string;
1857
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1858
+ key?: string;
1859
+ /** The name of the operation resource to be deleted. */
1860
+ name: string;
1861
+ /** OAuth 2.0 token for the current user. */
1862
+ oauth_token?: string;
1863
+ /** Returns response with indentations and line breaks. */
1864
+ prettyPrint?: boolean;
1865
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1866
+ quotaUser?: string;
1867
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1868
+ upload_protocol?: string;
1869
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1870
+ uploadType?: string;
1871
+ }): Request<{}>;
1872
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1873
+ get(request?: {
1874
+ /** V1 error format. */
1875
+ '$.xgafv'?: string;
1876
+ /** OAuth access token. */
1877
+ access_token?: string;
1878
+ /** Data format for response. */
1879
+ alt?: string;
1880
+ /** JSONP */
1881
+ callback?: string;
1882
+ /** Selector specifying which fields to include in a partial response. */
1883
+ fields?: string;
1884
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1885
+ key?: string;
1886
+ /** The name of the operation resource. */
1887
+ name: string;
1888
+ /** OAuth 2.0 token for the current user. */
1889
+ oauth_token?: string;
1890
+ /** Returns response with indentations and line breaks. */
1891
+ prettyPrint?: boolean;
1892
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1893
+ quotaUser?: string;
1894
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1895
+ upload_protocol?: string;
1896
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1897
+ uploadType?: string;
1898
+ }): Request<Operation>;
1899
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1900
+ list(request?: {
1901
+ /** V1 error format. */
1902
+ '$.xgafv'?: string;
1903
+ /** OAuth access token. */
1904
+ access_token?: string;
1905
+ /** Data format for response. */
1906
+ alt?: string;
1907
+ /** JSONP */
1908
+ callback?: string;
1909
+ /** Selector specifying which fields to include in a partial response. */
1910
+ fields?: string;
1911
+ /** The standard list filter. */
1912
+ filter?: string;
1913
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1914
+ key?: string;
1915
+ /** The name of the operation's parent resource. */
1916
+ name: string;
1917
+ /** OAuth 2.0 token for the current user. */
1918
+ oauth_token?: string;
1919
+ /** The standard list page size. */
1920
+ pageSize?: number;
1921
+ /** The standard list page token. */
1922
+ pageToken?: string;
1923
+ /** Returns response with indentations and line breaks. */
1924
+ prettyPrint?: boolean;
1925
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1926
+ quotaUser?: string;
1927
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1928
+ upload_protocol?: string;
1929
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1930
+ uploadType?: string;
1931
+ }): Request<ListOperationsResponse>;
1932
+ }
2758
1933
 
2759
- const matters: MattersResource;
1934
+ const matters: MattersResource;
2760
1935
 
2761
- const operations: OperationsResource;
2762
- }
1936
+ const operations: OperationsResource;
1937
+ }
2763
1938
  }