@googleapis/storage 22.0.0 → 22.1.1

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/build/v1.d.ts CHANGED
@@ -67,6 +67,7 @@ export declare namespace storage_v1 {
67
67
  objects: Resource$Objects;
68
68
  operations: Resource$Operations;
69
69
  projects: Resource$Projects;
70
+ rapidCaches: Resource$Rapidcaches;
70
71
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
71
72
  }
72
73
  /**
@@ -907,6 +908,10 @@ export declare namespace storage_v1 {
907
908
  * The name of the managed folder. Required if not specified by URL parameter.
908
909
  */
909
910
  name?: string | null;
911
+ /**
912
+ * The rapid cache configuration for the managed folder.
913
+ */
914
+ rapidCacheConfig?: Schema$RapidCacheConfig;
910
915
  /**
911
916
  * The link to this managed folder.
912
917
  */
@@ -1312,6 +1317,108 @@ export declare namespace storage_v1 {
1312
1317
  */
1313
1318
  version?: number | null;
1314
1319
  }
1320
+ /**
1321
+ * A Rapid Cache instance.
1322
+ */
1323
+ export interface Schema$RapidCache {
1324
+ /**
1325
+ * The cache-level entry admission policy.
1326
+ */
1327
+ admissionPolicy?: string | null;
1328
+ /**
1329
+ * The name of the bucket containing this cache instance.
1330
+ */
1331
+ bucket?: string | null;
1332
+ /**
1333
+ * The type of Rapid Cache this represents. Valid values include: "rapid-cache" and "rapid-cache-ultra".
1334
+ */
1335
+ cacheType?: string | null;
1336
+ /**
1337
+ * The creation time of the cache instance in RFC 3339 format.
1338
+ */
1339
+ createTime?: string | null;
1340
+ /**
1341
+ * The ID of the resource, including the project number, bucket name and rapid cache ID.
1342
+ */
1343
+ id?: string | null;
1344
+ /**
1345
+ * Specifies whether objects are ingested into the cache upon write.
1346
+ */
1347
+ ingestOnWrite?: boolean | null;
1348
+ /**
1349
+ * The kind of item this is. For Rapid Cache, this is always storage#rapidCache.
1350
+ */
1351
+ kind?: string | null;
1352
+ /**
1353
+ * True if the cache instance has an active Update long-running operation.
1354
+ */
1355
+ pendingUpdate?: boolean | null;
1356
+ /**
1357
+ * The ID of the Rapid cache instance.
1358
+ */
1359
+ rapidCacheId?: string | null;
1360
+ /**
1361
+ * The link to this cache instance.
1362
+ */
1363
+ selfLink?: string | null;
1364
+ /**
1365
+ * The current state of the cache instance.
1366
+ */
1367
+ state?: string | null;
1368
+ /**
1369
+ * The TTL of all cache entries in whole seconds. e.g., "7200s".
1370
+ */
1371
+ ttl?: string | null;
1372
+ /**
1373
+ * The modification time of the cache instance metadata in RFC 3339 format.
1374
+ */
1375
+ updateTime?: string | null;
1376
+ /**
1377
+ * The zone in which the cache instance is running. For example, us-central1-a.
1378
+ */
1379
+ zone?: string | null;
1380
+ }
1381
+ /**
1382
+ * Configuration options for the rapid cache of a managed folder.
1383
+ */
1384
+ export interface Schema$RapidCacheConfig {
1385
+ /**
1386
+ * A map of rapid cache IDs to the corresponding `RapidCachePolicy` configurations for a managed folder.
1387
+ */
1388
+ policies?: {
1389
+ [key: string]: Schema$RapidCachePolicy;
1390
+ } | null;
1391
+ }
1392
+ /**
1393
+ * The rapid cache policy configuration for a managed folder.
1394
+ */
1395
+ export interface Schema$RapidCachePolicy {
1396
+ /**
1397
+ * The ingest-on-write policy for objects in the managed folder. When set to `enabled`, objects are automatically ingested into the cache when they are written to the managed folder.
1398
+ */
1399
+ ingestOnWrite?: string | null;
1400
+ /**
1401
+ * The unique identifier of the rapid cache.
1402
+ */
1403
+ rapidCacheId?: string | null;
1404
+ }
1405
+ /**
1406
+ * A list of Rapid Caches.
1407
+ */
1408
+ export interface Schema$RapidCaches {
1409
+ /**
1410
+ * The list of items.
1411
+ */
1412
+ items?: Schema$RapidCache[];
1413
+ /**
1414
+ * The kind of item this is. For lists of Rapid Caches, this is always storage#rapidCaches.
1415
+ */
1416
+ kind?: string | null;
1417
+ /**
1418
+ * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
1419
+ */
1420
+ nextPageToken?: string | null;
1421
+ }
1315
1422
  /**
1316
1423
  * A Relocate Bucket request.
1317
1424
  */
@@ -5650,6 +5757,7 @@ export declare namespace storage_v1 {
5650
5757
  * // "kind": "my_kind",
5651
5758
  * // "metageneration": "my_metageneration",
5652
5759
  * // "name": "my_name",
5760
+ * // "rapidCacheConfig": {},
5653
5761
  * // "selfLink": "my_selfLink",
5654
5762
  * // "updateTime": "my_updateTime"
5655
5763
  * // }
@@ -5797,6 +5905,7 @@ export declare namespace storage_v1 {
5797
5905
  * // "kind": "my_kind",
5798
5906
  * // "metageneration": "my_metageneration",
5799
5907
  * // "name": "my_name",
5908
+ * // "rapidCacheConfig": {},
5800
5909
  * // "selfLink": "my_selfLink",
5801
5910
  * // "updateTime": "my_updateTime"
5802
5911
  * // }
@@ -5812,6 +5921,7 @@ export declare namespace storage_v1 {
5812
5921
  * // "kind": "my_kind",
5813
5922
  * // "metageneration": "my_metageneration",
5814
5923
  * // "name": "my_name",
5924
+ * // "rapidCacheConfig": {},
5815
5925
  * // "selfLink": "my_selfLink",
5816
5926
  * // "updateTime": "my_updateTime"
5817
5927
  * // }
@@ -6065,6 +6175,100 @@ export declare namespace storage_v1 {
6065
6175
  testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
6066
6176
  testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
6067
6177
  testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
6178
+ /**
6179
+ * Updates a managed folder using patch semantics.
6180
+ * @example
6181
+ * ```js
6182
+ * // Before running the sample:
6183
+ * // - Enable the API at:
6184
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
6185
+ * // - Login into gcloud by running:
6186
+ * // ```sh
6187
+ * // $ gcloud auth application-default login
6188
+ * // ```
6189
+ * // - Install the npm module by running:
6190
+ * // ```sh
6191
+ * // $ npm install googleapis
6192
+ * // ```
6193
+ *
6194
+ * const {google} = require('googleapis');
6195
+ * const storage = google.storage('v1');
6196
+ *
6197
+ * async function main() {
6198
+ * const auth = new google.auth.GoogleAuth({
6199
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6200
+ * scopes: [
6201
+ * 'https://www.googleapis.com/auth/cloud-platform',
6202
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
6203
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
6204
+ * ],
6205
+ * });
6206
+ *
6207
+ * // Acquire an auth client, and bind it to all future calls
6208
+ * const authClient = await auth.getClient();
6209
+ * google.options({auth: authClient});
6210
+ *
6211
+ * // Do the magic
6212
+ * const res = await storage.managedFolders.update({
6213
+ * // The name of the bucket containing the managed folder.
6214
+ * bucket: 'placeholder-value',
6215
+ * // Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
6216
+ * ifMetagenerationMatch: 'placeholder-value',
6217
+ * // Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
6218
+ * ifMetagenerationNotMatch: 'placeholder-value',
6219
+ * // The name of the managed folder.
6220
+ * managedFolder: 'placeholder-value',
6221
+ *
6222
+ * // Request body metadata
6223
+ * requestBody: {
6224
+ * // request body parameters
6225
+ * // {
6226
+ * // "bucket": "my_bucket",
6227
+ * // "createTime": "my_createTime",
6228
+ * // "id": "my_id",
6229
+ * // "kind": "my_kind",
6230
+ * // "metageneration": "my_metageneration",
6231
+ * // "name": "my_name",
6232
+ * // "rapidCacheConfig": {},
6233
+ * // "selfLink": "my_selfLink",
6234
+ * // "updateTime": "my_updateTime"
6235
+ * // }
6236
+ * },
6237
+ * });
6238
+ * console.log(res.data);
6239
+ *
6240
+ * // Example response
6241
+ * // {
6242
+ * // "bucket": "my_bucket",
6243
+ * // "createTime": "my_createTime",
6244
+ * // "id": "my_id",
6245
+ * // "kind": "my_kind",
6246
+ * // "metageneration": "my_metageneration",
6247
+ * // "name": "my_name",
6248
+ * // "rapidCacheConfig": {},
6249
+ * // "selfLink": "my_selfLink",
6250
+ * // "updateTime": "my_updateTime"
6251
+ * // }
6252
+ * }
6253
+ *
6254
+ * main().catch(e => {
6255
+ * console.error(e);
6256
+ * throw e;
6257
+ * });
6258
+ *
6259
+ * ```
6260
+ *
6261
+ * @param params - Parameters for request
6262
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6263
+ * @param callback - Optional callback that handles the response.
6264
+ * @returns A promise if used with async/await, or void if used with a callback.
6265
+ */
6266
+ update(params: Params$Resource$Managedfolders$Update, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6267
+ update(params?: Params$Resource$Managedfolders$Update, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ManagedFolder>>;
6268
+ update(params: Params$Resource$Managedfolders$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6269
+ update(params: Params$Resource$Managedfolders$Update, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
6270
+ update(params: Params$Resource$Managedfolders$Update, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
6271
+ update(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
6068
6272
  }
6069
6273
  export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
6070
6274
  /**
@@ -6188,6 +6392,28 @@ export declare namespace storage_v1 {
6188
6392
  */
6189
6393
  userProject?: string;
6190
6394
  }
6395
+ export interface Params$Resource$Managedfolders$Update extends StandardParameters {
6396
+ /**
6397
+ * The name of the bucket containing the managed folder.
6398
+ */
6399
+ bucket?: string;
6400
+ /**
6401
+ * Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
6402
+ */
6403
+ ifMetagenerationMatch?: string;
6404
+ /**
6405
+ * Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
6406
+ */
6407
+ ifMetagenerationNotMatch?: string;
6408
+ /**
6409
+ * The name of the managed folder.
6410
+ */
6411
+ managedFolder?: string;
6412
+ /**
6413
+ * Request body metadata
6414
+ */
6415
+ requestBody?: Schema$ManagedFolder;
6416
+ }
6191
6417
  export class Resource$Notifications {
6192
6418
  context: APIRequestContext;
6193
6419
  constructor(context: APIRequestContext);
@@ -7338,7 +7564,10 @@ export declare namespace storage_v1 {
7338
7564
  * destinationObject: 'placeholder-value',
7339
7565
  * // Apply a predefined set of access controls to the destination object.
7340
7566
  * destinationPredefinedAcl: 'placeholder-value',
7341
- * // Specifies which groups of Object Contexts from the source object(s) should be dropped from the destination object.
7567
+ * // Specifies which object context groups to drop from the source object(s) during a compose operation. The accepted value is 'custom'.
7568
+ * // Destination contexts behave as follows:
7569
+ * // - When request body contexts are provided, they override all source contexts.
7570
+ * // - When no request body contexts are provided, source contexts are preserved unless 'dropContextGroups' contains 'custom', in which case all contexts are dropped.
7342
7571
  * dropContextGroups: 'placeholder-value',
7343
7572
  * // Makes the operation conditional on whether the 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.
7344
7573
  * ifGenerationMatch: 'placeholder-value',
@@ -8593,7 +8822,10 @@ export declare namespace storage_v1 {
8593
8822
  * destinationObject: 'placeholder-value',
8594
8823
  * // Apply a predefined set of access controls to the destination object.
8595
8824
  * destinationPredefinedAcl: 'placeholder-value',
8596
- * // Specifies which groups of Object Contexts from the source object should be dropped from the destination object.
8825
+ * // Specifies which object context groups to drop from the source object during a copy operation. The accepted value is 'custom'.
8826
+ * // Destination contexts behave as follows:
8827
+ * // - When request body contexts are provided, they override all source contexts.
8828
+ * // - When no request body contexts are provided, source contexts are preserved unless 'dropContextGroups' contains 'custom', in which case all contexts are dropped.
8597
8829
  * dropContextGroups: 'placeholder-value',
8598
8830
  * // Makes the operation conditional on whether the 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.
8599
8831
  * ifGenerationMatch: 'placeholder-value',
@@ -9053,7 +9285,10 @@ export declare namespace storage_v1 {
9053
9285
  */
9054
9286
  destinationPredefinedAcl?: string;
9055
9287
  /**
9056
- * Specifies which groups of Object Contexts from the source object(s) should be dropped from the destination object.
9288
+ * Specifies which object context groups to drop from the source object(s) during a compose operation. The accepted value is 'custom'.
9289
+ * Destination contexts behave as follows:
9290
+ * - When request body contexts are provided, they override all source contexts.
9291
+ * - When no request body contexts are provided, source contexts are preserved unless 'dropContextGroups' contains 'custom', in which case all contexts are dropped.
9057
9292
  */
9058
9293
  dropContextGroups?: string[];
9059
9294
  /**
@@ -9542,7 +9777,10 @@ export declare namespace storage_v1 {
9542
9777
  */
9543
9778
  destinationPredefinedAcl?: string;
9544
9779
  /**
9545
- * Specifies which groups of Object Contexts from the source object should be dropped from the destination object.
9780
+ * Specifies which object context groups to drop from the source object during a copy operation. The accepted value is 'custom'.
9781
+ * Destination contexts behave as follows:
9782
+ * - When request body contexts are provided, they override all source contexts.
9783
+ * - When no request body contexts are provided, source contexts are preserved unless 'dropContextGroups' contains 'custom', in which case all contexts are dropped.
9546
9784
  */
9547
9785
  dropContextGroups?: string[];
9548
9786
  /**
@@ -10598,5 +10836,476 @@ export declare namespace storage_v1 {
10598
10836
  */
10599
10837
  userProject?: string;
10600
10838
  }
10839
+ export class Resource$Rapidcaches {
10840
+ context: APIRequestContext;
10841
+ constructor(context: APIRequestContext);
10842
+ /**
10843
+ * Disables a Rapid Cache instance.
10844
+ * @example
10845
+ * ```js
10846
+ * // Before running the sample:
10847
+ * // - Enable the API at:
10848
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
10849
+ * // - Login into gcloud by running:
10850
+ * // ```sh
10851
+ * // $ gcloud auth application-default login
10852
+ * // ```
10853
+ * // - Install the npm module by running:
10854
+ * // ```sh
10855
+ * // $ npm install googleapis
10856
+ * // ```
10857
+ *
10858
+ * const {google} = require('googleapis');
10859
+ * const storage = google.storage('v1');
10860
+ *
10861
+ * async function main() {
10862
+ * const auth = new google.auth.GoogleAuth({
10863
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10864
+ * scopes: [
10865
+ * 'https://www.googleapis.com/auth/cloud-platform',
10866
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
10867
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
10868
+ * ],
10869
+ * });
10870
+ *
10871
+ * // Acquire an auth client, and bind it to all future calls
10872
+ * const authClient = await auth.getClient();
10873
+ * google.options({auth: authClient});
10874
+ *
10875
+ * // Do the magic
10876
+ * const res = await storage.rapidCaches.disable({
10877
+ * // Name of the parent bucket.
10878
+ * bucket: 'placeholder-value',
10879
+ * // The ID of the requested Rapid Cache instance.
10880
+ * rapidCacheId: 'placeholder-value',
10881
+ * });
10882
+ * console.log(res.data);
10883
+ *
10884
+ * // Example response
10885
+ * // {
10886
+ * // "done": false,
10887
+ * // "error": {},
10888
+ * // "kind": "my_kind",
10889
+ * // "metadata": {},
10890
+ * // "name": "my_name",
10891
+ * // "response": {},
10892
+ * // "selfLink": "my_selfLink"
10893
+ * // }
10894
+ * }
10895
+ *
10896
+ * main().catch(e => {
10897
+ * console.error(e);
10898
+ * throw e;
10899
+ * });
10900
+ *
10901
+ * ```
10902
+ *
10903
+ * @param params - Parameters for request
10904
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10905
+ * @param callback - Optional callback that handles the response.
10906
+ * @returns A promise if used with async/await, or void if used with a callback.
10907
+ */
10908
+ disable(params: Params$Resource$Rapidcaches$Disable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
10909
+ disable(params?: Params$Resource$Rapidcaches$Disable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
10910
+ disable(params: Params$Resource$Rapidcaches$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
10911
+ disable(params: Params$Resource$Rapidcaches$Disable, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
10912
+ disable(params: Params$Resource$Rapidcaches$Disable, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
10913
+ disable(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
10914
+ /**
10915
+ * Returns the metadata of a Rapid Cache instance.
10916
+ * @example
10917
+ * ```js
10918
+ * // Before running the sample:
10919
+ * // - Enable the API at:
10920
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
10921
+ * // - Login into gcloud by running:
10922
+ * // ```sh
10923
+ * // $ gcloud auth application-default login
10924
+ * // ```
10925
+ * // - Install the npm module by running:
10926
+ * // ```sh
10927
+ * // $ npm install googleapis
10928
+ * // ```
10929
+ *
10930
+ * const {google} = require('googleapis');
10931
+ * const storage = google.storage('v1');
10932
+ *
10933
+ * async function main() {
10934
+ * const auth = new google.auth.GoogleAuth({
10935
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
10936
+ * scopes: [
10937
+ * 'https://www.googleapis.com/auth/cloud-platform',
10938
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
10939
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
10940
+ * 'https://www.googleapis.com/auth/devstorage.read_only',
10941
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
10942
+ * ],
10943
+ * });
10944
+ *
10945
+ * // Acquire an auth client, and bind it to all future calls
10946
+ * const authClient = await auth.getClient();
10947
+ * google.options({auth: authClient});
10948
+ *
10949
+ * // Do the magic
10950
+ * const res = await storage.rapidCaches.get({
10951
+ * // Name of the parent bucket.
10952
+ * bucket: 'placeholder-value',
10953
+ * // The ID of the requested Rapid Cache instance.
10954
+ * rapidCacheId: 'placeholder-value',
10955
+ * });
10956
+ * console.log(res.data);
10957
+ *
10958
+ * // Example response
10959
+ * // {
10960
+ * // "admissionPolicy": "my_admissionPolicy",
10961
+ * // "bucket": "my_bucket",
10962
+ * // "cacheType": "my_cacheType",
10963
+ * // "createTime": "my_createTime",
10964
+ * // "id": "my_id",
10965
+ * // "ingestOnWrite": false,
10966
+ * // "kind": "my_kind",
10967
+ * // "pendingUpdate": false,
10968
+ * // "rapidCacheId": "my_rapidCacheId",
10969
+ * // "selfLink": "my_selfLink",
10970
+ * // "state": "my_state",
10971
+ * // "ttl": "my_ttl",
10972
+ * // "updateTime": "my_updateTime",
10973
+ * // "zone": "my_zone"
10974
+ * // }
10975
+ * }
10976
+ *
10977
+ * main().catch(e => {
10978
+ * console.error(e);
10979
+ * throw e;
10980
+ * });
10981
+ *
10982
+ * ```
10983
+ *
10984
+ * @param params - Parameters for request
10985
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10986
+ * @param callback - Optional callback that handles the response.
10987
+ * @returns A promise if used with async/await, or void if used with a callback.
10988
+ */
10989
+ get(params: Params$Resource$Rapidcaches$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
10990
+ get(params?: Params$Resource$Rapidcaches$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>;
10991
+ get(params: Params$Resource$Rapidcaches$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
10992
+ get(params: Params$Resource$Rapidcaches$Get, options: MethodOptions | BodyResponseCallback<Schema$RapidCache>, callback: BodyResponseCallback<Schema$RapidCache>): void;
10993
+ get(params: Params$Resource$Rapidcaches$Get, callback: BodyResponseCallback<Schema$RapidCache>): void;
10994
+ get(callback: BodyResponseCallback<Schema$RapidCache>): void;
10995
+ /**
10996
+ * Creates a Rapid Cache instance.
10997
+ * @example
10998
+ * ```js
10999
+ * // Before running the sample:
11000
+ * // - Enable the API at:
11001
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
11002
+ * // - Login into gcloud by running:
11003
+ * // ```sh
11004
+ * // $ gcloud auth application-default login
11005
+ * // ```
11006
+ * // - Install the npm module by running:
11007
+ * // ```sh
11008
+ * // $ npm install googleapis
11009
+ * // ```
11010
+ *
11011
+ * const {google} = require('googleapis');
11012
+ * const storage = google.storage('v1');
11013
+ *
11014
+ * async function main() {
11015
+ * const auth = new google.auth.GoogleAuth({
11016
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11017
+ * scopes: [
11018
+ * 'https://www.googleapis.com/auth/cloud-platform',
11019
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
11020
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
11021
+ * ],
11022
+ * });
11023
+ *
11024
+ * // Acquire an auth client, and bind it to all future calls
11025
+ * const authClient = await auth.getClient();
11026
+ * google.options({auth: authClient});
11027
+ *
11028
+ * // Do the magic
11029
+ * const res = await storage.rapidCaches.insert({
11030
+ * // Name of the parent bucket.
11031
+ * bucket: 'placeholder-value',
11032
+ *
11033
+ * // Request body metadata
11034
+ * requestBody: {
11035
+ * // request body parameters
11036
+ * // {
11037
+ * // "admissionPolicy": "my_admissionPolicy",
11038
+ * // "bucket": "my_bucket",
11039
+ * // "cacheType": "my_cacheType",
11040
+ * // "createTime": "my_createTime",
11041
+ * // "id": "my_id",
11042
+ * // "ingestOnWrite": false,
11043
+ * // "kind": "my_kind",
11044
+ * // "pendingUpdate": false,
11045
+ * // "rapidCacheId": "my_rapidCacheId",
11046
+ * // "selfLink": "my_selfLink",
11047
+ * // "state": "my_state",
11048
+ * // "ttl": "my_ttl",
11049
+ * // "updateTime": "my_updateTime",
11050
+ * // "zone": "my_zone"
11051
+ * // }
11052
+ * },
11053
+ * });
11054
+ * console.log(res.data);
11055
+ *
11056
+ * // Example response
11057
+ * // {
11058
+ * // "done": false,
11059
+ * // "error": {},
11060
+ * // "kind": "my_kind",
11061
+ * // "metadata": {},
11062
+ * // "name": "my_name",
11063
+ * // "response": {},
11064
+ * // "selfLink": "my_selfLink"
11065
+ * // }
11066
+ * }
11067
+ *
11068
+ * main().catch(e => {
11069
+ * console.error(e);
11070
+ * throw e;
11071
+ * });
11072
+ *
11073
+ * ```
11074
+ *
11075
+ * @param params - Parameters for request
11076
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
11077
+ * @param callback - Optional callback that handles the response.
11078
+ * @returns A promise if used with async/await, or void if used with a callback.
11079
+ */
11080
+ insert(params: Params$Resource$Rapidcaches$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
11081
+ insert(params?: Params$Resource$Rapidcaches$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
11082
+ insert(params: Params$Resource$Rapidcaches$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
11083
+ insert(params: Params$Resource$Rapidcaches$Insert, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11084
+ insert(params: Params$Resource$Rapidcaches$Insert, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11085
+ insert(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11086
+ /**
11087
+ * Returns a list of Rapid Cache instances of the bucket.
11088
+ * @example
11089
+ * ```js
11090
+ * // Before running the sample:
11091
+ * // - Enable the API at:
11092
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
11093
+ * // - Login into gcloud by running:
11094
+ * // ```sh
11095
+ * // $ gcloud auth application-default login
11096
+ * // ```
11097
+ * // - Install the npm module by running:
11098
+ * // ```sh
11099
+ * // $ npm install googleapis
11100
+ * // ```
11101
+ *
11102
+ * const {google} = require('googleapis');
11103
+ * const storage = google.storage('v1');
11104
+ *
11105
+ * async function main() {
11106
+ * const auth = new google.auth.GoogleAuth({
11107
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11108
+ * scopes: [
11109
+ * 'https://www.googleapis.com/auth/cloud-platform',
11110
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
11111
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
11112
+ * 'https://www.googleapis.com/auth/devstorage.read_only',
11113
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
11114
+ * ],
11115
+ * });
11116
+ *
11117
+ * // Acquire an auth client, and bind it to all future calls
11118
+ * const authClient = await auth.getClient();
11119
+ * google.options({auth: authClient});
11120
+ *
11121
+ * // Do the magic
11122
+ * const res = await storage.rapidCaches.list({
11123
+ * // Name of the parent bucket.
11124
+ * bucket: 'placeholder-value',
11125
+ * // Maximum number of items to return in a single page of responses.
11126
+ * pageSize: 'placeholder-value',
11127
+ * // A previously-returned page token representing part of the larger set of results to view.
11128
+ * pageToken: 'placeholder-value',
11129
+ * });
11130
+ * console.log(res.data);
11131
+ *
11132
+ * // Example response
11133
+ * // {
11134
+ * // "items": [],
11135
+ * // "kind": "my_kind",
11136
+ * // "nextPageToken": "my_nextPageToken"
11137
+ * // }
11138
+ * }
11139
+ *
11140
+ * main().catch(e => {
11141
+ * console.error(e);
11142
+ * throw e;
11143
+ * });
11144
+ *
11145
+ * ```
11146
+ *
11147
+ * @param params - Parameters for request
11148
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
11149
+ * @param callback - Optional callback that handles the response.
11150
+ * @returns A promise if used with async/await, or void if used with a callback.
11151
+ */
11152
+ list(params: Params$Resource$Rapidcaches$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
11153
+ list(params?: Params$Resource$Rapidcaches$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>;
11154
+ list(params: Params$Resource$Rapidcaches$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
11155
+ list(params: Params$Resource$Rapidcaches$List, options: MethodOptions | BodyResponseCallback<Schema$RapidCaches>, callback: BodyResponseCallback<Schema$RapidCaches>): void;
11156
+ list(params: Params$Resource$Rapidcaches$List, callback: BodyResponseCallback<Schema$RapidCaches>): void;
11157
+ list(callback: BodyResponseCallback<Schema$RapidCaches>): void;
11158
+ /**
11159
+ * Updates the configuration of a Rapid Cache instance.
11160
+ * @example
11161
+ * ```js
11162
+ * // Before running the sample:
11163
+ * // - Enable the API at:
11164
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
11165
+ * // - Login into gcloud by running:
11166
+ * // ```sh
11167
+ * // $ gcloud auth application-default login
11168
+ * // ```
11169
+ * // - Install the npm module by running:
11170
+ * // ```sh
11171
+ * // $ npm install googleapis
11172
+ * // ```
11173
+ *
11174
+ * const {google} = require('googleapis');
11175
+ * const storage = google.storage('v1');
11176
+ *
11177
+ * async function main() {
11178
+ * const auth = new google.auth.GoogleAuth({
11179
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
11180
+ * scopes: [
11181
+ * 'https://www.googleapis.com/auth/cloud-platform',
11182
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
11183
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
11184
+ * ],
11185
+ * });
11186
+ *
11187
+ * // Acquire an auth client, and bind it to all future calls
11188
+ * const authClient = await auth.getClient();
11189
+ * google.options({auth: authClient});
11190
+ *
11191
+ * // Do the magic
11192
+ * const res = await storage.rapidCaches.update({
11193
+ * // Name of the parent bucket.
11194
+ * bucket: 'placeholder-value',
11195
+ * // The ID of the requested Rapid Cache instance.
11196
+ * rapidCacheId: 'placeholder-value',
11197
+ *
11198
+ * // Request body metadata
11199
+ * requestBody: {
11200
+ * // request body parameters
11201
+ * // {
11202
+ * // "admissionPolicy": "my_admissionPolicy",
11203
+ * // "bucket": "my_bucket",
11204
+ * // "cacheType": "my_cacheType",
11205
+ * // "createTime": "my_createTime",
11206
+ * // "id": "my_id",
11207
+ * // "ingestOnWrite": false,
11208
+ * // "kind": "my_kind",
11209
+ * // "pendingUpdate": false,
11210
+ * // "rapidCacheId": "my_rapidCacheId",
11211
+ * // "selfLink": "my_selfLink",
11212
+ * // "state": "my_state",
11213
+ * // "ttl": "my_ttl",
11214
+ * // "updateTime": "my_updateTime",
11215
+ * // "zone": "my_zone"
11216
+ * // }
11217
+ * },
11218
+ * });
11219
+ * console.log(res.data);
11220
+ *
11221
+ * // Example response
11222
+ * // {
11223
+ * // "done": false,
11224
+ * // "error": {},
11225
+ * // "kind": "my_kind",
11226
+ * // "metadata": {},
11227
+ * // "name": "my_name",
11228
+ * // "response": {},
11229
+ * // "selfLink": "my_selfLink"
11230
+ * // }
11231
+ * }
11232
+ *
11233
+ * main().catch(e => {
11234
+ * console.error(e);
11235
+ * throw e;
11236
+ * });
11237
+ *
11238
+ * ```
11239
+ *
11240
+ * @param params - Parameters for request
11241
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
11242
+ * @param callback - Optional callback that handles the response.
11243
+ * @returns A promise if used with async/await, or void if used with a callback.
11244
+ */
11245
+ update(params: Params$Resource$Rapidcaches$Update, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
11246
+ update(params?: Params$Resource$Rapidcaches$Update, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
11247
+ update(params: Params$Resource$Rapidcaches$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
11248
+ update(params: Params$Resource$Rapidcaches$Update, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11249
+ update(params: Params$Resource$Rapidcaches$Update, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11250
+ update(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
11251
+ }
11252
+ export interface Params$Resource$Rapidcaches$Disable extends StandardParameters {
11253
+ /**
11254
+ * Name of the parent bucket.
11255
+ */
11256
+ bucket?: string;
11257
+ /**
11258
+ * The ID of the requested Rapid Cache instance.
11259
+ */
11260
+ rapidCacheId?: string;
11261
+ }
11262
+ export interface Params$Resource$Rapidcaches$Get extends StandardParameters {
11263
+ /**
11264
+ * Name of the parent bucket.
11265
+ */
11266
+ bucket?: string;
11267
+ /**
11268
+ * The ID of the requested Rapid Cache instance.
11269
+ */
11270
+ rapidCacheId?: string;
11271
+ }
11272
+ export interface Params$Resource$Rapidcaches$Insert extends StandardParameters {
11273
+ /**
11274
+ * Name of the parent bucket.
11275
+ */
11276
+ bucket?: string;
11277
+ /**
11278
+ * Request body metadata
11279
+ */
11280
+ requestBody?: Schema$RapidCache;
11281
+ }
11282
+ export interface Params$Resource$Rapidcaches$List extends StandardParameters {
11283
+ /**
11284
+ * Name of the parent bucket.
11285
+ */
11286
+ bucket?: string;
11287
+ /**
11288
+ * Maximum number of items to return in a single page of responses.
11289
+ */
11290
+ pageSize?: number;
11291
+ /**
11292
+ * A previously-returned page token representing part of the larger set of results to view.
11293
+ */
11294
+ pageToken?: string;
11295
+ }
11296
+ export interface Params$Resource$Rapidcaches$Update extends StandardParameters {
11297
+ /**
11298
+ * Name of the parent bucket.
11299
+ */
11300
+ bucket?: string;
11301
+ /**
11302
+ * The ID of the requested Rapid Cache instance.
11303
+ */
11304
+ rapidCacheId?: string;
11305
+ /**
11306
+ * Request body metadata
11307
+ */
11308
+ requestBody?: Schema$RapidCache;
11309
+ }
10601
11310
  export {};
10602
11311
  }