@maxim_mazurok/gapi.client.dataplex-v1 0.0.20221113 → 0.0.20221212
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 +87 -2
- package/package.json +1 -1
- package/tests.ts +28 -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://dataplex.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221212
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -203,6 +203,8 @@ declare namespace gapi.client {
|
|
|
203
203
|
* projects/{project_number}/datasets/{dataset_id}
|
|
204
204
|
*/
|
|
205
205
|
name?: string;
|
|
206
|
+
/** Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. */
|
|
207
|
+
readAccessMode?: string;
|
|
206
208
|
/** Required. Immutable. Type of resource. */
|
|
207
209
|
type?: string;
|
|
208
210
|
}
|
|
@@ -396,7 +398,7 @@ declare namespace gapi.client {
|
|
|
396
398
|
statisticRangeExpectation?: GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation;
|
|
397
399
|
/** Table rule which evaluates whether the provided expression is true. */
|
|
398
400
|
tableConditionExpectation?: GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation;
|
|
399
|
-
/** Optional. The minimum ratio of passing_rows / total_rows required to pass this rule.
|
|
401
|
+
/** Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of 0.0, 1.00 indicates default value (i.e. 1.0) */
|
|
400
402
|
threshold?: number;
|
|
401
403
|
/** ColumnAggregate rule which evaluates whether the column has duplicates. */
|
|
402
404
|
uniquenessExpectation?: any;
|
|
@@ -482,6 +484,8 @@ declare namespace gapi.client {
|
|
|
482
484
|
displayName?: string;
|
|
483
485
|
/** Optional. DataScan execution settings. If not specified, the fields under it will use their default values. */
|
|
484
486
|
executionSpec?: GoogleCloudDataplexV1DataScanExecutionSpec;
|
|
487
|
+
/** Output only. Status of the data scan execution. */
|
|
488
|
+
executionStatus?: GoogleCloudDataplexV1DataScanExecutionStatus;
|
|
485
489
|
/** Optional. User-defined labels for the scan. */
|
|
486
490
|
labels?: { [P in string]: string };
|
|
487
491
|
/**
|
|
@@ -548,6 +552,12 @@ declare namespace gapi.client {
|
|
|
548
552
|
*/
|
|
549
553
|
trigger?: GoogleCloudDataplexV1Trigger;
|
|
550
554
|
}
|
|
555
|
+
interface GoogleCloudDataplexV1DataScanExecutionStatus {
|
|
556
|
+
/** The time when the latest DataScanJob ended. */
|
|
557
|
+
latestJobEndTime?: string;
|
|
558
|
+
/** The time when the latest DataScanJob started. */
|
|
559
|
+
latestJobStartTime?: string;
|
|
560
|
+
}
|
|
551
561
|
interface GoogleCloudDataplexV1DataScanJob {
|
|
552
562
|
/** Output only. The result of the data profile scan. */
|
|
553
563
|
dataProfileResult?: GoogleCloudDataplexV1DataProfileResult;
|
|
@@ -632,6 +642,8 @@ declare namespace gapi.client {
|
|
|
632
642
|
type?: string;
|
|
633
643
|
}
|
|
634
644
|
interface GoogleCloudDataplexV1Entity {
|
|
645
|
+
/** Output only. Identifies the access mechanism to the entity. Not user settable. */
|
|
646
|
+
access?: GoogleCloudDataplexV1StorageAccess;
|
|
635
647
|
/** Required. Immutable. The ID of the asset associated with the storage location containing the entity data. The entity must be with in the same zone with the asset. */
|
|
636
648
|
asset?: string;
|
|
637
649
|
/** Output only. The name of the associated Data Catalog entry. */
|
|
@@ -964,6 +976,13 @@ declare namespace gapi.client {
|
|
|
964
976
|
/** DataScanJob created by RunDataScan API. */
|
|
965
977
|
job?: GoogleCloudDataplexV1DataScanJob;
|
|
966
978
|
}
|
|
979
|
+
// tslint:disable-next-line:no-empty-interface
|
|
980
|
+
interface GoogleCloudDataplexV1RunTaskRequest {
|
|
981
|
+
}
|
|
982
|
+
interface GoogleCloudDataplexV1RunTaskResponse {
|
|
983
|
+
/** Jobs created by RunTask API. */
|
|
984
|
+
job?: GoogleCloudDataplexV1Job;
|
|
985
|
+
}
|
|
967
986
|
interface GoogleCloudDataplexV1ScannedData {
|
|
968
987
|
/** The range denoted by values of an incremental field */
|
|
969
988
|
incrementalField?: GoogleCloudDataplexV1ScannedDataIncrementalField;
|
|
@@ -1050,6 +1069,10 @@ declare namespace gapi.client {
|
|
|
1050
1069
|
/** The size of results the query produced. */
|
|
1051
1070
|
resultSizeBytes?: string;
|
|
1052
1071
|
}
|
|
1072
|
+
interface GoogleCloudDataplexV1StorageAccess {
|
|
1073
|
+
/** Output only. Describes the read access mechanism of the data. Not user settable. */
|
|
1074
|
+
read?: string;
|
|
1075
|
+
}
|
|
1053
1076
|
interface GoogleCloudDataplexV1StorageFormat {
|
|
1054
1077
|
/** Optional. The compression type associated with the stored data. If unspecified, the data is uncompressed. */
|
|
1055
1078
|
compressionFormat?: string;
|
|
@@ -1057,6 +1080,8 @@ declare namespace gapi.client {
|
|
|
1057
1080
|
csv?: GoogleCloudDataplexV1StorageFormatCsvOptions;
|
|
1058
1081
|
/** Output only. The data format associated with the stored data, which represents content type values. The value is inferred from mime type. */
|
|
1059
1082
|
format?: string;
|
|
1083
|
+
/** Optional. Additional information about iceberg tables. */
|
|
1084
|
+
iceberg?: GoogleCloudDataplexV1StorageFormatIcebergOptions;
|
|
1060
1085
|
/** Optional. Additional information about CSV formatted data. */
|
|
1061
1086
|
json?: GoogleCloudDataplexV1StorageFormatJsonOptions;
|
|
1062
1087
|
/**
|
|
@@ -1076,6 +1101,10 @@ declare namespace gapi.client {
|
|
|
1076
1101
|
/** Optional. The character used to quote column values. Accepts '"' (double quotation mark) or ''' (single quotation mark). Defaults to '"' (double quotation mark) if unspecified. */
|
|
1077
1102
|
quote?: string;
|
|
1078
1103
|
}
|
|
1104
|
+
interface GoogleCloudDataplexV1StorageFormatIcebergOptions {
|
|
1105
|
+
/** Optional. The location of where the iceberg metadata is present, must be within the table path */
|
|
1106
|
+
metadataLocation?: string;
|
|
1107
|
+
}
|
|
1079
1108
|
interface GoogleCloudDataplexV1StorageFormatJsonOptions {
|
|
1080
1109
|
/** Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and "ISO-8859-1". Defaults to UTF-8 if not specified. */
|
|
1081
1110
|
encoding?: string;
|
|
@@ -3738,6 +3767,62 @@ declare namespace gapi.client {
|
|
|
3738
3767
|
validateOnly?: boolean;
|
|
3739
3768
|
},
|
|
3740
3769
|
body: GoogleCloudDataplexV1Task): Request<GoogleLongrunningOperation>;
|
|
3770
|
+
/** Run an on demand execution of a Task. */
|
|
3771
|
+
run(request: {
|
|
3772
|
+
/** V1 error format. */
|
|
3773
|
+
"$.xgafv"?: string;
|
|
3774
|
+
/** OAuth access token. */
|
|
3775
|
+
access_token?: string;
|
|
3776
|
+
/** Data format for response. */
|
|
3777
|
+
alt?: string;
|
|
3778
|
+
/** JSONP */
|
|
3779
|
+
callback?: string;
|
|
3780
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3781
|
+
fields?: string;
|
|
3782
|
+
/** 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. */
|
|
3783
|
+
key?: string;
|
|
3784
|
+
/** Required. The resource name of the task: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}. */
|
|
3785
|
+
name: string;
|
|
3786
|
+
/** OAuth 2.0 token for the current user. */
|
|
3787
|
+
oauth_token?: string;
|
|
3788
|
+
/** Returns response with indentations and line breaks. */
|
|
3789
|
+
prettyPrint?: boolean;
|
|
3790
|
+
/** 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. */
|
|
3791
|
+
quotaUser?: string;
|
|
3792
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3793
|
+
upload_protocol?: string;
|
|
3794
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3795
|
+
uploadType?: string;
|
|
3796
|
+
/** Request body */
|
|
3797
|
+
resource: GoogleCloudDataplexV1RunTaskRequest;
|
|
3798
|
+
}): Request<GoogleCloudDataplexV1RunTaskResponse>;
|
|
3799
|
+
run(request: {
|
|
3800
|
+
/** V1 error format. */
|
|
3801
|
+
"$.xgafv"?: string;
|
|
3802
|
+
/** OAuth access token. */
|
|
3803
|
+
access_token?: string;
|
|
3804
|
+
/** Data format for response. */
|
|
3805
|
+
alt?: string;
|
|
3806
|
+
/** JSONP */
|
|
3807
|
+
callback?: string;
|
|
3808
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3809
|
+
fields?: string;
|
|
3810
|
+
/** 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. */
|
|
3811
|
+
key?: string;
|
|
3812
|
+
/** Required. The resource name of the task: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}. */
|
|
3813
|
+
name: string;
|
|
3814
|
+
/** OAuth 2.0 token for the current user. */
|
|
3815
|
+
oauth_token?: string;
|
|
3816
|
+
/** Returns response with indentations and line breaks. */
|
|
3817
|
+
prettyPrint?: boolean;
|
|
3818
|
+
/** 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. */
|
|
3819
|
+
quotaUser?: string;
|
|
3820
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3821
|
+
upload_protocol?: string;
|
|
3822
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3823
|
+
uploadType?: string;
|
|
3824
|
+
},
|
|
3825
|
+
body: GoogleCloudDataplexV1RunTaskRequest): Request<GoogleCloudDataplexV1RunTaskResponse>;
|
|
3741
3826
|
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
3742
3827
|
setIamPolicy(request: {
|
|
3743
3828
|
/** 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: 20221212
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -272,6 +272,10 @@ gapi.load('client', async () => {
|
|
|
272
272
|
},
|
|
273
273
|
},
|
|
274
274
|
},
|
|
275
|
+
executionStatus: {
|
|
276
|
+
latestJobEndTime: "Test string",
|
|
277
|
+
latestJobStartTime: "Test string",
|
|
278
|
+
},
|
|
275
279
|
labels: {
|
|
276
280
|
A: "Test string"
|
|
277
281
|
},
|
|
@@ -482,6 +486,10 @@ gapi.load('client', async () => {
|
|
|
482
486
|
},
|
|
483
487
|
},
|
|
484
488
|
},
|
|
489
|
+
executionStatus: {
|
|
490
|
+
latestJobEndTime: "Test string",
|
|
491
|
+
latestJobStartTime: "Test string",
|
|
492
|
+
},
|
|
485
493
|
labels: {
|
|
486
494
|
A: "Test string"
|
|
487
495
|
},
|
|
@@ -1465,6 +1473,11 @@ gapi.load('client', async () => {
|
|
|
1465
1473
|
uid: "Test string",
|
|
1466
1474
|
updateTime: "Test string",
|
|
1467
1475
|
});
|
|
1476
|
+
/** Run an on demand execution of a Task. */
|
|
1477
|
+
await gapi.client.dataplex.projects.locations.lakes.tasks.run({
|
|
1478
|
+
name: "Test string",
|
|
1479
|
+
}, {
|
|
1480
|
+
});
|
|
1468
1481
|
/** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
|
|
1469
1482
|
await gapi.client.dataplex.projects.locations.lakes.tasks.setIamPolicy({
|
|
1470
1483
|
resource: "Test string",
|
|
@@ -1743,6 +1756,7 @@ gapi.load('client', async () => {
|
|
|
1743
1756
|
name: "Test string",
|
|
1744
1757
|
resourceSpec: {
|
|
1745
1758
|
name: "Test string",
|
|
1759
|
+
readAccessMode: "Test string",
|
|
1746
1760
|
type: "Test string",
|
|
1747
1761
|
},
|
|
1748
1762
|
resourceStatus: {
|
|
@@ -1828,6 +1842,7 @@ gapi.load('client', async () => {
|
|
|
1828
1842
|
name: "Test string",
|
|
1829
1843
|
resourceSpec: {
|
|
1830
1844
|
name: "Test string",
|
|
1845
|
+
readAccessMode: "Test string",
|
|
1831
1846
|
type: "Test string",
|
|
1832
1847
|
},
|
|
1833
1848
|
resourceStatus: {
|
|
@@ -1903,6 +1918,9 @@ gapi.load('client', async () => {
|
|
|
1903
1918
|
parent: "Test string",
|
|
1904
1919
|
validateOnly: true,
|
|
1905
1920
|
}, {
|
|
1921
|
+
access: {
|
|
1922
|
+
read: "Test string",
|
|
1923
|
+
},
|
|
1906
1924
|
asset: "Test string",
|
|
1907
1925
|
catalogEntry: "Test string",
|
|
1908
1926
|
compatibility: {
|
|
@@ -1930,6 +1948,9 @@ gapi.load('client', async () => {
|
|
|
1930
1948
|
quote: "Test string",
|
|
1931
1949
|
},
|
|
1932
1950
|
format: "Test string",
|
|
1951
|
+
iceberg: {
|
|
1952
|
+
metadataLocation: "Test string",
|
|
1953
|
+
},
|
|
1933
1954
|
json: {
|
|
1934
1955
|
encoding: "Test string",
|
|
1935
1956
|
},
|
|
@@ -1983,6 +2004,9 @@ gapi.load('client', async () => {
|
|
|
1983
2004
|
name: "Test string",
|
|
1984
2005
|
validateOnly: true,
|
|
1985
2006
|
}, {
|
|
2007
|
+
access: {
|
|
2008
|
+
read: "Test string",
|
|
2009
|
+
},
|
|
1986
2010
|
asset: "Test string",
|
|
1987
2011
|
catalogEntry: "Test string",
|
|
1988
2012
|
compatibility: {
|
|
@@ -2010,6 +2034,9 @@ gapi.load('client', async () => {
|
|
|
2010
2034
|
quote: "Test string",
|
|
2011
2035
|
},
|
|
2012
2036
|
format: "Test string",
|
|
2037
|
+
iceberg: {
|
|
2038
|
+
metadataLocation: "Test string",
|
|
2039
|
+
},
|
|
2013
2040
|
json: {
|
|
2014
2041
|
encoding: "Test string",
|
|
2015
2042
|
},
|