@maxim_mazurok/gapi.client.dataplex-v1 0.0.20220725
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 +4343 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +1416 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,1416 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.dataplex-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: 20220725
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://dataplex.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.dataplex */
|
|
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.dataplex.projects.locations.get({
|
|
34
|
+
name: "Test string",
|
|
35
|
+
});
|
|
36
|
+
/** Lists information about the supported locations for this service. */
|
|
37
|
+
await gapi.client.dataplex.projects.locations.list({
|
|
38
|
+
filter: "Test string",
|
|
39
|
+
name: "Test string",
|
|
40
|
+
pageSize: 42,
|
|
41
|
+
pageToken: "Test string",
|
|
42
|
+
});
|
|
43
|
+
/** Creates a lake resource. */
|
|
44
|
+
await gapi.client.dataplex.projects.locations.lakes.create({
|
|
45
|
+
lakeId: "Test string",
|
|
46
|
+
parent: "Test string",
|
|
47
|
+
validateOnly: true,
|
|
48
|
+
}, {
|
|
49
|
+
assetStatus: {
|
|
50
|
+
activeAssets: 42,
|
|
51
|
+
securityPolicyApplyingAssets: 42,
|
|
52
|
+
updateTime: "Test string",
|
|
53
|
+
},
|
|
54
|
+
createTime: "Test string",
|
|
55
|
+
description: "Test string",
|
|
56
|
+
displayName: "Test string",
|
|
57
|
+
labels: {
|
|
58
|
+
A: "Test string"
|
|
59
|
+
},
|
|
60
|
+
metastore: {
|
|
61
|
+
service: "Test string",
|
|
62
|
+
},
|
|
63
|
+
metastoreStatus: {
|
|
64
|
+
endpoint: "Test string",
|
|
65
|
+
message: "Test string",
|
|
66
|
+
state: "Test string",
|
|
67
|
+
updateTime: "Test string",
|
|
68
|
+
},
|
|
69
|
+
name: "Test string",
|
|
70
|
+
serviceAccount: "Test string",
|
|
71
|
+
state: "Test string",
|
|
72
|
+
uid: "Test string",
|
|
73
|
+
updateTime: "Test string",
|
|
74
|
+
});
|
|
75
|
+
/** Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted. */
|
|
76
|
+
await gapi.client.dataplex.projects.locations.lakes.delete({
|
|
77
|
+
name: "Test string",
|
|
78
|
+
});
|
|
79
|
+
/** Retrieves a lake resource. */
|
|
80
|
+
await gapi.client.dataplex.projects.locations.lakes.get({
|
|
81
|
+
name: "Test string",
|
|
82
|
+
});
|
|
83
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
84
|
+
await gapi.client.dataplex.projects.locations.lakes.getIamPolicy({
|
|
85
|
+
"options.requestedPolicyVersion": 42,
|
|
86
|
+
resource: "Test string",
|
|
87
|
+
});
|
|
88
|
+
/** Lists lake resources in a project and location. */
|
|
89
|
+
await gapi.client.dataplex.projects.locations.lakes.list({
|
|
90
|
+
filter: "Test string",
|
|
91
|
+
orderBy: "Test string",
|
|
92
|
+
pageSize: 42,
|
|
93
|
+
pageToken: "Test string",
|
|
94
|
+
parent: "Test string",
|
|
95
|
+
});
|
|
96
|
+
/** Updates a lake resource. */
|
|
97
|
+
await gapi.client.dataplex.projects.locations.lakes.patch({
|
|
98
|
+
name: "Test string",
|
|
99
|
+
updateMask: "Test string",
|
|
100
|
+
validateOnly: true,
|
|
101
|
+
}, {
|
|
102
|
+
assetStatus: {
|
|
103
|
+
activeAssets: 42,
|
|
104
|
+
securityPolicyApplyingAssets: 42,
|
|
105
|
+
updateTime: "Test string",
|
|
106
|
+
},
|
|
107
|
+
createTime: "Test string",
|
|
108
|
+
description: "Test string",
|
|
109
|
+
displayName: "Test string",
|
|
110
|
+
labels: {
|
|
111
|
+
A: "Test string"
|
|
112
|
+
},
|
|
113
|
+
metastore: {
|
|
114
|
+
service: "Test string",
|
|
115
|
+
},
|
|
116
|
+
metastoreStatus: {
|
|
117
|
+
endpoint: "Test string",
|
|
118
|
+
message: "Test string",
|
|
119
|
+
state: "Test string",
|
|
120
|
+
updateTime: "Test string",
|
|
121
|
+
},
|
|
122
|
+
name: "Test string",
|
|
123
|
+
serviceAccount: "Test string",
|
|
124
|
+
state: "Test string",
|
|
125
|
+
uid: "Test string",
|
|
126
|
+
updateTime: "Test string",
|
|
127
|
+
});
|
|
128
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
129
|
+
await gapi.client.dataplex.projects.locations.lakes.setIamPolicy({
|
|
130
|
+
resource: "Test string",
|
|
131
|
+
}, {
|
|
132
|
+
policy: {
|
|
133
|
+
auditConfigs: [
|
|
134
|
+
{
|
|
135
|
+
auditLogConfigs: [
|
|
136
|
+
{
|
|
137
|
+
exemptedMembers: [
|
|
138
|
+
"Test string"
|
|
139
|
+
],
|
|
140
|
+
logType: "Test string",
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
service: "Test string",
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
bindings: [
|
|
147
|
+
{
|
|
148
|
+
condition: {
|
|
149
|
+
description: "Test string",
|
|
150
|
+
expression: "Test string",
|
|
151
|
+
location: "Test string",
|
|
152
|
+
title: "Test string",
|
|
153
|
+
},
|
|
154
|
+
members: [
|
|
155
|
+
"Test string"
|
|
156
|
+
],
|
|
157
|
+
role: "Test string",
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
etag: "Test string",
|
|
161
|
+
version: 42,
|
|
162
|
+
},
|
|
163
|
+
updateMask: "Test string",
|
|
164
|
+
});
|
|
165
|
+
/**
|
|
166
|
+
* 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
|
|
167
|
+
* 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.
|
|
168
|
+
*/
|
|
169
|
+
await gapi.client.dataplex.projects.locations.lakes.testIamPermissions({
|
|
170
|
+
resource: "Test string",
|
|
171
|
+
}, {
|
|
172
|
+
permissions: [
|
|
173
|
+
"Test string"
|
|
174
|
+
],
|
|
175
|
+
});
|
|
176
|
+
/** Lists action resources in a lake. */
|
|
177
|
+
await gapi.client.dataplex.projects.locations.lakes.actions.list({
|
|
178
|
+
pageSize: 42,
|
|
179
|
+
pageToken: "Test string",
|
|
180
|
+
parent: "Test string",
|
|
181
|
+
});
|
|
182
|
+
/** Create a content. */
|
|
183
|
+
await gapi.client.dataplex.projects.locations.lakes.content.create({
|
|
184
|
+
parent: "Test string",
|
|
185
|
+
validateOnly: true,
|
|
186
|
+
}, {
|
|
187
|
+
createTime: "Test string",
|
|
188
|
+
dataText: "Test string",
|
|
189
|
+
description: "Test string",
|
|
190
|
+
labels: {
|
|
191
|
+
A: "Test string"
|
|
192
|
+
},
|
|
193
|
+
name: "Test string",
|
|
194
|
+
notebook: {
|
|
195
|
+
kernelType: "Test string",
|
|
196
|
+
},
|
|
197
|
+
path: "Test string",
|
|
198
|
+
sqlScript: {
|
|
199
|
+
engine: "Test string",
|
|
200
|
+
},
|
|
201
|
+
uid: "Test string",
|
|
202
|
+
updateTime: "Test string",
|
|
203
|
+
});
|
|
204
|
+
/** Delete a content. */
|
|
205
|
+
await gapi.client.dataplex.projects.locations.lakes.content.delete({
|
|
206
|
+
name: "Test string",
|
|
207
|
+
});
|
|
208
|
+
/** Get a content resource. */
|
|
209
|
+
await gapi.client.dataplex.projects.locations.lakes.content.get({
|
|
210
|
+
name: "Test string",
|
|
211
|
+
view: "Test string",
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not
|
|
215
|
+
* have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.
|
|
216
|
+
*/
|
|
217
|
+
await gapi.client.dataplex.projects.locations.lakes.content.getIamPolicy({
|
|
218
|
+
"options.requestedPolicyVersion": 42,
|
|
219
|
+
resource: "Test string",
|
|
220
|
+
});
|
|
221
|
+
/** List content. */
|
|
222
|
+
await gapi.client.dataplex.projects.locations.lakes.content.list({
|
|
223
|
+
filter: "Test string",
|
|
224
|
+
pageSize: 42,
|
|
225
|
+
pageToken: "Test string",
|
|
226
|
+
parent: "Test string",
|
|
227
|
+
});
|
|
228
|
+
/** Update a content. Only supports full resource update. */
|
|
229
|
+
await gapi.client.dataplex.projects.locations.lakes.content.patch({
|
|
230
|
+
name: "Test string",
|
|
231
|
+
updateMask: "Test string",
|
|
232
|
+
validateOnly: true,
|
|
233
|
+
}, {
|
|
234
|
+
createTime: "Test string",
|
|
235
|
+
dataText: "Test string",
|
|
236
|
+
description: "Test string",
|
|
237
|
+
labels: {
|
|
238
|
+
A: "Test string"
|
|
239
|
+
},
|
|
240
|
+
name: "Test string",
|
|
241
|
+
notebook: {
|
|
242
|
+
kernelType: "Test string",
|
|
243
|
+
},
|
|
244
|
+
path: "Test string",
|
|
245
|
+
sqlScript: {
|
|
246
|
+
engine: "Test string",
|
|
247
|
+
},
|
|
248
|
+
uid: "Test string",
|
|
249
|
+
updateTime: "Test string",
|
|
250
|
+
});
|
|
251
|
+
/** Sets the access control policy on the specified contentitem resource. Replaces any existing policy.Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource. */
|
|
252
|
+
await gapi.client.dataplex.projects.locations.lakes.content.setIamPolicy({
|
|
253
|
+
resource: "Test string",
|
|
254
|
+
}, {
|
|
255
|
+
policy: {
|
|
256
|
+
auditConfigs: [
|
|
257
|
+
{
|
|
258
|
+
auditLogConfigs: [
|
|
259
|
+
{
|
|
260
|
+
exemptedMembers: [
|
|
261
|
+
"Test string"
|
|
262
|
+
],
|
|
263
|
+
logType: "Test string",
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
service: "Test string",
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
bindings: [
|
|
270
|
+
{
|
|
271
|
+
condition: {
|
|
272
|
+
description: "Test string",
|
|
273
|
+
expression: "Test string",
|
|
274
|
+
location: "Test string",
|
|
275
|
+
title: "Test string",
|
|
276
|
+
},
|
|
277
|
+
members: [
|
|
278
|
+
"Test string"
|
|
279
|
+
],
|
|
280
|
+
role: "Test string",
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
etag: "Test string",
|
|
284
|
+
version: 42,
|
|
285
|
+
},
|
|
286
|
+
updateMask: "Test string",
|
|
287
|
+
});
|
|
288
|
+
/**
|
|
289
|
+
* Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to
|
|
290
|
+
* have Google IAM permission to make this request.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.
|
|
291
|
+
* This operation may "fail open" without warning.
|
|
292
|
+
*/
|
|
293
|
+
await gapi.client.dataplex.projects.locations.lakes.content.testIamPermissions({
|
|
294
|
+
resource: "Test string",
|
|
295
|
+
}, {
|
|
296
|
+
permissions: [
|
|
297
|
+
"Test string"
|
|
298
|
+
],
|
|
299
|
+
});
|
|
300
|
+
/** Create a content. */
|
|
301
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.create({
|
|
302
|
+
parent: "Test string",
|
|
303
|
+
validateOnly: true,
|
|
304
|
+
}, {
|
|
305
|
+
createTime: "Test string",
|
|
306
|
+
dataText: "Test string",
|
|
307
|
+
description: "Test string",
|
|
308
|
+
labels: {
|
|
309
|
+
A: "Test string"
|
|
310
|
+
},
|
|
311
|
+
name: "Test string",
|
|
312
|
+
notebook: {
|
|
313
|
+
kernelType: "Test string",
|
|
314
|
+
},
|
|
315
|
+
path: "Test string",
|
|
316
|
+
sqlScript: {
|
|
317
|
+
engine: "Test string",
|
|
318
|
+
},
|
|
319
|
+
uid: "Test string",
|
|
320
|
+
updateTime: "Test string",
|
|
321
|
+
});
|
|
322
|
+
/** Delete a content. */
|
|
323
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.delete({
|
|
324
|
+
name: "Test string",
|
|
325
|
+
});
|
|
326
|
+
/** Get a content resource. */
|
|
327
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.get({
|
|
328
|
+
name: "Test string",
|
|
329
|
+
view: "Test string",
|
|
330
|
+
});
|
|
331
|
+
/**
|
|
332
|
+
* Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not
|
|
333
|
+
* have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.
|
|
334
|
+
*/
|
|
335
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.getIamPolicy({
|
|
336
|
+
"options.requestedPolicyVersion": 42,
|
|
337
|
+
resource: "Test string",
|
|
338
|
+
});
|
|
339
|
+
/** List content. */
|
|
340
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.list({
|
|
341
|
+
filter: "Test string",
|
|
342
|
+
pageSize: 42,
|
|
343
|
+
pageToken: "Test string",
|
|
344
|
+
parent: "Test string",
|
|
345
|
+
});
|
|
346
|
+
/** Update a content. Only supports full resource update. */
|
|
347
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.patch({
|
|
348
|
+
name: "Test string",
|
|
349
|
+
updateMask: "Test string",
|
|
350
|
+
validateOnly: true,
|
|
351
|
+
}, {
|
|
352
|
+
createTime: "Test string",
|
|
353
|
+
dataText: "Test string",
|
|
354
|
+
description: "Test string",
|
|
355
|
+
labels: {
|
|
356
|
+
A: "Test string"
|
|
357
|
+
},
|
|
358
|
+
name: "Test string",
|
|
359
|
+
notebook: {
|
|
360
|
+
kernelType: "Test string",
|
|
361
|
+
},
|
|
362
|
+
path: "Test string",
|
|
363
|
+
sqlScript: {
|
|
364
|
+
engine: "Test string",
|
|
365
|
+
},
|
|
366
|
+
uid: "Test string",
|
|
367
|
+
updateTime: "Test string",
|
|
368
|
+
});
|
|
369
|
+
/** Sets the access control policy on the specified contentitem resource. Replaces any existing policy.Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource. */
|
|
370
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.setIamPolicy({
|
|
371
|
+
resource: "Test string",
|
|
372
|
+
}, {
|
|
373
|
+
policy: {
|
|
374
|
+
auditConfigs: [
|
|
375
|
+
{
|
|
376
|
+
auditLogConfigs: [
|
|
377
|
+
{
|
|
378
|
+
exemptedMembers: [
|
|
379
|
+
"Test string"
|
|
380
|
+
],
|
|
381
|
+
logType: "Test string",
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
service: "Test string",
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
bindings: [
|
|
388
|
+
{
|
|
389
|
+
condition: {
|
|
390
|
+
description: "Test string",
|
|
391
|
+
expression: "Test string",
|
|
392
|
+
location: "Test string",
|
|
393
|
+
title: "Test string",
|
|
394
|
+
},
|
|
395
|
+
members: [
|
|
396
|
+
"Test string"
|
|
397
|
+
],
|
|
398
|
+
role: "Test string",
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
etag: "Test string",
|
|
402
|
+
version: 42,
|
|
403
|
+
},
|
|
404
|
+
updateMask: "Test string",
|
|
405
|
+
});
|
|
406
|
+
/**
|
|
407
|
+
* Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to
|
|
408
|
+
* have Google IAM permission to make this request.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.
|
|
409
|
+
* This operation may "fail open" without warning.
|
|
410
|
+
*/
|
|
411
|
+
await gapi.client.dataplex.projects.locations.lakes.contentitems.testIamPermissions({
|
|
412
|
+
resource: "Test string",
|
|
413
|
+
}, {
|
|
414
|
+
permissions: [
|
|
415
|
+
"Test string"
|
|
416
|
+
],
|
|
417
|
+
});
|
|
418
|
+
/** Create an environment resource. */
|
|
419
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.create({
|
|
420
|
+
environmentId: "Test string",
|
|
421
|
+
parent: "Test string",
|
|
422
|
+
validateOnly: true,
|
|
423
|
+
}, {
|
|
424
|
+
createTime: "Test string",
|
|
425
|
+
description: "Test string",
|
|
426
|
+
displayName: "Test string",
|
|
427
|
+
endpoints: {
|
|
428
|
+
notebooks: "Test string",
|
|
429
|
+
sql: "Test string",
|
|
430
|
+
},
|
|
431
|
+
infrastructureSpec: {
|
|
432
|
+
compute: {
|
|
433
|
+
diskSizeGb: 42,
|
|
434
|
+
maxNodeCount: 42,
|
|
435
|
+
nodeCount: 42,
|
|
436
|
+
},
|
|
437
|
+
osImage: {
|
|
438
|
+
imageVersion: "Test string",
|
|
439
|
+
javaLibraries: [
|
|
440
|
+
"Test string"
|
|
441
|
+
],
|
|
442
|
+
properties: {
|
|
443
|
+
A: "Test string"
|
|
444
|
+
},
|
|
445
|
+
pythonPackages: [
|
|
446
|
+
"Test string"
|
|
447
|
+
],
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
labels: {
|
|
451
|
+
A: "Test string"
|
|
452
|
+
},
|
|
453
|
+
name: "Test string",
|
|
454
|
+
sessionSpec: {
|
|
455
|
+
enableFastStartup: true,
|
|
456
|
+
maxIdleDuration: "Test string",
|
|
457
|
+
},
|
|
458
|
+
sessionStatus: {
|
|
459
|
+
active: true,
|
|
460
|
+
},
|
|
461
|
+
state: "Test string",
|
|
462
|
+
uid: "Test string",
|
|
463
|
+
updateTime: "Test string",
|
|
464
|
+
});
|
|
465
|
+
/** Delete the environment resource. All the child resources must have been deleted before environment deletion can be initiated. */
|
|
466
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.delete({
|
|
467
|
+
name: "Test string",
|
|
468
|
+
});
|
|
469
|
+
/** Get environment resource. */
|
|
470
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.get({
|
|
471
|
+
name: "Test string",
|
|
472
|
+
});
|
|
473
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
474
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.getIamPolicy({
|
|
475
|
+
"options.requestedPolicyVersion": 42,
|
|
476
|
+
resource: "Test string",
|
|
477
|
+
});
|
|
478
|
+
/** Lists environments under the given lake. */
|
|
479
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.list({
|
|
480
|
+
filter: "Test string",
|
|
481
|
+
orderBy: "Test string",
|
|
482
|
+
pageSize: 42,
|
|
483
|
+
pageToken: "Test string",
|
|
484
|
+
parent: "Test string",
|
|
485
|
+
});
|
|
486
|
+
/** Update the environment resource. */
|
|
487
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.patch({
|
|
488
|
+
name: "Test string",
|
|
489
|
+
updateMask: "Test string",
|
|
490
|
+
validateOnly: true,
|
|
491
|
+
}, {
|
|
492
|
+
createTime: "Test string",
|
|
493
|
+
description: "Test string",
|
|
494
|
+
displayName: "Test string",
|
|
495
|
+
endpoints: {
|
|
496
|
+
notebooks: "Test string",
|
|
497
|
+
sql: "Test string",
|
|
498
|
+
},
|
|
499
|
+
infrastructureSpec: {
|
|
500
|
+
compute: {
|
|
501
|
+
diskSizeGb: 42,
|
|
502
|
+
maxNodeCount: 42,
|
|
503
|
+
nodeCount: 42,
|
|
504
|
+
},
|
|
505
|
+
osImage: {
|
|
506
|
+
imageVersion: "Test string",
|
|
507
|
+
javaLibraries: [
|
|
508
|
+
"Test string"
|
|
509
|
+
],
|
|
510
|
+
properties: {
|
|
511
|
+
A: "Test string"
|
|
512
|
+
},
|
|
513
|
+
pythonPackages: [
|
|
514
|
+
"Test string"
|
|
515
|
+
],
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
labels: {
|
|
519
|
+
A: "Test string"
|
|
520
|
+
},
|
|
521
|
+
name: "Test string",
|
|
522
|
+
sessionSpec: {
|
|
523
|
+
enableFastStartup: true,
|
|
524
|
+
maxIdleDuration: "Test string",
|
|
525
|
+
},
|
|
526
|
+
sessionStatus: {
|
|
527
|
+
active: true,
|
|
528
|
+
},
|
|
529
|
+
state: "Test string",
|
|
530
|
+
uid: "Test string",
|
|
531
|
+
updateTime: "Test string",
|
|
532
|
+
});
|
|
533
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
534
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.setIamPolicy({
|
|
535
|
+
resource: "Test string",
|
|
536
|
+
}, {
|
|
537
|
+
policy: {
|
|
538
|
+
auditConfigs: [
|
|
539
|
+
{
|
|
540
|
+
auditLogConfigs: [
|
|
541
|
+
{
|
|
542
|
+
exemptedMembers: [
|
|
543
|
+
"Test string"
|
|
544
|
+
],
|
|
545
|
+
logType: "Test string",
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
service: "Test string",
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
bindings: [
|
|
552
|
+
{
|
|
553
|
+
condition: {
|
|
554
|
+
description: "Test string",
|
|
555
|
+
expression: "Test string",
|
|
556
|
+
location: "Test string",
|
|
557
|
+
title: "Test string",
|
|
558
|
+
},
|
|
559
|
+
members: [
|
|
560
|
+
"Test string"
|
|
561
|
+
],
|
|
562
|
+
role: "Test string",
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
etag: "Test string",
|
|
566
|
+
version: 42,
|
|
567
|
+
},
|
|
568
|
+
updateMask: "Test string",
|
|
569
|
+
});
|
|
570
|
+
/**
|
|
571
|
+
* 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
|
|
572
|
+
* 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.
|
|
573
|
+
*/
|
|
574
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.testIamPermissions({
|
|
575
|
+
resource: "Test string",
|
|
576
|
+
}, {
|
|
577
|
+
permissions: [
|
|
578
|
+
"Test string"
|
|
579
|
+
],
|
|
580
|
+
});
|
|
581
|
+
/** Lists session resources in an environment. */
|
|
582
|
+
await gapi.client.dataplex.projects.locations.lakes.environments.sessions.list({
|
|
583
|
+
filter: "Test string",
|
|
584
|
+
pageSize: 42,
|
|
585
|
+
pageToken: "Test string",
|
|
586
|
+
parent: "Test string",
|
|
587
|
+
});
|
|
588
|
+
/** Creates a task resource within a lake. */
|
|
589
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.create({
|
|
590
|
+
parent: "Test string",
|
|
591
|
+
taskId: "Test string",
|
|
592
|
+
validateOnly: true,
|
|
593
|
+
}, {
|
|
594
|
+
createTime: "Test string",
|
|
595
|
+
description: "Test string",
|
|
596
|
+
displayName: "Test string",
|
|
597
|
+
executionSpec: {
|
|
598
|
+
args: {
|
|
599
|
+
A: "Test string"
|
|
600
|
+
},
|
|
601
|
+
kmsKey: "Test string",
|
|
602
|
+
maxJobExecutionLifetime: "Test string",
|
|
603
|
+
project: "Test string",
|
|
604
|
+
serviceAccount: "Test string",
|
|
605
|
+
},
|
|
606
|
+
executionStatus: {
|
|
607
|
+
latestJob: {
|
|
608
|
+
endTime: "Test string",
|
|
609
|
+
message: "Test string",
|
|
610
|
+
name: "Test string",
|
|
611
|
+
retryCount: 42,
|
|
612
|
+
service: "Test string",
|
|
613
|
+
serviceJob: "Test string",
|
|
614
|
+
startTime: "Test string",
|
|
615
|
+
state: "Test string",
|
|
616
|
+
uid: "Test string",
|
|
617
|
+
},
|
|
618
|
+
updateTime: "Test string",
|
|
619
|
+
},
|
|
620
|
+
labels: {
|
|
621
|
+
A: "Test string"
|
|
622
|
+
},
|
|
623
|
+
name: "Test string",
|
|
624
|
+
spark: {
|
|
625
|
+
archiveUris: [
|
|
626
|
+
"Test string"
|
|
627
|
+
],
|
|
628
|
+
fileUris: [
|
|
629
|
+
"Test string"
|
|
630
|
+
],
|
|
631
|
+
infrastructureSpec: {
|
|
632
|
+
batch: {
|
|
633
|
+
executorsCount: 42,
|
|
634
|
+
maxExecutorsCount: 42,
|
|
635
|
+
},
|
|
636
|
+
containerImage: {
|
|
637
|
+
image: "Test string",
|
|
638
|
+
javaJars: [
|
|
639
|
+
"Test string"
|
|
640
|
+
],
|
|
641
|
+
properties: {
|
|
642
|
+
A: "Test string"
|
|
643
|
+
},
|
|
644
|
+
pythonPackages: [
|
|
645
|
+
"Test string"
|
|
646
|
+
],
|
|
647
|
+
},
|
|
648
|
+
vpcNetwork: {
|
|
649
|
+
network: "Test string",
|
|
650
|
+
networkTags: [
|
|
651
|
+
"Test string"
|
|
652
|
+
],
|
|
653
|
+
subNetwork: "Test string",
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
mainClass: "Test string",
|
|
657
|
+
mainJarFileUri: "Test string",
|
|
658
|
+
pythonScriptFile: "Test string",
|
|
659
|
+
sqlScript: "Test string",
|
|
660
|
+
sqlScriptFile: "Test string",
|
|
661
|
+
},
|
|
662
|
+
state: "Test string",
|
|
663
|
+
triggerSpec: {
|
|
664
|
+
disabled: true,
|
|
665
|
+
maxRetries: 42,
|
|
666
|
+
schedule: "Test string",
|
|
667
|
+
startTime: "Test string",
|
|
668
|
+
type: "Test string",
|
|
669
|
+
},
|
|
670
|
+
uid: "Test string",
|
|
671
|
+
updateTime: "Test string",
|
|
672
|
+
});
|
|
673
|
+
/** Delete the task resource. */
|
|
674
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.delete({
|
|
675
|
+
name: "Test string",
|
|
676
|
+
});
|
|
677
|
+
/** Get task resource. */
|
|
678
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.get({
|
|
679
|
+
name: "Test string",
|
|
680
|
+
});
|
|
681
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
682
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.getIamPolicy({
|
|
683
|
+
"options.requestedPolicyVersion": 42,
|
|
684
|
+
resource: "Test string",
|
|
685
|
+
});
|
|
686
|
+
/** Lists tasks under the given lake. */
|
|
687
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.list({
|
|
688
|
+
filter: "Test string",
|
|
689
|
+
orderBy: "Test string",
|
|
690
|
+
pageSize: 42,
|
|
691
|
+
pageToken: "Test string",
|
|
692
|
+
parent: "Test string",
|
|
693
|
+
});
|
|
694
|
+
/** Update the task resource. */
|
|
695
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.patch({
|
|
696
|
+
name: "Test string",
|
|
697
|
+
updateMask: "Test string",
|
|
698
|
+
validateOnly: true,
|
|
699
|
+
}, {
|
|
700
|
+
createTime: "Test string",
|
|
701
|
+
description: "Test string",
|
|
702
|
+
displayName: "Test string",
|
|
703
|
+
executionSpec: {
|
|
704
|
+
args: {
|
|
705
|
+
A: "Test string"
|
|
706
|
+
},
|
|
707
|
+
kmsKey: "Test string",
|
|
708
|
+
maxJobExecutionLifetime: "Test string",
|
|
709
|
+
project: "Test string",
|
|
710
|
+
serviceAccount: "Test string",
|
|
711
|
+
},
|
|
712
|
+
executionStatus: {
|
|
713
|
+
latestJob: {
|
|
714
|
+
endTime: "Test string",
|
|
715
|
+
message: "Test string",
|
|
716
|
+
name: "Test string",
|
|
717
|
+
retryCount: 42,
|
|
718
|
+
service: "Test string",
|
|
719
|
+
serviceJob: "Test string",
|
|
720
|
+
startTime: "Test string",
|
|
721
|
+
state: "Test string",
|
|
722
|
+
uid: "Test string",
|
|
723
|
+
},
|
|
724
|
+
updateTime: "Test string",
|
|
725
|
+
},
|
|
726
|
+
labels: {
|
|
727
|
+
A: "Test string"
|
|
728
|
+
},
|
|
729
|
+
name: "Test string",
|
|
730
|
+
spark: {
|
|
731
|
+
archiveUris: [
|
|
732
|
+
"Test string"
|
|
733
|
+
],
|
|
734
|
+
fileUris: [
|
|
735
|
+
"Test string"
|
|
736
|
+
],
|
|
737
|
+
infrastructureSpec: {
|
|
738
|
+
batch: {
|
|
739
|
+
executorsCount: 42,
|
|
740
|
+
maxExecutorsCount: 42,
|
|
741
|
+
},
|
|
742
|
+
containerImage: {
|
|
743
|
+
image: "Test string",
|
|
744
|
+
javaJars: [
|
|
745
|
+
"Test string"
|
|
746
|
+
],
|
|
747
|
+
properties: {
|
|
748
|
+
A: "Test string"
|
|
749
|
+
},
|
|
750
|
+
pythonPackages: [
|
|
751
|
+
"Test string"
|
|
752
|
+
],
|
|
753
|
+
},
|
|
754
|
+
vpcNetwork: {
|
|
755
|
+
network: "Test string",
|
|
756
|
+
networkTags: [
|
|
757
|
+
"Test string"
|
|
758
|
+
],
|
|
759
|
+
subNetwork: "Test string",
|
|
760
|
+
},
|
|
761
|
+
},
|
|
762
|
+
mainClass: "Test string",
|
|
763
|
+
mainJarFileUri: "Test string",
|
|
764
|
+
pythonScriptFile: "Test string",
|
|
765
|
+
sqlScript: "Test string",
|
|
766
|
+
sqlScriptFile: "Test string",
|
|
767
|
+
},
|
|
768
|
+
state: "Test string",
|
|
769
|
+
triggerSpec: {
|
|
770
|
+
disabled: true,
|
|
771
|
+
maxRetries: 42,
|
|
772
|
+
schedule: "Test string",
|
|
773
|
+
startTime: "Test string",
|
|
774
|
+
type: "Test string",
|
|
775
|
+
},
|
|
776
|
+
uid: "Test string",
|
|
777
|
+
updateTime: "Test string",
|
|
778
|
+
});
|
|
779
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
780
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.setIamPolicy({
|
|
781
|
+
resource: "Test string",
|
|
782
|
+
}, {
|
|
783
|
+
policy: {
|
|
784
|
+
auditConfigs: [
|
|
785
|
+
{
|
|
786
|
+
auditLogConfigs: [
|
|
787
|
+
{
|
|
788
|
+
exemptedMembers: [
|
|
789
|
+
"Test string"
|
|
790
|
+
],
|
|
791
|
+
logType: "Test string",
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
service: "Test string",
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
bindings: [
|
|
798
|
+
{
|
|
799
|
+
condition: {
|
|
800
|
+
description: "Test string",
|
|
801
|
+
expression: "Test string",
|
|
802
|
+
location: "Test string",
|
|
803
|
+
title: "Test string",
|
|
804
|
+
},
|
|
805
|
+
members: [
|
|
806
|
+
"Test string"
|
|
807
|
+
],
|
|
808
|
+
role: "Test string",
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
etag: "Test string",
|
|
812
|
+
version: 42,
|
|
813
|
+
},
|
|
814
|
+
updateMask: "Test string",
|
|
815
|
+
});
|
|
816
|
+
/**
|
|
817
|
+
* 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
|
|
818
|
+
* 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.
|
|
819
|
+
*/
|
|
820
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.testIamPermissions({
|
|
821
|
+
resource: "Test string",
|
|
822
|
+
}, {
|
|
823
|
+
permissions: [
|
|
824
|
+
"Test string"
|
|
825
|
+
],
|
|
826
|
+
});
|
|
827
|
+
/** Cancel jobs running for the task resource. */
|
|
828
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.jobs.cancel({
|
|
829
|
+
name: "Test string",
|
|
830
|
+
}, {
|
|
831
|
+
});
|
|
832
|
+
/** Get job resource. */
|
|
833
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.jobs.get({
|
|
834
|
+
name: "Test string",
|
|
835
|
+
});
|
|
836
|
+
/** Lists Jobs under the given task. */
|
|
837
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.jobs.list({
|
|
838
|
+
pageSize: 42,
|
|
839
|
+
pageToken: "Test string",
|
|
840
|
+
parent: "Test string",
|
|
841
|
+
});
|
|
842
|
+
/** Creates a zone resource within a lake. */
|
|
843
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.create({
|
|
844
|
+
parent: "Test string",
|
|
845
|
+
validateOnly: true,
|
|
846
|
+
zoneId: "Test string",
|
|
847
|
+
}, {
|
|
848
|
+
assetStatus: {
|
|
849
|
+
activeAssets: 42,
|
|
850
|
+
securityPolicyApplyingAssets: 42,
|
|
851
|
+
updateTime: "Test string",
|
|
852
|
+
},
|
|
853
|
+
createTime: "Test string",
|
|
854
|
+
description: "Test string",
|
|
855
|
+
discoverySpec: {
|
|
856
|
+
csvOptions: {
|
|
857
|
+
delimiter: "Test string",
|
|
858
|
+
disableTypeInference: true,
|
|
859
|
+
encoding: "Test string",
|
|
860
|
+
headerRows: 42,
|
|
861
|
+
},
|
|
862
|
+
enabled: true,
|
|
863
|
+
excludePatterns: [
|
|
864
|
+
"Test string"
|
|
865
|
+
],
|
|
866
|
+
includePatterns: [
|
|
867
|
+
"Test string"
|
|
868
|
+
],
|
|
869
|
+
jsonOptions: {
|
|
870
|
+
disableTypeInference: true,
|
|
871
|
+
encoding: "Test string",
|
|
872
|
+
},
|
|
873
|
+
schedule: "Test string",
|
|
874
|
+
},
|
|
875
|
+
displayName: "Test string",
|
|
876
|
+
labels: {
|
|
877
|
+
A: "Test string"
|
|
878
|
+
},
|
|
879
|
+
name: "Test string",
|
|
880
|
+
resourceSpec: {
|
|
881
|
+
locationType: "Test string",
|
|
882
|
+
},
|
|
883
|
+
state: "Test string",
|
|
884
|
+
type: "Test string",
|
|
885
|
+
uid: "Test string",
|
|
886
|
+
updateTime: "Test string",
|
|
887
|
+
});
|
|
888
|
+
/** Deletes a zone resource. All assets within a zone must be deleted before the zone can be deleted. */
|
|
889
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.delete({
|
|
890
|
+
name: "Test string",
|
|
891
|
+
});
|
|
892
|
+
/** Retrieves a zone resource. */
|
|
893
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.get({
|
|
894
|
+
name: "Test string",
|
|
895
|
+
});
|
|
896
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
897
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.getIamPolicy({
|
|
898
|
+
"options.requestedPolicyVersion": 42,
|
|
899
|
+
resource: "Test string",
|
|
900
|
+
});
|
|
901
|
+
/** Lists zone resources in a lake. */
|
|
902
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.list({
|
|
903
|
+
filter: "Test string",
|
|
904
|
+
orderBy: "Test string",
|
|
905
|
+
pageSize: 42,
|
|
906
|
+
pageToken: "Test string",
|
|
907
|
+
parent: "Test string",
|
|
908
|
+
});
|
|
909
|
+
/** Updates a zone resource. */
|
|
910
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.patch({
|
|
911
|
+
name: "Test string",
|
|
912
|
+
updateMask: "Test string",
|
|
913
|
+
validateOnly: true,
|
|
914
|
+
}, {
|
|
915
|
+
assetStatus: {
|
|
916
|
+
activeAssets: 42,
|
|
917
|
+
securityPolicyApplyingAssets: 42,
|
|
918
|
+
updateTime: "Test string",
|
|
919
|
+
},
|
|
920
|
+
createTime: "Test string",
|
|
921
|
+
description: "Test string",
|
|
922
|
+
discoverySpec: {
|
|
923
|
+
csvOptions: {
|
|
924
|
+
delimiter: "Test string",
|
|
925
|
+
disableTypeInference: true,
|
|
926
|
+
encoding: "Test string",
|
|
927
|
+
headerRows: 42,
|
|
928
|
+
},
|
|
929
|
+
enabled: true,
|
|
930
|
+
excludePatterns: [
|
|
931
|
+
"Test string"
|
|
932
|
+
],
|
|
933
|
+
includePatterns: [
|
|
934
|
+
"Test string"
|
|
935
|
+
],
|
|
936
|
+
jsonOptions: {
|
|
937
|
+
disableTypeInference: true,
|
|
938
|
+
encoding: "Test string",
|
|
939
|
+
},
|
|
940
|
+
schedule: "Test string",
|
|
941
|
+
},
|
|
942
|
+
displayName: "Test string",
|
|
943
|
+
labels: {
|
|
944
|
+
A: "Test string"
|
|
945
|
+
},
|
|
946
|
+
name: "Test string",
|
|
947
|
+
resourceSpec: {
|
|
948
|
+
locationType: "Test string",
|
|
949
|
+
},
|
|
950
|
+
state: "Test string",
|
|
951
|
+
type: "Test string",
|
|
952
|
+
uid: "Test string",
|
|
953
|
+
updateTime: "Test string",
|
|
954
|
+
});
|
|
955
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
956
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.setIamPolicy({
|
|
957
|
+
resource: "Test string",
|
|
958
|
+
}, {
|
|
959
|
+
policy: {
|
|
960
|
+
auditConfigs: [
|
|
961
|
+
{
|
|
962
|
+
auditLogConfigs: [
|
|
963
|
+
{
|
|
964
|
+
exemptedMembers: [
|
|
965
|
+
"Test string"
|
|
966
|
+
],
|
|
967
|
+
logType: "Test string",
|
|
968
|
+
}
|
|
969
|
+
],
|
|
970
|
+
service: "Test string",
|
|
971
|
+
}
|
|
972
|
+
],
|
|
973
|
+
bindings: [
|
|
974
|
+
{
|
|
975
|
+
condition: {
|
|
976
|
+
description: "Test string",
|
|
977
|
+
expression: "Test string",
|
|
978
|
+
location: "Test string",
|
|
979
|
+
title: "Test string",
|
|
980
|
+
},
|
|
981
|
+
members: [
|
|
982
|
+
"Test string"
|
|
983
|
+
],
|
|
984
|
+
role: "Test string",
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
etag: "Test string",
|
|
988
|
+
version: 42,
|
|
989
|
+
},
|
|
990
|
+
updateMask: "Test string",
|
|
991
|
+
});
|
|
992
|
+
/**
|
|
993
|
+
* 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
|
|
994
|
+
* 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.
|
|
995
|
+
*/
|
|
996
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.testIamPermissions({
|
|
997
|
+
resource: "Test string",
|
|
998
|
+
}, {
|
|
999
|
+
permissions: [
|
|
1000
|
+
"Test string"
|
|
1001
|
+
],
|
|
1002
|
+
});
|
|
1003
|
+
/** Lists action resources in a zone. */
|
|
1004
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.actions.list({
|
|
1005
|
+
pageSize: 42,
|
|
1006
|
+
pageToken: "Test string",
|
|
1007
|
+
parent: "Test string",
|
|
1008
|
+
});
|
|
1009
|
+
/** Creates an asset resource. */
|
|
1010
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.create({
|
|
1011
|
+
assetId: "Test string",
|
|
1012
|
+
parent: "Test string",
|
|
1013
|
+
validateOnly: true,
|
|
1014
|
+
}, {
|
|
1015
|
+
createTime: "Test string",
|
|
1016
|
+
description: "Test string",
|
|
1017
|
+
discoverySpec: {
|
|
1018
|
+
csvOptions: {
|
|
1019
|
+
delimiter: "Test string",
|
|
1020
|
+
disableTypeInference: true,
|
|
1021
|
+
encoding: "Test string",
|
|
1022
|
+
headerRows: 42,
|
|
1023
|
+
},
|
|
1024
|
+
enabled: true,
|
|
1025
|
+
excludePatterns: [
|
|
1026
|
+
"Test string"
|
|
1027
|
+
],
|
|
1028
|
+
includePatterns: [
|
|
1029
|
+
"Test string"
|
|
1030
|
+
],
|
|
1031
|
+
jsonOptions: {
|
|
1032
|
+
disableTypeInference: true,
|
|
1033
|
+
encoding: "Test string",
|
|
1034
|
+
},
|
|
1035
|
+
schedule: "Test string",
|
|
1036
|
+
},
|
|
1037
|
+
discoveryStatus: {
|
|
1038
|
+
lastRunDuration: "Test string",
|
|
1039
|
+
lastRunTime: "Test string",
|
|
1040
|
+
message: "Test string",
|
|
1041
|
+
state: "Test string",
|
|
1042
|
+
stats: {
|
|
1043
|
+
dataItems: "Test string",
|
|
1044
|
+
dataSize: "Test string",
|
|
1045
|
+
filesets: "Test string",
|
|
1046
|
+
tables: "Test string",
|
|
1047
|
+
},
|
|
1048
|
+
updateTime: "Test string",
|
|
1049
|
+
},
|
|
1050
|
+
displayName: "Test string",
|
|
1051
|
+
labels: {
|
|
1052
|
+
A: "Test string"
|
|
1053
|
+
},
|
|
1054
|
+
name: "Test string",
|
|
1055
|
+
resourceSpec: {
|
|
1056
|
+
name: "Test string",
|
|
1057
|
+
type: "Test string",
|
|
1058
|
+
},
|
|
1059
|
+
resourceStatus: {
|
|
1060
|
+
message: "Test string",
|
|
1061
|
+
state: "Test string",
|
|
1062
|
+
updateTime: "Test string",
|
|
1063
|
+
},
|
|
1064
|
+
securityStatus: {
|
|
1065
|
+
message: "Test string",
|
|
1066
|
+
state: "Test string",
|
|
1067
|
+
updateTime: "Test string",
|
|
1068
|
+
},
|
|
1069
|
+
state: "Test string",
|
|
1070
|
+
uid: "Test string",
|
|
1071
|
+
updateTime: "Test string",
|
|
1072
|
+
});
|
|
1073
|
+
/** Deletes an asset resource. The referenced storage resource is detached (default) or deleted based on the associated Lifecycle policy. */
|
|
1074
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.delete({
|
|
1075
|
+
name: "Test string",
|
|
1076
|
+
});
|
|
1077
|
+
/** Retrieves an asset resource. */
|
|
1078
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.get({
|
|
1079
|
+
name: "Test string",
|
|
1080
|
+
});
|
|
1081
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
1082
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.getIamPolicy({
|
|
1083
|
+
"options.requestedPolicyVersion": 42,
|
|
1084
|
+
resource: "Test string",
|
|
1085
|
+
});
|
|
1086
|
+
/** Lists asset resources in a zone. */
|
|
1087
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.list({
|
|
1088
|
+
filter: "Test string",
|
|
1089
|
+
orderBy: "Test string",
|
|
1090
|
+
pageSize: 42,
|
|
1091
|
+
pageToken: "Test string",
|
|
1092
|
+
parent: "Test string",
|
|
1093
|
+
});
|
|
1094
|
+
/** Updates an asset resource. */
|
|
1095
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.patch({
|
|
1096
|
+
name: "Test string",
|
|
1097
|
+
updateMask: "Test string",
|
|
1098
|
+
validateOnly: true,
|
|
1099
|
+
}, {
|
|
1100
|
+
createTime: "Test string",
|
|
1101
|
+
description: "Test string",
|
|
1102
|
+
discoverySpec: {
|
|
1103
|
+
csvOptions: {
|
|
1104
|
+
delimiter: "Test string",
|
|
1105
|
+
disableTypeInference: true,
|
|
1106
|
+
encoding: "Test string",
|
|
1107
|
+
headerRows: 42,
|
|
1108
|
+
},
|
|
1109
|
+
enabled: true,
|
|
1110
|
+
excludePatterns: [
|
|
1111
|
+
"Test string"
|
|
1112
|
+
],
|
|
1113
|
+
includePatterns: [
|
|
1114
|
+
"Test string"
|
|
1115
|
+
],
|
|
1116
|
+
jsonOptions: {
|
|
1117
|
+
disableTypeInference: true,
|
|
1118
|
+
encoding: "Test string",
|
|
1119
|
+
},
|
|
1120
|
+
schedule: "Test string",
|
|
1121
|
+
},
|
|
1122
|
+
discoveryStatus: {
|
|
1123
|
+
lastRunDuration: "Test string",
|
|
1124
|
+
lastRunTime: "Test string",
|
|
1125
|
+
message: "Test string",
|
|
1126
|
+
state: "Test string",
|
|
1127
|
+
stats: {
|
|
1128
|
+
dataItems: "Test string",
|
|
1129
|
+
dataSize: "Test string",
|
|
1130
|
+
filesets: "Test string",
|
|
1131
|
+
tables: "Test string",
|
|
1132
|
+
},
|
|
1133
|
+
updateTime: "Test string",
|
|
1134
|
+
},
|
|
1135
|
+
displayName: "Test string",
|
|
1136
|
+
labels: {
|
|
1137
|
+
A: "Test string"
|
|
1138
|
+
},
|
|
1139
|
+
name: "Test string",
|
|
1140
|
+
resourceSpec: {
|
|
1141
|
+
name: "Test string",
|
|
1142
|
+
type: "Test string",
|
|
1143
|
+
},
|
|
1144
|
+
resourceStatus: {
|
|
1145
|
+
message: "Test string",
|
|
1146
|
+
state: "Test string",
|
|
1147
|
+
updateTime: "Test string",
|
|
1148
|
+
},
|
|
1149
|
+
securityStatus: {
|
|
1150
|
+
message: "Test string",
|
|
1151
|
+
state: "Test string",
|
|
1152
|
+
updateTime: "Test string",
|
|
1153
|
+
},
|
|
1154
|
+
state: "Test string",
|
|
1155
|
+
uid: "Test string",
|
|
1156
|
+
updateTime: "Test string",
|
|
1157
|
+
});
|
|
1158
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
1159
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.setIamPolicy({
|
|
1160
|
+
resource: "Test string",
|
|
1161
|
+
}, {
|
|
1162
|
+
policy: {
|
|
1163
|
+
auditConfigs: [
|
|
1164
|
+
{
|
|
1165
|
+
auditLogConfigs: [
|
|
1166
|
+
{
|
|
1167
|
+
exemptedMembers: [
|
|
1168
|
+
"Test string"
|
|
1169
|
+
],
|
|
1170
|
+
logType: "Test string",
|
|
1171
|
+
}
|
|
1172
|
+
],
|
|
1173
|
+
service: "Test string",
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
bindings: [
|
|
1177
|
+
{
|
|
1178
|
+
condition: {
|
|
1179
|
+
description: "Test string",
|
|
1180
|
+
expression: "Test string",
|
|
1181
|
+
location: "Test string",
|
|
1182
|
+
title: "Test string",
|
|
1183
|
+
},
|
|
1184
|
+
members: [
|
|
1185
|
+
"Test string"
|
|
1186
|
+
],
|
|
1187
|
+
role: "Test string",
|
|
1188
|
+
}
|
|
1189
|
+
],
|
|
1190
|
+
etag: "Test string",
|
|
1191
|
+
version: 42,
|
|
1192
|
+
},
|
|
1193
|
+
updateMask: "Test string",
|
|
1194
|
+
});
|
|
1195
|
+
/**
|
|
1196
|
+
* 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
|
|
1197
|
+
* 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.
|
|
1198
|
+
*/
|
|
1199
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.testIamPermissions({
|
|
1200
|
+
resource: "Test string",
|
|
1201
|
+
}, {
|
|
1202
|
+
permissions: [
|
|
1203
|
+
"Test string"
|
|
1204
|
+
],
|
|
1205
|
+
});
|
|
1206
|
+
/** Lists action resources in an asset. */
|
|
1207
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.assets.actions.list({
|
|
1208
|
+
pageSize: 42,
|
|
1209
|
+
pageToken: "Test string",
|
|
1210
|
+
parent: "Test string",
|
|
1211
|
+
});
|
|
1212
|
+
/** Create a metadata entity. */
|
|
1213
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.create({
|
|
1214
|
+
parent: "Test string",
|
|
1215
|
+
validateOnly: true,
|
|
1216
|
+
}, {
|
|
1217
|
+
asset: "Test string",
|
|
1218
|
+
catalogEntry: "Test string",
|
|
1219
|
+
compatibility: {
|
|
1220
|
+
bigquery: {
|
|
1221
|
+
compatible: true,
|
|
1222
|
+
reason: "Test string",
|
|
1223
|
+
},
|
|
1224
|
+
hiveMetastore: {
|
|
1225
|
+
compatible: true,
|
|
1226
|
+
reason: "Test string",
|
|
1227
|
+
},
|
|
1228
|
+
},
|
|
1229
|
+
createTime: "Test string",
|
|
1230
|
+
dataPath: "Test string",
|
|
1231
|
+
dataPathPattern: "Test string",
|
|
1232
|
+
description: "Test string",
|
|
1233
|
+
displayName: "Test string",
|
|
1234
|
+
etag: "Test string",
|
|
1235
|
+
format: {
|
|
1236
|
+
compressionFormat: "Test string",
|
|
1237
|
+
csv: {
|
|
1238
|
+
delimiter: "Test string",
|
|
1239
|
+
encoding: "Test string",
|
|
1240
|
+
headerRows: 42,
|
|
1241
|
+
quote: "Test string",
|
|
1242
|
+
},
|
|
1243
|
+
format: "Test string",
|
|
1244
|
+
json: {
|
|
1245
|
+
encoding: "Test string",
|
|
1246
|
+
},
|
|
1247
|
+
mimeType: "Test string",
|
|
1248
|
+
},
|
|
1249
|
+
id: "Test string",
|
|
1250
|
+
name: "Test string",
|
|
1251
|
+
schema: {
|
|
1252
|
+
fields: [
|
|
1253
|
+
{
|
|
1254
|
+
description: "Test string",
|
|
1255
|
+
fields: undefined,
|
|
1256
|
+
mode: "Test string",
|
|
1257
|
+
name: "Test string",
|
|
1258
|
+
type: "Test string",
|
|
1259
|
+
}
|
|
1260
|
+
],
|
|
1261
|
+
partitionFields: [
|
|
1262
|
+
{
|
|
1263
|
+
name: "Test string",
|
|
1264
|
+
type: "Test string",
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
partitionStyle: "Test string",
|
|
1268
|
+
userManaged: true,
|
|
1269
|
+
},
|
|
1270
|
+
system: "Test string",
|
|
1271
|
+
type: "Test string",
|
|
1272
|
+
updateTime: "Test string",
|
|
1273
|
+
});
|
|
1274
|
+
/** Delete a metadata entity. */
|
|
1275
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.delete({
|
|
1276
|
+
etag: "Test string",
|
|
1277
|
+
name: "Test string",
|
|
1278
|
+
});
|
|
1279
|
+
/** Get a metadata entity. */
|
|
1280
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.get({
|
|
1281
|
+
name: "Test string",
|
|
1282
|
+
view: "Test string",
|
|
1283
|
+
});
|
|
1284
|
+
/** List metadata entities in a zone. */
|
|
1285
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.list({
|
|
1286
|
+
filter: "Test string",
|
|
1287
|
+
pageSize: 42,
|
|
1288
|
+
pageToken: "Test string",
|
|
1289
|
+
parent: "Test string",
|
|
1290
|
+
view: "Test string",
|
|
1291
|
+
});
|
|
1292
|
+
/** Update a metadata entity. Only supports full resource update. */
|
|
1293
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.update({
|
|
1294
|
+
name: "Test string",
|
|
1295
|
+
validateOnly: true,
|
|
1296
|
+
}, {
|
|
1297
|
+
asset: "Test string",
|
|
1298
|
+
catalogEntry: "Test string",
|
|
1299
|
+
compatibility: {
|
|
1300
|
+
bigquery: {
|
|
1301
|
+
compatible: true,
|
|
1302
|
+
reason: "Test string",
|
|
1303
|
+
},
|
|
1304
|
+
hiveMetastore: {
|
|
1305
|
+
compatible: true,
|
|
1306
|
+
reason: "Test string",
|
|
1307
|
+
},
|
|
1308
|
+
},
|
|
1309
|
+
createTime: "Test string",
|
|
1310
|
+
dataPath: "Test string",
|
|
1311
|
+
dataPathPattern: "Test string",
|
|
1312
|
+
description: "Test string",
|
|
1313
|
+
displayName: "Test string",
|
|
1314
|
+
etag: "Test string",
|
|
1315
|
+
format: {
|
|
1316
|
+
compressionFormat: "Test string",
|
|
1317
|
+
csv: {
|
|
1318
|
+
delimiter: "Test string",
|
|
1319
|
+
encoding: "Test string",
|
|
1320
|
+
headerRows: 42,
|
|
1321
|
+
quote: "Test string",
|
|
1322
|
+
},
|
|
1323
|
+
format: "Test string",
|
|
1324
|
+
json: {
|
|
1325
|
+
encoding: "Test string",
|
|
1326
|
+
},
|
|
1327
|
+
mimeType: "Test string",
|
|
1328
|
+
},
|
|
1329
|
+
id: "Test string",
|
|
1330
|
+
name: "Test string",
|
|
1331
|
+
schema: {
|
|
1332
|
+
fields: [
|
|
1333
|
+
{
|
|
1334
|
+
description: "Test string",
|
|
1335
|
+
fields: undefined,
|
|
1336
|
+
mode: "Test string",
|
|
1337
|
+
name: "Test string",
|
|
1338
|
+
type: "Test string",
|
|
1339
|
+
}
|
|
1340
|
+
],
|
|
1341
|
+
partitionFields: [
|
|
1342
|
+
{
|
|
1343
|
+
name: "Test string",
|
|
1344
|
+
type: "Test string",
|
|
1345
|
+
}
|
|
1346
|
+
],
|
|
1347
|
+
partitionStyle: "Test string",
|
|
1348
|
+
userManaged: true,
|
|
1349
|
+
},
|
|
1350
|
+
system: "Test string",
|
|
1351
|
+
type: "Test string",
|
|
1352
|
+
updateTime: "Test string",
|
|
1353
|
+
});
|
|
1354
|
+
/** Create a metadata partition. */
|
|
1355
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.partitions.create({
|
|
1356
|
+
parent: "Test string",
|
|
1357
|
+
validateOnly: true,
|
|
1358
|
+
}, {
|
|
1359
|
+
etag: "Test string",
|
|
1360
|
+
location: "Test string",
|
|
1361
|
+
name: "Test string",
|
|
1362
|
+
values: [
|
|
1363
|
+
"Test string"
|
|
1364
|
+
],
|
|
1365
|
+
});
|
|
1366
|
+
/** Delete a metadata partition. */
|
|
1367
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.partitions.delete({
|
|
1368
|
+
etag: "Test string",
|
|
1369
|
+
name: "Test string",
|
|
1370
|
+
});
|
|
1371
|
+
/** Get a metadata partition of an entity. */
|
|
1372
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.partitions.get({
|
|
1373
|
+
name: "Test string",
|
|
1374
|
+
});
|
|
1375
|
+
/** List metadata partitions of an entity. */
|
|
1376
|
+
await gapi.client.dataplex.projects.locations.lakes.zones.entities.partitions.list({
|
|
1377
|
+
filter: "Test string",
|
|
1378
|
+
pageSize: 42,
|
|
1379
|
+
pageToken: "Test string",
|
|
1380
|
+
parent: "Test string",
|
|
1381
|
+
});
|
|
1382
|
+
/**
|
|
1383
|
+
* 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
|
|
1384
|
+
* 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
|
|
1385
|
+
* 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,
|
|
1386
|
+
* corresponding to Code.CANCELLED.
|
|
1387
|
+
*/
|
|
1388
|
+
await gapi.client.dataplex.projects.locations.operations.cancel({
|
|
1389
|
+
name: "Test string",
|
|
1390
|
+
}, {
|
|
1391
|
+
});
|
|
1392
|
+
/**
|
|
1393
|
+
* 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
|
|
1394
|
+
* this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
1395
|
+
*/
|
|
1396
|
+
await gapi.client.dataplex.projects.locations.operations.delete({
|
|
1397
|
+
name: "Test string",
|
|
1398
|
+
});
|
|
1399
|
+
/** 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. */
|
|
1400
|
+
await gapi.client.dataplex.projects.locations.operations.get({
|
|
1401
|
+
name: "Test string",
|
|
1402
|
+
});
|
|
1403
|
+
/**
|
|
1404
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
|
|
1405
|
+
* override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations"
|
|
1406
|
+
* to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent
|
|
1407
|
+
* resource, without the operations collection id.
|
|
1408
|
+
*/
|
|
1409
|
+
await gapi.client.dataplex.projects.locations.operations.list({
|
|
1410
|
+
filter: "Test string",
|
|
1411
|
+
name: "Test string",
|
|
1412
|
+
pageSize: 42,
|
|
1413
|
+
pageToken: "Test string",
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
});
|