@maxim_mazurok/gapi.client.metastore-v1 0.0.20230425 → 0.0.20230502
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 +293 -1
- package/package.json +1 -1
- package/tests.ts +25 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://metastore.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230502
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -22,6 +22,20 @@ declare namespace gapi.client {
|
|
|
22
22
|
function load(name: "metastore", version: "v1", callback: () => any): void;
|
|
23
23
|
|
|
24
24
|
namespace metastore {
|
|
25
|
+
interface AlterMetadataResourceLocationRequest {
|
|
26
|
+
/** Required. The new location URI for the metadata resource. */
|
|
27
|
+
locationUri?:
|
|
28
|
+
string;
|
|
29
|
+
/**
|
|
30
|
+
* Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or
|
|
31
|
+
* databases/{database_id}/tables/{table_id}/partitions/{partition_id}
|
|
32
|
+
*/
|
|
33
|
+
resourceName?:
|
|
34
|
+
string;
|
|
35
|
+
}
|
|
36
|
+
// tslint:disable-next-line:no-empty-interface
|
|
37
|
+
interface AlterMetadataResourceLocationResponse {
|
|
38
|
+
}
|
|
25
39
|
interface AuditConfig {
|
|
26
40
|
/** The configuration for logging of each type of permission. */
|
|
27
41
|
auditLogConfigs?:
|
|
@@ -156,6 +170,11 @@ declare namespace gapi.client {
|
|
|
156
170
|
kmsKey?:
|
|
157
171
|
string;
|
|
158
172
|
}
|
|
173
|
+
interface ErrorDetails {
|
|
174
|
+
/** Additional structured details about this error.Keys define the failure items. Value describes the exception or details of the item. */
|
|
175
|
+
details?:
|
|
176
|
+
{ [P in string]: string };
|
|
177
|
+
}
|
|
159
178
|
interface ExportMetadataRequest {
|
|
160
179
|
/** Optional. The type of the database dump. If unspecified, defaults to MYSQL. */
|
|
161
180
|
databaseDumpType?:
|
|
@@ -412,6 +431,20 @@ declare namespace gapi.client {
|
|
|
412
431
|
restores?:
|
|
413
432
|
Restore[];
|
|
414
433
|
}
|
|
434
|
+
interface MoveTableToDatabaseRequest {
|
|
435
|
+
/** Required. The name of the database where the table resides. */
|
|
436
|
+
dbName?:
|
|
437
|
+
string;
|
|
438
|
+
/** Required. The name of the database where the table should be moved. */
|
|
439
|
+
destinationDbName?:
|
|
440
|
+
string;
|
|
441
|
+
/** Required. The name of the table to be moved. */
|
|
442
|
+
tableName?:
|
|
443
|
+
string;
|
|
444
|
+
}
|
|
445
|
+
// tslint:disable-next-line:no-empty-interface
|
|
446
|
+
interface MoveTableToDatabaseResponse {
|
|
447
|
+
}
|
|
415
448
|
interface NetworkConfig {
|
|
416
449
|
/** Immutable. The consumer-side network configuration for the Dataproc Metastore instance. */
|
|
417
450
|
consumers?:
|
|
@@ -502,6 +535,19 @@ declare namespace gapi.client {
|
|
|
502
535
|
version?:
|
|
503
536
|
number;
|
|
504
537
|
}
|
|
538
|
+
interface QueryMetadataRequest {
|
|
539
|
+
/** Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data. */
|
|
540
|
+
query?:
|
|
541
|
+
string;
|
|
542
|
+
}
|
|
543
|
+
interface QueryMetadataResponse {
|
|
544
|
+
/**
|
|
545
|
+
* The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the
|
|
546
|
+
* long-running operation query against the metadata finishes.
|
|
547
|
+
*/
|
|
548
|
+
resultManifestUri?:
|
|
549
|
+
string;
|
|
550
|
+
}
|
|
505
551
|
interface Restore {
|
|
506
552
|
/**
|
|
507
553
|
* Output only. The relative resource name of the metastore service backup to restore from, in the following
|
|
@@ -2092,6 +2138,90 @@ declare namespace gapi.client {
|
|
|
2092
2138
|
body: MetadataImport): Request<Operation>;
|
|
2093
2139
|
}
|
|
2094
2140
|
interface ServicesResource {
|
|
2141
|
+
/**
|
|
2142
|
+
* 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
|
|
2143
|
+
* resource and does not transfer any existing data to the new location.
|
|
2144
|
+
*/
|
|
2145
|
+
alterLocation(request: {
|
|
2146
|
+
/** V1 error format. */
|
|
2147
|
+
"$.xgafv"?:
|
|
2148
|
+
string;
|
|
2149
|
+
/** OAuth access token. */
|
|
2150
|
+
access_token?:
|
|
2151
|
+
string;
|
|
2152
|
+
/** Data format for response. */
|
|
2153
|
+
alt?:
|
|
2154
|
+
string;
|
|
2155
|
+
/** JSONP */
|
|
2156
|
+
callback?:
|
|
2157
|
+
string;
|
|
2158
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2159
|
+
fields?:
|
|
2160
|
+
string;
|
|
2161
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2162
|
+
key?:
|
|
2163
|
+
string;
|
|
2164
|
+
/** OAuth 2.0 token for the current user. */
|
|
2165
|
+
oauth_token?:
|
|
2166
|
+
string;
|
|
2167
|
+
/** Returns response with indentations and line breaks. */
|
|
2168
|
+
prettyPrint?:
|
|
2169
|
+
boolean;
|
|
2170
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2171
|
+
quotaUser?:
|
|
2172
|
+
string;
|
|
2173
|
+
/** Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2174
|
+
service:
|
|
2175
|
+
string;
|
|
2176
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2177
|
+
upload_protocol?:
|
|
2178
|
+
string;
|
|
2179
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2180
|
+
uploadType?:
|
|
2181
|
+
string;
|
|
2182
|
+
/** Request body */
|
|
2183
|
+
resource:
|
|
2184
|
+
AlterMetadataResourceLocationRequest;
|
|
2185
|
+
}): Request<Operation>;
|
|
2186
|
+
alterLocation(request: {
|
|
2187
|
+
/** V1 error format. */
|
|
2188
|
+
"$.xgafv"?:
|
|
2189
|
+
string;
|
|
2190
|
+
/** OAuth access token. */
|
|
2191
|
+
access_token?:
|
|
2192
|
+
string;
|
|
2193
|
+
/** Data format for response. */
|
|
2194
|
+
alt?:
|
|
2195
|
+
string;
|
|
2196
|
+
/** JSONP */
|
|
2197
|
+
callback?:
|
|
2198
|
+
string;
|
|
2199
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2200
|
+
fields?:
|
|
2201
|
+
string;
|
|
2202
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2203
|
+
key?:
|
|
2204
|
+
string;
|
|
2205
|
+
/** OAuth 2.0 token for the current user. */
|
|
2206
|
+
oauth_token?:
|
|
2207
|
+
string;
|
|
2208
|
+
/** Returns response with indentations and line breaks. */
|
|
2209
|
+
prettyPrint?:
|
|
2210
|
+
boolean;
|
|
2211
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2212
|
+
quotaUser?:
|
|
2213
|
+
string;
|
|
2214
|
+
/** Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2215
|
+
service:
|
|
2216
|
+
string;
|
|
2217
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2218
|
+
upload_protocol?:
|
|
2219
|
+
string;
|
|
2220
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2221
|
+
uploadType?:
|
|
2222
|
+
string;
|
|
2223
|
+
},
|
|
2224
|
+
body: AlterMetadataResourceLocationRequest): Request<Operation>;
|
|
2095
2225
|
/** Creates a metastore service in a project and location. */
|
|
2096
2226
|
create(request: {
|
|
2097
2227
|
/** V1 error format. */
|
|
@@ -2479,6 +2609,87 @@ declare namespace gapi.client {
|
|
|
2479
2609
|
uploadType?:
|
|
2480
2610
|
string;
|
|
2481
2611
|
}): Request<ListServicesResponse>;
|
|
2612
|
+
/** Move a table to another database. */
|
|
2613
|
+
moveTableToDatabase(request: {
|
|
2614
|
+
/** V1 error format. */
|
|
2615
|
+
"$.xgafv"?:
|
|
2616
|
+
string;
|
|
2617
|
+
/** OAuth access token. */
|
|
2618
|
+
access_token?:
|
|
2619
|
+
string;
|
|
2620
|
+
/** Data format for response. */
|
|
2621
|
+
alt?:
|
|
2622
|
+
string;
|
|
2623
|
+
/** JSONP */
|
|
2624
|
+
callback?:
|
|
2625
|
+
string;
|
|
2626
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2627
|
+
fields?:
|
|
2628
|
+
string;
|
|
2629
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2630
|
+
key?:
|
|
2631
|
+
string;
|
|
2632
|
+
/** OAuth 2.0 token for the current user. */
|
|
2633
|
+
oauth_token?:
|
|
2634
|
+
string;
|
|
2635
|
+
/** Returns response with indentations and line breaks. */
|
|
2636
|
+
prettyPrint?:
|
|
2637
|
+
boolean;
|
|
2638
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2639
|
+
quotaUser?:
|
|
2640
|
+
string;
|
|
2641
|
+
/** Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2642
|
+
service:
|
|
2643
|
+
string;
|
|
2644
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2645
|
+
upload_protocol?:
|
|
2646
|
+
string;
|
|
2647
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2648
|
+
uploadType?:
|
|
2649
|
+
string;
|
|
2650
|
+
/** Request body */
|
|
2651
|
+
resource:
|
|
2652
|
+
MoveTableToDatabaseRequest;
|
|
2653
|
+
}): Request<Operation>;
|
|
2654
|
+
moveTableToDatabase(request: {
|
|
2655
|
+
/** V1 error format. */
|
|
2656
|
+
"$.xgafv"?:
|
|
2657
|
+
string;
|
|
2658
|
+
/** OAuth access token. */
|
|
2659
|
+
access_token?:
|
|
2660
|
+
string;
|
|
2661
|
+
/** Data format for response. */
|
|
2662
|
+
alt?:
|
|
2663
|
+
string;
|
|
2664
|
+
/** JSONP */
|
|
2665
|
+
callback?:
|
|
2666
|
+
string;
|
|
2667
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2668
|
+
fields?:
|
|
2669
|
+
string;
|
|
2670
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2671
|
+
key?:
|
|
2672
|
+
string;
|
|
2673
|
+
/** OAuth 2.0 token for the current user. */
|
|
2674
|
+
oauth_token?:
|
|
2675
|
+
string;
|
|
2676
|
+
/** Returns response with indentations and line breaks. */
|
|
2677
|
+
prettyPrint?:
|
|
2678
|
+
boolean;
|
|
2679
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2680
|
+
quotaUser?:
|
|
2681
|
+
string;
|
|
2682
|
+
/** Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2683
|
+
service:
|
|
2684
|
+
string;
|
|
2685
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2686
|
+
upload_protocol?:
|
|
2687
|
+
string;
|
|
2688
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2689
|
+
uploadType?:
|
|
2690
|
+
string;
|
|
2691
|
+
},
|
|
2692
|
+
body: MoveTableToDatabaseRequest): Request<Operation>;
|
|
2482
2693
|
/** Updates the parameters of a single service. */
|
|
2483
2694
|
patch(request: {
|
|
2484
2695
|
/** V1 error format. */
|
|
@@ -2588,6 +2799,87 @@ declare namespace gapi.client {
|
|
|
2588
2799
|
string;
|
|
2589
2800
|
},
|
|
2590
2801
|
body: Service): Request<Operation>;
|
|
2802
|
+
/** Query DPMS metadata. */
|
|
2803
|
+
queryMetadata(request: {
|
|
2804
|
+
/** V1 error format. */
|
|
2805
|
+
"$.xgafv"?:
|
|
2806
|
+
string;
|
|
2807
|
+
/** OAuth access token. */
|
|
2808
|
+
access_token?:
|
|
2809
|
+
string;
|
|
2810
|
+
/** Data format for response. */
|
|
2811
|
+
alt?:
|
|
2812
|
+
string;
|
|
2813
|
+
/** JSONP */
|
|
2814
|
+
callback?:
|
|
2815
|
+
string;
|
|
2816
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2817
|
+
fields?:
|
|
2818
|
+
string;
|
|
2819
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2820
|
+
key?:
|
|
2821
|
+
string;
|
|
2822
|
+
/** OAuth 2.0 token for the current user. */
|
|
2823
|
+
oauth_token?:
|
|
2824
|
+
string;
|
|
2825
|
+
/** Returns response with indentations and line breaks. */
|
|
2826
|
+
prettyPrint?:
|
|
2827
|
+
boolean;
|
|
2828
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2829
|
+
quotaUser?:
|
|
2830
|
+
string;
|
|
2831
|
+
/** Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2832
|
+
service:
|
|
2833
|
+
string;
|
|
2834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2835
|
+
upload_protocol?:
|
|
2836
|
+
string;
|
|
2837
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2838
|
+
uploadType?:
|
|
2839
|
+
string;
|
|
2840
|
+
/** Request body */
|
|
2841
|
+
resource:
|
|
2842
|
+
QueryMetadataRequest;
|
|
2843
|
+
}): Request<Operation>;
|
|
2844
|
+
queryMetadata(request: {
|
|
2845
|
+
/** V1 error format. */
|
|
2846
|
+
"$.xgafv"?:
|
|
2847
|
+
string;
|
|
2848
|
+
/** OAuth access token. */
|
|
2849
|
+
access_token?:
|
|
2850
|
+
string;
|
|
2851
|
+
/** Data format for response. */
|
|
2852
|
+
alt?:
|
|
2853
|
+
string;
|
|
2854
|
+
/** JSONP */
|
|
2855
|
+
callback?:
|
|
2856
|
+
string;
|
|
2857
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2858
|
+
fields?:
|
|
2859
|
+
string;
|
|
2860
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2861
|
+
key?:
|
|
2862
|
+
string;
|
|
2863
|
+
/** OAuth 2.0 token for the current user. */
|
|
2864
|
+
oauth_token?:
|
|
2865
|
+
string;
|
|
2866
|
+
/** Returns response with indentations and line breaks. */
|
|
2867
|
+
prettyPrint?:
|
|
2868
|
+
boolean;
|
|
2869
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2870
|
+
quotaUser?:
|
|
2871
|
+
string;
|
|
2872
|
+
/** Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
|
|
2873
|
+
service:
|
|
2874
|
+
string;
|
|
2875
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2876
|
+
upload_protocol?:
|
|
2877
|
+
string;
|
|
2878
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2879
|
+
uploadType?:
|
|
2880
|
+
string;
|
|
2881
|
+
},
|
|
2882
|
+
body: QueryMetadataRequest): Request<Operation>;
|
|
2591
2883
|
/** Restores a service from a backup. */
|
|
2592
2884
|
restore(request: {
|
|
2593
2885
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230502
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -186,6 +186,16 @@ gapi.load('client', async () => {
|
|
|
186
186
|
pageSize: 42,
|
|
187
187
|
pageToken: "Test string",
|
|
188
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
|
+
});
|
|
189
199
|
/** Creates a metastore service in a project and location. */
|
|
190
200
|
await gapi.client.metastore.projects.locations.services.create({
|
|
191
201
|
parent: "Test string",
|
|
@@ -311,6 +321,14 @@ gapi.load('client', async () => {
|
|
|
311
321
|
pageToken: "Test string",
|
|
312
322
|
parent: "Test string",
|
|
313
323
|
});
|
|
324
|
+
/** Move a table to another database. */
|
|
325
|
+
await gapi.client.metastore.projects.locations.services.moveTableToDatabase({
|
|
326
|
+
service: "Test string",
|
|
327
|
+
}, {
|
|
328
|
+
dbName: "Test string",
|
|
329
|
+
destinationDbName: "Test string",
|
|
330
|
+
tableName: "Test string",
|
|
331
|
+
});
|
|
314
332
|
/** Updates the parameters of a single service. */
|
|
315
333
|
await gapi.client.metastore.projects.locations.services.patch({
|
|
316
334
|
name: "Test string",
|
|
@@ -406,6 +424,12 @@ gapi.load('client', async () => {
|
|
|
406
424
|
uid: "Test string",
|
|
407
425
|
updateTime: "Test string",
|
|
408
426
|
});
|
|
427
|
+
/** Query DPMS metadata. */
|
|
428
|
+
await gapi.client.metastore.projects.locations.services.queryMetadata({
|
|
429
|
+
service: "Test string",
|
|
430
|
+
}, {
|
|
431
|
+
query: "Test string",
|
|
432
|
+
});
|
|
409
433
|
/** Restores a service from a backup. */
|
|
410
434
|
await gapi.client.metastore.projects.locations.services.restore({
|
|
411
435
|
service: "Test string",
|