@googleapis/storage 21.3.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 +18 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +701 -164
- package/build/v1.js +200 -31
- package/build/v1.js.map +1 -1
- package/index.ts +1 -4
- package/package.json +1 -1
- package/v1.ts +1978 -1086
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
|
/**
|
|
@@ -303,6 +304,8 @@ export declare namespace storage_v1 {
|
|
|
303
304
|
matchesSuffix?: string[];
|
|
304
305
|
noncurrentTimeBefore?: string;
|
|
305
306
|
numNewerVersions?: number;
|
|
307
|
+
sizeAboveBytes?: string;
|
|
308
|
+
sizeBelowBytes?: string;
|
|
306
309
|
};
|
|
307
310
|
}>;
|
|
308
311
|
} | null;
|
|
@@ -905,6 +908,10 @@ export declare namespace storage_v1 {
|
|
|
905
908
|
* The name of the managed folder. Required if not specified by URL parameter.
|
|
906
909
|
*/
|
|
907
910
|
name?: string | null;
|
|
911
|
+
/**
|
|
912
|
+
* The rapid cache configuration for the managed folder.
|
|
913
|
+
*/
|
|
914
|
+
rapidCacheConfig?: Schema$RapidCacheConfig;
|
|
908
915
|
/**
|
|
909
916
|
* The link to this managed folder.
|
|
910
917
|
*/
|
|
@@ -1310,6 +1317,108 @@ export declare namespace storage_v1 {
|
|
|
1310
1317
|
*/
|
|
1311
1318
|
version?: number | null;
|
|
1312
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
|
+
}
|
|
1313
1422
|
/**
|
|
1314
1423
|
* A Relocate Bucket request.
|
|
1315
1424
|
*/
|
|
@@ -5648,6 +5757,7 @@ export declare namespace storage_v1 {
|
|
|
5648
5757
|
* // "kind": "my_kind",
|
|
5649
5758
|
* // "metageneration": "my_metageneration",
|
|
5650
5759
|
* // "name": "my_name",
|
|
5760
|
+
* // "rapidCacheConfig": {},
|
|
5651
5761
|
* // "selfLink": "my_selfLink",
|
|
5652
5762
|
* // "updateTime": "my_updateTime"
|
|
5653
5763
|
* // }
|
|
@@ -5795,6 +5905,7 @@ export declare namespace storage_v1 {
|
|
|
5795
5905
|
* // "kind": "my_kind",
|
|
5796
5906
|
* // "metageneration": "my_metageneration",
|
|
5797
5907
|
* // "name": "my_name",
|
|
5908
|
+
* // "rapidCacheConfig": {},
|
|
5798
5909
|
* // "selfLink": "my_selfLink",
|
|
5799
5910
|
* // "updateTime": "my_updateTime"
|
|
5800
5911
|
* // }
|
|
@@ -5810,6 +5921,7 @@ export declare namespace storage_v1 {
|
|
|
5810
5921
|
* // "kind": "my_kind",
|
|
5811
5922
|
* // "metageneration": "my_metageneration",
|
|
5812
5923
|
* // "name": "my_name",
|
|
5924
|
+
* // "rapidCacheConfig": {},
|
|
5813
5925
|
* // "selfLink": "my_selfLink",
|
|
5814
5926
|
* // "updateTime": "my_updateTime"
|
|
5815
5927
|
* // }
|
|
@@ -6063,6 +6175,100 @@ export declare namespace storage_v1 {
|
|
|
6063
6175
|
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
6064
6176
|
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
6065
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;
|
|
6066
6272
|
}
|
|
6067
6273
|
export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
|
|
6068
6274
|
/**
|
|
@@ -6186,6 +6392,28 @@ export declare namespace storage_v1 {
|
|
|
6186
6392
|
*/
|
|
6187
6393
|
userProject?: string;
|
|
6188
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
|
+
}
|
|
6189
6417
|
export class Resource$Notifications {
|
|
6190
6418
|
context: APIRequestContext;
|
|
6191
6419
|
constructor(context: APIRequestContext);
|
|
@@ -9026,120 +9254,8 @@ export declare namespace storage_v1 {
|
|
|
9026
9254
|
update(params: Params$Resource$Objects$Update, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
|
|
9027
9255
|
update(params: Params$Resource$Objects$Update, callback: BodyResponseCallback<Schema$Object>): void;
|
|
9028
9256
|
update(callback: BodyResponseCallback<Schema$Object>): void;
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
* @example
|
|
9032
|
-
* ```js
|
|
9033
|
-
* // Before running the sample:
|
|
9034
|
-
* // - Enable the API at:
|
|
9035
|
-
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
9036
|
-
* // - Login into gcloud by running:
|
|
9037
|
-
* // ```sh
|
|
9038
|
-
* // $ gcloud auth application-default login
|
|
9039
|
-
* // ```
|
|
9040
|
-
* // - Install the npm module by running:
|
|
9041
|
-
* // ```sh
|
|
9042
|
-
* // $ npm install googleapis
|
|
9043
|
-
* // ```
|
|
9044
|
-
*
|
|
9045
|
-
* const {google} = require('googleapis');
|
|
9046
|
-
* const storage = google.storage('v1');
|
|
9047
|
-
*
|
|
9048
|
-
* async function main() {
|
|
9049
|
-
* const auth = new google.auth.GoogleAuth({
|
|
9050
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9051
|
-
* scopes: [
|
|
9052
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
9053
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
9054
|
-
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
9055
|
-
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
9056
|
-
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
9057
|
-
* ],
|
|
9058
|
-
* });
|
|
9059
|
-
*
|
|
9060
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
9061
|
-
* const authClient = await auth.getClient();
|
|
9062
|
-
* google.options({auth: authClient});
|
|
9063
|
-
*
|
|
9064
|
-
* // Do the magic
|
|
9065
|
-
* const res = await storage.objects.watchAll({
|
|
9066
|
-
* // Name of the bucket in which to look for objects.
|
|
9067
|
-
* bucket: 'placeholder-value',
|
|
9068
|
-
* // Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
9069
|
-
* delimiter: 'placeholder-value',
|
|
9070
|
-
* // Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
9071
|
-
* endOffset: 'placeholder-value',
|
|
9072
|
-
* // If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
9073
|
-
* includeTrailingDelimiter: 'placeholder-value',
|
|
9074
|
-
* // Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
|
|
9075
|
-
* maxResults: 'placeholder-value',
|
|
9076
|
-
* // A previously-returned page token representing part of the larger set of results to view.
|
|
9077
|
-
* pageToken: 'placeholder-value',
|
|
9078
|
-
* // Filter results to objects whose names begin with this prefix.
|
|
9079
|
-
* prefix: 'placeholder-value',
|
|
9080
|
-
* // Set of properties to return. Defaults to noAcl.
|
|
9081
|
-
* projection: 'placeholder-value',
|
|
9082
|
-
* // Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
9083
|
-
* startOffset: 'placeholder-value',
|
|
9084
|
-
* // The project to be billed for this request. Required for Requester Pays buckets.
|
|
9085
|
-
* userProject: 'placeholder-value',
|
|
9086
|
-
* // If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning).
|
|
9087
|
-
* versions: 'placeholder-value',
|
|
9088
|
-
*
|
|
9089
|
-
* // Request body metadata
|
|
9090
|
-
* requestBody: {
|
|
9091
|
-
* // request body parameters
|
|
9092
|
-
* // {
|
|
9093
|
-
* // "address": "my_address",
|
|
9094
|
-
* // "expiration": "my_expiration",
|
|
9095
|
-
* // "id": "my_id",
|
|
9096
|
-
* // "kind": "my_kind",
|
|
9097
|
-
* // "params": {},
|
|
9098
|
-
* // "payload": false,
|
|
9099
|
-
* // "resourceId": "my_resourceId",
|
|
9100
|
-
* // "resourceUri": "my_resourceUri",
|
|
9101
|
-
* // "token": "my_token",
|
|
9102
|
-
* // "type": "my_type"
|
|
9103
|
-
* // }
|
|
9104
|
-
* },
|
|
9105
|
-
* });
|
|
9106
|
-
* console.log(res.data);
|
|
9107
|
-
*
|
|
9108
|
-
* // Example response
|
|
9109
|
-
* // {
|
|
9110
|
-
* // "address": "my_address",
|
|
9111
|
-
* // "expiration": "my_expiration",
|
|
9112
|
-
* // "id": "my_id",
|
|
9113
|
-
* // "kind": "my_kind",
|
|
9114
|
-
* // "params": {},
|
|
9115
|
-
* // "payload": false,
|
|
9116
|
-
* // "resourceId": "my_resourceId",
|
|
9117
|
-
* // "resourceUri": "my_resourceUri",
|
|
9118
|
-
* // "token": "my_token",
|
|
9119
|
-
* // "type": "my_type"
|
|
9120
|
-
* // }
|
|
9121
|
-
* }
|
|
9122
|
-
*
|
|
9123
|
-
* main().catch(e => {
|
|
9124
|
-
* console.error(e);
|
|
9125
|
-
* throw e;
|
|
9126
|
-
* });
|
|
9127
|
-
*
|
|
9128
|
-
* ```
|
|
9129
|
-
*
|
|
9130
|
-
* @param params - Parameters for request
|
|
9131
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9132
|
-
* @param callback - Optional callback that handles the response.
|
|
9133
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9134
|
-
*/
|
|
9135
|
-
watchAll(params: Params$Resource$Objects$Watchall, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9136
|
-
watchAll(params?: Params$Resource$Objects$Watchall, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Channel>>;
|
|
9137
|
-
watchAll(params: Params$Resource$Objects$Watchall, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
9138
|
-
watchAll(params: Params$Resource$Objects$Watchall, options: MethodOptions | BodyResponseCallback<Schema$Channel>, callback: BodyResponseCallback<Schema$Channel>): void;
|
|
9139
|
-
watchAll(params: Params$Resource$Objects$Watchall, callback: BodyResponseCallback<Schema$Channel>): void;
|
|
9140
|
-
watchAll(callback: BodyResponseCallback<Schema$Channel>): void;
|
|
9141
|
-
}
|
|
9142
|
-
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
9257
|
+
}
|
|
9258
|
+
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
9143
9259
|
/**
|
|
9144
9260
|
* Name of the bucket in which the object resides.
|
|
9145
9261
|
*/
|
|
@@ -9814,56 +9930,6 @@ export declare namespace storage_v1 {
|
|
|
9814
9930
|
*/
|
|
9815
9931
|
requestBody?: Schema$Object;
|
|
9816
9932
|
}
|
|
9817
|
-
export interface Params$Resource$Objects$Watchall extends StandardParameters {
|
|
9818
|
-
/**
|
|
9819
|
-
* Name of the bucket in which to look for objects.
|
|
9820
|
-
*/
|
|
9821
|
-
bucket?: string;
|
|
9822
|
-
/**
|
|
9823
|
-
* Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
9824
|
-
*/
|
|
9825
|
-
delimiter?: string;
|
|
9826
|
-
/**
|
|
9827
|
-
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
9828
|
-
*/
|
|
9829
|
-
endOffset?: string;
|
|
9830
|
-
/**
|
|
9831
|
-
* If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
9832
|
-
*/
|
|
9833
|
-
includeTrailingDelimiter?: boolean;
|
|
9834
|
-
/**
|
|
9835
|
-
* Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
|
|
9836
|
-
*/
|
|
9837
|
-
maxResults?: number;
|
|
9838
|
-
/**
|
|
9839
|
-
* A previously-returned page token representing part of the larger set of results to view.
|
|
9840
|
-
*/
|
|
9841
|
-
pageToken?: string;
|
|
9842
|
-
/**
|
|
9843
|
-
* Filter results to objects whose names begin with this prefix.
|
|
9844
|
-
*/
|
|
9845
|
-
prefix?: string;
|
|
9846
|
-
/**
|
|
9847
|
-
* Set of properties to return. Defaults to noAcl.
|
|
9848
|
-
*/
|
|
9849
|
-
projection?: string;
|
|
9850
|
-
/**
|
|
9851
|
-
* Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
9852
|
-
*/
|
|
9853
|
-
startOffset?: string;
|
|
9854
|
-
/**
|
|
9855
|
-
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9856
|
-
*/
|
|
9857
|
-
userProject?: string;
|
|
9858
|
-
/**
|
|
9859
|
-
* If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning).
|
|
9860
|
-
*/
|
|
9861
|
-
versions?: boolean;
|
|
9862
|
-
/**
|
|
9863
|
-
* Request body metadata
|
|
9864
|
-
*/
|
|
9865
|
-
requestBody?: Schema$Channel;
|
|
9866
|
-
}
|
|
9867
9933
|
export class Resource$Operations {
|
|
9868
9934
|
context: APIRequestContext;
|
|
9869
9935
|
constructor(context: APIRequestContext);
|
|
@@ -10758,5 +10824,476 @@ export declare namespace storage_v1 {
|
|
|
10758
10824
|
*/
|
|
10759
10825
|
userProject?: string;
|
|
10760
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
|
+
}
|
|
10761
11298
|
export {};
|
|
10762
11299
|
}
|