@maxim_mazurok/gapi.client.storage-v1 0.0.20231007 → 0.0.20231012
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 +392 -6
- package/package.json +1 -1
- package/readme.md +35 -0
- package/tests.ts +75 -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://storage.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231012
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -618,6 +618,43 @@ declare namespace gapi.client {
|
|
|
618
618
|
nextPageToken?:
|
|
619
619
|
string;
|
|
620
620
|
}
|
|
621
|
+
interface ManagedFolder {
|
|
622
|
+
/** The name of the bucket containing this managed folder. */
|
|
623
|
+
bucket?:
|
|
624
|
+
string;
|
|
625
|
+
/** The creation time of the managed folder in RFC 3339 format. */
|
|
626
|
+
createTime?:
|
|
627
|
+
string;
|
|
628
|
+
/** The ID of the managed folder, including the bucket name and managed folder name. */
|
|
629
|
+
id?:
|
|
630
|
+
string;
|
|
631
|
+
/** The kind of item this is. For managed folders, this is always storage#managedFolder. */
|
|
632
|
+
kind?:
|
|
633
|
+
string;
|
|
634
|
+
/** The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata. */
|
|
635
|
+
metageneration?:
|
|
636
|
+
string;
|
|
637
|
+
/** The name of the managed folder. Required if not specified by URL parameter. */
|
|
638
|
+
name?:
|
|
639
|
+
string;
|
|
640
|
+
/** The link to this managed folder. */
|
|
641
|
+
selfLink?:
|
|
642
|
+
string;
|
|
643
|
+
/** The last update time of the managed folder metadata in RFC 3339 format. */
|
|
644
|
+
updateTime?:
|
|
645
|
+
string;
|
|
646
|
+
}
|
|
647
|
+
interface ManagedFolders {
|
|
648
|
+
/** The list of items. */
|
|
649
|
+
items?:
|
|
650
|
+
ManagedFolder[];
|
|
651
|
+
/** The kind of item this is. For lists of managed folders, this is always storage#managedFolders. */
|
|
652
|
+
kind?:
|
|
653
|
+
string;
|
|
654
|
+
/** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. */
|
|
655
|
+
nextPageToken?:
|
|
656
|
+
string;
|
|
657
|
+
}
|
|
621
658
|
interface Notification {
|
|
622
659
|
/** An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription. */
|
|
623
660
|
custom_attributes?:
|
|
@@ -943,9 +980,9 @@ declare namespace gapi.client {
|
|
|
943
980
|
kind?:
|
|
944
981
|
string;
|
|
945
982
|
/**
|
|
946
|
-
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets,
|
|
947
|
-
* generation may be specified by appending #generationNumber to the end of the object name, e.g.
|
|
948
|
-
* denoted with #0. This field is ignored on input.
|
|
983
|
+
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and
|
|
984
|
+
* projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g.
|
|
985
|
+
* projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
|
|
949
986
|
*/
|
|
950
987
|
resourceId?:
|
|
951
988
|
string;
|
|
@@ -987,8 +1024,8 @@ declare namespace gapi.client {
|
|
|
987
1024
|
kind?:
|
|
988
1025
|
string;
|
|
989
1026
|
/**
|
|
990
|
-
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or
|
|
991
|
-
* follows:
|
|
1027
|
+
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported
|
|
1028
|
+
* permissions are as follows:
|
|
992
1029
|
* - storage.buckets.delete — Delete bucket.
|
|
993
1030
|
* - storage.buckets.get — Read bucket metadata.
|
|
994
1031
|
* - storage.buckets.getIamPolicy — Read bucket IAM policy.
|
|
@@ -1003,6 +1040,12 @@ declare namespace gapi.client {
|
|
|
1003
1040
|
* - storage.objects.list — List objects.
|
|
1004
1041
|
* - storage.objects.setIamPolicy — Update object IAM policy.
|
|
1005
1042
|
* - storage.objects.update — Update object metadata.
|
|
1043
|
+
* - storage.managedFolders.delete — Delete managed folder.
|
|
1044
|
+
* - storage.managedFolders.get — Read managed folder metadata.
|
|
1045
|
+
* - storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
|
|
1046
|
+
* - storage.managedFolders.create — Create managed folder.
|
|
1047
|
+
* - storage.managedFolders.list — List managed folders.
|
|
1048
|
+
* - storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
|
|
1006
1049
|
*/
|
|
1007
1050
|
permissions?:
|
|
1008
1051
|
string[];
|
|
@@ -2323,6 +2366,344 @@ declare namespace gapi.client {
|
|
|
2323
2366
|
},
|
|
2324
2367
|
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
2325
2368
|
}
|
|
2369
|
+
interface ManagedFoldersResource {
|
|
2370
|
+
/** Permanently deletes a managed folder. */
|
|
2371
|
+
delete(request?: {
|
|
2372
|
+
/** Data format for the response. */
|
|
2373
|
+
alt?:
|
|
2374
|
+
string;
|
|
2375
|
+
/** Name of the bucket containing the managed folder. */
|
|
2376
|
+
bucket:
|
|
2377
|
+
string;
|
|
2378
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2379
|
+
fields?:
|
|
2380
|
+
string;
|
|
2381
|
+
/** If set, only deletes the managed folder if its metageneration matches this value. */
|
|
2382
|
+
ifMetagenerationMatch?:
|
|
2383
|
+
string;
|
|
2384
|
+
/** If set, only deletes the managed folder if its metageneration does not match this value. */
|
|
2385
|
+
ifMetagenerationNotMatch?:
|
|
2386
|
+
string;
|
|
2387
|
+
/** 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. */
|
|
2388
|
+
key?:
|
|
2389
|
+
string;
|
|
2390
|
+
/** The managed folder name/path. */
|
|
2391
|
+
managedFolder:
|
|
2392
|
+
string;
|
|
2393
|
+
/** OAuth 2.0 token for the current user. */
|
|
2394
|
+
oauth_token?:
|
|
2395
|
+
string;
|
|
2396
|
+
/** Returns response with indentations and line breaks. */
|
|
2397
|
+
prettyPrint?:
|
|
2398
|
+
boolean;
|
|
2399
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2400
|
+
quotaUser?:
|
|
2401
|
+
string;
|
|
2402
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2403
|
+
uploadType?:
|
|
2404
|
+
string;
|
|
2405
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2406
|
+
userIp?:
|
|
2407
|
+
string;
|
|
2408
|
+
}): Request<void>;
|
|
2409
|
+
/** Returns metadata of the specified managed folder. */
|
|
2410
|
+
get(request?: {
|
|
2411
|
+
/** Data format for the response. */
|
|
2412
|
+
alt?:
|
|
2413
|
+
string;
|
|
2414
|
+
/** Name of the bucket containing the managed folder. */
|
|
2415
|
+
bucket:
|
|
2416
|
+
string;
|
|
2417
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2418
|
+
fields?:
|
|
2419
|
+
string;
|
|
2420
|
+
/** Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value. */
|
|
2421
|
+
ifMetagenerationMatch?:
|
|
2422
|
+
string;
|
|
2423
|
+
/** Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value. */
|
|
2424
|
+
ifMetagenerationNotMatch?:
|
|
2425
|
+
string;
|
|
2426
|
+
/** 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. */
|
|
2427
|
+
key?:
|
|
2428
|
+
string;
|
|
2429
|
+
/** The managed folder name/path. */
|
|
2430
|
+
managedFolder:
|
|
2431
|
+
string;
|
|
2432
|
+
/** OAuth 2.0 token for the current user. */
|
|
2433
|
+
oauth_token?:
|
|
2434
|
+
string;
|
|
2435
|
+
/** Returns response with indentations and line breaks. */
|
|
2436
|
+
prettyPrint?:
|
|
2437
|
+
boolean;
|
|
2438
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2439
|
+
quotaUser?:
|
|
2440
|
+
string;
|
|
2441
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2442
|
+
uploadType?:
|
|
2443
|
+
string;
|
|
2444
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2445
|
+
userIp?:
|
|
2446
|
+
string;
|
|
2447
|
+
}): Request<ManagedFolder>;
|
|
2448
|
+
/** Returns an IAM policy for the specified managed folder. */
|
|
2449
|
+
getIamPolicy(request?: {
|
|
2450
|
+
/** Data format for the response. */
|
|
2451
|
+
alt?:
|
|
2452
|
+
string;
|
|
2453
|
+
/** Name of the bucket containing the managed folder. */
|
|
2454
|
+
bucket:
|
|
2455
|
+
string;
|
|
2456
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2457
|
+
fields?:
|
|
2458
|
+
string;
|
|
2459
|
+
/** 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. */
|
|
2460
|
+
key?:
|
|
2461
|
+
string;
|
|
2462
|
+
/** The managed folder name/path. */
|
|
2463
|
+
managedFolder:
|
|
2464
|
+
string;
|
|
2465
|
+
/** OAuth 2.0 token for the current user. */
|
|
2466
|
+
oauth_token?:
|
|
2467
|
+
string;
|
|
2468
|
+
/**
|
|
2469
|
+
* The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request
|
|
2470
|
+
* fails.
|
|
2471
|
+
*/
|
|
2472
|
+
optionsRequestedPolicyVersion?:
|
|
2473
|
+
number;
|
|
2474
|
+
/** Returns response with indentations and line breaks. */
|
|
2475
|
+
prettyPrint?:
|
|
2476
|
+
boolean;
|
|
2477
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2478
|
+
quotaUser?:
|
|
2479
|
+
string;
|
|
2480
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2481
|
+
uploadType?:
|
|
2482
|
+
string;
|
|
2483
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2484
|
+
userIp?:
|
|
2485
|
+
string;
|
|
2486
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2487
|
+
userProject?:
|
|
2488
|
+
string;
|
|
2489
|
+
}): Request<Policy>;
|
|
2490
|
+
/** Creates a new managed folder. */
|
|
2491
|
+
insert(request: {
|
|
2492
|
+
/** Data format for the response. */
|
|
2493
|
+
alt?:
|
|
2494
|
+
string;
|
|
2495
|
+
/** Name of the bucket containing the managed folder. */
|
|
2496
|
+
bucket:
|
|
2497
|
+
string;
|
|
2498
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2499
|
+
fields?:
|
|
2500
|
+
string;
|
|
2501
|
+
/** 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. */
|
|
2502
|
+
key?:
|
|
2503
|
+
string;
|
|
2504
|
+
/** OAuth 2.0 token for the current user. */
|
|
2505
|
+
oauth_token?:
|
|
2506
|
+
string;
|
|
2507
|
+
/** Returns response with indentations and line breaks. */
|
|
2508
|
+
prettyPrint?:
|
|
2509
|
+
boolean;
|
|
2510
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2511
|
+
quotaUser?:
|
|
2512
|
+
string;
|
|
2513
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2514
|
+
uploadType?:
|
|
2515
|
+
string;
|
|
2516
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2517
|
+
userIp?:
|
|
2518
|
+
string;
|
|
2519
|
+
/** Request body */
|
|
2520
|
+
resource:
|
|
2521
|
+
ManagedFolder;
|
|
2522
|
+
}): Request<ManagedFolder>;
|
|
2523
|
+
insert(request: {
|
|
2524
|
+
/** Data format for the response. */
|
|
2525
|
+
alt?:
|
|
2526
|
+
string;
|
|
2527
|
+
/** Name of the bucket containing the managed folder. */
|
|
2528
|
+
bucket:
|
|
2529
|
+
string;
|
|
2530
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2531
|
+
fields?:
|
|
2532
|
+
string;
|
|
2533
|
+
/** 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. */
|
|
2534
|
+
key?:
|
|
2535
|
+
string;
|
|
2536
|
+
/** OAuth 2.0 token for the current user. */
|
|
2537
|
+
oauth_token?:
|
|
2538
|
+
string;
|
|
2539
|
+
/** Returns response with indentations and line breaks. */
|
|
2540
|
+
prettyPrint?:
|
|
2541
|
+
boolean;
|
|
2542
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2543
|
+
quotaUser?:
|
|
2544
|
+
string;
|
|
2545
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2546
|
+
uploadType?:
|
|
2547
|
+
string;
|
|
2548
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2549
|
+
userIp?:
|
|
2550
|
+
string;
|
|
2551
|
+
},
|
|
2552
|
+
body: ManagedFolder): Request<ManagedFolder>;
|
|
2553
|
+
/** Lists managed folders in the given bucket. */
|
|
2554
|
+
list(request?: {
|
|
2555
|
+
/** Data format for the response. */
|
|
2556
|
+
alt?:
|
|
2557
|
+
string;
|
|
2558
|
+
/** Name of the bucket containing the managed folder. */
|
|
2559
|
+
bucket:
|
|
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
|
+
/** OAuth 2.0 token for the current user. */
|
|
2568
|
+
oauth_token?:
|
|
2569
|
+
string;
|
|
2570
|
+
/** Maximum number of items return in a single page of responses. */
|
|
2571
|
+
pageSize?:
|
|
2572
|
+
number;
|
|
2573
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
2574
|
+
pageToken?:
|
|
2575
|
+
string;
|
|
2576
|
+
/** The managed folder name/path prefix to filter the output list of results. */
|
|
2577
|
+
prefix?:
|
|
2578
|
+
string;
|
|
2579
|
+
/** Returns response with indentations and line breaks. */
|
|
2580
|
+
prettyPrint?:
|
|
2581
|
+
boolean;
|
|
2582
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2583
|
+
quotaUser?:
|
|
2584
|
+
string;
|
|
2585
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2586
|
+
uploadType?:
|
|
2587
|
+
string;
|
|
2588
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2589
|
+
userIp?:
|
|
2590
|
+
string;
|
|
2591
|
+
}): Request<ManagedFolders>;
|
|
2592
|
+
/** Updates an IAM policy for the specified managed folder. */
|
|
2593
|
+
setIamPolicy(request: {
|
|
2594
|
+
/** Data format for the response. */
|
|
2595
|
+
alt?:
|
|
2596
|
+
string;
|
|
2597
|
+
/** Name of the bucket containing the managed folder. */
|
|
2598
|
+
bucket:
|
|
2599
|
+
string;
|
|
2600
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2601
|
+
fields?:
|
|
2602
|
+
string;
|
|
2603
|
+
/** 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. */
|
|
2604
|
+
key?:
|
|
2605
|
+
string;
|
|
2606
|
+
/** The managed folder name/path. */
|
|
2607
|
+
managedFolder:
|
|
2608
|
+
string;
|
|
2609
|
+
/** OAuth 2.0 token for the current user. */
|
|
2610
|
+
oauth_token?:
|
|
2611
|
+
string;
|
|
2612
|
+
/** Returns response with indentations and line breaks. */
|
|
2613
|
+
prettyPrint?:
|
|
2614
|
+
boolean;
|
|
2615
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2616
|
+
quotaUser?:
|
|
2617
|
+
string;
|
|
2618
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2619
|
+
uploadType?:
|
|
2620
|
+
string;
|
|
2621
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2622
|
+
userIp?:
|
|
2623
|
+
string;
|
|
2624
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2625
|
+
userProject?:
|
|
2626
|
+
string;
|
|
2627
|
+
/** Request body */
|
|
2628
|
+
resource:
|
|
2629
|
+
Policy;
|
|
2630
|
+
}): Request<Policy>;
|
|
2631
|
+
setIamPolicy(request: {
|
|
2632
|
+
/** Data format for the response. */
|
|
2633
|
+
alt?:
|
|
2634
|
+
string;
|
|
2635
|
+
/** Name of the bucket containing the managed folder. */
|
|
2636
|
+
bucket:
|
|
2637
|
+
string;
|
|
2638
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2639
|
+
fields?:
|
|
2640
|
+
string;
|
|
2641
|
+
/** 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. */
|
|
2642
|
+
key?:
|
|
2643
|
+
string;
|
|
2644
|
+
/** The managed folder name/path. */
|
|
2645
|
+
managedFolder:
|
|
2646
|
+
string;
|
|
2647
|
+
/** OAuth 2.0 token for the current user. */
|
|
2648
|
+
oauth_token?:
|
|
2649
|
+
string;
|
|
2650
|
+
/** Returns response with indentations and line breaks. */
|
|
2651
|
+
prettyPrint?:
|
|
2652
|
+
boolean;
|
|
2653
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2654
|
+
quotaUser?:
|
|
2655
|
+
string;
|
|
2656
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2657
|
+
uploadType?:
|
|
2658
|
+
string;
|
|
2659
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2660
|
+
userIp?:
|
|
2661
|
+
string;
|
|
2662
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2663
|
+
userProject?:
|
|
2664
|
+
string;
|
|
2665
|
+
},
|
|
2666
|
+
body: Policy): Request<Policy>;
|
|
2667
|
+
/** Tests a set of permissions on the given managed folder to see which, if any, are held by the caller. */
|
|
2668
|
+
testIamPermissions(request?: {
|
|
2669
|
+
/** Data format for the response. */
|
|
2670
|
+
alt?:
|
|
2671
|
+
string;
|
|
2672
|
+
/** Name of the bucket containing the managed folder. */
|
|
2673
|
+
bucket:
|
|
2674
|
+
string;
|
|
2675
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2676
|
+
fields?:
|
|
2677
|
+
string;
|
|
2678
|
+
/** 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. */
|
|
2679
|
+
key?:
|
|
2680
|
+
string;
|
|
2681
|
+
/** The managed folder name/path. */
|
|
2682
|
+
managedFolder:
|
|
2683
|
+
string;
|
|
2684
|
+
/** OAuth 2.0 token for the current user. */
|
|
2685
|
+
oauth_token?:
|
|
2686
|
+
string;
|
|
2687
|
+
/** Permissions to test. */
|
|
2688
|
+
permissions:
|
|
2689
|
+
string | string[];
|
|
2690
|
+
/** Returns response with indentations and line breaks. */
|
|
2691
|
+
prettyPrint?:
|
|
2692
|
+
boolean;
|
|
2693
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2694
|
+
quotaUser?:
|
|
2695
|
+
string;
|
|
2696
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2697
|
+
uploadType?:
|
|
2698
|
+
string;
|
|
2699
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2700
|
+
userIp?:
|
|
2701
|
+
string;
|
|
2702
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2703
|
+
userProject?:
|
|
2704
|
+
string;
|
|
2705
|
+
}): Request<TestIamPermissionsResponse>;
|
|
2706
|
+
}
|
|
2326
2707
|
interface NotificationsResource {
|
|
2327
2708
|
/** Permanently deletes a notification subscription. */
|
|
2328
2709
|
delete(request?: {
|
|
@@ -3638,6 +4019,9 @@ declare namespace gapi.client {
|
|
|
3638
4019
|
/** Selector specifying which fields to include in a partial response. */
|
|
3639
4020
|
fields?:
|
|
3640
4021
|
string;
|
|
4022
|
+
/** Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes. */
|
|
4023
|
+
includeFoldersAsPrefixes?:
|
|
4024
|
+
boolean;
|
|
3641
4025
|
/** If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes. */
|
|
3642
4026
|
includeTrailingDelimiter?:
|
|
3643
4027
|
boolean;
|
|
@@ -5013,6 +5397,8 @@ declare namespace gapi.client {
|
|
|
5013
5397
|
|
|
5014
5398
|
const defaultObjectAccessControls: DefaultObjectAccessControlsResource;
|
|
5015
5399
|
|
|
5400
|
+
const managedFolders: ManagedFoldersResource;
|
|
5401
|
+
|
|
5016
5402
|
const notifications: NotificationsResource;
|
|
5017
5403
|
|
|
5018
5404
|
const objectAccessControls: ObjectAccessControlsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -193,6 +193,41 @@ Updates a default object ACL entry on the specified bucket.
|
|
|
193
193
|
*/
|
|
194
194
|
await gapi.client.storage.defaultObjectAccessControls.update({ bucket: "bucket", entity: "entity", });
|
|
195
195
|
|
|
196
|
+
/*
|
|
197
|
+
Permanently deletes a managed folder.
|
|
198
|
+
*/
|
|
199
|
+
await gapi.client.storage.managedFolders.delete({ bucket: "bucket", managedFolder: "managedFolder", });
|
|
200
|
+
|
|
201
|
+
/*
|
|
202
|
+
Returns metadata of the specified managed folder.
|
|
203
|
+
*/
|
|
204
|
+
await gapi.client.storage.managedFolders.get({ bucket: "bucket", managedFolder: "managedFolder", });
|
|
205
|
+
|
|
206
|
+
/*
|
|
207
|
+
Returns an IAM policy for the specified managed folder.
|
|
208
|
+
*/
|
|
209
|
+
await gapi.client.storage.managedFolders.getIamPolicy({ bucket: "bucket", managedFolder: "managedFolder", });
|
|
210
|
+
|
|
211
|
+
/*
|
|
212
|
+
Creates a new managed folder.
|
|
213
|
+
*/
|
|
214
|
+
await gapi.client.storage.managedFolders.insert({ bucket: "bucket", });
|
|
215
|
+
|
|
216
|
+
/*
|
|
217
|
+
Lists managed folders in the given bucket.
|
|
218
|
+
*/
|
|
219
|
+
await gapi.client.storage.managedFolders.list({ bucket: "bucket", });
|
|
220
|
+
|
|
221
|
+
/*
|
|
222
|
+
Updates an IAM policy for the specified managed folder.
|
|
223
|
+
*/
|
|
224
|
+
await gapi.client.storage.managedFolders.setIamPolicy({ bucket: "bucket", managedFolder: "managedFolder", });
|
|
225
|
+
|
|
226
|
+
/*
|
|
227
|
+
Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.
|
|
228
|
+
*/
|
|
229
|
+
await gapi.client.storage.managedFolders.testIamPermissions({ bucket: "bucket", managedFolder: "managedFolder", permissions: "permissions", });
|
|
230
|
+
|
|
196
231
|
/*
|
|
197
232
|
Permanently deletes a notification subscription.
|
|
198
233
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231012
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -781,6 +781,79 @@ gapi.load('client', async () => {
|
|
|
781
781
|
role: "Test string",
|
|
782
782
|
selfLink: "Test string",
|
|
783
783
|
});
|
|
784
|
+
/** Permanently deletes a managed folder. */
|
|
785
|
+
await gapi.client.storage.managedFolders.delete({
|
|
786
|
+
bucket: "Test string",
|
|
787
|
+
ifMetagenerationMatch: "Test string",
|
|
788
|
+
ifMetagenerationNotMatch: "Test string",
|
|
789
|
+
managedFolder: "Test string",
|
|
790
|
+
});
|
|
791
|
+
/** Returns metadata of the specified managed folder. */
|
|
792
|
+
await gapi.client.storage.managedFolders.get({
|
|
793
|
+
bucket: "Test string",
|
|
794
|
+
ifMetagenerationMatch: "Test string",
|
|
795
|
+
ifMetagenerationNotMatch: "Test string",
|
|
796
|
+
managedFolder: "Test string",
|
|
797
|
+
});
|
|
798
|
+
/** Returns an IAM policy for the specified managed folder. */
|
|
799
|
+
await gapi.client.storage.managedFolders.getIamPolicy({
|
|
800
|
+
bucket: "Test string",
|
|
801
|
+
managedFolder: "Test string",
|
|
802
|
+
optionsRequestedPolicyVersion: 42,
|
|
803
|
+
userProject: "Test string",
|
|
804
|
+
});
|
|
805
|
+
/** Creates a new managed folder. */
|
|
806
|
+
await gapi.client.storage.managedFolders.insert({
|
|
807
|
+
bucket: "Test string",
|
|
808
|
+
}, {
|
|
809
|
+
bucket: "Test string",
|
|
810
|
+
createTime: "Test string",
|
|
811
|
+
id: "Test string",
|
|
812
|
+
kind: "Test string",
|
|
813
|
+
metageneration: "Test string",
|
|
814
|
+
name: "Test string",
|
|
815
|
+
selfLink: "Test string",
|
|
816
|
+
updateTime: "Test string",
|
|
817
|
+
});
|
|
818
|
+
/** Lists managed folders in the given bucket. */
|
|
819
|
+
await gapi.client.storage.managedFolders.list({
|
|
820
|
+
bucket: "Test string",
|
|
821
|
+
pageSize: 42,
|
|
822
|
+
pageToken: "Test string",
|
|
823
|
+
prefix: "Test string",
|
|
824
|
+
});
|
|
825
|
+
/** Updates an IAM policy for the specified managed folder. */
|
|
826
|
+
await gapi.client.storage.managedFolders.setIamPolicy({
|
|
827
|
+
bucket: "Test string",
|
|
828
|
+
managedFolder: "Test string",
|
|
829
|
+
userProject: "Test string",
|
|
830
|
+
}, {
|
|
831
|
+
bindings: [
|
|
832
|
+
{
|
|
833
|
+
condition: {
|
|
834
|
+
description: "Test string",
|
|
835
|
+
expression: "Test string",
|
|
836
|
+
location: "Test string",
|
|
837
|
+
title: "Test string",
|
|
838
|
+
},
|
|
839
|
+
members: [
|
|
840
|
+
"Test string"
|
|
841
|
+
],
|
|
842
|
+
role: "Test string",
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
etag: "Test string",
|
|
846
|
+
kind: "Test string",
|
|
847
|
+
resourceId: "Test string",
|
|
848
|
+
version: 42,
|
|
849
|
+
});
|
|
850
|
+
/** Tests a set of permissions on the given managed folder to see which, if any, are held by the caller. */
|
|
851
|
+
await gapi.client.storage.managedFolders.testIamPermissions({
|
|
852
|
+
bucket: "Test string",
|
|
853
|
+
managedFolder: "Test string",
|
|
854
|
+
permissions: "Test string",
|
|
855
|
+
userProject: "Test string",
|
|
856
|
+
});
|
|
784
857
|
/** Permanently deletes a notification subscription. */
|
|
785
858
|
await gapi.client.storage.notifications.delete({
|
|
786
859
|
bucket: "Test string",
|
|
@@ -1216,6 +1289,7 @@ gapi.load('client', async () => {
|
|
|
1216
1289
|
bucket: "Test string",
|
|
1217
1290
|
delimiter: "Test string",
|
|
1218
1291
|
endOffset: "Test string",
|
|
1292
|
+
includeFoldersAsPrefixes: true,
|
|
1219
1293
|
includeTrailingDelimiter: true,
|
|
1220
1294
|
matchGlob: "Test string",
|
|
1221
1295
|
maxResults: 42,
|