@maxim_mazurok/gapi.client.gmailpostmastertools-v2 0.2.20261117 → 0.3.20261118
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 +259 -263
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
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://gmailpostmastertools.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20261118
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -288,212 +288,10 @@ declare namespace gapi.client {
|
|
|
288
288
|
'DOMAIN_VERIFICATION_METHOD_UNSPECIFIED' | 'TXT' | 'CNAME';
|
|
289
289
|
}
|
|
290
290
|
interface VerifyDomainResponse {}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
'$.xgafv'?: '1' | '2';
|
|
296
|
-
/** OAuth access token. */
|
|
297
|
-
access_token?: string;
|
|
298
|
-
/** Data format for response. */
|
|
299
|
-
alt?: 'json' | 'media' | 'proto';
|
|
300
|
-
/** JSONP */
|
|
301
|
-
callback?: string;
|
|
302
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
303
|
-
fields?: string;
|
|
304
|
-
/** 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. */
|
|
305
|
-
key?: string;
|
|
306
|
-
/** OAuth 2.0 token for the current user. */
|
|
307
|
-
oauth_token?: string;
|
|
308
|
-
/** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
|
|
309
|
-
parent: string;
|
|
310
|
-
/** Returns response with indentations and line breaks. */
|
|
311
|
-
prettyPrint?: boolean;
|
|
312
|
-
/** 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. */
|
|
313
|
-
quotaUser?: string;
|
|
314
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
315
|
-
upload_protocol?: string;
|
|
316
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
317
|
-
uploadType?: string;
|
|
318
|
-
/** Request body */
|
|
319
|
-
resource: QueryDomainStatsRequest;
|
|
320
|
-
}): Request<QueryDomainStatsResponse>;
|
|
321
|
-
query(
|
|
322
|
-
request: {
|
|
323
|
-
/** V1 error format. */
|
|
324
|
-
'$.xgafv'?: '1' | '2';
|
|
325
|
-
/** OAuth access token. */
|
|
326
|
-
access_token?: string;
|
|
327
|
-
/** Data format for response. */
|
|
328
|
-
alt?: 'json' | 'media' | 'proto';
|
|
329
|
-
/** JSONP */
|
|
330
|
-
callback?: string;
|
|
331
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
332
|
-
fields?: string;
|
|
333
|
-
/** 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. */
|
|
334
|
-
key?: string;
|
|
335
|
-
/** OAuth 2.0 token for the current user. */
|
|
336
|
-
oauth_token?: string;
|
|
337
|
-
/** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
|
|
338
|
-
parent: string;
|
|
339
|
-
/** Returns response with indentations and line breaks. */
|
|
340
|
-
prettyPrint?: boolean;
|
|
341
|
-
/** 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. */
|
|
342
|
-
quotaUser?: string;
|
|
343
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
344
|
-
upload_protocol?: string;
|
|
345
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
346
|
-
uploadType?: string;
|
|
347
|
-
},
|
|
348
|
-
body: QueryDomainStatsRequest,
|
|
349
|
-
): Request<QueryDomainStatsResponse>;
|
|
350
|
-
}
|
|
351
|
-
interface UsersResource {
|
|
352
|
-
/** [Developer Preview](https://developers.google.com/workspace/preview): Creates a user, who has access to a domain. Returns INVALID_ARGUMENT if a user is not provided. */
|
|
353
|
-
create(request: {
|
|
354
|
-
/** V1 error format. */
|
|
355
|
-
'$.xgafv'?: '1' | '2';
|
|
356
|
-
/** OAuth access token. */
|
|
357
|
-
access_token?: string;
|
|
358
|
-
/** Data format for response. */
|
|
359
|
-
alt?: 'json' | 'media' | 'proto';
|
|
360
|
-
/** JSONP */
|
|
361
|
-
callback?: string;
|
|
362
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
363
|
-
fields?: string;
|
|
364
|
-
/** 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. */
|
|
365
|
-
key?: string;
|
|
366
|
-
/** OAuth 2.0 token for the current user. */
|
|
367
|
-
oauth_token?: string;
|
|
368
|
-
/** Required. The parent resource where this user will be created. Format: domains/{domain} */
|
|
369
|
-
parent: string;
|
|
370
|
-
/** Returns response with indentations and line breaks. */
|
|
371
|
-
prettyPrint?: boolean;
|
|
372
|
-
/** 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. */
|
|
373
|
-
quotaUser?: string;
|
|
374
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
375
|
-
upload_protocol?: string;
|
|
376
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
377
|
-
uploadType?: string;
|
|
378
|
-
/** Request body */
|
|
379
|
-
resource: CreateUserRequest;
|
|
380
|
-
}): Request<User>;
|
|
381
|
-
create(
|
|
382
|
-
request: {
|
|
383
|
-
/** V1 error format. */
|
|
384
|
-
'$.xgafv'?: '1' | '2';
|
|
385
|
-
/** OAuth access token. */
|
|
386
|
-
access_token?: string;
|
|
387
|
-
/** Data format for response. */
|
|
388
|
-
alt?: 'json' | 'media' | 'proto';
|
|
389
|
-
/** JSONP */
|
|
390
|
-
callback?: string;
|
|
391
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
392
|
-
fields?: string;
|
|
393
|
-
/** 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. */
|
|
394
|
-
key?: string;
|
|
395
|
-
/** OAuth 2.0 token for the current user. */
|
|
396
|
-
oauth_token?: string;
|
|
397
|
-
/** Required. The parent resource where this user will be created. Format: domains/{domain} */
|
|
398
|
-
parent: string;
|
|
399
|
-
/** Returns response with indentations and line breaks. */
|
|
400
|
-
prettyPrint?: boolean;
|
|
401
|
-
/** 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. */
|
|
402
|
-
quotaUser?: string;
|
|
403
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
404
|
-
upload_protocol?: string;
|
|
405
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
406
|
-
uploadType?: string;
|
|
407
|
-
},
|
|
408
|
-
body: CreateUserRequest,
|
|
409
|
-
): Request<User>;
|
|
410
|
-
/** [Developer Preview](https://developers.google.com/workspace/preview): Deletes a user from a domain. Returns NOT_FOUND if the user does not exist. */
|
|
411
|
-
delete(request?: {
|
|
412
|
-
/** V1 error format. */
|
|
413
|
-
'$.xgafv'?: '1' | '2';
|
|
414
|
-
/** OAuth access token. */
|
|
415
|
-
access_token?: string;
|
|
416
|
-
/** Data format for response. */
|
|
417
|
-
alt?: 'json' | 'media' | 'proto';
|
|
418
|
-
/** JSONP */
|
|
419
|
-
callback?: string;
|
|
420
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
421
|
-
fields?: string;
|
|
422
|
-
/** 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. */
|
|
423
|
-
key?: string;
|
|
424
|
-
/** Required. The resource name of the user to delete. Format: domains/{domain}/users/{user} */
|
|
425
|
-
name: string;
|
|
426
|
-
/** OAuth 2.0 token for the current user. */
|
|
427
|
-
oauth_token?: string;
|
|
428
|
-
/** Returns response with indentations and line breaks. */
|
|
429
|
-
prettyPrint?: boolean;
|
|
430
|
-
/** 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. */
|
|
431
|
-
quotaUser?: string;
|
|
432
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
433
|
-
upload_protocol?: string;
|
|
434
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
435
|
-
uploadType?: string;
|
|
436
|
-
}): Request<{}>;
|
|
437
|
-
/** [Developer Preview](https://developers.google.com/workspace/preview): Retrieves detailed information about a user that has access to a domain. Returns NOT_FOUND if the user does not exist. */
|
|
438
|
-
get(request?: {
|
|
439
|
-
/** V1 error format. */
|
|
440
|
-
'$.xgafv'?: '1' | '2';
|
|
441
|
-
/** OAuth access token. */
|
|
442
|
-
access_token?: string;
|
|
443
|
-
/** Data format for response. */
|
|
444
|
-
alt?: 'json' | 'media' | 'proto';
|
|
445
|
-
/** JSONP */
|
|
446
|
-
callback?: string;
|
|
447
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
448
|
-
fields?: string;
|
|
449
|
-
/** 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. */
|
|
450
|
-
key?: string;
|
|
451
|
-
/** Required. The resource name of the user to retrieve. Format: `domains/{domain}/users/{user}` */
|
|
452
|
-
name: string;
|
|
453
|
-
/** OAuth 2.0 token for the current user. */
|
|
454
|
-
oauth_token?: string;
|
|
455
|
-
/** Returns response with indentations and line breaks. */
|
|
456
|
-
prettyPrint?: boolean;
|
|
457
|
-
/** 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. */
|
|
458
|
-
quotaUser?: string;
|
|
459
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
460
|
-
upload_protocol?: string;
|
|
461
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
462
|
-
uploadType?: string;
|
|
463
|
-
}): Request<User>;
|
|
464
|
-
/** [Developer Preview](https://developers.google.com/workspace/preview): Lists the users that have access to a domain. */
|
|
465
|
-
list(request?: {
|
|
466
|
-
/** V1 error format. */
|
|
467
|
-
'$.xgafv'?: '1' | '2';
|
|
468
|
-
/** OAuth access token. */
|
|
469
|
-
access_token?: string;
|
|
470
|
-
/** Data format for response. */
|
|
471
|
-
alt?: 'json' | 'media' | 'proto';
|
|
472
|
-
/** JSONP */
|
|
473
|
-
callback?: string;
|
|
474
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
475
|
-
fields?: string;
|
|
476
|
-
/** 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. */
|
|
477
|
-
key?: string;
|
|
478
|
-
/** OAuth 2.0 token for the current user. */
|
|
479
|
-
oauth_token?: string;
|
|
480
|
-
/** Optional. Requested page size. Server may return fewer users than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200. */
|
|
481
|
-
pageSize?: number;
|
|
482
|
-
/** Optional. The next_page_token value returned from a previous List request, if any. */
|
|
483
|
-
pageToken?: string;
|
|
484
|
-
/** Required. The parent resource name for which to list users. Format: `domains/{domain}` */
|
|
485
|
-
parent: string;
|
|
486
|
-
/** Returns response with indentations and line breaks. */
|
|
487
|
-
prettyPrint?: boolean;
|
|
488
|
-
/** 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. */
|
|
489
|
-
quotaUser?: string;
|
|
490
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
491
|
-
upload_protocol?: string;
|
|
492
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
493
|
-
uploadType?: string;
|
|
494
|
-
}): Request<ListUsersResponse>;
|
|
495
|
-
/** [Developer Preview](https://developers.google.com/workspace/preview): Updates a user for a domain. Only Owners and Admins can execute this RPC, only a user's domain permission will be allowed to be updated. Returns NOT_FOUND if the user does not exist. Returns INVALID_ARGUMENT if a permission is not provided or is PERMISSION_UNSPECIFIED, NONE, or OWNER. */
|
|
496
|
-
patch(request: {
|
|
291
|
+
|
|
292
|
+
const domainStats: {
|
|
293
|
+
/** Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains. */
|
|
294
|
+
batchQuery(request: {
|
|
497
295
|
/** V1 error format. */
|
|
498
296
|
'$.xgafv'?: '1' | '2';
|
|
499
297
|
/** OAuth access token. */
|
|
@@ -506,24 +304,20 @@ declare namespace gapi.client {
|
|
|
506
304
|
fields?: string;
|
|
507
305
|
/** 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. */
|
|
508
306
|
key?: string;
|
|
509
|
-
/** Identifier. The resource name of the user. Format: users/{user} Note: {user} is the user's email address. */
|
|
510
|
-
name: string;
|
|
511
307
|
/** OAuth 2.0 token for the current user. */
|
|
512
308
|
oauth_token?: string;
|
|
513
309
|
/** Returns response with indentations and line breaks. */
|
|
514
310
|
prettyPrint?: boolean;
|
|
515
311
|
/** 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. */
|
|
516
312
|
quotaUser?: string;
|
|
517
|
-
/** The list of fields to update. */
|
|
518
|
-
updateMask?: string;
|
|
519
313
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
520
314
|
upload_protocol?: string;
|
|
521
315
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
522
316
|
uploadType?: string;
|
|
523
317
|
/** Request body */
|
|
524
|
-
resource:
|
|
525
|
-
}): Request<
|
|
526
|
-
|
|
318
|
+
resource: BatchQueryDomainStatsRequest;
|
|
319
|
+
}): Request<BatchQueryDomainStatsResponse>;
|
|
320
|
+
batchQuery(
|
|
527
321
|
request: {
|
|
528
322
|
/** V1 error format. */
|
|
529
323
|
'$.xgafv'?: '1' | '2';
|
|
@@ -537,25 +331,22 @@ declare namespace gapi.client {
|
|
|
537
331
|
fields?: string;
|
|
538
332
|
/** 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. */
|
|
539
333
|
key?: string;
|
|
540
|
-
/** Identifier. The resource name of the user. Format: users/{user} Note: {user} is the user's email address. */
|
|
541
|
-
name: string;
|
|
542
334
|
/** OAuth 2.0 token for the current user. */
|
|
543
335
|
oauth_token?: string;
|
|
544
336
|
/** Returns response with indentations and line breaks. */
|
|
545
337
|
prettyPrint?: boolean;
|
|
546
338
|
/** 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. */
|
|
547
339
|
quotaUser?: string;
|
|
548
|
-
/** The list of fields to update. */
|
|
549
|
-
updateMask?: string;
|
|
550
340
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
551
341
|
upload_protocol?: string;
|
|
552
342
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
553
343
|
uploadType?: string;
|
|
554
344
|
},
|
|
555
|
-
body:
|
|
556
|
-
): Request<
|
|
557
|
-
}
|
|
558
|
-
|
|
345
|
+
body: BatchQueryDomainStatsRequest,
|
|
346
|
+
): Request<BatchQueryDomainStatsResponse>;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
const domains: {
|
|
559
350
|
/** [Developer Preview](https://developers.google.com/workspace/preview): Adds a domain to the user's account. Returns INVALID_ARGUMENT if a domain is not provided. Returns ALREADY_EXISTS if the domain is already registered by the user. */
|
|
560
351
|
create(request: {
|
|
561
352
|
/** V1 error format. */
|
|
@@ -808,39 +599,9 @@ declare namespace gapi.client {
|
|
|
808
599
|
},
|
|
809
600
|
body: VerifyDomainRequest,
|
|
810
601
|
): Request<{}>;
|
|
811
|
-
domainStats:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
interface DomainStatsResource {
|
|
815
|
-
/** Executes a batch of QueryDomainStats requests for multiple domains. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for any of the requested domains. */
|
|
816
|
-
batchQuery(request: {
|
|
817
|
-
/** V1 error format. */
|
|
818
|
-
'$.xgafv'?: '1' | '2';
|
|
819
|
-
/** OAuth access token. */
|
|
820
|
-
access_token?: string;
|
|
821
|
-
/** Data format for response. */
|
|
822
|
-
alt?: 'json' | 'media' | 'proto';
|
|
823
|
-
/** JSONP */
|
|
824
|
-
callback?: string;
|
|
825
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
826
|
-
fields?: string;
|
|
827
|
-
/** 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. */
|
|
828
|
-
key?: string;
|
|
829
|
-
/** OAuth 2.0 token for the current user. */
|
|
830
|
-
oauth_token?: string;
|
|
831
|
-
/** Returns response with indentations and line breaks. */
|
|
832
|
-
prettyPrint?: boolean;
|
|
833
|
-
/** 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. */
|
|
834
|
-
quotaUser?: string;
|
|
835
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
836
|
-
upload_protocol?: string;
|
|
837
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
838
|
-
uploadType?: string;
|
|
839
|
-
/** Request body */
|
|
840
|
-
resource: BatchQueryDomainStatsRequest;
|
|
841
|
-
}): Request<BatchQueryDomainStatsResponse>;
|
|
842
|
-
batchQuery(
|
|
843
|
-
request: {
|
|
602
|
+
domainStats: {
|
|
603
|
+
/** Retrieves a list of domain statistics for a given domain and time period. Returns statistics only for dates where data is available. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for the domain. */
|
|
604
|
+
query(request: {
|
|
844
605
|
/** V1 error format. */
|
|
845
606
|
'$.xgafv'?: '1' | '2';
|
|
846
607
|
/** OAuth access token. */
|
|
@@ -855,6 +616,8 @@ declare namespace gapi.client {
|
|
|
855
616
|
key?: string;
|
|
856
617
|
/** OAuth 2.0 token for the current user. */
|
|
857
618
|
oauth_token?: string;
|
|
619
|
+
/** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
|
|
620
|
+
parent: string;
|
|
858
621
|
/** Returns response with indentations and line breaks. */
|
|
859
622
|
prettyPrint?: boolean;
|
|
860
623
|
/** 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. */
|
|
@@ -863,13 +626,246 @@ declare namespace gapi.client {
|
|
|
863
626
|
upload_protocol?: string;
|
|
864
627
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
865
628
|
uploadType?: string;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
629
|
+
/** Request body */
|
|
630
|
+
resource: QueryDomainStatsRequest;
|
|
631
|
+
}): Request<QueryDomainStatsResponse>;
|
|
632
|
+
query(
|
|
633
|
+
request: {
|
|
634
|
+
/** V1 error format. */
|
|
635
|
+
'$.xgafv'?: '1' | '2';
|
|
636
|
+
/** OAuth access token. */
|
|
637
|
+
access_token?: string;
|
|
638
|
+
/** Data format for response. */
|
|
639
|
+
alt?: 'json' | 'media' | 'proto';
|
|
640
|
+
/** JSONP */
|
|
641
|
+
callback?: string;
|
|
642
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
643
|
+
fields?: string;
|
|
644
|
+
/** 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. */
|
|
645
|
+
key?: string;
|
|
646
|
+
/** OAuth 2.0 token for the current user. */
|
|
647
|
+
oauth_token?: string;
|
|
648
|
+
/** Required. The parent resource name where the stats are queried. Format: domains/{domain} */
|
|
649
|
+
parent: string;
|
|
650
|
+
/** Returns response with indentations and line breaks. */
|
|
651
|
+
prettyPrint?: boolean;
|
|
652
|
+
/** 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. */
|
|
653
|
+
quotaUser?: string;
|
|
654
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
655
|
+
upload_protocol?: string;
|
|
656
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
657
|
+
uploadType?: string;
|
|
658
|
+
},
|
|
659
|
+
body: QueryDomainStatsRequest,
|
|
660
|
+
): Request<QueryDomainStatsResponse>;
|
|
661
|
+
};
|
|
662
|
+
users: {
|
|
663
|
+
/** [Developer Preview](https://developers.google.com/workspace/preview): Creates a user, who has access to a domain. Returns INVALID_ARGUMENT if a user is not provided. */
|
|
664
|
+
create(request: {
|
|
665
|
+
/** V1 error format. */
|
|
666
|
+
'$.xgafv'?: '1' | '2';
|
|
667
|
+
/** OAuth access token. */
|
|
668
|
+
access_token?: string;
|
|
669
|
+
/** Data format for response. */
|
|
670
|
+
alt?: 'json' | 'media' | 'proto';
|
|
671
|
+
/** JSONP */
|
|
672
|
+
callback?: string;
|
|
673
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
674
|
+
fields?: string;
|
|
675
|
+
/** 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. */
|
|
676
|
+
key?: string;
|
|
677
|
+
/** OAuth 2.0 token for the current user. */
|
|
678
|
+
oauth_token?: string;
|
|
679
|
+
/** Required. The parent resource where this user will be created. Format: domains/{domain} */
|
|
680
|
+
parent: string;
|
|
681
|
+
/** Returns response with indentations and line breaks. */
|
|
682
|
+
prettyPrint?: boolean;
|
|
683
|
+
/** 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. */
|
|
684
|
+
quotaUser?: string;
|
|
685
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
686
|
+
upload_protocol?: string;
|
|
687
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
688
|
+
uploadType?: string;
|
|
689
|
+
/** Request body */
|
|
690
|
+
resource: CreateUserRequest;
|
|
691
|
+
}): Request<User>;
|
|
692
|
+
create(
|
|
693
|
+
request: {
|
|
694
|
+
/** V1 error format. */
|
|
695
|
+
'$.xgafv'?: '1' | '2';
|
|
696
|
+
/** OAuth access token. */
|
|
697
|
+
access_token?: string;
|
|
698
|
+
/** Data format for response. */
|
|
699
|
+
alt?: 'json' | 'media' | 'proto';
|
|
700
|
+
/** JSONP */
|
|
701
|
+
callback?: string;
|
|
702
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
703
|
+
fields?: string;
|
|
704
|
+
/** 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. */
|
|
705
|
+
key?: string;
|
|
706
|
+
/** OAuth 2.0 token for the current user. */
|
|
707
|
+
oauth_token?: string;
|
|
708
|
+
/** Required. The parent resource where this user will be created. Format: domains/{domain} */
|
|
709
|
+
parent: string;
|
|
710
|
+
/** Returns response with indentations and line breaks. */
|
|
711
|
+
prettyPrint?: boolean;
|
|
712
|
+
/** 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. */
|
|
713
|
+
quotaUser?: string;
|
|
714
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
715
|
+
upload_protocol?: string;
|
|
716
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
717
|
+
uploadType?: string;
|
|
718
|
+
},
|
|
719
|
+
body: CreateUserRequest,
|
|
720
|
+
): Request<User>;
|
|
721
|
+
/** [Developer Preview](https://developers.google.com/workspace/preview): Deletes a user from a domain. Returns NOT_FOUND if the user does not exist. */
|
|
722
|
+
delete(request?: {
|
|
723
|
+
/** V1 error format. */
|
|
724
|
+
'$.xgafv'?: '1' | '2';
|
|
725
|
+
/** OAuth access token. */
|
|
726
|
+
access_token?: string;
|
|
727
|
+
/** Data format for response. */
|
|
728
|
+
alt?: 'json' | 'media' | 'proto';
|
|
729
|
+
/** JSONP */
|
|
730
|
+
callback?: string;
|
|
731
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
732
|
+
fields?: string;
|
|
733
|
+
/** 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. */
|
|
734
|
+
key?: string;
|
|
735
|
+
/** Required. The resource name of the user to delete. Format: domains/{domain}/users/{user} */
|
|
736
|
+
name: string;
|
|
737
|
+
/** OAuth 2.0 token for the current user. */
|
|
738
|
+
oauth_token?: string;
|
|
739
|
+
/** Returns response with indentations and line breaks. */
|
|
740
|
+
prettyPrint?: boolean;
|
|
741
|
+
/** 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. */
|
|
742
|
+
quotaUser?: string;
|
|
743
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
744
|
+
upload_protocol?: string;
|
|
745
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
746
|
+
uploadType?: string;
|
|
747
|
+
}): Request<{}>;
|
|
748
|
+
/** [Developer Preview](https://developers.google.com/workspace/preview): Retrieves detailed information about a user that has access to a domain. Returns NOT_FOUND if the user does not exist. */
|
|
749
|
+
get(request?: {
|
|
750
|
+
/** V1 error format. */
|
|
751
|
+
'$.xgafv'?: '1' | '2';
|
|
752
|
+
/** OAuth access token. */
|
|
753
|
+
access_token?: string;
|
|
754
|
+
/** Data format for response. */
|
|
755
|
+
alt?: 'json' | 'media' | 'proto';
|
|
756
|
+
/** JSONP */
|
|
757
|
+
callback?: string;
|
|
758
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
759
|
+
fields?: string;
|
|
760
|
+
/** 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. */
|
|
761
|
+
key?: string;
|
|
762
|
+
/** Required. The resource name of the user to retrieve. Format: `domains/{domain}/users/{user}` */
|
|
763
|
+
name: string;
|
|
764
|
+
/** OAuth 2.0 token for the current user. */
|
|
765
|
+
oauth_token?: string;
|
|
766
|
+
/** Returns response with indentations and line breaks. */
|
|
767
|
+
prettyPrint?: boolean;
|
|
768
|
+
/** 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. */
|
|
769
|
+
quotaUser?: string;
|
|
770
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
771
|
+
upload_protocol?: string;
|
|
772
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
773
|
+
uploadType?: string;
|
|
774
|
+
}): Request<User>;
|
|
775
|
+
/** [Developer Preview](https://developers.google.com/workspace/preview): Lists the users that have access to a domain. */
|
|
776
|
+
list(request?: {
|
|
777
|
+
/** V1 error format. */
|
|
778
|
+
'$.xgafv'?: '1' | '2';
|
|
779
|
+
/** OAuth access token. */
|
|
780
|
+
access_token?: string;
|
|
781
|
+
/** Data format for response. */
|
|
782
|
+
alt?: 'json' | 'media' | 'proto';
|
|
783
|
+
/** JSONP */
|
|
784
|
+
callback?: string;
|
|
785
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
786
|
+
fields?: string;
|
|
787
|
+
/** 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. */
|
|
788
|
+
key?: string;
|
|
789
|
+
/** OAuth 2.0 token for the current user. */
|
|
790
|
+
oauth_token?: string;
|
|
791
|
+
/** Optional. Requested page size. Server may return fewer users than requested. If unspecified, the default value for this field is 10. The maximum value for this field is 200. */
|
|
792
|
+
pageSize?: number;
|
|
793
|
+
/** Optional. The next_page_token value returned from a previous List request, if any. */
|
|
794
|
+
pageToken?: string;
|
|
795
|
+
/** Required. The parent resource name for which to list users. Format: `domains/{domain}` */
|
|
796
|
+
parent: string;
|
|
797
|
+
/** Returns response with indentations and line breaks. */
|
|
798
|
+
prettyPrint?: boolean;
|
|
799
|
+
/** 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. */
|
|
800
|
+
quotaUser?: string;
|
|
801
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
802
|
+
upload_protocol?: string;
|
|
803
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
804
|
+
uploadType?: string;
|
|
805
|
+
}): Request<ListUsersResponse>;
|
|
806
|
+
/** [Developer Preview](https://developers.google.com/workspace/preview): Updates a user for a domain. Only Owners and Admins can execute this RPC, only a user's domain permission will be allowed to be updated. Returns NOT_FOUND if the user does not exist. Returns INVALID_ARGUMENT if a permission is not provided or is PERMISSION_UNSPECIFIED, NONE, or OWNER. */
|
|
807
|
+
patch(request: {
|
|
808
|
+
/** V1 error format. */
|
|
809
|
+
'$.xgafv'?: '1' | '2';
|
|
810
|
+
/** OAuth access token. */
|
|
811
|
+
access_token?: string;
|
|
812
|
+
/** Data format for response. */
|
|
813
|
+
alt?: 'json' | 'media' | 'proto';
|
|
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
|
+
/** Identifier. The resource name of the user. Format: users/{user} Note: {user} is the user's email address. */
|
|
821
|
+
name: 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
|
+
/** The list of fields to update. */
|
|
829
|
+
updateMask?: string;
|
|
830
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
831
|
+
upload_protocol?: string;
|
|
832
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
833
|
+
uploadType?: string;
|
|
834
|
+
/** Request body */
|
|
835
|
+
resource: User;
|
|
836
|
+
}): Request<User>;
|
|
837
|
+
patch(
|
|
838
|
+
request: {
|
|
839
|
+
/** V1 error format. */
|
|
840
|
+
'$.xgafv'?: '1' | '2';
|
|
841
|
+
/** OAuth access token. */
|
|
842
|
+
access_token?: string;
|
|
843
|
+
/** Data format for response. */
|
|
844
|
+
alt?: 'json' | 'media' | 'proto';
|
|
845
|
+
/** JSONP */
|
|
846
|
+
callback?: string;
|
|
847
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
848
|
+
fields?: string;
|
|
849
|
+
/** 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. */
|
|
850
|
+
key?: string;
|
|
851
|
+
/** Identifier. The resource name of the user. Format: users/{user} Note: {user} is the user's email address. */
|
|
852
|
+
name: string;
|
|
853
|
+
/** OAuth 2.0 token for the current user. */
|
|
854
|
+
oauth_token?: string;
|
|
855
|
+
/** Returns response with indentations and line breaks. */
|
|
856
|
+
prettyPrint?: boolean;
|
|
857
|
+
/** 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. */
|
|
858
|
+
quotaUser?: string;
|
|
859
|
+
/** The list of fields to update. */
|
|
860
|
+
updateMask?: string;
|
|
861
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
862
|
+
upload_protocol?: string;
|
|
863
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
864
|
+
uploadType?: string;
|
|
865
|
+
},
|
|
866
|
+
body: User,
|
|
867
|
+
): Request<User>;
|
|
868
|
+
};
|
|
869
|
+
};
|
|
874
870
|
}
|
|
875
871
|
}
|