@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/CHANGELOG.md +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +697 -0
- package/build/v1.js +200 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1168 -0
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);
|
|
@@ -10598,5 +10824,476 @@ export declare namespace storage_v1 {
|
|
|
10598
10824
|
*/
|
|
10599
10825
|
userProject?: string;
|
|
10600
10826
|
}
|
|
10827
|
+
export class Resource$Rapidcaches {
|
|
10828
|
+
context: APIRequestContext;
|
|
10829
|
+
constructor(context: APIRequestContext);
|
|
10830
|
+
/**
|
|
10831
|
+
* Disables a Rapid Cache instance.
|
|
10832
|
+
* @example
|
|
10833
|
+
* ```js
|
|
10834
|
+
* // Before running the sample:
|
|
10835
|
+
* // - Enable the API at:
|
|
10836
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
10837
|
+
* // - Login into gcloud by running:
|
|
10838
|
+
* // ```sh
|
|
10839
|
+
* // $ gcloud auth application-default login
|
|
10840
|
+
* // ```
|
|
10841
|
+
* // - Install the npm module by running:
|
|
10842
|
+
* // ```sh
|
|
10843
|
+
* // $ npm install googleapis
|
|
10844
|
+
* // ```
|
|
10845
|
+
*
|
|
10846
|
+
* const {google} = require('googleapis');
|
|
10847
|
+
* const storage = google.storage('v1');
|
|
10848
|
+
*
|
|
10849
|
+
* async function main() {
|
|
10850
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10851
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10852
|
+
* scopes: [
|
|
10853
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
10854
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
10855
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
10856
|
+
* ],
|
|
10857
|
+
* });
|
|
10858
|
+
*
|
|
10859
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10860
|
+
* const authClient = await auth.getClient();
|
|
10861
|
+
* google.options({auth: authClient});
|
|
10862
|
+
*
|
|
10863
|
+
* // Do the magic
|
|
10864
|
+
* const res = await storage.rapidCaches.disable({
|
|
10865
|
+
* // Name of the parent bucket.
|
|
10866
|
+
* bucket: 'placeholder-value',
|
|
10867
|
+
* // The ID of the requested Rapid Cache instance.
|
|
10868
|
+
* rapidCacheId: 'placeholder-value',
|
|
10869
|
+
* });
|
|
10870
|
+
* console.log(res.data);
|
|
10871
|
+
*
|
|
10872
|
+
* // Example response
|
|
10873
|
+
* // {
|
|
10874
|
+
* // "done": false,
|
|
10875
|
+
* // "error": {},
|
|
10876
|
+
* // "kind": "my_kind",
|
|
10877
|
+
* // "metadata": {},
|
|
10878
|
+
* // "name": "my_name",
|
|
10879
|
+
* // "response": {},
|
|
10880
|
+
* // "selfLink": "my_selfLink"
|
|
10881
|
+
* // }
|
|
10882
|
+
* }
|
|
10883
|
+
*
|
|
10884
|
+
* main().catch(e => {
|
|
10885
|
+
* console.error(e);
|
|
10886
|
+
* throw e;
|
|
10887
|
+
* });
|
|
10888
|
+
*
|
|
10889
|
+
* ```
|
|
10890
|
+
*
|
|
10891
|
+
* @param params - Parameters for request
|
|
10892
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10893
|
+
* @param callback - Optional callback that handles the response.
|
|
10894
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10895
|
+
*/
|
|
10896
|
+
disable(params: Params$Resource$Rapidcaches$Disable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10897
|
+
disable(params?: Params$Resource$Rapidcaches$Disable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
10898
|
+
disable(params: Params$Resource$Rapidcaches$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
10899
|
+
disable(params: Params$Resource$Rapidcaches$Disable, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
10900
|
+
disable(params: Params$Resource$Rapidcaches$Disable, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
10901
|
+
disable(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
10902
|
+
/**
|
|
10903
|
+
* Returns the metadata of a Rapid Cache instance.
|
|
10904
|
+
* @example
|
|
10905
|
+
* ```js
|
|
10906
|
+
* // Before running the sample:
|
|
10907
|
+
* // - Enable the API at:
|
|
10908
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
10909
|
+
* // - Login into gcloud by running:
|
|
10910
|
+
* // ```sh
|
|
10911
|
+
* // $ gcloud auth application-default login
|
|
10912
|
+
* // ```
|
|
10913
|
+
* // - Install the npm module by running:
|
|
10914
|
+
* // ```sh
|
|
10915
|
+
* // $ npm install googleapis
|
|
10916
|
+
* // ```
|
|
10917
|
+
*
|
|
10918
|
+
* const {google} = require('googleapis');
|
|
10919
|
+
* const storage = google.storage('v1');
|
|
10920
|
+
*
|
|
10921
|
+
* async function main() {
|
|
10922
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10923
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10924
|
+
* scopes: [
|
|
10925
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
10926
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
10927
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
10928
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
10929
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
10930
|
+
* ],
|
|
10931
|
+
* });
|
|
10932
|
+
*
|
|
10933
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10934
|
+
* const authClient = await auth.getClient();
|
|
10935
|
+
* google.options({auth: authClient});
|
|
10936
|
+
*
|
|
10937
|
+
* // Do the magic
|
|
10938
|
+
* const res = await storage.rapidCaches.get({
|
|
10939
|
+
* // Name of the parent bucket.
|
|
10940
|
+
* bucket: 'placeholder-value',
|
|
10941
|
+
* // The ID of the requested Rapid Cache instance.
|
|
10942
|
+
* rapidCacheId: 'placeholder-value',
|
|
10943
|
+
* });
|
|
10944
|
+
* console.log(res.data);
|
|
10945
|
+
*
|
|
10946
|
+
* // Example response
|
|
10947
|
+
* // {
|
|
10948
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
10949
|
+
* // "bucket": "my_bucket",
|
|
10950
|
+
* // "cacheType": "my_cacheType",
|
|
10951
|
+
* // "createTime": "my_createTime",
|
|
10952
|
+
* // "id": "my_id",
|
|
10953
|
+
* // "ingestOnWrite": false,
|
|
10954
|
+
* // "kind": "my_kind",
|
|
10955
|
+
* // "pendingUpdate": false,
|
|
10956
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
10957
|
+
* // "selfLink": "my_selfLink",
|
|
10958
|
+
* // "state": "my_state",
|
|
10959
|
+
* // "ttl": "my_ttl",
|
|
10960
|
+
* // "updateTime": "my_updateTime",
|
|
10961
|
+
* // "zone": "my_zone"
|
|
10962
|
+
* // }
|
|
10963
|
+
* }
|
|
10964
|
+
*
|
|
10965
|
+
* main().catch(e => {
|
|
10966
|
+
* console.error(e);
|
|
10967
|
+
* throw e;
|
|
10968
|
+
* });
|
|
10969
|
+
*
|
|
10970
|
+
* ```
|
|
10971
|
+
*
|
|
10972
|
+
* @param params - Parameters for request
|
|
10973
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10974
|
+
* @param callback - Optional callback that handles the response.
|
|
10975
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10976
|
+
*/
|
|
10977
|
+
get(params: Params$Resource$Rapidcaches$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10978
|
+
get(params?: Params$Resource$Rapidcaches$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>;
|
|
10979
|
+
get(params: Params$Resource$Rapidcaches$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
10980
|
+
get(params: Params$Resource$Rapidcaches$Get, options: MethodOptions | BodyResponseCallback<Schema$RapidCache>, callback: BodyResponseCallback<Schema$RapidCache>): void;
|
|
10981
|
+
get(params: Params$Resource$Rapidcaches$Get, callback: BodyResponseCallback<Schema$RapidCache>): void;
|
|
10982
|
+
get(callback: BodyResponseCallback<Schema$RapidCache>): void;
|
|
10983
|
+
/**
|
|
10984
|
+
* Creates a Rapid Cache instance.
|
|
10985
|
+
* @example
|
|
10986
|
+
* ```js
|
|
10987
|
+
* // Before running the sample:
|
|
10988
|
+
* // - Enable the API at:
|
|
10989
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
10990
|
+
* // - Login into gcloud by running:
|
|
10991
|
+
* // ```sh
|
|
10992
|
+
* // $ gcloud auth application-default login
|
|
10993
|
+
* // ```
|
|
10994
|
+
* // - Install the npm module by running:
|
|
10995
|
+
* // ```sh
|
|
10996
|
+
* // $ npm install googleapis
|
|
10997
|
+
* // ```
|
|
10998
|
+
*
|
|
10999
|
+
* const {google} = require('googleapis');
|
|
11000
|
+
* const storage = google.storage('v1');
|
|
11001
|
+
*
|
|
11002
|
+
* async function main() {
|
|
11003
|
+
* const auth = new google.auth.GoogleAuth({
|
|
11004
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11005
|
+
* scopes: [
|
|
11006
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
11007
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
11008
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
11009
|
+
* ],
|
|
11010
|
+
* });
|
|
11011
|
+
*
|
|
11012
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
11013
|
+
* const authClient = await auth.getClient();
|
|
11014
|
+
* google.options({auth: authClient});
|
|
11015
|
+
*
|
|
11016
|
+
* // Do the magic
|
|
11017
|
+
* const res = await storage.rapidCaches.insert({
|
|
11018
|
+
* // Name of the parent bucket.
|
|
11019
|
+
* bucket: 'placeholder-value',
|
|
11020
|
+
*
|
|
11021
|
+
* // Request body metadata
|
|
11022
|
+
* requestBody: {
|
|
11023
|
+
* // request body parameters
|
|
11024
|
+
* // {
|
|
11025
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
11026
|
+
* // "bucket": "my_bucket",
|
|
11027
|
+
* // "cacheType": "my_cacheType",
|
|
11028
|
+
* // "createTime": "my_createTime",
|
|
11029
|
+
* // "id": "my_id",
|
|
11030
|
+
* // "ingestOnWrite": false,
|
|
11031
|
+
* // "kind": "my_kind",
|
|
11032
|
+
* // "pendingUpdate": false,
|
|
11033
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
11034
|
+
* // "selfLink": "my_selfLink",
|
|
11035
|
+
* // "state": "my_state",
|
|
11036
|
+
* // "ttl": "my_ttl",
|
|
11037
|
+
* // "updateTime": "my_updateTime",
|
|
11038
|
+
* // "zone": "my_zone"
|
|
11039
|
+
* // }
|
|
11040
|
+
* },
|
|
11041
|
+
* });
|
|
11042
|
+
* console.log(res.data);
|
|
11043
|
+
*
|
|
11044
|
+
* // Example response
|
|
11045
|
+
* // {
|
|
11046
|
+
* // "done": false,
|
|
11047
|
+
* // "error": {},
|
|
11048
|
+
* // "kind": "my_kind",
|
|
11049
|
+
* // "metadata": {},
|
|
11050
|
+
* // "name": "my_name",
|
|
11051
|
+
* // "response": {},
|
|
11052
|
+
* // "selfLink": "my_selfLink"
|
|
11053
|
+
* // }
|
|
11054
|
+
* }
|
|
11055
|
+
*
|
|
11056
|
+
* main().catch(e => {
|
|
11057
|
+
* console.error(e);
|
|
11058
|
+
* throw e;
|
|
11059
|
+
* });
|
|
11060
|
+
*
|
|
11061
|
+
* ```
|
|
11062
|
+
*
|
|
11063
|
+
* @param params - Parameters for request
|
|
11064
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11065
|
+
* @param callback - Optional callback that handles the response.
|
|
11066
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11067
|
+
*/
|
|
11068
|
+
insert(params: Params$Resource$Rapidcaches$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11069
|
+
insert(params?: Params$Resource$Rapidcaches$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
11070
|
+
insert(params: Params$Resource$Rapidcaches$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
11071
|
+
insert(params: Params$Resource$Rapidcaches$Insert, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11072
|
+
insert(params: Params$Resource$Rapidcaches$Insert, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11073
|
+
insert(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11074
|
+
/**
|
|
11075
|
+
* Returns a list of Rapid Cache instances of the bucket.
|
|
11076
|
+
* @example
|
|
11077
|
+
* ```js
|
|
11078
|
+
* // Before running the sample:
|
|
11079
|
+
* // - Enable the API at:
|
|
11080
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
11081
|
+
* // - Login into gcloud by running:
|
|
11082
|
+
* // ```sh
|
|
11083
|
+
* // $ gcloud auth application-default login
|
|
11084
|
+
* // ```
|
|
11085
|
+
* // - Install the npm module by running:
|
|
11086
|
+
* // ```sh
|
|
11087
|
+
* // $ npm install googleapis
|
|
11088
|
+
* // ```
|
|
11089
|
+
*
|
|
11090
|
+
* const {google} = require('googleapis');
|
|
11091
|
+
* const storage = google.storage('v1');
|
|
11092
|
+
*
|
|
11093
|
+
* async function main() {
|
|
11094
|
+
* const auth = new google.auth.GoogleAuth({
|
|
11095
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11096
|
+
* scopes: [
|
|
11097
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
11098
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
11099
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
11100
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
11101
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
11102
|
+
* ],
|
|
11103
|
+
* });
|
|
11104
|
+
*
|
|
11105
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
11106
|
+
* const authClient = await auth.getClient();
|
|
11107
|
+
* google.options({auth: authClient});
|
|
11108
|
+
*
|
|
11109
|
+
* // Do the magic
|
|
11110
|
+
* const res = await storage.rapidCaches.list({
|
|
11111
|
+
* // Name of the parent bucket.
|
|
11112
|
+
* bucket: 'placeholder-value',
|
|
11113
|
+
* // Maximum number of items to return in a single page of responses.
|
|
11114
|
+
* pageSize: 'placeholder-value',
|
|
11115
|
+
* // A previously-returned page token representing part of the larger set of results to view.
|
|
11116
|
+
* pageToken: 'placeholder-value',
|
|
11117
|
+
* });
|
|
11118
|
+
* console.log(res.data);
|
|
11119
|
+
*
|
|
11120
|
+
* // Example response
|
|
11121
|
+
* // {
|
|
11122
|
+
* // "items": [],
|
|
11123
|
+
* // "kind": "my_kind",
|
|
11124
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
11125
|
+
* // }
|
|
11126
|
+
* }
|
|
11127
|
+
*
|
|
11128
|
+
* main().catch(e => {
|
|
11129
|
+
* console.error(e);
|
|
11130
|
+
* throw e;
|
|
11131
|
+
* });
|
|
11132
|
+
*
|
|
11133
|
+
* ```
|
|
11134
|
+
*
|
|
11135
|
+
* @param params - Parameters for request
|
|
11136
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11137
|
+
* @param callback - Optional callback that handles the response.
|
|
11138
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11139
|
+
*/
|
|
11140
|
+
list(params: Params$Resource$Rapidcaches$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11141
|
+
list(params?: Params$Resource$Rapidcaches$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>;
|
|
11142
|
+
list(params: Params$Resource$Rapidcaches$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
11143
|
+
list(params: Params$Resource$Rapidcaches$List, options: MethodOptions | BodyResponseCallback<Schema$RapidCaches>, callback: BodyResponseCallback<Schema$RapidCaches>): void;
|
|
11144
|
+
list(params: Params$Resource$Rapidcaches$List, callback: BodyResponseCallback<Schema$RapidCaches>): void;
|
|
11145
|
+
list(callback: BodyResponseCallback<Schema$RapidCaches>): void;
|
|
11146
|
+
/**
|
|
11147
|
+
* Updates the configuration of a Rapid Cache instance.
|
|
11148
|
+
* @example
|
|
11149
|
+
* ```js
|
|
11150
|
+
* // Before running the sample:
|
|
11151
|
+
* // - Enable the API at:
|
|
11152
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
11153
|
+
* // - Login into gcloud by running:
|
|
11154
|
+
* // ```sh
|
|
11155
|
+
* // $ gcloud auth application-default login
|
|
11156
|
+
* // ```
|
|
11157
|
+
* // - Install the npm module by running:
|
|
11158
|
+
* // ```sh
|
|
11159
|
+
* // $ npm install googleapis
|
|
11160
|
+
* // ```
|
|
11161
|
+
*
|
|
11162
|
+
* const {google} = require('googleapis');
|
|
11163
|
+
* const storage = google.storage('v1');
|
|
11164
|
+
*
|
|
11165
|
+
* async function main() {
|
|
11166
|
+
* const auth = new google.auth.GoogleAuth({
|
|
11167
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11168
|
+
* scopes: [
|
|
11169
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
11170
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
11171
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
11172
|
+
* ],
|
|
11173
|
+
* });
|
|
11174
|
+
*
|
|
11175
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
11176
|
+
* const authClient = await auth.getClient();
|
|
11177
|
+
* google.options({auth: authClient});
|
|
11178
|
+
*
|
|
11179
|
+
* // Do the magic
|
|
11180
|
+
* const res = await storage.rapidCaches.update({
|
|
11181
|
+
* // Name of the parent bucket.
|
|
11182
|
+
* bucket: 'placeholder-value',
|
|
11183
|
+
* // The ID of the requested Rapid Cache instance.
|
|
11184
|
+
* rapidCacheId: 'placeholder-value',
|
|
11185
|
+
*
|
|
11186
|
+
* // Request body metadata
|
|
11187
|
+
* requestBody: {
|
|
11188
|
+
* // request body parameters
|
|
11189
|
+
* // {
|
|
11190
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
11191
|
+
* // "bucket": "my_bucket",
|
|
11192
|
+
* // "cacheType": "my_cacheType",
|
|
11193
|
+
* // "createTime": "my_createTime",
|
|
11194
|
+
* // "id": "my_id",
|
|
11195
|
+
* // "ingestOnWrite": false,
|
|
11196
|
+
* // "kind": "my_kind",
|
|
11197
|
+
* // "pendingUpdate": false,
|
|
11198
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
11199
|
+
* // "selfLink": "my_selfLink",
|
|
11200
|
+
* // "state": "my_state",
|
|
11201
|
+
* // "ttl": "my_ttl",
|
|
11202
|
+
* // "updateTime": "my_updateTime",
|
|
11203
|
+
* // "zone": "my_zone"
|
|
11204
|
+
* // }
|
|
11205
|
+
* },
|
|
11206
|
+
* });
|
|
11207
|
+
* console.log(res.data);
|
|
11208
|
+
*
|
|
11209
|
+
* // Example response
|
|
11210
|
+
* // {
|
|
11211
|
+
* // "done": false,
|
|
11212
|
+
* // "error": {},
|
|
11213
|
+
* // "kind": "my_kind",
|
|
11214
|
+
* // "metadata": {},
|
|
11215
|
+
* // "name": "my_name",
|
|
11216
|
+
* // "response": {},
|
|
11217
|
+
* // "selfLink": "my_selfLink"
|
|
11218
|
+
* // }
|
|
11219
|
+
* }
|
|
11220
|
+
*
|
|
11221
|
+
* main().catch(e => {
|
|
11222
|
+
* console.error(e);
|
|
11223
|
+
* throw e;
|
|
11224
|
+
* });
|
|
11225
|
+
*
|
|
11226
|
+
* ```
|
|
11227
|
+
*
|
|
11228
|
+
* @param params - Parameters for request
|
|
11229
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11230
|
+
* @param callback - Optional callback that handles the response.
|
|
11231
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11232
|
+
*/
|
|
11233
|
+
update(params: Params$Resource$Rapidcaches$Update, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11234
|
+
update(params?: Params$Resource$Rapidcaches$Update, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
11235
|
+
update(params: Params$Resource$Rapidcaches$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
11236
|
+
update(params: Params$Resource$Rapidcaches$Update, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11237
|
+
update(params: Params$Resource$Rapidcaches$Update, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11238
|
+
update(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
11239
|
+
}
|
|
11240
|
+
export interface Params$Resource$Rapidcaches$Disable extends StandardParameters {
|
|
11241
|
+
/**
|
|
11242
|
+
* Name of the parent bucket.
|
|
11243
|
+
*/
|
|
11244
|
+
bucket?: string;
|
|
11245
|
+
/**
|
|
11246
|
+
* The ID of the requested Rapid Cache instance.
|
|
11247
|
+
*/
|
|
11248
|
+
rapidCacheId?: string;
|
|
11249
|
+
}
|
|
11250
|
+
export interface Params$Resource$Rapidcaches$Get extends StandardParameters {
|
|
11251
|
+
/**
|
|
11252
|
+
* Name of the parent bucket.
|
|
11253
|
+
*/
|
|
11254
|
+
bucket?: string;
|
|
11255
|
+
/**
|
|
11256
|
+
* The ID of the requested Rapid Cache instance.
|
|
11257
|
+
*/
|
|
11258
|
+
rapidCacheId?: string;
|
|
11259
|
+
}
|
|
11260
|
+
export interface Params$Resource$Rapidcaches$Insert extends StandardParameters {
|
|
11261
|
+
/**
|
|
11262
|
+
* Name of the parent bucket.
|
|
11263
|
+
*/
|
|
11264
|
+
bucket?: string;
|
|
11265
|
+
/**
|
|
11266
|
+
* Request body metadata
|
|
11267
|
+
*/
|
|
11268
|
+
requestBody?: Schema$RapidCache;
|
|
11269
|
+
}
|
|
11270
|
+
export interface Params$Resource$Rapidcaches$List extends StandardParameters {
|
|
11271
|
+
/**
|
|
11272
|
+
* Name of the parent bucket.
|
|
11273
|
+
*/
|
|
11274
|
+
bucket?: string;
|
|
11275
|
+
/**
|
|
11276
|
+
* Maximum number of items to return in a single page of responses.
|
|
11277
|
+
*/
|
|
11278
|
+
pageSize?: number;
|
|
11279
|
+
/**
|
|
11280
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
11281
|
+
*/
|
|
11282
|
+
pageToken?: string;
|
|
11283
|
+
}
|
|
11284
|
+
export interface Params$Resource$Rapidcaches$Update extends StandardParameters {
|
|
11285
|
+
/**
|
|
11286
|
+
* Name of the parent bucket.
|
|
11287
|
+
*/
|
|
11288
|
+
bucket?: string;
|
|
11289
|
+
/**
|
|
11290
|
+
* The ID of the requested Rapid Cache instance.
|
|
11291
|
+
*/
|
|
11292
|
+
rapidCacheId?: string;
|
|
11293
|
+
/**
|
|
11294
|
+
* Request body metadata
|
|
11295
|
+
*/
|
|
11296
|
+
requestBody?: Schema$RapidCache;
|
|
11297
|
+
}
|
|
10601
11298
|
export {};
|
|
10602
11299
|
}
|