@googleapis/storage 6.1.0 → 6.2.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/v1.d.ts +247 -0
- package/build/v1.js +229 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +786 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.2.0](https://github.com/googleapis/google-api-nodejs-client/compare/storage-v6.1.0...storage-v6.2.0) (2023-11-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **storage:** update the API ([7bdec60](https://github.com/googleapis/google-api-nodejs-client/commit/7bdec601a5edf20d3e572e5dab97c2a7a6b1792f))
|
|
9
|
+
|
|
3
10
|
## [6.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/storage-v6.0.0...storage-v6.1.0) (2023-10-19)
|
|
4
11
|
|
|
5
12
|
|
package/build/v1.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare namespace storage_v1 {
|
|
|
56
56
|
*/
|
|
57
57
|
export class Storage {
|
|
58
58
|
context: APIRequestContext;
|
|
59
|
+
anywhereCache: Resource$Anywherecache;
|
|
59
60
|
bucketAccessControls: Resource$Bucketaccesscontrols;
|
|
60
61
|
buckets: Resource$Buckets;
|
|
61
62
|
channels: Resource$Channels;
|
|
@@ -68,6 +69,72 @@ export declare namespace storage_v1 {
|
|
|
68
69
|
projects: Resource$Projects;
|
|
69
70
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
70
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* An Anywhere Cache instance.
|
|
74
|
+
*/
|
|
75
|
+
export interface Schema$AnywhereCache {
|
|
76
|
+
/**
|
|
77
|
+
* The cache-level entry admission policy.
|
|
78
|
+
*/
|
|
79
|
+
admissionPolicy?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The ID of the Anywhere cache instance.
|
|
82
|
+
*/
|
|
83
|
+
anywhereCacheId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the bucket containing this cache instance.
|
|
86
|
+
*/
|
|
87
|
+
bucket?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* The creation time of the cache instance in RFC 3339 format.
|
|
90
|
+
*/
|
|
91
|
+
createTime?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the resource, including the project number, bucket name and anywhere cache ID.
|
|
94
|
+
*/
|
|
95
|
+
id?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
|
|
98
|
+
*/
|
|
99
|
+
kind?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* True if the cache instance has an active Update long-running operation.
|
|
102
|
+
*/
|
|
103
|
+
pendingUpdate?: boolean | null;
|
|
104
|
+
/**
|
|
105
|
+
* The link to this cache instance.
|
|
106
|
+
*/
|
|
107
|
+
selfLink?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The current state of the cache instance.
|
|
110
|
+
*/
|
|
111
|
+
state?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* The TTL of all cache entries in whole seconds. e.g., "7200s".
|
|
114
|
+
*/
|
|
115
|
+
ttl?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The modification time of the cache instance metadata in RFC 3339 format.
|
|
118
|
+
*/
|
|
119
|
+
updateTime?: string | null;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A list of Anywhere Caches.
|
|
123
|
+
*/
|
|
124
|
+
export interface Schema$AnywhereCaches {
|
|
125
|
+
/**
|
|
126
|
+
* The list of items.
|
|
127
|
+
*/
|
|
128
|
+
items?: Schema$AnywhereCache[];
|
|
129
|
+
/**
|
|
130
|
+
* The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
|
|
131
|
+
*/
|
|
132
|
+
kind?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
135
|
+
*/
|
|
136
|
+
nextPageToken?: string | null;
|
|
137
|
+
}
|
|
71
138
|
/**
|
|
72
139
|
* A bucket.
|
|
73
140
|
*/
|
|
@@ -1094,6 +1161,186 @@ export declare namespace storage_v1 {
|
|
|
1094
1161
|
*/
|
|
1095
1162
|
permissions?: string[] | null;
|
|
1096
1163
|
}
|
|
1164
|
+
export class Resource$Anywherecache {
|
|
1165
|
+
context: APIRequestContext;
|
|
1166
|
+
constructor(context: APIRequestContext);
|
|
1167
|
+
/**
|
|
1168
|
+
* Disables an Anywhere Cache instance.
|
|
1169
|
+
*
|
|
1170
|
+
* @param params - Parameters for request
|
|
1171
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1172
|
+
* @param callback - Optional callback that handles the response.
|
|
1173
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1174
|
+
*/
|
|
1175
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1176
|
+
disable(params?: Params$Resource$Anywherecache$Disable, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1177
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1178
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1179
|
+
disable(params: Params$Resource$Anywherecache$Disable, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1180
|
+
disable(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1181
|
+
/**
|
|
1182
|
+
* Returns the metadata of an Anywhere Cache instance.
|
|
1183
|
+
*
|
|
1184
|
+
* @param params - Parameters for request
|
|
1185
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1186
|
+
* @param callback - Optional callback that handles the response.
|
|
1187
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1188
|
+
*/
|
|
1189
|
+
get(params: Params$Resource$Anywherecache$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1190
|
+
get(params?: Params$Resource$Anywherecache$Get, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1191
|
+
get(params: Params$Resource$Anywherecache$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1192
|
+
get(params: Params$Resource$Anywherecache$Get, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1193
|
+
get(params: Params$Resource$Anywherecache$Get, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1194
|
+
get(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1195
|
+
/**
|
|
1196
|
+
* Creates an Anywhere Cache instance.
|
|
1197
|
+
*
|
|
1198
|
+
* @param params - Parameters for request
|
|
1199
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1200
|
+
* @param callback - Optional callback that handles the response.
|
|
1201
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1202
|
+
*/
|
|
1203
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1204
|
+
insert(params?: Params$Resource$Anywherecache$Insert, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
1205
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1206
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1207
|
+
insert(params: Params$Resource$Anywherecache$Insert, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1208
|
+
insert(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Returns a list of Anywhere Cache instances of the bucket matching the criteria.
|
|
1211
|
+
*
|
|
1212
|
+
* @param params - Parameters for request
|
|
1213
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1214
|
+
* @param callback - Optional callback that handles the response.
|
|
1215
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1216
|
+
*/
|
|
1217
|
+
list(params: Params$Resource$Anywherecache$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1218
|
+
list(params?: Params$Resource$Anywherecache$List, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCaches>;
|
|
1219
|
+
list(params: Params$Resource$Anywherecache$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1220
|
+
list(params: Params$Resource$Anywherecache$List, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCaches>, callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1221
|
+
list(params: Params$Resource$Anywherecache$List, callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1222
|
+
list(callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1223
|
+
/**
|
|
1224
|
+
* Pauses an Anywhere Cache instance.
|
|
1225
|
+
*
|
|
1226
|
+
* @param params - Parameters for request
|
|
1227
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1228
|
+
* @param callback - Optional callback that handles the response.
|
|
1229
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1230
|
+
*/
|
|
1231
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1232
|
+
pause(params?: Params$Resource$Anywherecache$Pause, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1233
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1234
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1235
|
+
pause(params: Params$Resource$Anywherecache$Pause, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1236
|
+
pause(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1237
|
+
/**
|
|
1238
|
+
* Resumes a paused or disabled Anywhere Cache instance.
|
|
1239
|
+
*
|
|
1240
|
+
* @param params - Parameters for request
|
|
1241
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1242
|
+
* @param callback - Optional callback that handles the response.
|
|
1243
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1244
|
+
*/
|
|
1245
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1246
|
+
resume(params?: Params$Resource$Anywherecache$Resume, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1247
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1248
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1249
|
+
resume(params: Params$Resource$Anywherecache$Resume, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1250
|
+
resume(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1251
|
+
/**
|
|
1252
|
+
* Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
|
|
1253
|
+
*
|
|
1254
|
+
* @param params - Parameters for request
|
|
1255
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1256
|
+
* @param callback - Optional callback that handles the response.
|
|
1257
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1258
|
+
*/
|
|
1259
|
+
update(params: Params$Resource$Anywherecache$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1260
|
+
update(params?: Params$Resource$Anywherecache$Update, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
1261
|
+
update(params: Params$Resource$Anywherecache$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1262
|
+
update(params: Params$Resource$Anywherecache$Update, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1263
|
+
update(params: Params$Resource$Anywherecache$Update, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1264
|
+
update(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1265
|
+
}
|
|
1266
|
+
export interface Params$Resource$Anywherecache$Disable extends StandardParameters {
|
|
1267
|
+
/**
|
|
1268
|
+
* The ID of requested Anywhere Cache instance.
|
|
1269
|
+
*/
|
|
1270
|
+
anywhereCacheId?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Name of the partent bucket
|
|
1273
|
+
*/
|
|
1274
|
+
bucket?: string;
|
|
1275
|
+
}
|
|
1276
|
+
export interface Params$Resource$Anywherecache$Get extends StandardParameters {
|
|
1277
|
+
/**
|
|
1278
|
+
* The ID of requested Anywhere Cache instance.
|
|
1279
|
+
*/
|
|
1280
|
+
anywhereCacheId?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* Name of the partent bucket
|
|
1283
|
+
*/
|
|
1284
|
+
bucket?: string;
|
|
1285
|
+
}
|
|
1286
|
+
export interface Params$Resource$Anywherecache$Insert extends StandardParameters {
|
|
1287
|
+
/**
|
|
1288
|
+
* Name of the partent bucket
|
|
1289
|
+
*/
|
|
1290
|
+
bucket?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Request body metadata
|
|
1293
|
+
*/
|
|
1294
|
+
requestBody?: Schema$AnywhereCache;
|
|
1295
|
+
}
|
|
1296
|
+
export interface Params$Resource$Anywherecache$List extends StandardParameters {
|
|
1297
|
+
/**
|
|
1298
|
+
* Name of the partent bucket
|
|
1299
|
+
*/
|
|
1300
|
+
bucket?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Maximum number of items return in a single page of responses. Maximum 1000.
|
|
1303
|
+
*/
|
|
1304
|
+
pageSize?: number;
|
|
1305
|
+
/**
|
|
1306
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
1307
|
+
*/
|
|
1308
|
+
pageToken?: string;
|
|
1309
|
+
}
|
|
1310
|
+
export interface Params$Resource$Anywherecache$Pause extends StandardParameters {
|
|
1311
|
+
/**
|
|
1312
|
+
* The ID of requested Anywhere Cache instance.
|
|
1313
|
+
*/
|
|
1314
|
+
anywhereCacheId?: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* Name of the partent bucket
|
|
1317
|
+
*/
|
|
1318
|
+
bucket?: string;
|
|
1319
|
+
}
|
|
1320
|
+
export interface Params$Resource$Anywherecache$Resume extends StandardParameters {
|
|
1321
|
+
/**
|
|
1322
|
+
* The ID of requested Anywhere Cache instance.
|
|
1323
|
+
*/
|
|
1324
|
+
anywhereCacheId?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Name of the partent bucket
|
|
1327
|
+
*/
|
|
1328
|
+
bucket?: string;
|
|
1329
|
+
}
|
|
1330
|
+
export interface Params$Resource$Anywherecache$Update extends StandardParameters {
|
|
1331
|
+
/**
|
|
1332
|
+
* The ID of requested Anywhere Cache instance.
|
|
1333
|
+
*/
|
|
1334
|
+
anywhereCacheId?: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Name of the partent bucket
|
|
1337
|
+
*/
|
|
1338
|
+
bucket?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Request body metadata
|
|
1341
|
+
*/
|
|
1342
|
+
requestBody?: Schema$AnywhereCache;
|
|
1343
|
+
}
|
|
1097
1344
|
export class Resource$Bucketaccesscontrols {
|
|
1098
1345
|
context: APIRequestContext;
|
|
1099
1346
|
constructor(context: APIRequestContext);
|
package/build/v1.js
CHANGED
|
@@ -38,6 +38,7 @@ var storage_v1;
|
|
|
38
38
|
_options: options || {},
|
|
39
39
|
google,
|
|
40
40
|
};
|
|
41
|
+
this.anywhereCache = new Resource$Anywherecache(this.context);
|
|
41
42
|
this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context);
|
|
42
43
|
this.buckets = new Resource$Buckets(this.context);
|
|
43
44
|
this.channels = new Resource$Channels(this.context);
|
|
@@ -52,6 +53,234 @@ var storage_v1;
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
storage_v1.Storage = Storage;
|
|
56
|
+
class Resource$Anywherecache {
|
|
57
|
+
constructor(context) {
|
|
58
|
+
this.context = context;
|
|
59
|
+
}
|
|
60
|
+
disable(paramsOrCallback, optionsOrCallback, callback) {
|
|
61
|
+
let params = (paramsOrCallback ||
|
|
62
|
+
{});
|
|
63
|
+
let options = (optionsOrCallback || {});
|
|
64
|
+
if (typeof paramsOrCallback === 'function') {
|
|
65
|
+
callback = paramsOrCallback;
|
|
66
|
+
params = {};
|
|
67
|
+
options = {};
|
|
68
|
+
}
|
|
69
|
+
if (typeof optionsOrCallback === 'function') {
|
|
70
|
+
callback = optionsOrCallback;
|
|
71
|
+
options = {};
|
|
72
|
+
}
|
|
73
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
74
|
+
const parameters = {
|
|
75
|
+
options: Object.assign({
|
|
76
|
+
url: (rootUrl +
|
|
77
|
+
'/storage/v1/b/{bucket}/anywhereCaches/{anywhereCacheId}/disable').replace(/([^:]\/)\/+/g, '$1'),
|
|
78
|
+
method: 'POST',
|
|
79
|
+
}, options),
|
|
80
|
+
params,
|
|
81
|
+
requiredParams: ['bucket', 'anywhereCacheId'],
|
|
82
|
+
pathParams: ['anywhereCacheId', 'bucket'],
|
|
83
|
+
context: this.context,
|
|
84
|
+
};
|
|
85
|
+
if (callback) {
|
|
86
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
93
|
+
let params = (paramsOrCallback ||
|
|
94
|
+
{});
|
|
95
|
+
let options = (optionsOrCallback || {});
|
|
96
|
+
if (typeof paramsOrCallback === 'function') {
|
|
97
|
+
callback = paramsOrCallback;
|
|
98
|
+
params = {};
|
|
99
|
+
options = {};
|
|
100
|
+
}
|
|
101
|
+
if (typeof optionsOrCallback === 'function') {
|
|
102
|
+
callback = optionsOrCallback;
|
|
103
|
+
options = {};
|
|
104
|
+
}
|
|
105
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
106
|
+
const parameters = {
|
|
107
|
+
options: Object.assign({
|
|
108
|
+
url: (rootUrl +
|
|
109
|
+
'/storage/v1/b/{bucket}/anywhereCaches/{anywhereCacheId}').replace(/([^:]\/)\/+/g, '$1'),
|
|
110
|
+
method: 'GET',
|
|
111
|
+
}, options),
|
|
112
|
+
params,
|
|
113
|
+
requiredParams: ['bucket', 'anywhereCacheId'],
|
|
114
|
+
pathParams: ['anywhereCacheId', 'bucket'],
|
|
115
|
+
context: this.context,
|
|
116
|
+
};
|
|
117
|
+
if (callback) {
|
|
118
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
insert(paramsOrCallback, optionsOrCallback, callback) {
|
|
125
|
+
let params = (paramsOrCallback ||
|
|
126
|
+
{});
|
|
127
|
+
let options = (optionsOrCallback || {});
|
|
128
|
+
if (typeof paramsOrCallback === 'function') {
|
|
129
|
+
callback = paramsOrCallback;
|
|
130
|
+
params = {};
|
|
131
|
+
options = {};
|
|
132
|
+
}
|
|
133
|
+
if (typeof optionsOrCallback === 'function') {
|
|
134
|
+
callback = optionsOrCallback;
|
|
135
|
+
options = {};
|
|
136
|
+
}
|
|
137
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
138
|
+
const parameters = {
|
|
139
|
+
options: Object.assign({
|
|
140
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/anywhereCaches').replace(/([^:]\/)\/+/g, '$1'),
|
|
141
|
+
method: 'POST',
|
|
142
|
+
}, options),
|
|
143
|
+
params,
|
|
144
|
+
requiredParams: ['bucket'],
|
|
145
|
+
pathParams: ['bucket'],
|
|
146
|
+
context: this.context,
|
|
147
|
+
};
|
|
148
|
+
if (callback) {
|
|
149
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
list(paramsOrCallback, optionsOrCallback, callback) {
|
|
156
|
+
let params = (paramsOrCallback ||
|
|
157
|
+
{});
|
|
158
|
+
let options = (optionsOrCallback || {});
|
|
159
|
+
if (typeof paramsOrCallback === 'function') {
|
|
160
|
+
callback = paramsOrCallback;
|
|
161
|
+
params = {};
|
|
162
|
+
options = {};
|
|
163
|
+
}
|
|
164
|
+
if (typeof optionsOrCallback === 'function') {
|
|
165
|
+
callback = optionsOrCallback;
|
|
166
|
+
options = {};
|
|
167
|
+
}
|
|
168
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
169
|
+
const parameters = {
|
|
170
|
+
options: Object.assign({
|
|
171
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/anywhereCache').replace(/([^:]\/)\/+/g, '$1'),
|
|
172
|
+
method: 'GET',
|
|
173
|
+
}, options),
|
|
174
|
+
params,
|
|
175
|
+
requiredParams: ['bucket'],
|
|
176
|
+
pathParams: ['bucket'],
|
|
177
|
+
context: this.context,
|
|
178
|
+
};
|
|
179
|
+
if (callback) {
|
|
180
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
pause(paramsOrCallback, optionsOrCallback, callback) {
|
|
187
|
+
let params = (paramsOrCallback ||
|
|
188
|
+
{});
|
|
189
|
+
let options = (optionsOrCallback || {});
|
|
190
|
+
if (typeof paramsOrCallback === 'function') {
|
|
191
|
+
callback = paramsOrCallback;
|
|
192
|
+
params = {};
|
|
193
|
+
options = {};
|
|
194
|
+
}
|
|
195
|
+
if (typeof optionsOrCallback === 'function') {
|
|
196
|
+
callback = optionsOrCallback;
|
|
197
|
+
options = {};
|
|
198
|
+
}
|
|
199
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
200
|
+
const parameters = {
|
|
201
|
+
options: Object.assign({
|
|
202
|
+
url: (rootUrl +
|
|
203
|
+
'/storage/v1/b/{bucket}/anywhereCaches/{anywhereCacheId}/pause').replace(/([^:]\/)\/+/g, '$1'),
|
|
204
|
+
method: 'POST',
|
|
205
|
+
}, options),
|
|
206
|
+
params,
|
|
207
|
+
requiredParams: ['bucket', 'anywhereCacheId'],
|
|
208
|
+
pathParams: ['anywhereCacheId', 'bucket'],
|
|
209
|
+
context: this.context,
|
|
210
|
+
};
|
|
211
|
+
if (callback) {
|
|
212
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
resume(paramsOrCallback, optionsOrCallback, callback) {
|
|
219
|
+
let params = (paramsOrCallback ||
|
|
220
|
+
{});
|
|
221
|
+
let options = (optionsOrCallback || {});
|
|
222
|
+
if (typeof paramsOrCallback === 'function') {
|
|
223
|
+
callback = paramsOrCallback;
|
|
224
|
+
params = {};
|
|
225
|
+
options = {};
|
|
226
|
+
}
|
|
227
|
+
if (typeof optionsOrCallback === 'function') {
|
|
228
|
+
callback = optionsOrCallback;
|
|
229
|
+
options = {};
|
|
230
|
+
}
|
|
231
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
232
|
+
const parameters = {
|
|
233
|
+
options: Object.assign({
|
|
234
|
+
url: (rootUrl +
|
|
235
|
+
'/storage/v1/b/{bucket}/anywhereCaches/{anywhereCacheId}/resume').replace(/([^:]\/)\/+/g, '$1'),
|
|
236
|
+
method: 'POST',
|
|
237
|
+
}, options),
|
|
238
|
+
params,
|
|
239
|
+
requiredParams: ['bucket', 'anywhereCacheId'],
|
|
240
|
+
pathParams: ['anywhereCacheId', 'bucket'],
|
|
241
|
+
context: this.context,
|
|
242
|
+
};
|
|
243
|
+
if (callback) {
|
|
244
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
update(paramsOrCallback, optionsOrCallback, callback) {
|
|
251
|
+
let params = (paramsOrCallback ||
|
|
252
|
+
{});
|
|
253
|
+
let options = (optionsOrCallback || {});
|
|
254
|
+
if (typeof paramsOrCallback === 'function') {
|
|
255
|
+
callback = paramsOrCallback;
|
|
256
|
+
params = {};
|
|
257
|
+
options = {};
|
|
258
|
+
}
|
|
259
|
+
if (typeof optionsOrCallback === 'function') {
|
|
260
|
+
callback = optionsOrCallback;
|
|
261
|
+
options = {};
|
|
262
|
+
}
|
|
263
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
264
|
+
const parameters = {
|
|
265
|
+
options: Object.assign({
|
|
266
|
+
url: (rootUrl +
|
|
267
|
+
'/storage/v1/b/{bucket}/anywhereCaches/{anywhereCacheId}').replace(/([^:]\/)\/+/g, '$1'),
|
|
268
|
+
method: 'PATCH',
|
|
269
|
+
}, options),
|
|
270
|
+
params,
|
|
271
|
+
requiredParams: ['bucket', 'anywhereCacheId'],
|
|
272
|
+
pathParams: ['anywhereCacheId', 'bucket'],
|
|
273
|
+
context: this.context,
|
|
274
|
+
};
|
|
275
|
+
if (callback) {
|
|
276
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
storage_v1.Resource$Anywherecache = Resource$Anywherecache;
|
|
55
284
|
class Resource$Bucketaccesscontrols {
|
|
56
285
|
constructor(context) {
|
|
57
286
|
this.context = context;
|