@googleapis/storage 22.0.0 → 22.1.0

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/v1.ts CHANGED
@@ -112,6 +112,7 @@ export namespace storage_v1 {
112
112
  objects: Resource$Objects;
113
113
  operations: Resource$Operations;
114
114
  projects: Resource$Projects;
115
+ rapidCaches: Resource$Rapidcaches;
115
116
 
116
117
  constructor(options: GlobalOptions, google?: GoogleConfigurable) {
117
118
  this.context = {
@@ -136,6 +137,7 @@ export namespace storage_v1 {
136
137
  this.objects = new Resource$Objects(this.context);
137
138
  this.operations = new Resource$Operations(this.context);
138
139
  this.projects = new Resource$Projects(this.context);
140
+ this.rapidCaches = new Resource$Rapidcaches(this.context);
139
141
  }
140
142
  }
141
143
 
@@ -926,6 +928,10 @@ export namespace storage_v1 {
926
928
  * The name of the managed folder. Required if not specified by URL parameter.
927
929
  */
928
930
  name?: string | null;
931
+ /**
932
+ * The rapid cache configuration for the managed folder.
933
+ */
934
+ rapidCacheConfig?: Schema$RapidCacheConfig;
929
935
  /**
930
936
  * The link to this managed folder.
931
937
  */
@@ -1316,6 +1322,106 @@ export namespace storage_v1 {
1316
1322
  */
1317
1323
  version?: number | null;
1318
1324
  }
1325
+ /**
1326
+ * A Rapid Cache instance.
1327
+ */
1328
+ export interface Schema$RapidCache {
1329
+ /**
1330
+ * The cache-level entry admission policy.
1331
+ */
1332
+ admissionPolicy?: string | null;
1333
+ /**
1334
+ * The name of the bucket containing this cache instance.
1335
+ */
1336
+ bucket?: string | null;
1337
+ /**
1338
+ * The type of Rapid Cache this represents. Valid values include: "rapid-cache" and "rapid-cache-ultra".
1339
+ */
1340
+ cacheType?: string | null;
1341
+ /**
1342
+ * The creation time of the cache instance in RFC 3339 format.
1343
+ */
1344
+ createTime?: string | null;
1345
+ /**
1346
+ * The ID of the resource, including the project number, bucket name and rapid cache ID.
1347
+ */
1348
+ id?: string | null;
1349
+ /**
1350
+ * Specifies whether objects are ingested into the cache upon write.
1351
+ */
1352
+ ingestOnWrite?: boolean | null;
1353
+ /**
1354
+ * The kind of item this is. For Rapid Cache, this is always storage#rapidCache.
1355
+ */
1356
+ kind?: string | null;
1357
+ /**
1358
+ * True if the cache instance has an active Update long-running operation.
1359
+ */
1360
+ pendingUpdate?: boolean | null;
1361
+ /**
1362
+ * The ID of the Rapid cache instance.
1363
+ */
1364
+ rapidCacheId?: string | null;
1365
+ /**
1366
+ * The link to this cache instance.
1367
+ */
1368
+ selfLink?: string | null;
1369
+ /**
1370
+ * The current state of the cache instance.
1371
+ */
1372
+ state?: string | null;
1373
+ /**
1374
+ * The TTL of all cache entries in whole seconds. e.g., "7200s".
1375
+ */
1376
+ ttl?: string | null;
1377
+ /**
1378
+ * The modification time of the cache instance metadata in RFC 3339 format.
1379
+ */
1380
+ updateTime?: string | null;
1381
+ /**
1382
+ * The zone in which the cache instance is running. For example, us-central1-a.
1383
+ */
1384
+ zone?: string | null;
1385
+ }
1386
+ /**
1387
+ * Configuration options for the rapid cache of a managed folder.
1388
+ */
1389
+ export interface Schema$RapidCacheConfig {
1390
+ /**
1391
+ * A map of rapid cache IDs to the corresponding `RapidCachePolicy` configurations for a managed folder.
1392
+ */
1393
+ policies?: {[key: string]: Schema$RapidCachePolicy} | null;
1394
+ }
1395
+ /**
1396
+ * The rapid cache policy configuration for a managed folder.
1397
+ */
1398
+ export interface Schema$RapidCachePolicy {
1399
+ /**
1400
+ * 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.
1401
+ */
1402
+ ingestOnWrite?: string | null;
1403
+ /**
1404
+ * The unique identifier of the rapid cache.
1405
+ */
1406
+ rapidCacheId?: string | null;
1407
+ }
1408
+ /**
1409
+ * A list of Rapid Caches.
1410
+ */
1411
+ export interface Schema$RapidCaches {
1412
+ /**
1413
+ * The list of items.
1414
+ */
1415
+ items?: Schema$RapidCache[];
1416
+ /**
1417
+ * The kind of item this is. For lists of Rapid Caches, this is always storage#rapidCaches.
1418
+ */
1419
+ kind?: string | null;
1420
+ /**
1421
+ * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
1422
+ */
1423
+ nextPageToken?: string | null;
1424
+ }
1319
1425
  /**
1320
1426
  * A Relocate Bucket request.
1321
1427
  */
@@ -8745,6 +8851,7 @@ export namespace storage_v1 {
8745
8851
  * // "kind": "my_kind",
8746
8852
  * // "metageneration": "my_metageneration",
8747
8853
  * // "name": "my_name",
8854
+ * // "rapidCacheConfig": {},
8748
8855
  * // "selfLink": "my_selfLink",
8749
8856
  * // "updateTime": "my_updateTime"
8750
8857
  * // }
@@ -9044,6 +9151,7 @@ export namespace storage_v1 {
9044
9151
  * // "kind": "my_kind",
9045
9152
  * // "metageneration": "my_metageneration",
9046
9153
  * // "name": "my_name",
9154
+ * // "rapidCacheConfig": {},
9047
9155
  * // "selfLink": "my_selfLink",
9048
9156
  * // "updateTime": "my_updateTime"
9049
9157
  * // }
@@ -9059,6 +9167,7 @@ export namespace storage_v1 {
9059
9167
  * // "kind": "my_kind",
9060
9168
  * // "metageneration": "my_metageneration",
9061
9169
  * // "name": "my_name",
9170
+ * // "rapidCacheConfig": {},
9062
9171
  * // "selfLink": "my_selfLink",
9063
9172
  * // "updateTime": "my_updateTime"
9064
9173
  * // }
@@ -9621,6 +9730,176 @@ export namespace storage_v1 {
9621
9730
  return createAPIRequest<Schema$TestIamPermissionsResponse>(parameters);
9622
9731
  }
9623
9732
  }
9733
+
9734
+ /**
9735
+ * Updates a managed folder using patch semantics.
9736
+ * @example
9737
+ * ```js
9738
+ * // Before running the sample:
9739
+ * // - Enable the API at:
9740
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
9741
+ * // - Login into gcloud by running:
9742
+ * // ```sh
9743
+ * // $ gcloud auth application-default login
9744
+ * // ```
9745
+ * // - Install the npm module by running:
9746
+ * // ```sh
9747
+ * // $ npm install googleapis
9748
+ * // ```
9749
+ *
9750
+ * const {google} = require('googleapis');
9751
+ * const storage = google.storage('v1');
9752
+ *
9753
+ * async function main() {
9754
+ * const auth = new google.auth.GoogleAuth({
9755
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9756
+ * scopes: [
9757
+ * 'https://www.googleapis.com/auth/cloud-platform',
9758
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
9759
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
9760
+ * ],
9761
+ * });
9762
+ *
9763
+ * // Acquire an auth client, and bind it to all future calls
9764
+ * const authClient = await auth.getClient();
9765
+ * google.options({auth: authClient});
9766
+ *
9767
+ * // Do the magic
9768
+ * const res = await storage.managedFolders.update({
9769
+ * // The name of the bucket containing the managed folder.
9770
+ * bucket: 'placeholder-value',
9771
+ * // Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
9772
+ * ifMetagenerationMatch: 'placeholder-value',
9773
+ * // Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
9774
+ * ifMetagenerationNotMatch: 'placeholder-value',
9775
+ * // The name of the managed folder.
9776
+ * managedFolder: 'placeholder-value',
9777
+ *
9778
+ * // Request body metadata
9779
+ * requestBody: {
9780
+ * // request body parameters
9781
+ * // {
9782
+ * // "bucket": "my_bucket",
9783
+ * // "createTime": "my_createTime",
9784
+ * // "id": "my_id",
9785
+ * // "kind": "my_kind",
9786
+ * // "metageneration": "my_metageneration",
9787
+ * // "name": "my_name",
9788
+ * // "rapidCacheConfig": {},
9789
+ * // "selfLink": "my_selfLink",
9790
+ * // "updateTime": "my_updateTime"
9791
+ * // }
9792
+ * },
9793
+ * });
9794
+ * console.log(res.data);
9795
+ *
9796
+ * // Example response
9797
+ * // {
9798
+ * // "bucket": "my_bucket",
9799
+ * // "createTime": "my_createTime",
9800
+ * // "id": "my_id",
9801
+ * // "kind": "my_kind",
9802
+ * // "metageneration": "my_metageneration",
9803
+ * // "name": "my_name",
9804
+ * // "rapidCacheConfig": {},
9805
+ * // "selfLink": "my_selfLink",
9806
+ * // "updateTime": "my_updateTime"
9807
+ * // }
9808
+ * }
9809
+ *
9810
+ * main().catch(e => {
9811
+ * console.error(e);
9812
+ * throw e;
9813
+ * });
9814
+ *
9815
+ * ```
9816
+ *
9817
+ * @param params - Parameters for request
9818
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9819
+ * @param callback - Optional callback that handles the response.
9820
+ * @returns A promise if used with async/await, or void if used with a callback.
9821
+ */
9822
+ update(
9823
+ params: Params$Resource$Managedfolders$Update,
9824
+ options: StreamMethodOptions
9825
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9826
+ update(
9827
+ params?: Params$Resource$Managedfolders$Update,
9828
+ options?: MethodOptions
9829
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedFolder>>;
9830
+ update(
9831
+ params: Params$Resource$Managedfolders$Update,
9832
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9833
+ callback: BodyResponseCallback<Readable>
9834
+ ): void;
9835
+ update(
9836
+ params: Params$Resource$Managedfolders$Update,
9837
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>,
9838
+ callback: BodyResponseCallback<Schema$ManagedFolder>
9839
+ ): void;
9840
+ update(
9841
+ params: Params$Resource$Managedfolders$Update,
9842
+ callback: BodyResponseCallback<Schema$ManagedFolder>
9843
+ ): void;
9844
+ update(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
9845
+ update(
9846
+ paramsOrCallback?:
9847
+ | Params$Resource$Managedfolders$Update
9848
+ | BodyResponseCallback<Schema$ManagedFolder>
9849
+ | BodyResponseCallback<Readable>,
9850
+ optionsOrCallback?:
9851
+ | MethodOptions
9852
+ | StreamMethodOptions
9853
+ | BodyResponseCallback<Schema$ManagedFolder>
9854
+ | BodyResponseCallback<Readable>,
9855
+ callback?:
9856
+ | BodyResponseCallback<Schema$ManagedFolder>
9857
+ | BodyResponseCallback<Readable>
9858
+ ):
9859
+ | void
9860
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedFolder>>
9861
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9862
+ let params = (paramsOrCallback ||
9863
+ {}) as Params$Resource$Managedfolders$Update;
9864
+ let options = (optionsOrCallback || {}) as MethodOptions;
9865
+
9866
+ if (typeof paramsOrCallback === 'function') {
9867
+ callback = paramsOrCallback;
9868
+ params = {} as Params$Resource$Managedfolders$Update;
9869
+ options = {};
9870
+ }
9871
+
9872
+ if (typeof optionsOrCallback === 'function') {
9873
+ callback = optionsOrCallback;
9874
+ options = {};
9875
+ }
9876
+
9877
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
9878
+ const parameters = {
9879
+ options: Object.assign(
9880
+ {
9881
+ url: (
9882
+ rootUrl + '/storage/v1/b/{bucket}/managedFolders/{managedFolder}'
9883
+ ).replace(/([^:]\/)\/+/g, '$1'),
9884
+ method: 'PATCH',
9885
+ apiVersion: '',
9886
+ },
9887
+ options
9888
+ ),
9889
+ params,
9890
+ requiredParams: ['bucket', 'managedFolder'],
9891
+ pathParams: ['bucket', 'managedFolder'],
9892
+ context: this.context,
9893
+ };
9894
+ if (callback) {
9895
+ createAPIRequest<Schema$ManagedFolder>(
9896
+ parameters,
9897
+ callback as BodyResponseCallback<unknown>
9898
+ );
9899
+ } else {
9900
+ return createAPIRequest<Schema$ManagedFolder>(parameters);
9901
+ }
9902
+ }
9624
9903
  }
9625
9904
 
9626
9905
  export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
@@ -9747,6 +10026,29 @@ export namespace storage_v1 {
9747
10026
  */
9748
10027
  userProject?: string;
9749
10028
  }
10029
+ export interface Params$Resource$Managedfolders$Update extends StandardParameters {
10030
+ /**
10031
+ * The name of the bucket containing the managed folder.
10032
+ */
10033
+ bucket?: string;
10034
+ /**
10035
+ * Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
10036
+ */
10037
+ ifMetagenerationMatch?: string;
10038
+ /**
10039
+ * Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
10040
+ */
10041
+ ifMetagenerationNotMatch?: string;
10042
+ /**
10043
+ * The name of the managed folder.
10044
+ */
10045
+ managedFolder?: string;
10046
+
10047
+ /**
10048
+ * Request body metadata
10049
+ */
10050
+ requestBody?: Schema$ManagedFolder;
10051
+ }
9750
10052
 
9751
10053
  export class Resource$Notifications {
9752
10054
  context: APIRequestContext;
@@ -16888,4 +17190,870 @@ export namespace storage_v1 {
16888
17190
  */
16889
17191
  userProject?: string;
16890
17192
  }
17193
+
17194
+ export class Resource$Rapidcaches {
17195
+ context: APIRequestContext;
17196
+ constructor(context: APIRequestContext) {
17197
+ this.context = context;
17198
+ }
17199
+
17200
+ /**
17201
+ * Disables a Rapid Cache instance.
17202
+ * @example
17203
+ * ```js
17204
+ * // Before running the sample:
17205
+ * // - Enable the API at:
17206
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
17207
+ * // - Login into gcloud by running:
17208
+ * // ```sh
17209
+ * // $ gcloud auth application-default login
17210
+ * // ```
17211
+ * // - Install the npm module by running:
17212
+ * // ```sh
17213
+ * // $ npm install googleapis
17214
+ * // ```
17215
+ *
17216
+ * const {google} = require('googleapis');
17217
+ * const storage = google.storage('v1');
17218
+ *
17219
+ * async function main() {
17220
+ * const auth = new google.auth.GoogleAuth({
17221
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17222
+ * scopes: [
17223
+ * 'https://www.googleapis.com/auth/cloud-platform',
17224
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
17225
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
17226
+ * ],
17227
+ * });
17228
+ *
17229
+ * // Acquire an auth client, and bind it to all future calls
17230
+ * const authClient = await auth.getClient();
17231
+ * google.options({auth: authClient});
17232
+ *
17233
+ * // Do the magic
17234
+ * const res = await storage.rapidCaches.disable({
17235
+ * // Name of the parent bucket.
17236
+ * bucket: 'placeholder-value',
17237
+ * // The ID of the requested Rapid Cache instance.
17238
+ * rapidCacheId: 'placeholder-value',
17239
+ * });
17240
+ * console.log(res.data);
17241
+ *
17242
+ * // Example response
17243
+ * // {
17244
+ * // "done": false,
17245
+ * // "error": {},
17246
+ * // "kind": "my_kind",
17247
+ * // "metadata": {},
17248
+ * // "name": "my_name",
17249
+ * // "response": {},
17250
+ * // "selfLink": "my_selfLink"
17251
+ * // }
17252
+ * }
17253
+ *
17254
+ * main().catch(e => {
17255
+ * console.error(e);
17256
+ * throw e;
17257
+ * });
17258
+ *
17259
+ * ```
17260
+ *
17261
+ * @param params - Parameters for request
17262
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17263
+ * @param callback - Optional callback that handles the response.
17264
+ * @returns A promise if used with async/await, or void if used with a callback.
17265
+ */
17266
+ disable(
17267
+ params: Params$Resource$Rapidcaches$Disable,
17268
+ options: StreamMethodOptions
17269
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17270
+ disable(
17271
+ params?: Params$Resource$Rapidcaches$Disable,
17272
+ options?: MethodOptions
17273
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
17274
+ disable(
17275
+ params: Params$Resource$Rapidcaches$Disable,
17276
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17277
+ callback: BodyResponseCallback<Readable>
17278
+ ): void;
17279
+ disable(
17280
+ params: Params$Resource$Rapidcaches$Disable,
17281
+ options:
17282
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
17283
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17284
+ ): void;
17285
+ disable(
17286
+ params: Params$Resource$Rapidcaches$Disable,
17287
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17288
+ ): void;
17289
+ disable(
17290
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17291
+ ): void;
17292
+ disable(
17293
+ paramsOrCallback?:
17294
+ | Params$Resource$Rapidcaches$Disable
17295
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17296
+ | BodyResponseCallback<Readable>,
17297
+ optionsOrCallback?:
17298
+ | MethodOptions
17299
+ | StreamMethodOptions
17300
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17301
+ | BodyResponseCallback<Readable>,
17302
+ callback?:
17303
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17304
+ | BodyResponseCallback<Readable>
17305
+ ):
17306
+ | void
17307
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
17308
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17309
+ let params = (paramsOrCallback ||
17310
+ {}) as Params$Resource$Rapidcaches$Disable;
17311
+ let options = (optionsOrCallback || {}) as MethodOptions;
17312
+
17313
+ if (typeof paramsOrCallback === 'function') {
17314
+ callback = paramsOrCallback;
17315
+ params = {} as Params$Resource$Rapidcaches$Disable;
17316
+ options = {};
17317
+ }
17318
+
17319
+ if (typeof optionsOrCallback === 'function') {
17320
+ callback = optionsOrCallback;
17321
+ options = {};
17322
+ }
17323
+
17324
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
17325
+ const parameters = {
17326
+ options: Object.assign(
17327
+ {
17328
+ url: (
17329
+ rootUrl +
17330
+ '/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}/disable'
17331
+ ).replace(/([^:]\/)\/+/g, '$1'),
17332
+ method: 'POST',
17333
+ apiVersion: '',
17334
+ },
17335
+ options
17336
+ ),
17337
+ params,
17338
+ requiredParams: ['bucket', 'rapidCacheId'],
17339
+ pathParams: ['bucket', 'rapidCacheId'],
17340
+ context: this.context,
17341
+ };
17342
+ if (callback) {
17343
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
17344
+ parameters,
17345
+ callback as BodyResponseCallback<unknown>
17346
+ );
17347
+ } else {
17348
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
17349
+ }
17350
+ }
17351
+
17352
+ /**
17353
+ * Returns the metadata of a Rapid Cache instance.
17354
+ * @example
17355
+ * ```js
17356
+ * // Before running the sample:
17357
+ * // - Enable the API at:
17358
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
17359
+ * // - Login into gcloud by running:
17360
+ * // ```sh
17361
+ * // $ gcloud auth application-default login
17362
+ * // ```
17363
+ * // - Install the npm module by running:
17364
+ * // ```sh
17365
+ * // $ npm install googleapis
17366
+ * // ```
17367
+ *
17368
+ * const {google} = require('googleapis');
17369
+ * const storage = google.storage('v1');
17370
+ *
17371
+ * async function main() {
17372
+ * const auth = new google.auth.GoogleAuth({
17373
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17374
+ * scopes: [
17375
+ * 'https://www.googleapis.com/auth/cloud-platform',
17376
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
17377
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
17378
+ * 'https://www.googleapis.com/auth/devstorage.read_only',
17379
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
17380
+ * ],
17381
+ * });
17382
+ *
17383
+ * // Acquire an auth client, and bind it to all future calls
17384
+ * const authClient = await auth.getClient();
17385
+ * google.options({auth: authClient});
17386
+ *
17387
+ * // Do the magic
17388
+ * const res = await storage.rapidCaches.get({
17389
+ * // Name of the parent bucket.
17390
+ * bucket: 'placeholder-value',
17391
+ * // The ID of the requested Rapid Cache instance.
17392
+ * rapidCacheId: 'placeholder-value',
17393
+ * });
17394
+ * console.log(res.data);
17395
+ *
17396
+ * // Example response
17397
+ * // {
17398
+ * // "admissionPolicy": "my_admissionPolicy",
17399
+ * // "bucket": "my_bucket",
17400
+ * // "cacheType": "my_cacheType",
17401
+ * // "createTime": "my_createTime",
17402
+ * // "id": "my_id",
17403
+ * // "ingestOnWrite": false,
17404
+ * // "kind": "my_kind",
17405
+ * // "pendingUpdate": false,
17406
+ * // "rapidCacheId": "my_rapidCacheId",
17407
+ * // "selfLink": "my_selfLink",
17408
+ * // "state": "my_state",
17409
+ * // "ttl": "my_ttl",
17410
+ * // "updateTime": "my_updateTime",
17411
+ * // "zone": "my_zone"
17412
+ * // }
17413
+ * }
17414
+ *
17415
+ * main().catch(e => {
17416
+ * console.error(e);
17417
+ * throw e;
17418
+ * });
17419
+ *
17420
+ * ```
17421
+ *
17422
+ * @param params - Parameters for request
17423
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17424
+ * @param callback - Optional callback that handles the response.
17425
+ * @returns A promise if used with async/await, or void if used with a callback.
17426
+ */
17427
+ get(
17428
+ params: Params$Resource$Rapidcaches$Get,
17429
+ options: StreamMethodOptions
17430
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17431
+ get(
17432
+ params?: Params$Resource$Rapidcaches$Get,
17433
+ options?: MethodOptions
17434
+ ): Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>;
17435
+ get(
17436
+ params: Params$Resource$Rapidcaches$Get,
17437
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17438
+ callback: BodyResponseCallback<Readable>
17439
+ ): void;
17440
+ get(
17441
+ params: Params$Resource$Rapidcaches$Get,
17442
+ options: MethodOptions | BodyResponseCallback<Schema$RapidCache>,
17443
+ callback: BodyResponseCallback<Schema$RapidCache>
17444
+ ): void;
17445
+ get(
17446
+ params: Params$Resource$Rapidcaches$Get,
17447
+ callback: BodyResponseCallback<Schema$RapidCache>
17448
+ ): void;
17449
+ get(callback: BodyResponseCallback<Schema$RapidCache>): void;
17450
+ get(
17451
+ paramsOrCallback?:
17452
+ | Params$Resource$Rapidcaches$Get
17453
+ | BodyResponseCallback<Schema$RapidCache>
17454
+ | BodyResponseCallback<Readable>,
17455
+ optionsOrCallback?:
17456
+ | MethodOptions
17457
+ | StreamMethodOptions
17458
+ | BodyResponseCallback<Schema$RapidCache>
17459
+ | BodyResponseCallback<Readable>,
17460
+ callback?:
17461
+ BodyResponseCallback<Schema$RapidCache> | BodyResponseCallback<Readable>
17462
+ ):
17463
+ | void
17464
+ | Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>
17465
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17466
+ let params = (paramsOrCallback || {}) as Params$Resource$Rapidcaches$Get;
17467
+ let options = (optionsOrCallback || {}) as MethodOptions;
17468
+
17469
+ if (typeof paramsOrCallback === 'function') {
17470
+ callback = paramsOrCallback;
17471
+ params = {} as Params$Resource$Rapidcaches$Get;
17472
+ options = {};
17473
+ }
17474
+
17475
+ if (typeof optionsOrCallback === 'function') {
17476
+ callback = optionsOrCallback;
17477
+ options = {};
17478
+ }
17479
+
17480
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
17481
+ const parameters = {
17482
+ options: Object.assign(
17483
+ {
17484
+ url: (
17485
+ rootUrl + '/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}'
17486
+ ).replace(/([^:]\/)\/+/g, '$1'),
17487
+ method: 'GET',
17488
+ apiVersion: '',
17489
+ },
17490
+ options
17491
+ ),
17492
+ params,
17493
+ requiredParams: ['bucket', 'rapidCacheId'],
17494
+ pathParams: ['bucket', 'rapidCacheId'],
17495
+ context: this.context,
17496
+ };
17497
+ if (callback) {
17498
+ createAPIRequest<Schema$RapidCache>(
17499
+ parameters,
17500
+ callback as BodyResponseCallback<unknown>
17501
+ );
17502
+ } else {
17503
+ return createAPIRequest<Schema$RapidCache>(parameters);
17504
+ }
17505
+ }
17506
+
17507
+ /**
17508
+ * Creates a Rapid Cache instance.
17509
+ * @example
17510
+ * ```js
17511
+ * // Before running the sample:
17512
+ * // - Enable the API at:
17513
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
17514
+ * // - Login into gcloud by running:
17515
+ * // ```sh
17516
+ * // $ gcloud auth application-default login
17517
+ * // ```
17518
+ * // - Install the npm module by running:
17519
+ * // ```sh
17520
+ * // $ npm install googleapis
17521
+ * // ```
17522
+ *
17523
+ * const {google} = require('googleapis');
17524
+ * const storage = google.storage('v1');
17525
+ *
17526
+ * async function main() {
17527
+ * const auth = new google.auth.GoogleAuth({
17528
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17529
+ * scopes: [
17530
+ * 'https://www.googleapis.com/auth/cloud-platform',
17531
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
17532
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
17533
+ * ],
17534
+ * });
17535
+ *
17536
+ * // Acquire an auth client, and bind it to all future calls
17537
+ * const authClient = await auth.getClient();
17538
+ * google.options({auth: authClient});
17539
+ *
17540
+ * // Do the magic
17541
+ * const res = await storage.rapidCaches.insert({
17542
+ * // Name of the parent bucket.
17543
+ * bucket: 'placeholder-value',
17544
+ *
17545
+ * // Request body metadata
17546
+ * requestBody: {
17547
+ * // request body parameters
17548
+ * // {
17549
+ * // "admissionPolicy": "my_admissionPolicy",
17550
+ * // "bucket": "my_bucket",
17551
+ * // "cacheType": "my_cacheType",
17552
+ * // "createTime": "my_createTime",
17553
+ * // "id": "my_id",
17554
+ * // "ingestOnWrite": false,
17555
+ * // "kind": "my_kind",
17556
+ * // "pendingUpdate": false,
17557
+ * // "rapidCacheId": "my_rapidCacheId",
17558
+ * // "selfLink": "my_selfLink",
17559
+ * // "state": "my_state",
17560
+ * // "ttl": "my_ttl",
17561
+ * // "updateTime": "my_updateTime",
17562
+ * // "zone": "my_zone"
17563
+ * // }
17564
+ * },
17565
+ * });
17566
+ * console.log(res.data);
17567
+ *
17568
+ * // Example response
17569
+ * // {
17570
+ * // "done": false,
17571
+ * // "error": {},
17572
+ * // "kind": "my_kind",
17573
+ * // "metadata": {},
17574
+ * // "name": "my_name",
17575
+ * // "response": {},
17576
+ * // "selfLink": "my_selfLink"
17577
+ * // }
17578
+ * }
17579
+ *
17580
+ * main().catch(e => {
17581
+ * console.error(e);
17582
+ * throw e;
17583
+ * });
17584
+ *
17585
+ * ```
17586
+ *
17587
+ * @param params - Parameters for request
17588
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17589
+ * @param callback - Optional callback that handles the response.
17590
+ * @returns A promise if used with async/await, or void if used with a callback.
17591
+ */
17592
+ insert(
17593
+ params: Params$Resource$Rapidcaches$Insert,
17594
+ options: StreamMethodOptions
17595
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17596
+ insert(
17597
+ params?: Params$Resource$Rapidcaches$Insert,
17598
+ options?: MethodOptions
17599
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
17600
+ insert(
17601
+ params: Params$Resource$Rapidcaches$Insert,
17602
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17603
+ callback: BodyResponseCallback<Readable>
17604
+ ): void;
17605
+ insert(
17606
+ params: Params$Resource$Rapidcaches$Insert,
17607
+ options:
17608
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
17609
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17610
+ ): void;
17611
+ insert(
17612
+ params: Params$Resource$Rapidcaches$Insert,
17613
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17614
+ ): void;
17615
+ insert(
17616
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17617
+ ): void;
17618
+ insert(
17619
+ paramsOrCallback?:
17620
+ | Params$Resource$Rapidcaches$Insert
17621
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17622
+ | BodyResponseCallback<Readable>,
17623
+ optionsOrCallback?:
17624
+ | MethodOptions
17625
+ | StreamMethodOptions
17626
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17627
+ | BodyResponseCallback<Readable>,
17628
+ callback?:
17629
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17630
+ | BodyResponseCallback<Readable>
17631
+ ):
17632
+ | void
17633
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
17634
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17635
+ let params = (paramsOrCallback ||
17636
+ {}) as Params$Resource$Rapidcaches$Insert;
17637
+ let options = (optionsOrCallback || {}) as MethodOptions;
17638
+
17639
+ if (typeof paramsOrCallback === 'function') {
17640
+ callback = paramsOrCallback;
17641
+ params = {} as Params$Resource$Rapidcaches$Insert;
17642
+ options = {};
17643
+ }
17644
+
17645
+ if (typeof optionsOrCallback === 'function') {
17646
+ callback = optionsOrCallback;
17647
+ options = {};
17648
+ }
17649
+
17650
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
17651
+ const parameters = {
17652
+ options: Object.assign(
17653
+ {
17654
+ url: (rootUrl + '/storage/v1/b/{bucket}/rapidCaches').replace(
17655
+ /([^:]\/)\/+/g,
17656
+ '$1'
17657
+ ),
17658
+ method: 'POST',
17659
+ apiVersion: '',
17660
+ },
17661
+ options
17662
+ ),
17663
+ params,
17664
+ requiredParams: ['bucket'],
17665
+ pathParams: ['bucket'],
17666
+ context: this.context,
17667
+ };
17668
+ if (callback) {
17669
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
17670
+ parameters,
17671
+ callback as BodyResponseCallback<unknown>
17672
+ );
17673
+ } else {
17674
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
17675
+ }
17676
+ }
17677
+
17678
+ /**
17679
+ * Returns a list of Rapid Cache instances of the bucket.
17680
+ * @example
17681
+ * ```js
17682
+ * // Before running the sample:
17683
+ * // - Enable the API at:
17684
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
17685
+ * // - Login into gcloud by running:
17686
+ * // ```sh
17687
+ * // $ gcloud auth application-default login
17688
+ * // ```
17689
+ * // - Install the npm module by running:
17690
+ * // ```sh
17691
+ * // $ npm install googleapis
17692
+ * // ```
17693
+ *
17694
+ * const {google} = require('googleapis');
17695
+ * const storage = google.storage('v1');
17696
+ *
17697
+ * async function main() {
17698
+ * const auth = new google.auth.GoogleAuth({
17699
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17700
+ * scopes: [
17701
+ * 'https://www.googleapis.com/auth/cloud-platform',
17702
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
17703
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
17704
+ * 'https://www.googleapis.com/auth/devstorage.read_only',
17705
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
17706
+ * ],
17707
+ * });
17708
+ *
17709
+ * // Acquire an auth client, and bind it to all future calls
17710
+ * const authClient = await auth.getClient();
17711
+ * google.options({auth: authClient});
17712
+ *
17713
+ * // Do the magic
17714
+ * const res = await storage.rapidCaches.list({
17715
+ * // Name of the parent bucket.
17716
+ * bucket: 'placeholder-value',
17717
+ * // Maximum number of items to return in a single page of responses.
17718
+ * pageSize: 'placeholder-value',
17719
+ * // A previously-returned page token representing part of the larger set of results to view.
17720
+ * pageToken: 'placeholder-value',
17721
+ * });
17722
+ * console.log(res.data);
17723
+ *
17724
+ * // Example response
17725
+ * // {
17726
+ * // "items": [],
17727
+ * // "kind": "my_kind",
17728
+ * // "nextPageToken": "my_nextPageToken"
17729
+ * // }
17730
+ * }
17731
+ *
17732
+ * main().catch(e => {
17733
+ * console.error(e);
17734
+ * throw e;
17735
+ * });
17736
+ *
17737
+ * ```
17738
+ *
17739
+ * @param params - Parameters for request
17740
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17741
+ * @param callback - Optional callback that handles the response.
17742
+ * @returns A promise if used with async/await, or void if used with a callback.
17743
+ */
17744
+ list(
17745
+ params: Params$Resource$Rapidcaches$List,
17746
+ options: StreamMethodOptions
17747
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17748
+ list(
17749
+ params?: Params$Resource$Rapidcaches$List,
17750
+ options?: MethodOptions
17751
+ ): Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>;
17752
+ list(
17753
+ params: Params$Resource$Rapidcaches$List,
17754
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17755
+ callback: BodyResponseCallback<Readable>
17756
+ ): void;
17757
+ list(
17758
+ params: Params$Resource$Rapidcaches$List,
17759
+ options: MethodOptions | BodyResponseCallback<Schema$RapidCaches>,
17760
+ callback: BodyResponseCallback<Schema$RapidCaches>
17761
+ ): void;
17762
+ list(
17763
+ params: Params$Resource$Rapidcaches$List,
17764
+ callback: BodyResponseCallback<Schema$RapidCaches>
17765
+ ): void;
17766
+ list(callback: BodyResponseCallback<Schema$RapidCaches>): void;
17767
+ list(
17768
+ paramsOrCallback?:
17769
+ | Params$Resource$Rapidcaches$List
17770
+ | BodyResponseCallback<Schema$RapidCaches>
17771
+ | BodyResponseCallback<Readable>,
17772
+ optionsOrCallback?:
17773
+ | MethodOptions
17774
+ | StreamMethodOptions
17775
+ | BodyResponseCallback<Schema$RapidCaches>
17776
+ | BodyResponseCallback<Readable>,
17777
+ callback?:
17778
+ | BodyResponseCallback<Schema$RapidCaches>
17779
+ | BodyResponseCallback<Readable>
17780
+ ):
17781
+ | void
17782
+ | Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>
17783
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17784
+ let params = (paramsOrCallback || {}) as Params$Resource$Rapidcaches$List;
17785
+ let options = (optionsOrCallback || {}) as MethodOptions;
17786
+
17787
+ if (typeof paramsOrCallback === 'function') {
17788
+ callback = paramsOrCallback;
17789
+ params = {} as Params$Resource$Rapidcaches$List;
17790
+ options = {};
17791
+ }
17792
+
17793
+ if (typeof optionsOrCallback === 'function') {
17794
+ callback = optionsOrCallback;
17795
+ options = {};
17796
+ }
17797
+
17798
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
17799
+ const parameters = {
17800
+ options: Object.assign(
17801
+ {
17802
+ url: (rootUrl + '/storage/v1/b/{bucket}/rapidCaches').replace(
17803
+ /([^:]\/)\/+/g,
17804
+ '$1'
17805
+ ),
17806
+ method: 'GET',
17807
+ apiVersion: '',
17808
+ },
17809
+ options
17810
+ ),
17811
+ params,
17812
+ requiredParams: ['bucket'],
17813
+ pathParams: ['bucket'],
17814
+ context: this.context,
17815
+ };
17816
+ if (callback) {
17817
+ createAPIRequest<Schema$RapidCaches>(
17818
+ parameters,
17819
+ callback as BodyResponseCallback<unknown>
17820
+ );
17821
+ } else {
17822
+ return createAPIRequest<Schema$RapidCaches>(parameters);
17823
+ }
17824
+ }
17825
+
17826
+ /**
17827
+ * Updates the configuration of a Rapid Cache instance.
17828
+ * @example
17829
+ * ```js
17830
+ * // Before running the sample:
17831
+ * // - Enable the API at:
17832
+ * // https://console.developers.google.com/apis/api/storage.googleapis.com
17833
+ * // - Login into gcloud by running:
17834
+ * // ```sh
17835
+ * // $ gcloud auth application-default login
17836
+ * // ```
17837
+ * // - Install the npm module by running:
17838
+ * // ```sh
17839
+ * // $ npm install googleapis
17840
+ * // ```
17841
+ *
17842
+ * const {google} = require('googleapis');
17843
+ * const storage = google.storage('v1');
17844
+ *
17845
+ * async function main() {
17846
+ * const auth = new google.auth.GoogleAuth({
17847
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17848
+ * scopes: [
17849
+ * 'https://www.googleapis.com/auth/cloud-platform',
17850
+ * 'https://www.googleapis.com/auth/devstorage.full_control',
17851
+ * 'https://www.googleapis.com/auth/devstorage.read_write',
17852
+ * ],
17853
+ * });
17854
+ *
17855
+ * // Acquire an auth client, and bind it to all future calls
17856
+ * const authClient = await auth.getClient();
17857
+ * google.options({auth: authClient});
17858
+ *
17859
+ * // Do the magic
17860
+ * const res = await storage.rapidCaches.update({
17861
+ * // Name of the parent bucket.
17862
+ * bucket: 'placeholder-value',
17863
+ * // The ID of the requested Rapid Cache instance.
17864
+ * rapidCacheId: 'placeholder-value',
17865
+ *
17866
+ * // Request body metadata
17867
+ * requestBody: {
17868
+ * // request body parameters
17869
+ * // {
17870
+ * // "admissionPolicy": "my_admissionPolicy",
17871
+ * // "bucket": "my_bucket",
17872
+ * // "cacheType": "my_cacheType",
17873
+ * // "createTime": "my_createTime",
17874
+ * // "id": "my_id",
17875
+ * // "ingestOnWrite": false,
17876
+ * // "kind": "my_kind",
17877
+ * // "pendingUpdate": false,
17878
+ * // "rapidCacheId": "my_rapidCacheId",
17879
+ * // "selfLink": "my_selfLink",
17880
+ * // "state": "my_state",
17881
+ * // "ttl": "my_ttl",
17882
+ * // "updateTime": "my_updateTime",
17883
+ * // "zone": "my_zone"
17884
+ * // }
17885
+ * },
17886
+ * });
17887
+ * console.log(res.data);
17888
+ *
17889
+ * // Example response
17890
+ * // {
17891
+ * // "done": false,
17892
+ * // "error": {},
17893
+ * // "kind": "my_kind",
17894
+ * // "metadata": {},
17895
+ * // "name": "my_name",
17896
+ * // "response": {},
17897
+ * // "selfLink": "my_selfLink"
17898
+ * // }
17899
+ * }
17900
+ *
17901
+ * main().catch(e => {
17902
+ * console.error(e);
17903
+ * throw e;
17904
+ * });
17905
+ *
17906
+ * ```
17907
+ *
17908
+ * @param params - Parameters for request
17909
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17910
+ * @param callback - Optional callback that handles the response.
17911
+ * @returns A promise if used with async/await, or void if used with a callback.
17912
+ */
17913
+ update(
17914
+ params: Params$Resource$Rapidcaches$Update,
17915
+ options: StreamMethodOptions
17916
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17917
+ update(
17918
+ params?: Params$Resource$Rapidcaches$Update,
17919
+ options?: MethodOptions
17920
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
17921
+ update(
17922
+ params: Params$Resource$Rapidcaches$Update,
17923
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17924
+ callback: BodyResponseCallback<Readable>
17925
+ ): void;
17926
+ update(
17927
+ params: Params$Resource$Rapidcaches$Update,
17928
+ options:
17929
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
17930
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17931
+ ): void;
17932
+ update(
17933
+ params: Params$Resource$Rapidcaches$Update,
17934
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17935
+ ): void;
17936
+ update(
17937
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
17938
+ ): void;
17939
+ update(
17940
+ paramsOrCallback?:
17941
+ | Params$Resource$Rapidcaches$Update
17942
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17943
+ | BodyResponseCallback<Readable>,
17944
+ optionsOrCallback?:
17945
+ | MethodOptions
17946
+ | StreamMethodOptions
17947
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17948
+ | BodyResponseCallback<Readable>,
17949
+ callback?:
17950
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
17951
+ | BodyResponseCallback<Readable>
17952
+ ):
17953
+ | void
17954
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
17955
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17956
+ let params = (paramsOrCallback ||
17957
+ {}) as Params$Resource$Rapidcaches$Update;
17958
+ let options = (optionsOrCallback || {}) as MethodOptions;
17959
+
17960
+ if (typeof paramsOrCallback === 'function') {
17961
+ callback = paramsOrCallback;
17962
+ params = {} as Params$Resource$Rapidcaches$Update;
17963
+ options = {};
17964
+ }
17965
+
17966
+ if (typeof optionsOrCallback === 'function') {
17967
+ callback = optionsOrCallback;
17968
+ options = {};
17969
+ }
17970
+
17971
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
17972
+ const parameters = {
17973
+ options: Object.assign(
17974
+ {
17975
+ url: (
17976
+ rootUrl + '/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}'
17977
+ ).replace(/([^:]\/)\/+/g, '$1'),
17978
+ method: 'PATCH',
17979
+ apiVersion: '',
17980
+ },
17981
+ options
17982
+ ),
17983
+ params,
17984
+ requiredParams: ['bucket', 'rapidCacheId'],
17985
+ pathParams: ['bucket', 'rapidCacheId'],
17986
+ context: this.context,
17987
+ };
17988
+ if (callback) {
17989
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
17990
+ parameters,
17991
+ callback as BodyResponseCallback<unknown>
17992
+ );
17993
+ } else {
17994
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
17995
+ }
17996
+ }
17997
+ }
17998
+
17999
+ export interface Params$Resource$Rapidcaches$Disable extends StandardParameters {
18000
+ /**
18001
+ * Name of the parent bucket.
18002
+ */
18003
+ bucket?: string;
18004
+ /**
18005
+ * The ID of the requested Rapid Cache instance.
18006
+ */
18007
+ rapidCacheId?: string;
18008
+ }
18009
+ export interface Params$Resource$Rapidcaches$Get extends StandardParameters {
18010
+ /**
18011
+ * Name of the parent bucket.
18012
+ */
18013
+ bucket?: string;
18014
+ /**
18015
+ * The ID of the requested Rapid Cache instance.
18016
+ */
18017
+ rapidCacheId?: string;
18018
+ }
18019
+ export interface Params$Resource$Rapidcaches$Insert extends StandardParameters {
18020
+ /**
18021
+ * Name of the parent bucket.
18022
+ */
18023
+ bucket?: string;
18024
+
18025
+ /**
18026
+ * Request body metadata
18027
+ */
18028
+ requestBody?: Schema$RapidCache;
18029
+ }
18030
+ export interface Params$Resource$Rapidcaches$List extends StandardParameters {
18031
+ /**
18032
+ * Name of the parent bucket.
18033
+ */
18034
+ bucket?: string;
18035
+ /**
18036
+ * Maximum number of items to return in a single page of responses.
18037
+ */
18038
+ pageSize?: number;
18039
+ /**
18040
+ * A previously-returned page token representing part of the larger set of results to view.
18041
+ */
18042
+ pageToken?: string;
18043
+ }
18044
+ export interface Params$Resource$Rapidcaches$Update extends StandardParameters {
18045
+ /**
18046
+ * Name of the parent bucket.
18047
+ */
18048
+ bucket?: string;
18049
+ /**
18050
+ * The ID of the requested Rapid Cache instance.
18051
+ */
18052
+ rapidCacheId?: string;
18053
+
18054
+ /**
18055
+ * Request body metadata
18056
+ */
18057
+ requestBody?: Schema$RapidCache;
18058
+ }
16891
18059
  }