@maxim_mazurok/gapi.client.metastore-v1 0.0.20231102 → 0.0.20231205
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/index.d.ts +2055 -3175
- package/package.json +6 -6
- package/readme.md +17 -12
- package/tests.ts +0 -731
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/tests.ts
DELETED
|
@@ -1,731 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.metastore-v1 definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231102
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://metastore.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
-
/** now we can use gapi.client.metastore */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
-
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/** Gets information about a location. */
|
|
33
|
-
await gapi.client.metastore.projects.locations.get({
|
|
34
|
-
name: "Test string",
|
|
35
|
-
});
|
|
36
|
-
/** Lists information about the supported locations for this service. */
|
|
37
|
-
await gapi.client.metastore.projects.locations.list({
|
|
38
|
-
filter: "Test string",
|
|
39
|
-
name: "Test string",
|
|
40
|
-
pageSize: 42,
|
|
41
|
-
pageToken: "Test string",
|
|
42
|
-
});
|
|
43
|
-
/** Creates a metastore federation in a project and location. */
|
|
44
|
-
await gapi.client.metastore.projects.locations.federations.create({
|
|
45
|
-
federationId: "Test string",
|
|
46
|
-
parent: "Test string",
|
|
47
|
-
requestId: "Test string",
|
|
48
|
-
}, {
|
|
49
|
-
backendMetastores: {
|
|
50
|
-
A: {
|
|
51
|
-
metastoreType: "Test string",
|
|
52
|
-
name: "Test string",
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
createTime: "Test string",
|
|
56
|
-
endpointUri: "Test string",
|
|
57
|
-
labels: {
|
|
58
|
-
A: "Test string"
|
|
59
|
-
},
|
|
60
|
-
name: "Test string",
|
|
61
|
-
state: "Test string",
|
|
62
|
-
stateMessage: "Test string",
|
|
63
|
-
uid: "Test string",
|
|
64
|
-
updateTime: "Test string",
|
|
65
|
-
version: "Test string",
|
|
66
|
-
});
|
|
67
|
-
/** Deletes a single federation. */
|
|
68
|
-
await gapi.client.metastore.projects.locations.federations.delete({
|
|
69
|
-
name: "Test string",
|
|
70
|
-
requestId: "Test string",
|
|
71
|
-
});
|
|
72
|
-
/** Gets the details of a single federation. */
|
|
73
|
-
await gapi.client.metastore.projects.locations.federations.get({
|
|
74
|
-
name: "Test string",
|
|
75
|
-
});
|
|
76
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
77
|
-
await gapi.client.metastore.projects.locations.federations.getIamPolicy({
|
|
78
|
-
"options.requestedPolicyVersion": 42,
|
|
79
|
-
resource: "Test string",
|
|
80
|
-
});
|
|
81
|
-
/** Lists federations in a project and location. */
|
|
82
|
-
await gapi.client.metastore.projects.locations.federations.list({
|
|
83
|
-
filter: "Test string",
|
|
84
|
-
orderBy: "Test string",
|
|
85
|
-
pageSize: 42,
|
|
86
|
-
pageToken: "Test string",
|
|
87
|
-
parent: "Test string",
|
|
88
|
-
});
|
|
89
|
-
/** Updates the fields of a federation. */
|
|
90
|
-
await gapi.client.metastore.projects.locations.federations.patch({
|
|
91
|
-
name: "Test string",
|
|
92
|
-
requestId: "Test string",
|
|
93
|
-
updateMask: "Test string",
|
|
94
|
-
}, {
|
|
95
|
-
backendMetastores: {
|
|
96
|
-
A: {
|
|
97
|
-
metastoreType: "Test string",
|
|
98
|
-
name: "Test string",
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
createTime: "Test string",
|
|
102
|
-
endpointUri: "Test string",
|
|
103
|
-
labels: {
|
|
104
|
-
A: "Test string"
|
|
105
|
-
},
|
|
106
|
-
name: "Test string",
|
|
107
|
-
state: "Test string",
|
|
108
|
-
stateMessage: "Test string",
|
|
109
|
-
uid: "Test string",
|
|
110
|
-
updateTime: "Test string",
|
|
111
|
-
version: "Test string",
|
|
112
|
-
});
|
|
113
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
114
|
-
await gapi.client.metastore.projects.locations.federations.setIamPolicy({
|
|
115
|
-
resource: "Test string",
|
|
116
|
-
}, {
|
|
117
|
-
policy: {
|
|
118
|
-
auditConfigs: [
|
|
119
|
-
{
|
|
120
|
-
auditLogConfigs: [
|
|
121
|
-
{
|
|
122
|
-
exemptedMembers: [
|
|
123
|
-
"Test string"
|
|
124
|
-
],
|
|
125
|
-
logType: "Test string",
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
service: "Test string",
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
bindings: [
|
|
132
|
-
{
|
|
133
|
-
condition: {
|
|
134
|
-
description: "Test string",
|
|
135
|
-
expression: "Test string",
|
|
136
|
-
location: "Test string",
|
|
137
|
-
title: "Test string",
|
|
138
|
-
},
|
|
139
|
-
members: [
|
|
140
|
-
"Test string"
|
|
141
|
-
],
|
|
142
|
-
role: "Test string",
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
etag: "Test string",
|
|
146
|
-
version: 42,
|
|
147
|
-
},
|
|
148
|
-
updateMask: "Test string",
|
|
149
|
-
});
|
|
150
|
-
/**
|
|
151
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation
|
|
152
|
-
* is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
153
|
-
*/
|
|
154
|
-
await gapi.client.metastore.projects.locations.federations.testIamPermissions({
|
|
155
|
-
resource: "Test string",
|
|
156
|
-
}, {
|
|
157
|
-
permissions: [
|
|
158
|
-
"Test string"
|
|
159
|
-
],
|
|
160
|
-
});
|
|
161
|
-
/**
|
|
162
|
-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
163
|
-
* method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed
|
|
164
|
-
* despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
|
165
|
-
* corresponding to Code.CANCELLED.
|
|
166
|
-
*/
|
|
167
|
-
await gapi.client.metastore.projects.locations.operations.cancel({
|
|
168
|
-
name: "Test string",
|
|
169
|
-
}, {
|
|
170
|
-
});
|
|
171
|
-
/**
|
|
172
|
-
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
173
|
-
* this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
174
|
-
*/
|
|
175
|
-
await gapi.client.metastore.projects.locations.operations.delete({
|
|
176
|
-
name: "Test string",
|
|
177
|
-
});
|
|
178
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
179
|
-
await gapi.client.metastore.projects.locations.operations.get({
|
|
180
|
-
name: "Test string",
|
|
181
|
-
});
|
|
182
|
-
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
|
|
183
|
-
await gapi.client.metastore.projects.locations.operations.list({
|
|
184
|
-
filter: "Test string",
|
|
185
|
-
name: "Test string",
|
|
186
|
-
pageSize: 42,
|
|
187
|
-
pageToken: "Test string",
|
|
188
|
-
});
|
|
189
|
-
/**
|
|
190
|
-
* Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource
|
|
191
|
-
* and does not transfer any existing data to the new location.
|
|
192
|
-
*/
|
|
193
|
-
await gapi.client.metastore.projects.locations.services.alterLocation({
|
|
194
|
-
service: "Test string",
|
|
195
|
-
}, {
|
|
196
|
-
locationUri: "Test string",
|
|
197
|
-
resourceName: "Test string",
|
|
198
|
-
});
|
|
199
|
-
/** Creates a metastore service in a project and location. */
|
|
200
|
-
await gapi.client.metastore.projects.locations.services.create({
|
|
201
|
-
parent: "Test string",
|
|
202
|
-
requestId: "Test string",
|
|
203
|
-
serviceId: "Test string",
|
|
204
|
-
}, {
|
|
205
|
-
artifactGcsUri: "Test string",
|
|
206
|
-
createTime: "Test string",
|
|
207
|
-
databaseType: "Test string",
|
|
208
|
-
encryptionConfig: {
|
|
209
|
-
kmsKey: "Test string",
|
|
210
|
-
},
|
|
211
|
-
endpointUri: "Test string",
|
|
212
|
-
hiveMetastoreConfig: {
|
|
213
|
-
auxiliaryVersions: {
|
|
214
|
-
A: {
|
|
215
|
-
configOverrides: {
|
|
216
|
-
A: "Test string"
|
|
217
|
-
},
|
|
218
|
-
networkConfig: {
|
|
219
|
-
consumers: [
|
|
220
|
-
{
|
|
221
|
-
endpointLocation: "Test string",
|
|
222
|
-
endpointUri: "Test string",
|
|
223
|
-
subnetwork: "Test string",
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
},
|
|
227
|
-
version: "Test string",
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
configOverrides: {
|
|
231
|
-
A: "Test string"
|
|
232
|
-
},
|
|
233
|
-
endpointProtocol: "Test string",
|
|
234
|
-
kerberosConfig: {
|
|
235
|
-
keytab: {
|
|
236
|
-
cloudSecret: "Test string",
|
|
237
|
-
},
|
|
238
|
-
krb5ConfigGcsUri: "Test string",
|
|
239
|
-
principal: "Test string",
|
|
240
|
-
},
|
|
241
|
-
version: "Test string",
|
|
242
|
-
},
|
|
243
|
-
labels: {
|
|
244
|
-
A: "Test string"
|
|
245
|
-
},
|
|
246
|
-
maintenanceWindow: {
|
|
247
|
-
dayOfWeek: "Test string",
|
|
248
|
-
hourOfDay: 42,
|
|
249
|
-
},
|
|
250
|
-
metadataIntegration: {
|
|
251
|
-
dataCatalogConfig: {
|
|
252
|
-
enabled: true,
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
metadataManagementActivity: {
|
|
256
|
-
metadataExports: [
|
|
257
|
-
{
|
|
258
|
-
databaseDumpType: "Test string",
|
|
259
|
-
destinationGcsUri: "Test string",
|
|
260
|
-
endTime: "Test string",
|
|
261
|
-
startTime: "Test string",
|
|
262
|
-
state: "Test string",
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
restores: [
|
|
266
|
-
{
|
|
267
|
-
backup: "Test string",
|
|
268
|
-
backupLocation: "Test string",
|
|
269
|
-
details: "Test string",
|
|
270
|
-
endTime: "Test string",
|
|
271
|
-
startTime: "Test string",
|
|
272
|
-
state: "Test string",
|
|
273
|
-
type: "Test string",
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
name: "Test string",
|
|
278
|
-
network: "Test string",
|
|
279
|
-
networkConfig: {
|
|
280
|
-
consumers: [
|
|
281
|
-
{
|
|
282
|
-
endpointLocation: "Test string",
|
|
283
|
-
endpointUri: "Test string",
|
|
284
|
-
subnetwork: "Test string",
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
},
|
|
288
|
-
port: 42,
|
|
289
|
-
releaseChannel: "Test string",
|
|
290
|
-
scalingConfig: {
|
|
291
|
-
instanceSize: "Test string",
|
|
292
|
-
scalingFactor: 42,
|
|
293
|
-
},
|
|
294
|
-
state: "Test string",
|
|
295
|
-
stateMessage: "Test string",
|
|
296
|
-
telemetryConfig: {
|
|
297
|
-
logFormat: "Test string",
|
|
298
|
-
},
|
|
299
|
-
tier: "Test string",
|
|
300
|
-
uid: "Test string",
|
|
301
|
-
updateTime: "Test string",
|
|
302
|
-
});
|
|
303
|
-
/** Deletes a single service. */
|
|
304
|
-
await gapi.client.metastore.projects.locations.services.delete({
|
|
305
|
-
name: "Test string",
|
|
306
|
-
requestId: "Test string",
|
|
307
|
-
});
|
|
308
|
-
/** Exports metadata from a service. */
|
|
309
|
-
await gapi.client.metastore.projects.locations.services.exportMetadata({
|
|
310
|
-
service: "Test string",
|
|
311
|
-
}, {
|
|
312
|
-
databaseDumpType: "Test string",
|
|
313
|
-
destinationGcsFolder: "Test string",
|
|
314
|
-
requestId: "Test string",
|
|
315
|
-
});
|
|
316
|
-
/** Gets the details of a single service. */
|
|
317
|
-
await gapi.client.metastore.projects.locations.services.get({
|
|
318
|
-
name: "Test string",
|
|
319
|
-
});
|
|
320
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
321
|
-
await gapi.client.metastore.projects.locations.services.getIamPolicy({
|
|
322
|
-
"options.requestedPolicyVersion": 42,
|
|
323
|
-
resource: "Test string",
|
|
324
|
-
});
|
|
325
|
-
/** Lists services in a project and location. */
|
|
326
|
-
await gapi.client.metastore.projects.locations.services.list({
|
|
327
|
-
filter: "Test string",
|
|
328
|
-
orderBy: "Test string",
|
|
329
|
-
pageSize: 42,
|
|
330
|
-
pageToken: "Test string",
|
|
331
|
-
parent: "Test string",
|
|
332
|
-
});
|
|
333
|
-
/** Move a table to another database. */
|
|
334
|
-
await gapi.client.metastore.projects.locations.services.moveTableToDatabase({
|
|
335
|
-
service: "Test string",
|
|
336
|
-
}, {
|
|
337
|
-
dbName: "Test string",
|
|
338
|
-
destinationDbName: "Test string",
|
|
339
|
-
tableName: "Test string",
|
|
340
|
-
});
|
|
341
|
-
/** Updates the parameters of a single service. */
|
|
342
|
-
await gapi.client.metastore.projects.locations.services.patch({
|
|
343
|
-
name: "Test string",
|
|
344
|
-
requestId: "Test string",
|
|
345
|
-
updateMask: "Test string",
|
|
346
|
-
}, {
|
|
347
|
-
artifactGcsUri: "Test string",
|
|
348
|
-
createTime: "Test string",
|
|
349
|
-
databaseType: "Test string",
|
|
350
|
-
encryptionConfig: {
|
|
351
|
-
kmsKey: "Test string",
|
|
352
|
-
},
|
|
353
|
-
endpointUri: "Test string",
|
|
354
|
-
hiveMetastoreConfig: {
|
|
355
|
-
auxiliaryVersions: {
|
|
356
|
-
A: {
|
|
357
|
-
configOverrides: {
|
|
358
|
-
A: "Test string"
|
|
359
|
-
},
|
|
360
|
-
networkConfig: {
|
|
361
|
-
consumers: [
|
|
362
|
-
{
|
|
363
|
-
endpointLocation: "Test string",
|
|
364
|
-
endpointUri: "Test string",
|
|
365
|
-
subnetwork: "Test string",
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
},
|
|
369
|
-
version: "Test string",
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
configOverrides: {
|
|
373
|
-
A: "Test string"
|
|
374
|
-
},
|
|
375
|
-
endpointProtocol: "Test string",
|
|
376
|
-
kerberosConfig: {
|
|
377
|
-
keytab: {
|
|
378
|
-
cloudSecret: "Test string",
|
|
379
|
-
},
|
|
380
|
-
krb5ConfigGcsUri: "Test string",
|
|
381
|
-
principal: "Test string",
|
|
382
|
-
},
|
|
383
|
-
version: "Test string",
|
|
384
|
-
},
|
|
385
|
-
labels: {
|
|
386
|
-
A: "Test string"
|
|
387
|
-
},
|
|
388
|
-
maintenanceWindow: {
|
|
389
|
-
dayOfWeek: "Test string",
|
|
390
|
-
hourOfDay: 42,
|
|
391
|
-
},
|
|
392
|
-
metadataIntegration: {
|
|
393
|
-
dataCatalogConfig: {
|
|
394
|
-
enabled: true,
|
|
395
|
-
},
|
|
396
|
-
},
|
|
397
|
-
metadataManagementActivity: {
|
|
398
|
-
metadataExports: [
|
|
399
|
-
{
|
|
400
|
-
databaseDumpType: "Test string",
|
|
401
|
-
destinationGcsUri: "Test string",
|
|
402
|
-
endTime: "Test string",
|
|
403
|
-
startTime: "Test string",
|
|
404
|
-
state: "Test string",
|
|
405
|
-
}
|
|
406
|
-
],
|
|
407
|
-
restores: [
|
|
408
|
-
{
|
|
409
|
-
backup: "Test string",
|
|
410
|
-
backupLocation: "Test string",
|
|
411
|
-
details: "Test string",
|
|
412
|
-
endTime: "Test string",
|
|
413
|
-
startTime: "Test string",
|
|
414
|
-
state: "Test string",
|
|
415
|
-
type: "Test string",
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
},
|
|
419
|
-
name: "Test string",
|
|
420
|
-
network: "Test string",
|
|
421
|
-
networkConfig: {
|
|
422
|
-
consumers: [
|
|
423
|
-
{
|
|
424
|
-
endpointLocation: "Test string",
|
|
425
|
-
endpointUri: "Test string",
|
|
426
|
-
subnetwork: "Test string",
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
},
|
|
430
|
-
port: 42,
|
|
431
|
-
releaseChannel: "Test string",
|
|
432
|
-
scalingConfig: {
|
|
433
|
-
instanceSize: "Test string",
|
|
434
|
-
scalingFactor: 42,
|
|
435
|
-
},
|
|
436
|
-
state: "Test string",
|
|
437
|
-
stateMessage: "Test string",
|
|
438
|
-
telemetryConfig: {
|
|
439
|
-
logFormat: "Test string",
|
|
440
|
-
},
|
|
441
|
-
tier: "Test string",
|
|
442
|
-
uid: "Test string",
|
|
443
|
-
updateTime: "Test string",
|
|
444
|
-
});
|
|
445
|
-
/** Query DPMS metadata. */
|
|
446
|
-
await gapi.client.metastore.projects.locations.services.queryMetadata({
|
|
447
|
-
service: "Test string",
|
|
448
|
-
}, {
|
|
449
|
-
query: "Test string",
|
|
450
|
-
});
|
|
451
|
-
/** Restores a service from a backup. */
|
|
452
|
-
await gapi.client.metastore.projects.locations.services.restore({
|
|
453
|
-
service: "Test string",
|
|
454
|
-
}, {
|
|
455
|
-
backup: "Test string",
|
|
456
|
-
requestId: "Test string",
|
|
457
|
-
restoreType: "Test string",
|
|
458
|
-
});
|
|
459
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
460
|
-
await gapi.client.metastore.projects.locations.services.setIamPolicy({
|
|
461
|
-
resource: "Test string",
|
|
462
|
-
}, {
|
|
463
|
-
policy: {
|
|
464
|
-
auditConfigs: [
|
|
465
|
-
{
|
|
466
|
-
auditLogConfigs: [
|
|
467
|
-
{
|
|
468
|
-
exemptedMembers: [
|
|
469
|
-
"Test string"
|
|
470
|
-
],
|
|
471
|
-
logType: "Test string",
|
|
472
|
-
}
|
|
473
|
-
],
|
|
474
|
-
service: "Test string",
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
bindings: [
|
|
478
|
-
{
|
|
479
|
-
condition: {
|
|
480
|
-
description: "Test string",
|
|
481
|
-
expression: "Test string",
|
|
482
|
-
location: "Test string",
|
|
483
|
-
title: "Test string",
|
|
484
|
-
},
|
|
485
|
-
members: [
|
|
486
|
-
"Test string"
|
|
487
|
-
],
|
|
488
|
-
role: "Test string",
|
|
489
|
-
}
|
|
490
|
-
],
|
|
491
|
-
etag: "Test string",
|
|
492
|
-
version: 42,
|
|
493
|
-
},
|
|
494
|
-
updateMask: "Test string",
|
|
495
|
-
});
|
|
496
|
-
/**
|
|
497
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation
|
|
498
|
-
* is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
499
|
-
*/
|
|
500
|
-
await gapi.client.metastore.projects.locations.services.testIamPermissions({
|
|
501
|
-
resource: "Test string",
|
|
502
|
-
}, {
|
|
503
|
-
permissions: [
|
|
504
|
-
"Test string"
|
|
505
|
-
],
|
|
506
|
-
});
|
|
507
|
-
/** Creates a new backup in a given project and location. */
|
|
508
|
-
await gapi.client.metastore.projects.locations.services.backups.create({
|
|
509
|
-
backupId: "Test string",
|
|
510
|
-
parent: "Test string",
|
|
511
|
-
requestId: "Test string",
|
|
512
|
-
}, {
|
|
513
|
-
createTime: "Test string",
|
|
514
|
-
description: "Test string",
|
|
515
|
-
endTime: "Test string",
|
|
516
|
-
name: "Test string",
|
|
517
|
-
restoringServices: [
|
|
518
|
-
"Test string"
|
|
519
|
-
],
|
|
520
|
-
serviceRevision: {
|
|
521
|
-
artifactGcsUri: "Test string",
|
|
522
|
-
createTime: "Test string",
|
|
523
|
-
databaseType: "Test string",
|
|
524
|
-
encryptionConfig: {
|
|
525
|
-
kmsKey: "Test string",
|
|
526
|
-
},
|
|
527
|
-
endpointUri: "Test string",
|
|
528
|
-
hiveMetastoreConfig: {
|
|
529
|
-
auxiliaryVersions: {
|
|
530
|
-
A: {
|
|
531
|
-
configOverrides: {
|
|
532
|
-
A: "Test string"
|
|
533
|
-
},
|
|
534
|
-
networkConfig: {
|
|
535
|
-
consumers: [
|
|
536
|
-
{
|
|
537
|
-
endpointLocation: "Test string",
|
|
538
|
-
endpointUri: "Test string",
|
|
539
|
-
subnetwork: "Test string",
|
|
540
|
-
}
|
|
541
|
-
],
|
|
542
|
-
},
|
|
543
|
-
version: "Test string",
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
configOverrides: {
|
|
547
|
-
A: "Test string"
|
|
548
|
-
},
|
|
549
|
-
endpointProtocol: "Test string",
|
|
550
|
-
kerberosConfig: {
|
|
551
|
-
keytab: {
|
|
552
|
-
cloudSecret: "Test string",
|
|
553
|
-
},
|
|
554
|
-
krb5ConfigGcsUri: "Test string",
|
|
555
|
-
principal: "Test string",
|
|
556
|
-
},
|
|
557
|
-
version: "Test string",
|
|
558
|
-
},
|
|
559
|
-
labels: {
|
|
560
|
-
A: "Test string"
|
|
561
|
-
},
|
|
562
|
-
maintenanceWindow: {
|
|
563
|
-
dayOfWeek: "Test string",
|
|
564
|
-
hourOfDay: 42,
|
|
565
|
-
},
|
|
566
|
-
metadataIntegration: {
|
|
567
|
-
dataCatalogConfig: {
|
|
568
|
-
enabled: true,
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
metadataManagementActivity: {
|
|
572
|
-
metadataExports: [
|
|
573
|
-
{
|
|
574
|
-
databaseDumpType: "Test string",
|
|
575
|
-
destinationGcsUri: "Test string",
|
|
576
|
-
endTime: "Test string",
|
|
577
|
-
startTime: "Test string",
|
|
578
|
-
state: "Test string",
|
|
579
|
-
}
|
|
580
|
-
],
|
|
581
|
-
restores: [
|
|
582
|
-
{
|
|
583
|
-
backup: "Test string",
|
|
584
|
-
backupLocation: "Test string",
|
|
585
|
-
details: "Test string",
|
|
586
|
-
endTime: "Test string",
|
|
587
|
-
startTime: "Test string",
|
|
588
|
-
state: "Test string",
|
|
589
|
-
type: "Test string",
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
},
|
|
593
|
-
name: "Test string",
|
|
594
|
-
network: "Test string",
|
|
595
|
-
networkConfig: {
|
|
596
|
-
consumers: [
|
|
597
|
-
{
|
|
598
|
-
endpointLocation: "Test string",
|
|
599
|
-
endpointUri: "Test string",
|
|
600
|
-
subnetwork: "Test string",
|
|
601
|
-
}
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
port: 42,
|
|
605
|
-
releaseChannel: "Test string",
|
|
606
|
-
scalingConfig: {
|
|
607
|
-
instanceSize: "Test string",
|
|
608
|
-
scalingFactor: 42,
|
|
609
|
-
},
|
|
610
|
-
state: "Test string",
|
|
611
|
-
stateMessage: "Test string",
|
|
612
|
-
telemetryConfig: {
|
|
613
|
-
logFormat: "Test string",
|
|
614
|
-
},
|
|
615
|
-
tier: "Test string",
|
|
616
|
-
uid: "Test string",
|
|
617
|
-
updateTime: "Test string",
|
|
618
|
-
},
|
|
619
|
-
state: "Test string",
|
|
620
|
-
});
|
|
621
|
-
/** Deletes a single backup. */
|
|
622
|
-
await gapi.client.metastore.projects.locations.services.backups.delete({
|
|
623
|
-
name: "Test string",
|
|
624
|
-
requestId: "Test string",
|
|
625
|
-
});
|
|
626
|
-
/** Gets details of a single backup. */
|
|
627
|
-
await gapi.client.metastore.projects.locations.services.backups.get({
|
|
628
|
-
name: "Test string",
|
|
629
|
-
});
|
|
630
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
631
|
-
await gapi.client.metastore.projects.locations.services.backups.getIamPolicy({
|
|
632
|
-
"options.requestedPolicyVersion": 42,
|
|
633
|
-
resource: "Test string",
|
|
634
|
-
});
|
|
635
|
-
/** Lists backups in a service. */
|
|
636
|
-
await gapi.client.metastore.projects.locations.services.backups.list({
|
|
637
|
-
filter: "Test string",
|
|
638
|
-
orderBy: "Test string",
|
|
639
|
-
pageSize: 42,
|
|
640
|
-
pageToken: "Test string",
|
|
641
|
-
parent: "Test string",
|
|
642
|
-
});
|
|
643
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
644
|
-
await gapi.client.metastore.projects.locations.services.backups.setIamPolicy({
|
|
645
|
-
resource: "Test string",
|
|
646
|
-
}, {
|
|
647
|
-
policy: {
|
|
648
|
-
auditConfigs: [
|
|
649
|
-
{
|
|
650
|
-
auditLogConfigs: [
|
|
651
|
-
{
|
|
652
|
-
exemptedMembers: [
|
|
653
|
-
"Test string"
|
|
654
|
-
],
|
|
655
|
-
logType: "Test string",
|
|
656
|
-
}
|
|
657
|
-
],
|
|
658
|
-
service: "Test string",
|
|
659
|
-
}
|
|
660
|
-
],
|
|
661
|
-
bindings: [
|
|
662
|
-
{
|
|
663
|
-
condition: {
|
|
664
|
-
description: "Test string",
|
|
665
|
-
expression: "Test string",
|
|
666
|
-
location: "Test string",
|
|
667
|
-
title: "Test string",
|
|
668
|
-
},
|
|
669
|
-
members: [
|
|
670
|
-
"Test string"
|
|
671
|
-
],
|
|
672
|
-
role: "Test string",
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
etag: "Test string",
|
|
676
|
-
version: 42,
|
|
677
|
-
},
|
|
678
|
-
updateMask: "Test string",
|
|
679
|
-
});
|
|
680
|
-
/** Creates a new MetadataImport in a given project and location. */
|
|
681
|
-
await gapi.client.metastore.projects.locations.services.metadataImports.create({
|
|
682
|
-
metadataImportId: "Test string",
|
|
683
|
-
parent: "Test string",
|
|
684
|
-
requestId: "Test string",
|
|
685
|
-
}, {
|
|
686
|
-
createTime: "Test string",
|
|
687
|
-
databaseDump: {
|
|
688
|
-
databaseType: "Test string",
|
|
689
|
-
gcsUri: "Test string",
|
|
690
|
-
sourceDatabase: "Test string",
|
|
691
|
-
type: "Test string",
|
|
692
|
-
},
|
|
693
|
-
description: "Test string",
|
|
694
|
-
endTime: "Test string",
|
|
695
|
-
name: "Test string",
|
|
696
|
-
state: "Test string",
|
|
697
|
-
updateTime: "Test string",
|
|
698
|
-
});
|
|
699
|
-
/** Gets details of a single import. */
|
|
700
|
-
await gapi.client.metastore.projects.locations.services.metadataImports.get({
|
|
701
|
-
name: "Test string",
|
|
702
|
-
});
|
|
703
|
-
/** Lists imports in a service. */
|
|
704
|
-
await gapi.client.metastore.projects.locations.services.metadataImports.list({
|
|
705
|
-
filter: "Test string",
|
|
706
|
-
orderBy: "Test string",
|
|
707
|
-
pageSize: 42,
|
|
708
|
-
pageToken: "Test string",
|
|
709
|
-
parent: "Test string",
|
|
710
|
-
});
|
|
711
|
-
/** Updates a single import. Only the description field of MetadataImport is supported to be updated. */
|
|
712
|
-
await gapi.client.metastore.projects.locations.services.metadataImports.patch({
|
|
713
|
-
name: "Test string",
|
|
714
|
-
requestId: "Test string",
|
|
715
|
-
updateMask: "Test string",
|
|
716
|
-
}, {
|
|
717
|
-
createTime: "Test string",
|
|
718
|
-
databaseDump: {
|
|
719
|
-
databaseType: "Test string",
|
|
720
|
-
gcsUri: "Test string",
|
|
721
|
-
sourceDatabase: "Test string",
|
|
722
|
-
type: "Test string",
|
|
723
|
-
},
|
|
724
|
-
description: "Test string",
|
|
725
|
-
endTime: "Test string",
|
|
726
|
-
name: "Test string",
|
|
727
|
-
state: "Test string",
|
|
728
|
-
updateTime: "Test string",
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
});
|