@maxim_mazurok/gapi.client.storage-v1 0.2.20260227 → 0.2.20260601

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.
Files changed (3) hide show
  1. package/index.d.ts +323 -179
  2. package/package.json +1 -1
  3. package/readme.md +13 -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: 20260227
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -41,6 +41,8 @@ declare namespace gapi.client {
41
41
  createTime?: string;
42
42
  /** The ID of the resource, including the project number, bucket name and anywhere cache ID. */
43
43
  id?: string;
44
+ /** Specifies whether objects are ingested into the cache upon write. */
45
+ ingestOnWrite?: boolean;
44
46
  /** The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache. */
45
47
  kind?: string;
46
48
  /** True if the cache instance has an active Update long-running operation. */
@@ -84,7 +86,7 @@ declare namespace gapi.client {
84
86
  requesterPays?: boolean;
85
87
  };
86
88
  /** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */
87
- cors?: Array<{
89
+ cors?: {
88
90
  /** The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. */
89
91
  maxAgeSeconds?: number;
90
92
  /** The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method". */
@@ -93,7 +95,7 @@ declare namespace gapi.client {
93
95
  origin?: string[];
94
96
  /** The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains. */
95
97
  responseHeader?: string[];
96
- }>;
98
+ }[];
97
99
  /** The bucket's custom placement configuration for Custom Dual Regions. */
98
100
  customPlacementConfig?: {
99
101
  /** The list of regional locations in which data is placed. */
@@ -110,14 +112,14 @@ declare namespace gapi.client {
110
112
  /** Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format. */
111
113
  effectiveTime?: string;
112
114
  /** Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted. */
113
- restrictionMode?: string;
115
+ restrictionMode?: 'NotRestricted' | 'FullyRestricted';
114
116
  };
115
117
  /** If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default. */
116
118
  customerSuppliedEncryptionEnforcementConfig?: {
117
119
  /** Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format. */
118
120
  effectiveTime?: string;
119
121
  /** Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted. */
120
- restrictionMode?: string;
122
+ restrictionMode?: 'NotRestricted' | 'FullyRestricted';
121
123
  };
122
124
  /** A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified. */
123
125
  defaultKmsKeyName?: string;
@@ -126,7 +128,7 @@ declare namespace gapi.client {
126
128
  /** Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format. */
127
129
  effectiveTime?: string;
128
130
  /** Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted. */
129
- restrictionMode?: string;
131
+ restrictionMode?: 'NotRestricted' | 'FullyRestricted';
130
132
  };
131
133
  };
132
134
  /** HTTP 1.1 Entity tag for the bucket. */
@@ -175,12 +177,12 @@ declare namespace gapi.client {
175
177
  allowedIpCidrRanges?: string[];
176
178
  };
177
179
  /** The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket's IP filter. */
178
- vpcNetworkSources?: Array<{
180
+ vpcNetworkSources?: {
179
181
  /** The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket. */
180
182
  allowedIpCidrRanges?: string[];
181
183
  /** Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME} */
182
184
  network?: string;
183
- }>;
185
+ }[];
184
186
  };
185
187
  /** The kind of item this is. For buckets, this is always storage#bucket. */
186
188
  kind?: string;
@@ -189,7 +191,7 @@ declare namespace gapi.client {
189
191
  /** The bucket's lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information. */
190
192
  lifecycle?: {
191
193
  /** A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken. */
192
- rule?: Array<{
194
+ rule?: {
193
195
  /** The action to take. */
194
196
  action?: {
195
197
  /** Target storage class. Required iff the type of the action is SetStorageClass. */
@@ -223,8 +225,12 @@ declare namespace gapi.client {
223
225
  noncurrentTimeBefore?: string;
224
226
  /** Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object. */
225
227
  numNewerVersions?: number;
228
+ /** Objects having a size greater than this value in bytes will be matched. */
229
+ sizeAboveBytes?: string;
230
+ /** Objects having a size less than this value in bytes will be matched. */
231
+ sizeBelowBytes?: string;
226
232
  };
227
- }>;
233
+ }[];
228
234
  };
229
235
  /** The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer's Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list. */
230
236
  location?: string;
@@ -424,7 +430,7 @@ declare namespace gapi.client {
424
430
  /** The kind of item this is. */
425
431
  kind?: string;
426
432
  /** The list of source objects that will be concatenated into a single object. */
427
- sourceObjects?: Array<{
433
+ sourceObjects?: {
428
434
  /** The generation of this object to use as the source. */
429
435
  generation?: string;
430
436
  /** The source object's name. All source objects must reside in the same bucket. */
@@ -434,7 +440,7 @@ declare namespace gapi.client {
434
440
  /** Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail. */
435
441
  ifGenerationMatch?: string;
436
442
  };
437
- }>;
443
+ }[];
438
444
  }
439
445
  interface Expr {
440
446
  /** An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
@@ -505,7 +511,7 @@ declare namespace gapi.client {
505
511
  /** The status code, which should be an enum value of google.rpc.Code. */
506
512
  code?: number;
507
513
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
508
- details?: Array<{[P in string]: any}>;
514
+ details?: {[P in string]: any}[];
509
515
  /** A developer-facing error message, which should be in English. */
510
516
  message?: string;
511
517
  }
@@ -767,7 +773,7 @@ declare namespace gapi.client {
767
773
  }
768
774
  interface Policy {
769
775
  /** An association between a role, which comes with a set of permissions, and members who may assume that role. */
770
- bindings?: Array<{
776
+ bindings?: {
771
777
  /** The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. */
772
778
  condition?: Expr;
773
779
  /**
@@ -797,7 +803,7 @@ declare namespace gapi.client {
797
803
  * - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
798
804
  */
799
805
  role?: string;
800
- }>;
806
+ }[];
801
807
  /** HTTP 1.1 Entity tag for the policy. */
802
808
  etag?: string;
803
809
  /** The kind of item this is. For policies, this is always storage#policy. This field is ignored on input. */
@@ -872,7 +878,7 @@ declare namespace gapi.client {
872
878
  /** Disables an Anywhere Cache instance. */
873
879
  disable(request?: {
874
880
  /** Data format for the response. */
875
- alt?: string;
881
+ alt?: 'json' | 'media';
876
882
  /** The ID of requested Anywhere Cache instance. */
877
883
  anywhereCacheId: string;
878
884
  /** Name of the parent bucket. */
@@ -895,7 +901,7 @@ declare namespace gapi.client {
895
901
  /** Returns the metadata of an Anywhere Cache instance. */
896
902
  get(request?: {
897
903
  /** Data format for the response. */
898
- alt?: string;
904
+ alt?: 'json' | 'media';
899
905
  /** The ID of requested Anywhere Cache instance. */
900
906
  anywhereCacheId: string;
901
907
  /** Name of the parent bucket. */
@@ -918,7 +924,7 @@ declare namespace gapi.client {
918
924
  /** Creates an Anywhere Cache instance. */
919
925
  insert(request: {
920
926
  /** Data format for the response. */
921
- alt?: string;
927
+ alt?: 'json' | 'media';
922
928
  /** Name of the parent bucket. */
923
929
  bucket: string;
924
930
  /** Selector specifying which fields to include in a partial response. */
@@ -941,7 +947,7 @@ declare namespace gapi.client {
941
947
  insert(
942
948
  request: {
943
949
  /** Data format for the response. */
944
- alt?: string;
950
+ alt?: 'json' | 'media';
945
951
  /** Name of the parent bucket. */
946
952
  bucket: string;
947
953
  /** Selector specifying which fields to include in a partial response. */
@@ -964,7 +970,7 @@ declare namespace gapi.client {
964
970
  /** Returns a list of Anywhere Cache instances of the bucket matching the criteria. */
965
971
  list(request?: {
966
972
  /** Data format for the response. */
967
- alt?: string;
973
+ alt?: 'json' | 'media';
968
974
  /** Name of the parent bucket. */
969
975
  bucket: string;
970
976
  /** Selector specifying which fields to include in a partial response. */
@@ -989,7 +995,7 @@ declare namespace gapi.client {
989
995
  /** Pauses an Anywhere Cache instance. */
990
996
  pause(request?: {
991
997
  /** Data format for the response. */
992
- alt?: string;
998
+ alt?: 'json' | 'media';
993
999
  /** The ID of requested Anywhere Cache instance. */
994
1000
  anywhereCacheId: string;
995
1001
  /** Name of the parent bucket. */
@@ -1012,7 +1018,7 @@ declare namespace gapi.client {
1012
1018
  /** Resumes a paused or disabled Anywhere Cache instance. */
1013
1019
  resume(request?: {
1014
1020
  /** Data format for the response. */
1015
- alt?: string;
1021
+ alt?: 'json' | 'media';
1016
1022
  /** The ID of requested Anywhere Cache instance. */
1017
1023
  anywhereCacheId: string;
1018
1024
  /** Name of the parent bucket. */
@@ -1032,10 +1038,10 @@ declare namespace gapi.client {
1032
1038
  /** Deprecated. Please use quotaUser instead. */
1033
1039
  userIp?: string;
1034
1040
  }): Request<AnywhereCache>;
1035
- /** Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance. */
1041
+ /** Updates the config of an Anywhere Cache instance. */
1036
1042
  update(request: {
1037
1043
  /** Data format for the response. */
1038
- alt?: string;
1044
+ alt?: 'json' | 'media';
1039
1045
  /** The ID of requested Anywhere Cache instance. */
1040
1046
  anywhereCacheId: string;
1041
1047
  /** Name of the parent bucket. */
@@ -1060,7 +1066,7 @@ declare namespace gapi.client {
1060
1066
  update(
1061
1067
  request: {
1062
1068
  /** Data format for the response. */
1063
- alt?: string;
1069
+ alt?: 'json' | 'media';
1064
1070
  /** The ID of requested Anywhere Cache instance. */
1065
1071
  anywhereCacheId: string;
1066
1072
  /** Name of the parent bucket. */
@@ -1087,7 +1093,7 @@ declare namespace gapi.client {
1087
1093
  /** Permanently deletes the ACL entry for the specified entity on the specified bucket. */
1088
1094
  delete(request?: {
1089
1095
  /** Data format for the response. */
1090
- alt?: string;
1096
+ alt?: 'json' | 'media';
1091
1097
  /** Name of a bucket. */
1092
1098
  bucket: string;
1093
1099
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1112,7 +1118,7 @@ declare namespace gapi.client {
1112
1118
  /** Returns the ACL entry for the specified entity on the specified bucket. */
1113
1119
  get(request?: {
1114
1120
  /** Data format for the response. */
1115
- alt?: string;
1121
+ alt?: 'json' | 'media';
1116
1122
  /** Name of a bucket. */
1117
1123
  bucket: string;
1118
1124
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1137,7 +1143,7 @@ declare namespace gapi.client {
1137
1143
  /** Creates a new ACL entry on the specified bucket. */
1138
1144
  insert(request: {
1139
1145
  /** Data format for the response. */
1140
- alt?: string;
1146
+ alt?: 'json' | 'media';
1141
1147
  /** Name of a bucket. */
1142
1148
  bucket: string;
1143
1149
  /** Selector specifying which fields to include in a partial response. */
@@ -1162,7 +1168,7 @@ declare namespace gapi.client {
1162
1168
  insert(
1163
1169
  request: {
1164
1170
  /** Data format for the response. */
1165
- alt?: string;
1171
+ alt?: 'json' | 'media';
1166
1172
  /** Name of a bucket. */
1167
1173
  bucket: string;
1168
1174
  /** Selector specifying which fields to include in a partial response. */
@@ -1187,7 +1193,7 @@ declare namespace gapi.client {
1187
1193
  /** Retrieves ACL entries on the specified bucket. */
1188
1194
  list(request?: {
1189
1195
  /** Data format for the response. */
1190
- alt?: string;
1196
+ alt?: 'json' | 'media';
1191
1197
  /** Name of a bucket. */
1192
1198
  bucket: string;
1193
1199
  /** Selector specifying which fields to include in a partial response. */
@@ -1210,7 +1216,7 @@ declare namespace gapi.client {
1210
1216
  /** Patches an ACL entry on the specified bucket. */
1211
1217
  patch(request: {
1212
1218
  /** Data format for the response. */
1213
- alt?: string;
1219
+ alt?: 'json' | 'media';
1214
1220
  /** Name of a bucket. */
1215
1221
  bucket: string;
1216
1222
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1237,7 +1243,7 @@ declare namespace gapi.client {
1237
1243
  patch(
1238
1244
  request: {
1239
1245
  /** Data format for the response. */
1240
- alt?: string;
1246
+ alt?: 'json' | 'media';
1241
1247
  /** Name of a bucket. */
1242
1248
  bucket: string;
1243
1249
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1264,7 +1270,7 @@ declare namespace gapi.client {
1264
1270
  /** Updates an ACL entry on the specified bucket. */
1265
1271
  update(request: {
1266
1272
  /** Data format for the response. */
1267
- alt?: string;
1273
+ alt?: 'json' | 'media';
1268
1274
  /** Name of a bucket. */
1269
1275
  bucket: string;
1270
1276
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1291,7 +1297,7 @@ declare namespace gapi.client {
1291
1297
  update(
1292
1298
  request: {
1293
1299
  /** Data format for the response. */
1294
- alt?: string;
1300
+ alt?: 'json' | 'media';
1295
1301
  /** Name of a bucket. */
1296
1302
  bucket: string;
1297
1303
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1320,7 +1326,7 @@ declare namespace gapi.client {
1320
1326
  /** Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket. */
1321
1327
  delete(request?: {
1322
1328
  /** Data format for the response. */
1323
- alt?: string;
1329
+ alt?: 'json' | 'media';
1324
1330
  /** Name of a bucket. */
1325
1331
  bucket: string;
1326
1332
  /** Selector specifying which fields to include in a partial response. */
@@ -1347,7 +1353,7 @@ declare namespace gapi.client {
1347
1353
  /** Returns metadata for the specified bucket. */
1348
1354
  get(request?: {
1349
1355
  /** Data format for the response. */
1350
- alt?: string;
1356
+ alt?: 'json' | 'media';
1351
1357
  /** Name of a bucket. */
1352
1358
  bucket: string;
1353
1359
  /** Selector specifying which fields to include in a partial response. */
@@ -1365,7 +1371,7 @@ declare namespace gapi.client {
1365
1371
  /** Returns response with indentations and line breaks. */
1366
1372
  prettyPrint?: boolean;
1367
1373
  /** Set of properties to return. Defaults to noAcl. */
1368
- projection?: string;
1374
+ projection?: 'full' | 'noAcl';
1369
1375
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1370
1376
  quotaUser?: string;
1371
1377
  /** If true, return the soft-deleted version of this bucket. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
@@ -1380,7 +1386,7 @@ declare namespace gapi.client {
1380
1386
  /** Returns an IAM policy for the specified bucket. */
1381
1387
  getIamPolicy(request?: {
1382
1388
  /** Data format for the response. */
1383
- alt?: string;
1389
+ alt?: 'json' | 'media';
1384
1390
  /** Name of a bucket. */
1385
1391
  bucket: string;
1386
1392
  /** Selector specifying which fields to include in a partial response. */
@@ -1405,7 +1411,7 @@ declare namespace gapi.client {
1405
1411
  /** Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission. */
1406
1412
  getStorageLayout(request?: {
1407
1413
  /** Data format for the response. */
1408
- alt?: string;
1414
+ alt?: 'json' | 'media';
1409
1415
  /** Name of a bucket. */
1410
1416
  bucket: string;
1411
1417
  /** Selector specifying which fields to include in a partial response. */
@@ -1428,7 +1434,7 @@ declare namespace gapi.client {
1428
1434
  /** Creates a new bucket. */
1429
1435
  insert(request: {
1430
1436
  /** Data format for the response. */
1431
- alt?: string;
1437
+ alt?: 'json' | 'media';
1432
1438
  /** When set to true, object retention is enabled for this bucket. */
1433
1439
  enableObjectRetention?: boolean;
1434
1440
  /** Selector specifying which fields to include in a partial response. */
@@ -1438,15 +1444,26 @@ declare namespace gapi.client {
1438
1444
  /** OAuth 2.0 token for the current user. */
1439
1445
  oauth_token?: string;
1440
1446
  /** Apply a predefined set of access controls to this bucket. */
1441
- predefinedAcl?: string;
1447
+ predefinedAcl?:
1448
+ | 'authenticatedRead'
1449
+ | 'private'
1450
+ | 'projectPrivate'
1451
+ | 'publicRead'
1452
+ | 'publicReadWrite';
1442
1453
  /** Apply a predefined set of default object access controls to this bucket. */
1443
- predefinedDefaultObjectAcl?: string;
1454
+ predefinedDefaultObjectAcl?:
1455
+ | 'authenticatedRead'
1456
+ | 'bucketOwnerFullControl'
1457
+ | 'bucketOwnerRead'
1458
+ | 'private'
1459
+ | 'projectPrivate'
1460
+ | 'publicRead';
1444
1461
  /** Returns response with indentations and line breaks. */
1445
1462
  prettyPrint?: boolean;
1446
1463
  /** A valid API project identifier. */
1447
1464
  project: string;
1448
1465
  /** Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. */
1449
- projection?: string;
1466
+ projection?: 'full' | 'noAcl';
1450
1467
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1451
1468
  quotaUser?: string;
1452
1469
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1461,7 +1478,7 @@ declare namespace gapi.client {
1461
1478
  insert(
1462
1479
  request: {
1463
1480
  /** Data format for the response. */
1464
- alt?: string;
1481
+ alt?: 'json' | 'media';
1465
1482
  /** When set to true, object retention is enabled for this bucket. */
1466
1483
  enableObjectRetention?: boolean;
1467
1484
  /** Selector specifying which fields to include in a partial response. */
@@ -1471,15 +1488,26 @@ declare namespace gapi.client {
1471
1488
  /** OAuth 2.0 token for the current user. */
1472
1489
  oauth_token?: string;
1473
1490
  /** Apply a predefined set of access controls to this bucket. */
1474
- predefinedAcl?: string;
1491
+ predefinedAcl?:
1492
+ | 'authenticatedRead'
1493
+ | 'private'
1494
+ | 'projectPrivate'
1495
+ | 'publicRead'
1496
+ | 'publicReadWrite';
1475
1497
  /** Apply a predefined set of default object access controls to this bucket. */
1476
- predefinedDefaultObjectAcl?: string;
1498
+ predefinedDefaultObjectAcl?:
1499
+ | 'authenticatedRead'
1500
+ | 'bucketOwnerFullControl'
1501
+ | 'bucketOwnerRead'
1502
+ | 'private'
1503
+ | 'projectPrivate'
1504
+ | 'publicRead';
1477
1505
  /** Returns response with indentations and line breaks. */
1478
1506
  prettyPrint?: boolean;
1479
1507
  /** A valid API project identifier. */
1480
1508
  project: string;
1481
1509
  /** Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. */
1482
- projection?: string;
1510
+ projection?: 'full' | 'noAcl';
1483
1511
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1484
1512
  quotaUser?: string;
1485
1513
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1494,7 +1522,7 @@ declare namespace gapi.client {
1494
1522
  /** Retrieves a list of buckets for a given project. */
1495
1523
  list(request?: {
1496
1524
  /** Data format for the response. */
1497
- alt?: string;
1525
+ alt?: 'json' | 'media';
1498
1526
  /** Selector specifying which fields to include in a partial response. */
1499
1527
  fields?: string;
1500
1528
  /** 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. */
@@ -1512,7 +1540,7 @@ declare namespace gapi.client {
1512
1540
  /** A valid API project identifier. */
1513
1541
  project: string;
1514
1542
  /** Set of properties to return. Defaults to noAcl. */
1515
- projection?: string;
1543
+ projection?: 'full' | 'noAcl';
1516
1544
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1517
1545
  quotaUser?: string;
1518
1546
  /** If true, return a list of bucket resource names for buckets that are in unreachable locations. */
@@ -1529,7 +1557,7 @@ declare namespace gapi.client {
1529
1557
  /** Locks retention policy on a bucket. */
1530
1558
  lockRetentionPolicy(request?: {
1531
1559
  /** Data format for the response. */
1532
- alt?: string;
1560
+ alt?: 'json' | 'media';
1533
1561
  /** Name of a bucket. */
1534
1562
  bucket: string;
1535
1563
  /** Selector specifying which fields to include in a partial response. */
@@ -1554,7 +1582,7 @@ declare namespace gapi.client {
1554
1582
  /** Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
1555
1583
  patch(request: {
1556
1584
  /** Data format for the response. */
1557
- alt?: string;
1585
+ alt?: 'json' | 'media';
1558
1586
  /** Name of a bucket. */
1559
1587
  bucket: string;
1560
1588
  /** Selector specifying which fields to include in a partial response. */
@@ -1568,13 +1596,24 @@ declare namespace gapi.client {
1568
1596
  /** OAuth 2.0 token for the current user. */
1569
1597
  oauth_token?: string;
1570
1598
  /** Apply a predefined set of access controls to this bucket. */
1571
- predefinedAcl?: string;
1599
+ predefinedAcl?:
1600
+ | 'authenticatedRead'
1601
+ | 'private'
1602
+ | 'projectPrivate'
1603
+ | 'publicRead'
1604
+ | 'publicReadWrite';
1572
1605
  /** Apply a predefined set of default object access controls to this bucket. */
1573
- predefinedDefaultObjectAcl?: string;
1606
+ predefinedDefaultObjectAcl?:
1607
+ | 'authenticatedRead'
1608
+ | 'bucketOwnerFullControl'
1609
+ | 'bucketOwnerRead'
1610
+ | 'private'
1611
+ | 'projectPrivate'
1612
+ | 'publicRead';
1574
1613
  /** Returns response with indentations and line breaks. */
1575
1614
  prettyPrint?: boolean;
1576
1615
  /** Set of properties to return. Defaults to full. */
1577
- projection?: string;
1616
+ projection?: 'full' | 'noAcl';
1578
1617
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1579
1618
  quotaUser?: string;
1580
1619
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1589,7 +1628,7 @@ declare namespace gapi.client {
1589
1628
  patch(
1590
1629
  request: {
1591
1630
  /** Data format for the response. */
1592
- alt?: string;
1631
+ alt?: 'json' | 'media';
1593
1632
  /** Name of a bucket. */
1594
1633
  bucket: string;
1595
1634
  /** Selector specifying which fields to include in a partial response. */
@@ -1603,13 +1642,24 @@ declare namespace gapi.client {
1603
1642
  /** OAuth 2.0 token for the current user. */
1604
1643
  oauth_token?: string;
1605
1644
  /** Apply a predefined set of access controls to this bucket. */
1606
- predefinedAcl?: string;
1645
+ predefinedAcl?:
1646
+ | 'authenticatedRead'
1647
+ | 'private'
1648
+ | 'projectPrivate'
1649
+ | 'publicRead'
1650
+ | 'publicReadWrite';
1607
1651
  /** Apply a predefined set of default object access controls to this bucket. */
1608
- predefinedDefaultObjectAcl?: string;
1652
+ predefinedDefaultObjectAcl?:
1653
+ | 'authenticatedRead'
1654
+ | 'bucketOwnerFullControl'
1655
+ | 'bucketOwnerRead'
1656
+ | 'private'
1657
+ | 'projectPrivate'
1658
+ | 'publicRead';
1609
1659
  /** Returns response with indentations and line breaks. */
1610
1660
  prettyPrint?: boolean;
1611
1661
  /** Set of properties to return. Defaults to full. */
1612
- projection?: string;
1662
+ projection?: 'full' | 'noAcl';
1613
1663
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1614
1664
  quotaUser?: string;
1615
1665
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1624,7 +1674,7 @@ declare namespace gapi.client {
1624
1674
  /** Initiates a long-running Relocate Bucket operation on the specified bucket. */
1625
1675
  relocate(request: {
1626
1676
  /** Data format for the response. */
1627
- alt?: string;
1677
+ alt?: 'json' | 'media';
1628
1678
  /** Name of the bucket to be moved. */
1629
1679
  bucket: string;
1630
1680
  /** Selector specifying which fields to include in a partial response. */
@@ -1647,7 +1697,7 @@ declare namespace gapi.client {
1647
1697
  relocate(
1648
1698
  request: {
1649
1699
  /** Data format for the response. */
1650
- alt?: string;
1700
+ alt?: 'json' | 'media';
1651
1701
  /** Name of the bucket to be moved. */
1652
1702
  bucket: string;
1653
1703
  /** Selector specifying which fields to include in a partial response. */
@@ -1670,7 +1720,7 @@ declare namespace gapi.client {
1670
1720
  /** Restores a soft-deleted bucket. */
1671
1721
  restore(request?: {
1672
1722
  /** Data format for the response. */
1673
- alt?: string;
1723
+ alt?: 'json' | 'media';
1674
1724
  /** Name of a bucket. */
1675
1725
  bucket: string;
1676
1726
  /** Selector specifying which fields to include in a partial response. */
@@ -1684,7 +1734,7 @@ declare namespace gapi.client {
1684
1734
  /** Returns response with indentations and line breaks. */
1685
1735
  prettyPrint?: boolean;
1686
1736
  /** Set of properties to return. Defaults to full. */
1687
- projection?: string;
1737
+ projection?: 'full' | 'noAcl';
1688
1738
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1689
1739
  quotaUser?: string;
1690
1740
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1697,7 +1747,7 @@ declare namespace gapi.client {
1697
1747
  /** Updates an IAM policy for the specified bucket. */
1698
1748
  setIamPolicy(request: {
1699
1749
  /** Data format for the response. */
1700
- alt?: string;
1750
+ alt?: 'json' | 'media';
1701
1751
  /** Name of a bucket. */
1702
1752
  bucket: string;
1703
1753
  /** Selector specifying which fields to include in a partial response. */
@@ -1722,7 +1772,7 @@ declare namespace gapi.client {
1722
1772
  setIamPolicy(
1723
1773
  request: {
1724
1774
  /** Data format for the response. */
1725
- alt?: string;
1775
+ alt?: 'json' | 'media';
1726
1776
  /** Name of a bucket. */
1727
1777
  bucket: string;
1728
1778
  /** Selector specifying which fields to include in a partial response. */
@@ -1747,7 +1797,7 @@ declare namespace gapi.client {
1747
1797
  /** Tests a set of permissions on the given bucket to see which, if any, are held by the caller. */
1748
1798
  testIamPermissions(request?: {
1749
1799
  /** Data format for the response. */
1750
- alt?: string;
1800
+ alt?: 'json' | 'media';
1751
1801
  /** Name of a bucket. */
1752
1802
  bucket: string;
1753
1803
  /** Selector specifying which fields to include in a partial response. */
@@ -1772,7 +1822,7 @@ declare namespace gapi.client {
1772
1822
  /** Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
1773
1823
  update(request: {
1774
1824
  /** Data format for the response. */
1775
- alt?: string;
1825
+ alt?: 'json' | 'media';
1776
1826
  /** Name of a bucket. */
1777
1827
  bucket: string;
1778
1828
  /** Selector specifying which fields to include in a partial response. */
@@ -1786,13 +1836,24 @@ declare namespace gapi.client {
1786
1836
  /** OAuth 2.0 token for the current user. */
1787
1837
  oauth_token?: string;
1788
1838
  /** Apply a predefined set of access controls to this bucket. */
1789
- predefinedAcl?: string;
1839
+ predefinedAcl?:
1840
+ | 'authenticatedRead'
1841
+ | 'private'
1842
+ | 'projectPrivate'
1843
+ | 'publicRead'
1844
+ | 'publicReadWrite';
1790
1845
  /** Apply a predefined set of default object access controls to this bucket. */
1791
- predefinedDefaultObjectAcl?: string;
1846
+ predefinedDefaultObjectAcl?:
1847
+ | 'authenticatedRead'
1848
+ | 'bucketOwnerFullControl'
1849
+ | 'bucketOwnerRead'
1850
+ | 'private'
1851
+ | 'projectPrivate'
1852
+ | 'publicRead';
1792
1853
  /** Returns response with indentations and line breaks. */
1793
1854
  prettyPrint?: boolean;
1794
1855
  /** Set of properties to return. Defaults to full. */
1795
- projection?: string;
1856
+ projection?: 'full' | 'noAcl';
1796
1857
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1797
1858
  quotaUser?: string;
1798
1859
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1807,7 +1868,7 @@ declare namespace gapi.client {
1807
1868
  update(
1808
1869
  request: {
1809
1870
  /** Data format for the response. */
1810
- alt?: string;
1871
+ alt?: 'json' | 'media';
1811
1872
  /** Name of a bucket. */
1812
1873
  bucket: string;
1813
1874
  /** Selector specifying which fields to include in a partial response. */
@@ -1821,13 +1882,24 @@ declare namespace gapi.client {
1821
1882
  /** OAuth 2.0 token for the current user. */
1822
1883
  oauth_token?: string;
1823
1884
  /** Apply a predefined set of access controls to this bucket. */
1824
- predefinedAcl?: string;
1885
+ predefinedAcl?:
1886
+ | 'authenticatedRead'
1887
+ | 'private'
1888
+ | 'projectPrivate'
1889
+ | 'publicRead'
1890
+ | 'publicReadWrite';
1825
1891
  /** Apply a predefined set of default object access controls to this bucket. */
1826
- predefinedDefaultObjectAcl?: string;
1892
+ predefinedDefaultObjectAcl?:
1893
+ | 'authenticatedRead'
1894
+ | 'bucketOwnerFullControl'
1895
+ | 'bucketOwnerRead'
1896
+ | 'private'
1897
+ | 'projectPrivate'
1898
+ | 'publicRead';
1827
1899
  /** Returns response with indentations and line breaks. */
1828
1900
  prettyPrint?: boolean;
1829
1901
  /** Set of properties to return. Defaults to full. */
1830
- projection?: string;
1902
+ projection?: 'full' | 'noAcl';
1831
1903
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1832
1904
  quotaUser?: string;
1833
1905
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -1844,7 +1916,7 @@ declare namespace gapi.client {
1844
1916
  /** Stop watching resources through this channel */
1845
1917
  stop(request: {
1846
1918
  /** Data format for the response. */
1847
- alt?: string;
1919
+ alt?: 'json' | 'media';
1848
1920
  /** Selector specifying which fields to include in a partial response. */
1849
1921
  fields?: string;
1850
1922
  /** 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. */
@@ -1865,7 +1937,7 @@ declare namespace gapi.client {
1865
1937
  stop(
1866
1938
  request: {
1867
1939
  /** Data format for the response. */
1868
- alt?: string;
1940
+ alt?: 'json' | 'media';
1869
1941
  /** Selector specifying which fields to include in a partial response. */
1870
1942
  fields?: string;
1871
1943
  /** 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. */
@@ -1888,7 +1960,7 @@ declare namespace gapi.client {
1888
1960
  /** Permanently deletes the default object ACL entry for the specified entity on the specified bucket. */
1889
1961
  delete(request?: {
1890
1962
  /** Data format for the response. */
1891
- alt?: string;
1963
+ alt?: 'json' | 'media';
1892
1964
  /** Name of a bucket. */
1893
1965
  bucket: string;
1894
1966
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1913,7 +1985,7 @@ declare namespace gapi.client {
1913
1985
  /** Returns the default object ACL entry for the specified entity on the specified bucket. */
1914
1986
  get(request?: {
1915
1987
  /** Data format for the response. */
1916
- alt?: string;
1988
+ alt?: 'json' | 'media';
1917
1989
  /** Name of a bucket. */
1918
1990
  bucket: string;
1919
1991
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -1938,7 +2010,7 @@ declare namespace gapi.client {
1938
2010
  /** Creates a new default object ACL entry on the specified bucket. */
1939
2011
  insert(request: {
1940
2012
  /** Data format for the response. */
1941
- alt?: string;
2013
+ alt?: 'json' | 'media';
1942
2014
  /** Name of a bucket. */
1943
2015
  bucket: string;
1944
2016
  /** Selector specifying which fields to include in a partial response. */
@@ -1963,7 +2035,7 @@ declare namespace gapi.client {
1963
2035
  insert(
1964
2036
  request: {
1965
2037
  /** Data format for the response. */
1966
- alt?: string;
2038
+ alt?: 'json' | 'media';
1967
2039
  /** Name of a bucket. */
1968
2040
  bucket: string;
1969
2041
  /** Selector specifying which fields to include in a partial response. */
@@ -1988,7 +2060,7 @@ declare namespace gapi.client {
1988
2060
  /** Retrieves default object ACL entries on the specified bucket. */
1989
2061
  list(request?: {
1990
2062
  /** Data format for the response. */
1991
- alt?: string;
2063
+ alt?: 'json' | 'media';
1992
2064
  /** Name of a bucket. */
1993
2065
  bucket: string;
1994
2066
  /** Selector specifying which fields to include in a partial response. */
@@ -2015,7 +2087,7 @@ declare namespace gapi.client {
2015
2087
  /** Patches a default object ACL entry on the specified bucket. */
2016
2088
  patch(request: {
2017
2089
  /** Data format for the response. */
2018
- alt?: string;
2090
+ alt?: 'json' | 'media';
2019
2091
  /** Name of a bucket. */
2020
2092
  bucket: string;
2021
2093
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2042,7 +2114,7 @@ declare namespace gapi.client {
2042
2114
  patch(
2043
2115
  request: {
2044
2116
  /** Data format for the response. */
2045
- alt?: string;
2117
+ alt?: 'json' | 'media';
2046
2118
  /** Name of a bucket. */
2047
2119
  bucket: string;
2048
2120
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2069,7 +2141,7 @@ declare namespace gapi.client {
2069
2141
  /** Updates a default object ACL entry on the specified bucket. */
2070
2142
  update(request: {
2071
2143
  /** Data format for the response. */
2072
- alt?: string;
2144
+ alt?: 'json' | 'media';
2073
2145
  /** Name of a bucket. */
2074
2146
  bucket: string;
2075
2147
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2096,7 +2168,7 @@ declare namespace gapi.client {
2096
2168
  update(
2097
2169
  request: {
2098
2170
  /** Data format for the response. */
2099
- alt?: string;
2171
+ alt?: 'json' | 'media';
2100
2172
  /** Name of a bucket. */
2101
2173
  bucket: string;
2102
2174
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2125,7 +2197,7 @@ declare namespace gapi.client {
2125
2197
  /** Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled. */
2126
2198
  delete(request?: {
2127
2199
  /** Data format for the response. */
2128
- alt?: string;
2200
+ alt?: 'json' | 'media';
2129
2201
  /** Name of the bucket in which the folder resides. */
2130
2202
  bucket: string;
2131
2203
  /** Selector specifying which fields to include in a partial response. */
@@ -2152,7 +2224,7 @@ declare namespace gapi.client {
2152
2224
  /** Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled. */
2153
2225
  deleteRecursive(request?: {
2154
2226
  /** Data format for the response. */
2155
- alt?: string;
2227
+ alt?: 'json' | 'media';
2156
2228
  /** Name of the bucket in which the folder resides. */
2157
2229
  bucket: string;
2158
2230
  /** Selector specifying which fields to include in a partial response. */
@@ -2179,7 +2251,7 @@ declare namespace gapi.client {
2179
2251
  /** Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled. */
2180
2252
  get(request?: {
2181
2253
  /** Data format for the response. */
2182
- alt?: string;
2254
+ alt?: 'json' | 'media';
2183
2255
  /** Name of the bucket in which the folder resides. */
2184
2256
  bucket: string;
2185
2257
  /** Selector specifying which fields to include in a partial response. */
@@ -2206,7 +2278,7 @@ declare namespace gapi.client {
2206
2278
  /** Creates a new folder. Only applicable to buckets with hierarchical namespace enabled. */
2207
2279
  insert(request: {
2208
2280
  /** Data format for the response. */
2209
- alt?: string;
2281
+ alt?: 'json' | 'media';
2210
2282
  /** Name of the bucket in which the folder resides. */
2211
2283
  bucket: string;
2212
2284
  /** Selector specifying which fields to include in a partial response. */
@@ -2231,7 +2303,7 @@ declare namespace gapi.client {
2231
2303
  insert(
2232
2304
  request: {
2233
2305
  /** Data format for the response. */
2234
- alt?: string;
2306
+ alt?: 'json' | 'media';
2235
2307
  /** Name of the bucket in which the folder resides. */
2236
2308
  bucket: string;
2237
2309
  /** Selector specifying which fields to include in a partial response. */
@@ -2256,7 +2328,7 @@ declare namespace gapi.client {
2256
2328
  /** Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled. */
2257
2329
  list(request?: {
2258
2330
  /** Data format for the response. */
2259
- alt?: string;
2331
+ alt?: 'json' | 'media';
2260
2332
  /** Name of the bucket in which to look for folders. */
2261
2333
  bucket: string;
2262
2334
  /** Returns results in a directory-like mode. The only supported value is '/'. If set, items will only contain folders that either exactly match the prefix, or are one level below the prefix. */
@@ -2289,7 +2361,7 @@ declare namespace gapi.client {
2289
2361
  /** Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled. */
2290
2362
  rename(request?: {
2291
2363
  /** Data format for the response. */
2292
- alt?: string;
2364
+ alt?: 'json' | 'media';
2293
2365
  /** Name of the bucket in which the folders are in. */
2294
2366
  bucket: string;
2295
2367
  /** Name of the destination folder. */
@@ -2322,7 +2394,7 @@ declare namespace gapi.client {
2322
2394
  /** Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission. */
2323
2395
  allowNonEmpty?: boolean;
2324
2396
  /** Data format for the response. */
2325
- alt?: string;
2397
+ alt?: 'json' | 'media';
2326
2398
  /** Name of the bucket containing the managed folder. */
2327
2399
  bucket: string;
2328
2400
  /** Selector specifying which fields to include in a partial response. */
@@ -2349,7 +2421,7 @@ declare namespace gapi.client {
2349
2421
  /** Returns metadata of the specified managed folder. */
2350
2422
  get(request?: {
2351
2423
  /** Data format for the response. */
2352
- alt?: string;
2424
+ alt?: 'json' | 'media';
2353
2425
  /** Name of the bucket containing the managed folder. */
2354
2426
  bucket: string;
2355
2427
  /** Selector specifying which fields to include in a partial response. */
@@ -2376,7 +2448,7 @@ declare namespace gapi.client {
2376
2448
  /** Returns an IAM policy for the specified managed folder. */
2377
2449
  getIamPolicy(request?: {
2378
2450
  /** Data format for the response. */
2379
- alt?: string;
2451
+ alt?: 'json' | 'media';
2380
2452
  /** Name of the bucket containing the managed folder. */
2381
2453
  bucket: string;
2382
2454
  /** Selector specifying which fields to include in a partial response. */
@@ -2403,7 +2475,7 @@ declare namespace gapi.client {
2403
2475
  /** Creates a new managed folder. */
2404
2476
  insert(request: {
2405
2477
  /** Data format for the response. */
2406
- alt?: string;
2478
+ alt?: 'json' | 'media';
2407
2479
  /** Name of the bucket containing the managed folder. */
2408
2480
  bucket: string;
2409
2481
  /** Selector specifying which fields to include in a partial response. */
@@ -2426,7 +2498,7 @@ declare namespace gapi.client {
2426
2498
  insert(
2427
2499
  request: {
2428
2500
  /** Data format for the response. */
2429
- alt?: string;
2501
+ alt?: 'json' | 'media';
2430
2502
  /** Name of the bucket containing the managed folder. */
2431
2503
  bucket: string;
2432
2504
  /** Selector specifying which fields to include in a partial response. */
@@ -2449,7 +2521,7 @@ declare namespace gapi.client {
2449
2521
  /** Lists managed folders in the given bucket. */
2450
2522
  list(request?: {
2451
2523
  /** Data format for the response. */
2452
- alt?: string;
2524
+ alt?: 'json' | 'media';
2453
2525
  /** Name of the bucket containing the managed folder. */
2454
2526
  bucket: string;
2455
2527
  /** Selector specifying which fields to include in a partial response. */
@@ -2476,7 +2548,7 @@ declare namespace gapi.client {
2476
2548
  /** Updates an IAM policy for the specified managed folder. */
2477
2549
  setIamPolicy(request: {
2478
2550
  /** Data format for the response. */
2479
- alt?: string;
2551
+ alt?: 'json' | 'media';
2480
2552
  /** Name of the bucket containing the managed folder. */
2481
2553
  bucket: string;
2482
2554
  /** Selector specifying which fields to include in a partial response. */
@@ -2503,7 +2575,7 @@ declare namespace gapi.client {
2503
2575
  setIamPolicy(
2504
2576
  request: {
2505
2577
  /** Data format for the response. */
2506
- alt?: string;
2578
+ alt?: 'json' | 'media';
2507
2579
  /** Name of the bucket containing the managed folder. */
2508
2580
  bucket: string;
2509
2581
  /** Selector specifying which fields to include in a partial response. */
@@ -2530,7 +2602,7 @@ declare namespace gapi.client {
2530
2602
  /** Tests a set of permissions on the given managed folder to see which, if any, are held by the caller. */
2531
2603
  testIamPermissions(request?: {
2532
2604
  /** Data format for the response. */
2533
- alt?: string;
2605
+ alt?: 'json' | 'media';
2534
2606
  /** Name of the bucket containing the managed folder. */
2535
2607
  bucket: string;
2536
2608
  /** Selector specifying which fields to include in a partial response. */
@@ -2559,7 +2631,7 @@ declare namespace gapi.client {
2559
2631
  /** Permanently deletes a notification subscription. */
2560
2632
  delete(request?: {
2561
2633
  /** Data format for the response. */
2562
- alt?: string;
2634
+ alt?: 'json' | 'media';
2563
2635
  /** The parent bucket of the notification. */
2564
2636
  bucket: string;
2565
2637
  /** Selector specifying which fields to include in a partial response. */
@@ -2584,7 +2656,7 @@ declare namespace gapi.client {
2584
2656
  /** View a notification configuration. */
2585
2657
  get(request?: {
2586
2658
  /** Data format for the response. */
2587
- alt?: string;
2659
+ alt?: 'json' | 'media';
2588
2660
  /** The parent bucket of the notification. */
2589
2661
  bucket: string;
2590
2662
  /** Selector specifying which fields to include in a partial response. */
@@ -2609,7 +2681,7 @@ declare namespace gapi.client {
2609
2681
  /** Creates a notification subscription for a given bucket. */
2610
2682
  insert(request: {
2611
2683
  /** Data format for the response. */
2612
- alt?: string;
2684
+ alt?: 'json' | 'media';
2613
2685
  /** The parent bucket of the notification. */
2614
2686
  bucket: string;
2615
2687
  /** Selector specifying which fields to include in a partial response. */
@@ -2634,7 +2706,7 @@ declare namespace gapi.client {
2634
2706
  insert(
2635
2707
  request: {
2636
2708
  /** Data format for the response. */
2637
- alt?: string;
2709
+ alt?: 'json' | 'media';
2638
2710
  /** The parent bucket of the notification. */
2639
2711
  bucket: string;
2640
2712
  /** Selector specifying which fields to include in a partial response. */
@@ -2659,7 +2731,7 @@ declare namespace gapi.client {
2659
2731
  /** Retrieves a list of notification subscriptions for a given bucket. */
2660
2732
  list(request?: {
2661
2733
  /** Data format for the response. */
2662
- alt?: string;
2734
+ alt?: 'json' | 'media';
2663
2735
  /** Name of a Google Cloud Storage bucket. */
2664
2736
  bucket: string;
2665
2737
  /** Selector specifying which fields to include in a partial response. */
@@ -2684,7 +2756,7 @@ declare namespace gapi.client {
2684
2756
  /** Permanently deletes the ACL entry for the specified entity on the specified object. */
2685
2757
  delete(request?: {
2686
2758
  /** Data format for the response. */
2687
- alt?: string;
2759
+ alt?: 'json' | 'media';
2688
2760
  /** Name of a bucket. */
2689
2761
  bucket: string;
2690
2762
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2713,7 +2785,7 @@ declare namespace gapi.client {
2713
2785
  /** Returns the ACL entry for the specified entity on the specified object. */
2714
2786
  get(request?: {
2715
2787
  /** Data format for the response. */
2716
- alt?: string;
2788
+ alt?: 'json' | 'media';
2717
2789
  /** Name of a bucket. */
2718
2790
  bucket: string;
2719
2791
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2742,7 +2814,7 @@ declare namespace gapi.client {
2742
2814
  /** Creates a new ACL entry on the specified object. */
2743
2815
  insert(request: {
2744
2816
  /** Data format for the response. */
2745
- alt?: string;
2817
+ alt?: 'json' | 'media';
2746
2818
  /** Name of a bucket. */
2747
2819
  bucket: string;
2748
2820
  /** Selector specifying which fields to include in a partial response. */
@@ -2771,7 +2843,7 @@ declare namespace gapi.client {
2771
2843
  insert(
2772
2844
  request: {
2773
2845
  /** Data format for the response. */
2774
- alt?: string;
2846
+ alt?: 'json' | 'media';
2775
2847
  /** Name of a bucket. */
2776
2848
  bucket: string;
2777
2849
  /** Selector specifying which fields to include in a partial response. */
@@ -2800,7 +2872,7 @@ declare namespace gapi.client {
2800
2872
  /** Retrieves ACL entries on the specified object. */
2801
2873
  list(request?: {
2802
2874
  /** Data format for the response. */
2803
- alt?: string;
2875
+ alt?: 'json' | 'media';
2804
2876
  /** Name of a bucket. */
2805
2877
  bucket: string;
2806
2878
  /** Selector specifying which fields to include in a partial response. */
@@ -2827,7 +2899,7 @@ declare namespace gapi.client {
2827
2899
  /** Patches an ACL entry on the specified object. */
2828
2900
  patch(request: {
2829
2901
  /** Data format for the response. */
2830
- alt?: string;
2902
+ alt?: 'json' | 'media';
2831
2903
  /** Name of a bucket. */
2832
2904
  bucket: string;
2833
2905
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2858,7 +2930,7 @@ declare namespace gapi.client {
2858
2930
  patch(
2859
2931
  request: {
2860
2932
  /** Data format for the response. */
2861
- alt?: string;
2933
+ alt?: 'json' | 'media';
2862
2934
  /** Name of a bucket. */
2863
2935
  bucket: string;
2864
2936
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2889,7 +2961,7 @@ declare namespace gapi.client {
2889
2961
  /** Updates an ACL entry on the specified object. */
2890
2962
  update(request: {
2891
2963
  /** Data format for the response. */
2892
- alt?: string;
2964
+ alt?: 'json' | 'media';
2893
2965
  /** Name of a bucket. */
2894
2966
  bucket: string;
2895
2967
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2920,7 +2992,7 @@ declare namespace gapi.client {
2920
2992
  update(
2921
2993
  request: {
2922
2994
  /** Data format for the response. */
2923
- alt?: string;
2995
+ alt?: 'json' | 'media';
2924
2996
  /** Name of a bucket. */
2925
2997
  bucket: string;
2926
2998
  /** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
@@ -2953,7 +3025,7 @@ declare namespace gapi.client {
2953
3025
  /** Initiates a long-running bulk restore operation on the specified bucket. */
2954
3026
  bulkRestore(request: {
2955
3027
  /** Data format for the response. */
2956
- alt?: string;
3028
+ alt?: 'json' | 'media';
2957
3029
  /** Name of the bucket in which the object resides. */
2958
3030
  bucket: string;
2959
3031
  /** Selector specifying which fields to include in a partial response. */
@@ -2976,7 +3048,7 @@ declare namespace gapi.client {
2976
3048
  bulkRestore(
2977
3049
  request: {
2978
3050
  /** Data format for the response. */
2979
- alt?: string;
3051
+ alt?: 'json' | 'media';
2980
3052
  /** Name of the bucket in which the object resides. */
2981
3053
  bucket: string;
2982
3054
  /** Selector specifying which fields to include in a partial response. */
@@ -2999,13 +3071,19 @@ declare namespace gapi.client {
2999
3071
  /** Concatenates a list of existing objects into a new object in the same bucket. */
3000
3072
  compose(request: {
3001
3073
  /** Data format for the response. */
3002
- alt?: string;
3074
+ alt?: 'json' | 'media';
3003
3075
  /** Name of the bucket containing the source objects. The destination object is stored in this bucket. */
3004
3076
  destinationBucket: string;
3005
3077
  /** Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3006
3078
  destinationObject: string;
3007
3079
  /** Apply a predefined set of access controls to the destination object. */
3008
- destinationPredefinedAcl?: string;
3080
+ destinationPredefinedAcl?:
3081
+ | 'authenticatedRead'
3082
+ | 'bucketOwnerFullControl'
3083
+ | 'bucketOwnerRead'
3084
+ | 'private'
3085
+ | 'projectPrivate'
3086
+ | 'publicRead';
3009
3087
  /** Specifies which groups of Object Contexts from the source object(s) should be dropped from the destination object. */
3010
3088
  dropContextGroups?: string | string[];
3011
3089
  /** Selector specifying which fields to include in a partial response. */
@@ -3036,13 +3114,19 @@ declare namespace gapi.client {
3036
3114
  compose(
3037
3115
  request: {
3038
3116
  /** Data format for the response. */
3039
- alt?: string;
3117
+ alt?: 'json' | 'media';
3040
3118
  /** Name of the bucket containing the source objects. The destination object is stored in this bucket. */
3041
3119
  destinationBucket: string;
3042
3120
  /** Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3043
3121
  destinationObject: string;
3044
3122
  /** Apply a predefined set of access controls to the destination object. */
3045
- destinationPredefinedAcl?: string;
3123
+ destinationPredefinedAcl?:
3124
+ | 'authenticatedRead'
3125
+ | 'bucketOwnerFullControl'
3126
+ | 'bucketOwnerRead'
3127
+ | 'private'
3128
+ | 'projectPrivate'
3129
+ | 'publicRead';
3046
3130
  /** Specifies which groups of Object Contexts from the source object(s) should be dropped from the destination object. */
3047
3131
  dropContextGroups?: string | string[];
3048
3132
  /** Selector specifying which fields to include in a partial response. */
@@ -3073,7 +3157,7 @@ declare namespace gapi.client {
3073
3157
  /** Copies a source object to a destination object. Optionally overrides metadata. */
3074
3158
  copy(request: {
3075
3159
  /** Data format for the response. */
3076
- alt?: string;
3160
+ alt?: 'json' | 'media';
3077
3161
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3078
3162
  destinationBucket: string;
3079
3163
  /** Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. */
@@ -3081,7 +3165,13 @@ declare namespace gapi.client {
3081
3165
  /** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. */
3082
3166
  destinationObject: string;
3083
3167
  /** Apply a predefined set of access controls to the destination object. */
3084
- destinationPredefinedAcl?: string;
3168
+ destinationPredefinedAcl?:
3169
+ | 'authenticatedRead'
3170
+ | 'bucketOwnerFullControl'
3171
+ | 'bucketOwnerRead'
3172
+ | 'private'
3173
+ | 'projectPrivate'
3174
+ | 'publicRead';
3085
3175
  /** Selector specifying which fields to include in a partial response. */
3086
3176
  fields?: string;
3087
3177
  /** Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object. */
@@ -3107,7 +3197,7 @@ declare namespace gapi.client {
3107
3197
  /** Returns response with indentations and line breaks. */
3108
3198
  prettyPrint?: boolean;
3109
3199
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3110
- projection?: string;
3200
+ projection?: 'full' | 'noAcl';
3111
3201
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3112
3202
  quotaUser?: string;
3113
3203
  /** Name of the bucket in which to find the source object. */
@@ -3128,7 +3218,7 @@ declare namespace gapi.client {
3128
3218
  copy(
3129
3219
  request: {
3130
3220
  /** Data format for the response. */
3131
- alt?: string;
3221
+ alt?: 'json' | 'media';
3132
3222
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3133
3223
  destinationBucket: string;
3134
3224
  /** Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. */
@@ -3136,7 +3226,13 @@ declare namespace gapi.client {
3136
3226
  /** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. */
3137
3227
  destinationObject: string;
3138
3228
  /** Apply a predefined set of access controls to the destination object. */
3139
- destinationPredefinedAcl?: string;
3229
+ destinationPredefinedAcl?:
3230
+ | 'authenticatedRead'
3231
+ | 'bucketOwnerFullControl'
3232
+ | 'bucketOwnerRead'
3233
+ | 'private'
3234
+ | 'projectPrivate'
3235
+ | 'publicRead';
3140
3236
  /** Selector specifying which fields to include in a partial response. */
3141
3237
  fields?: string;
3142
3238
  /** Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object. */
@@ -3162,7 +3258,7 @@ declare namespace gapi.client {
3162
3258
  /** Returns response with indentations and line breaks. */
3163
3259
  prettyPrint?: boolean;
3164
3260
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3165
- projection?: string;
3261
+ projection?: 'full' | 'noAcl';
3166
3262
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3167
3263
  quotaUser?: string;
3168
3264
  /** Name of the bucket in which to find the source object. */
@@ -3183,7 +3279,7 @@ declare namespace gapi.client {
3183
3279
  /** Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used. */
3184
3280
  delete(request?: {
3185
3281
  /** Data format for the response. */
3186
- alt?: string;
3282
+ alt?: 'json' | 'media';
3187
3283
  /** Name of the bucket in which the object resides. */
3188
3284
  bucket: string;
3189
3285
  /** Selector specifying which fields to include in a partial response. */
@@ -3218,7 +3314,7 @@ declare namespace gapi.client {
3218
3314
  /** Retrieves an object or its metadata. */
3219
3315
  get(request?: {
3220
3316
  /** Data format for the response. */
3221
- alt?: string;
3317
+ alt?: 'json' | 'media';
3222
3318
  /** Name of the bucket in which the object resides. */
3223
3319
  bucket: string;
3224
3320
  /** Selector specifying which fields to include in a partial response. */
@@ -3242,7 +3338,7 @@ declare namespace gapi.client {
3242
3338
  /** Returns response with indentations and line breaks. */
3243
3339
  prettyPrint?: boolean;
3244
3340
  /** Set of properties to return. Defaults to noAcl. */
3245
- projection?: string;
3341
+ projection?: 'full' | 'noAcl';
3246
3342
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3247
3343
  quotaUser?: string;
3248
3344
  /** Restore token used to differentiate soft-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets and if softDeleted is set to true. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation. */
@@ -3259,7 +3355,7 @@ declare namespace gapi.client {
3259
3355
  /** Returns an IAM policy for the specified object. */
3260
3356
  getIamPolicy(request?: {
3261
3357
  /** Data format for the response. */
3262
- alt?: string;
3358
+ alt?: 'json' | 'media';
3263
3359
  /** Name of the bucket in which the object resides. */
3264
3360
  bucket: string;
3265
3361
  /** Selector specifying which fields to include in a partial response. */
@@ -3286,7 +3382,7 @@ declare namespace gapi.client {
3286
3382
  /** Stores a new object and metadata. */
3287
3383
  insert(request: {
3288
3384
  /** Data format for the response. */
3289
- alt?: string;
3385
+ alt?: 'json' | 'media';
3290
3386
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
3291
3387
  bucket: string;
3292
3388
  /** If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded. */
@@ -3310,11 +3406,17 @@ declare namespace gapi.client {
3310
3406
  /** OAuth 2.0 token for the current user. */
3311
3407
  oauth_token?: string;
3312
3408
  /** Apply a predefined set of access controls to this object. */
3313
- predefinedAcl?: string;
3409
+ predefinedAcl?:
3410
+ | 'authenticatedRead'
3411
+ | 'bucketOwnerFullControl'
3412
+ | 'bucketOwnerRead'
3413
+ | 'private'
3414
+ | 'projectPrivate'
3415
+ | 'publicRead';
3314
3416
  /** Returns response with indentations and line breaks. */
3315
3417
  prettyPrint?: boolean;
3316
3418
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3317
- projection?: string;
3419
+ projection?: 'full' | 'noAcl';
3318
3420
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3319
3421
  quotaUser?: string;
3320
3422
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3329,7 +3431,7 @@ declare namespace gapi.client {
3329
3431
  insert(
3330
3432
  request: {
3331
3433
  /** Data format for the response. */
3332
- alt?: string;
3434
+ alt?: 'json' | 'media';
3333
3435
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
3334
3436
  bucket: string;
3335
3437
  /** If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded. */
@@ -3353,11 +3455,17 @@ declare namespace gapi.client {
3353
3455
  /** OAuth 2.0 token for the current user. */
3354
3456
  oauth_token?: string;
3355
3457
  /** Apply a predefined set of access controls to this object. */
3356
- predefinedAcl?: string;
3458
+ predefinedAcl?:
3459
+ | 'authenticatedRead'
3460
+ | 'bucketOwnerFullControl'
3461
+ | 'bucketOwnerRead'
3462
+ | 'private'
3463
+ | 'projectPrivate'
3464
+ | 'publicRead';
3357
3465
  /** Returns response with indentations and line breaks. */
3358
3466
  prettyPrint?: boolean;
3359
3467
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3360
- projection?: string;
3468
+ projection?: 'full' | 'noAcl';
3361
3469
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3362
3470
  quotaUser?: string;
3363
3471
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3372,7 +3480,7 @@ declare namespace gapi.client {
3372
3480
  /** Retrieves a list of objects matching the criteria. */
3373
3481
  list(request?: {
3374
3482
  /** Data format for the response. */
3375
- alt?: string;
3483
+ alt?: 'json' | 'media';
3376
3484
  /** Name of the bucket in which to look for objects. */
3377
3485
  bucket: string;
3378
3486
  /** Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. */
@@ -3402,7 +3510,7 @@ declare namespace gapi.client {
3402
3510
  /** Returns response with indentations and line breaks. */
3403
3511
  prettyPrint?: boolean;
3404
3512
  /** Set of properties to return. Defaults to noAcl. */
3405
- projection?: string;
3513
+ projection?: 'full' | 'noAcl';
3406
3514
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3407
3515
  quotaUser?: string;
3408
3516
  /** If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete). */
@@ -3421,7 +3529,7 @@ declare namespace gapi.client {
3421
3529
  /** Moves the source object to the destination object in the same bucket. */
3422
3530
  move(request?: {
3423
3531
  /** Data format for the response. */
3424
- alt?: string;
3532
+ alt?: 'json' | 'media';
3425
3533
  /** Name of the bucket in which the object resides. */
3426
3534
  bucket: string;
3427
3535
  /** Name of the destination object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
@@ -3451,7 +3559,7 @@ declare namespace gapi.client {
3451
3559
  /** Returns response with indentations and line breaks. */
3452
3560
  prettyPrint?: boolean;
3453
3561
  /** Set of properties to return. Defaults to noAcl. */
3454
- projection?: string;
3562
+ projection?: 'full' | 'noAcl';
3455
3563
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3456
3564
  quotaUser?: string;
3457
3565
  /** Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
@@ -3466,7 +3574,7 @@ declare namespace gapi.client {
3466
3574
  /** Patches an object's metadata. */
3467
3575
  patch(request: {
3468
3576
  /** Data format for the response. */
3469
- alt?: string;
3577
+ alt?: 'json' | 'media';
3470
3578
  /** Name of the bucket in which the object resides. */
3471
3579
  bucket: string;
3472
3580
  /** Selector specifying which fields to include in a partial response. */
@@ -3490,11 +3598,17 @@ declare namespace gapi.client {
3490
3598
  /** Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked. */
3491
3599
  overrideUnlockedRetention?: boolean;
3492
3600
  /** Apply a predefined set of access controls to this object. */
3493
- predefinedAcl?: string;
3601
+ predefinedAcl?:
3602
+ | 'authenticatedRead'
3603
+ | 'bucketOwnerFullControl'
3604
+ | 'bucketOwnerRead'
3605
+ | 'private'
3606
+ | 'projectPrivate'
3607
+ | 'publicRead';
3494
3608
  /** Returns response with indentations and line breaks. */
3495
3609
  prettyPrint?: boolean;
3496
3610
  /** Set of properties to return. Defaults to full. */
3497
- projection?: string;
3611
+ projection?: 'full' | 'noAcl';
3498
3612
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3499
3613
  quotaUser?: string;
3500
3614
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3509,7 +3623,7 @@ declare namespace gapi.client {
3509
3623
  patch(
3510
3624
  request: {
3511
3625
  /** Data format for the response. */
3512
- alt?: string;
3626
+ alt?: 'json' | 'media';
3513
3627
  /** Name of the bucket in which the object resides. */
3514
3628
  bucket: string;
3515
3629
  /** Selector specifying which fields to include in a partial response. */
@@ -3533,11 +3647,17 @@ declare namespace gapi.client {
3533
3647
  /** Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked. */
3534
3648
  overrideUnlockedRetention?: boolean;
3535
3649
  /** Apply a predefined set of access controls to this object. */
3536
- predefinedAcl?: string;
3650
+ predefinedAcl?:
3651
+ | 'authenticatedRead'
3652
+ | 'bucketOwnerFullControl'
3653
+ | 'bucketOwnerRead'
3654
+ | 'private'
3655
+ | 'projectPrivate'
3656
+ | 'publicRead';
3537
3657
  /** Returns response with indentations and line breaks. */
3538
3658
  prettyPrint?: boolean;
3539
3659
  /** Set of properties to return. Defaults to full. */
3540
- projection?: string;
3660
+ projection?: 'full' | 'noAcl';
3541
3661
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3542
3662
  quotaUser?: string;
3543
3663
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3552,7 +3672,7 @@ declare namespace gapi.client {
3552
3672
  /** Restores a soft-deleted object. */
3553
3673
  restore(request?: {
3554
3674
  /** Data format for the response. */
3555
- alt?: string;
3675
+ alt?: 'json' | 'media';
3556
3676
  /** Name of the bucket in which the object resides. */
3557
3677
  bucket: string;
3558
3678
  /** If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false. */
@@ -3578,7 +3698,7 @@ declare namespace gapi.client {
3578
3698
  /** Returns response with indentations and line breaks. */
3579
3699
  prettyPrint?: boolean;
3580
3700
  /** Set of properties to return. Defaults to full. */
3581
- projection?: string;
3701
+ projection?: 'full' | 'noAcl';
3582
3702
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3583
3703
  quotaUser?: string;
3584
3704
  /** Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation. */
@@ -3593,7 +3713,7 @@ declare namespace gapi.client {
3593
3713
  /** Rewrites a source object to a destination object. Optionally overrides metadata. */
3594
3714
  rewrite(request: {
3595
3715
  /** Data format for the response. */
3596
- alt?: string;
3716
+ alt?: 'json' | 'media';
3597
3717
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
3598
3718
  destinationBucket: string;
3599
3719
  /** Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. */
@@ -3601,7 +3721,13 @@ declare namespace gapi.client {
3601
3721
  /** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3602
3722
  destinationObject: string;
3603
3723
  /** Apply a predefined set of access controls to the destination object. */
3604
- destinationPredefinedAcl?: string;
3724
+ destinationPredefinedAcl?:
3725
+ | 'authenticatedRead'
3726
+ | 'bucketOwnerFullControl'
3727
+ | 'bucketOwnerRead'
3728
+ | 'private'
3729
+ | 'projectPrivate'
3730
+ | 'publicRead';
3605
3731
  /** Specifies which groups of Object Contexts from the source object should be dropped from the destination object. */
3606
3732
  dropContextGroups?: string | string[];
3607
3733
  /** Selector specifying which fields to include in a partial response. */
@@ -3631,7 +3757,7 @@ declare namespace gapi.client {
3631
3757
  /** Returns response with indentations and line breaks. */
3632
3758
  prettyPrint?: boolean;
3633
3759
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3634
- projection?: string;
3760
+ projection?: 'full' | 'noAcl';
3635
3761
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3636
3762
  quotaUser?: string;
3637
3763
  /** Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request. */
@@ -3654,7 +3780,7 @@ declare namespace gapi.client {
3654
3780
  rewrite(
3655
3781
  request: {
3656
3782
  /** Data format for the response. */
3657
- alt?: string;
3783
+ alt?: 'json' | 'media';
3658
3784
  /** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
3659
3785
  destinationBucket: string;
3660
3786
  /** Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. */
@@ -3662,7 +3788,13 @@ declare namespace gapi.client {
3662
3788
  /** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). */
3663
3789
  destinationObject: string;
3664
3790
  /** Apply a predefined set of access controls to the destination object. */
3665
- destinationPredefinedAcl?: string;
3791
+ destinationPredefinedAcl?:
3792
+ | 'authenticatedRead'
3793
+ | 'bucketOwnerFullControl'
3794
+ | 'bucketOwnerRead'
3795
+ | 'private'
3796
+ | 'projectPrivate'
3797
+ | 'publicRead';
3666
3798
  /** Specifies which groups of Object Contexts from the source object should be dropped from the destination object. */
3667
3799
  dropContextGroups?: string | string[];
3668
3800
  /** Selector specifying which fields to include in a partial response. */
@@ -3692,7 +3824,7 @@ declare namespace gapi.client {
3692
3824
  /** Returns response with indentations and line breaks. */
3693
3825
  prettyPrint?: boolean;
3694
3826
  /** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
3695
- projection?: string;
3827
+ projection?: 'full' | 'noAcl';
3696
3828
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3697
3829
  quotaUser?: string;
3698
3830
  /** Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request. */
@@ -3715,7 +3847,7 @@ declare namespace gapi.client {
3715
3847
  /** Updates an IAM policy for the specified object. */
3716
3848
  setIamPolicy(request: {
3717
3849
  /** Data format for the response. */
3718
- alt?: string;
3850
+ alt?: 'json' | 'media';
3719
3851
  /** Name of the bucket in which the object resides. */
3720
3852
  bucket: string;
3721
3853
  /** Selector specifying which fields to include in a partial response. */
@@ -3744,7 +3876,7 @@ declare namespace gapi.client {
3744
3876
  setIamPolicy(
3745
3877
  request: {
3746
3878
  /** Data format for the response. */
3747
- alt?: string;
3879
+ alt?: 'json' | 'media';
3748
3880
  /** Name of the bucket in which the object resides. */
3749
3881
  bucket: string;
3750
3882
  /** Selector specifying which fields to include in a partial response. */
@@ -3773,7 +3905,7 @@ declare namespace gapi.client {
3773
3905
  /** Tests a set of permissions on the given object to see which, if any, are held by the caller. */
3774
3906
  testIamPermissions(request?: {
3775
3907
  /** Data format for the response. */
3776
- alt?: string;
3908
+ alt?: 'json' | 'media';
3777
3909
  /** Name of the bucket in which the object resides. */
3778
3910
  bucket: string;
3779
3911
  /** Selector specifying which fields to include in a partial response. */
@@ -3802,7 +3934,7 @@ declare namespace gapi.client {
3802
3934
  /** Updates an object's metadata. */
3803
3935
  update(request: {
3804
3936
  /** Data format for the response. */
3805
- alt?: string;
3937
+ alt?: 'json' | 'media';
3806
3938
  /** Name of the bucket in which the object resides. */
3807
3939
  bucket: string;
3808
3940
  /** Selector specifying which fields to include in a partial response. */
@@ -3826,11 +3958,17 @@ declare namespace gapi.client {
3826
3958
  /** Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked. */
3827
3959
  overrideUnlockedRetention?: boolean;
3828
3960
  /** Apply a predefined set of access controls to this object. */
3829
- predefinedAcl?: string;
3961
+ predefinedAcl?:
3962
+ | 'authenticatedRead'
3963
+ | 'bucketOwnerFullControl'
3964
+ | 'bucketOwnerRead'
3965
+ | 'private'
3966
+ | 'projectPrivate'
3967
+ | 'publicRead';
3830
3968
  /** Returns response with indentations and line breaks. */
3831
3969
  prettyPrint?: boolean;
3832
3970
  /** Set of properties to return. Defaults to full. */
3833
- projection?: string;
3971
+ projection?: 'full' | 'noAcl';
3834
3972
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3835
3973
  quotaUser?: string;
3836
3974
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3845,7 +3983,7 @@ declare namespace gapi.client {
3845
3983
  update(
3846
3984
  request: {
3847
3985
  /** Data format for the response. */
3848
- alt?: string;
3986
+ alt?: 'json' | 'media';
3849
3987
  /** Name of the bucket in which the object resides. */
3850
3988
  bucket: string;
3851
3989
  /** Selector specifying which fields to include in a partial response. */
@@ -3869,11 +4007,17 @@ declare namespace gapi.client {
3869
4007
  /** Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked. */
3870
4008
  overrideUnlockedRetention?: boolean;
3871
4009
  /** Apply a predefined set of access controls to this object. */
3872
- predefinedAcl?: string;
4010
+ predefinedAcl?:
4011
+ | 'authenticatedRead'
4012
+ | 'bucketOwnerFullControl'
4013
+ | 'bucketOwnerRead'
4014
+ | 'private'
4015
+ | 'projectPrivate'
4016
+ | 'publicRead';
3873
4017
  /** Returns response with indentations and line breaks. */
3874
4018
  prettyPrint?: boolean;
3875
4019
  /** Set of properties to return. Defaults to full. */
3876
- projection?: string;
4020
+ projection?: 'full' | 'noAcl';
3877
4021
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3878
4022
  quotaUser?: string;
3879
4023
  /** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
@@ -3888,7 +4032,7 @@ declare namespace gapi.client {
3888
4032
  /** Watch for changes on all objects in a bucket. */
3889
4033
  watchAll(request: {
3890
4034
  /** Data format for the response. */
3891
- alt?: string;
4035
+ alt?: 'json' | 'media';
3892
4036
  /** Name of the bucket in which to look for objects. */
3893
4037
  bucket: string;
3894
4038
  /** Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. */
@@ -3912,7 +4056,7 @@ declare namespace gapi.client {
3912
4056
  /** Returns response with indentations and line breaks. */
3913
4057
  prettyPrint?: boolean;
3914
4058
  /** Set of properties to return. Defaults to noAcl. */
3915
- projection?: string;
4059
+ projection?: 'full' | 'noAcl';
3916
4060
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3917
4061
  quotaUser?: string;
3918
4062
  /** Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive). */
@@ -3931,7 +4075,7 @@ declare namespace gapi.client {
3931
4075
  watchAll(
3932
4076
  request: {
3933
4077
  /** Data format for the response. */
3934
- alt?: string;
4078
+ alt?: 'json' | 'media';
3935
4079
  /** Name of the bucket in which to look for objects. */
3936
4080
  bucket: string;
3937
4081
  /** Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. */
@@ -3955,7 +4099,7 @@ declare namespace gapi.client {
3955
4099
  /** Returns response with indentations and line breaks. */
3956
4100
  prettyPrint?: boolean;
3957
4101
  /** Set of properties to return. Defaults to noAcl. */
3958
- projection?: string;
4102
+ projection?: 'full' | 'noAcl';
3959
4103
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
3960
4104
  quotaUser?: string;
3961
4105
  /** Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive). */
@@ -3976,7 +4120,7 @@ declare namespace gapi.client {
3976
4120
  /** Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed. */
3977
4121
  advanceRelocateBucket(request: {
3978
4122
  /** Data format for the response. */
3979
- alt?: string;
4123
+ alt?: 'json' | 'media';
3980
4124
  /** Name of the bucket to advance the relocate for. */
3981
4125
  bucket: string;
3982
4126
  /** Selector specifying which fields to include in a partial response. */
@@ -4001,7 +4145,7 @@ declare namespace gapi.client {
4001
4145
  advanceRelocateBucket(
4002
4146
  request: {
4003
4147
  /** Data format for the response. */
4004
- alt?: string;
4148
+ alt?: 'json' | 'media';
4005
4149
  /** Name of the bucket to advance the relocate for. */
4006
4150
  bucket: string;
4007
4151
  /** Selector specifying which fields to include in a partial response. */
@@ -4026,7 +4170,7 @@ declare namespace gapi.client {
4026
4170
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. */
4027
4171
  cancel(request?: {
4028
4172
  /** Data format for the response. */
4029
- alt?: string;
4173
+ alt?: 'json' | 'media';
4030
4174
  /** The parent bucket of the operation resource. */
4031
4175
  bucket: string;
4032
4176
  /** Selector specifying which fields to include in a partial response. */
@@ -4049,7 +4193,7 @@ declare namespace gapi.client {
4049
4193
  /** Gets the latest state of a long-running operation. */
4050
4194
  get(request?: {
4051
4195
  /** Data format for the response. */
4052
- alt?: string;
4196
+ alt?: 'json' | 'media';
4053
4197
  /** The parent bucket of the operation resource. */
4054
4198
  bucket: string;
4055
4199
  /** Selector specifying which fields to include in a partial response. */
@@ -4072,7 +4216,7 @@ declare namespace gapi.client {
4072
4216
  /** Lists operations that match the specified filter in the request. */
4073
4217
  list(request?: {
4074
4218
  /** Data format for the response. */
4075
- alt?: string;
4219
+ alt?: 'json' | 'media';
4076
4220
  /** Name of the bucket in which to look for operations. */
4077
4221
  bucket: string;
4078
4222
  /** Selector specifying which fields to include in a partial response. */
@@ -4101,7 +4245,7 @@ declare namespace gapi.client {
4101
4245
  /** Creates a new HMAC key for the specified service account. */
4102
4246
  create(request?: {
4103
4247
  /** Data format for the response. */
4104
- alt?: string;
4248
+ alt?: 'json' | 'media';
4105
4249
  /** Selector specifying which fields to include in a partial response. */
4106
4250
  fields?: string;
4107
4251
  /** 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. */
@@ -4128,7 +4272,7 @@ declare namespace gapi.client {
4128
4272
  /** Name of the HMAC key to be deleted. */
4129
4273
  accessId: string;
4130
4274
  /** Data format for the response. */
4131
- alt?: string;
4275
+ alt?: 'json' | 'media';
4132
4276
  /** Selector specifying which fields to include in a partial response. */
4133
4277
  fields?: string;
4134
4278
  /** 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. */
@@ -4153,7 +4297,7 @@ declare namespace gapi.client {
4153
4297
  /** Name of the HMAC key. */
4154
4298
  accessId: string;
4155
4299
  /** Data format for the response. */
4156
- alt?: string;
4300
+ alt?: 'json' | 'media';
4157
4301
  /** Selector specifying which fields to include in a partial response. */
4158
4302
  fields?: string;
4159
4303
  /** 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. */
@@ -4176,7 +4320,7 @@ declare namespace gapi.client {
4176
4320
  /** Retrieves a list of HMAC keys matching the criteria. */
4177
4321
  list(request?: {
4178
4322
  /** Data format for the response. */
4179
- alt?: string;
4323
+ alt?: 'json' | 'media';
4180
4324
  /** Selector specifying which fields to include in a partial response. */
4181
4325
  fields?: string;
4182
4326
  /** 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. */
@@ -4209,7 +4353,7 @@ declare namespace gapi.client {
4209
4353
  /** Name of the HMAC key being updated. */
4210
4354
  accessId: string;
4211
4355
  /** Data format for the response. */
4212
- alt?: string;
4356
+ alt?: 'json' | 'media';
4213
4357
  /** Selector specifying which fields to include in a partial response. */
4214
4358
  fields?: string;
4215
4359
  /** 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. */
@@ -4236,7 +4380,7 @@ declare namespace gapi.client {
4236
4380
  /** Name of the HMAC key being updated. */
4237
4381
  accessId: string;
4238
4382
  /** Data format for the response. */
4239
- alt?: string;
4383
+ alt?: 'json' | 'media';
4240
4384
  /** Selector specifying which fields to include in a partial response. */
4241
4385
  fields?: string;
4242
4386
  /** 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. */
@@ -4263,7 +4407,7 @@ declare namespace gapi.client {
4263
4407
  /** Get the email address of this project's Google Cloud Storage service account. */
4264
4408
  get(request?: {
4265
4409
  /** Data format for the response. */
4266
- alt?: string;
4410
+ alt?: 'json' | 'media';
4267
4411
  /** Selector specifying which fields to include in a partial response. */
4268
4412
  fields?: string;
4269
4413
  /** 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. */