@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230812 → 0.0.20230925
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 +43 -4
- package/package.json +1 -1
- package/tests.ts +19 -5
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://bigquery.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230925
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -55,6 +55,12 @@ declare namespace gapi.client {
|
|
|
55
55
|
/** Required unless argument_kind = ANY_TYPE. */
|
|
56
56
|
dataType?:
|
|
57
57
|
StandardSqlDataType;
|
|
58
|
+
/**
|
|
59
|
+
* Optional. Whether the argument is an aggregate function parameter. Must be Unset for routine types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION, if set to false, it is
|
|
60
|
+
* equivalent to adding "NOT AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT AGGREGATE" clause in DDL.
|
|
61
|
+
*/
|
|
62
|
+
isAggregate?:
|
|
63
|
+
boolean;
|
|
58
64
|
/** Optional. Specifies whether the argument is input or output. Can be set for procedures only. */
|
|
59
65
|
mode?:
|
|
60
66
|
string;
|
|
@@ -598,7 +604,7 @@ declare namespace gapi.client {
|
|
|
598
604
|
fieldDelimiter?:
|
|
599
605
|
string;
|
|
600
606
|
/** [Optional] An custom string that will represent a NULL value in CSV import data. */
|
|
601
|
-
|
|
607
|
+
nullMarker?:
|
|
602
608
|
string;
|
|
603
609
|
/**
|
|
604
610
|
* [Optional] Preserves the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') when loading from CSV. Only applicable to CSV, ignored
|
|
@@ -1491,6 +1497,12 @@ declare namespace gapi.client {
|
|
|
1491
1497
|
/** [Output-only] Opaque ID field of the job */
|
|
1492
1498
|
id?:
|
|
1493
1499
|
string;
|
|
1500
|
+
/**
|
|
1501
|
+
* [Output-only] If set, it provides the reason why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available. Jobs will always
|
|
1502
|
+
* be created.
|
|
1503
|
+
*/
|
|
1504
|
+
jobCreationReason?:
|
|
1505
|
+
any;
|
|
1494
1506
|
/** [Optional] Reference describing the unique-per-user name of the job. */
|
|
1495
1507
|
jobReference?:
|
|
1496
1508
|
JobReference;
|
|
@@ -2075,7 +2087,7 @@ declare namespace gapi.client {
|
|
|
2075
2087
|
*/
|
|
2076
2088
|
ddlOperationPerformed?:
|
|
2077
2089
|
string;
|
|
2078
|
-
/** [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries. */
|
|
2090
|
+
/** [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP/UNDROP SCHEMA queries. */
|
|
2079
2091
|
ddlTargetDataset?:
|
|
2080
2092
|
DatasetReference;
|
|
2081
2093
|
/** The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
|
|
@@ -2587,6 +2599,12 @@ declare namespace gapi.client {
|
|
|
2587
2599
|
*/
|
|
2588
2600
|
dryRun?:
|
|
2589
2601
|
boolean;
|
|
2602
|
+
/**
|
|
2603
|
+
* Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. This feature is not yet available. Jobs will always be
|
|
2604
|
+
* created.
|
|
2605
|
+
*/
|
|
2606
|
+
jobCreationMode?:
|
|
2607
|
+
string;
|
|
2590
2608
|
/** The resource type of the request. */
|
|
2591
2609
|
kind?:
|
|
2592
2610
|
string;
|
|
@@ -2673,6 +2691,13 @@ declare namespace gapi.client {
|
|
|
2673
2691
|
/** Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available. */
|
|
2674
2692
|
jobComplete?:
|
|
2675
2693
|
boolean;
|
|
2694
|
+
/**
|
|
2695
|
+
* Optional. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. When job_reference is present, this field should be
|
|
2696
|
+
* interpreted as follows: If set, it will provide the reason of why a Job was created. If not set, it should be treated as the default: REQUESTED. This feature is not yet available.
|
|
2697
|
+
* Jobs will always be created.
|
|
2698
|
+
*/
|
|
2699
|
+
jobCreationReason?:
|
|
2700
|
+
any;
|
|
2676
2701
|
/**
|
|
2677
2702
|
* Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the
|
|
2678
2703
|
* results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).
|
|
@@ -2829,7 +2854,10 @@ declare namespace gapi.client {
|
|
|
2829
2854
|
/** Output only. The time when this routine was created, in milliseconds since the epoch. */
|
|
2830
2855
|
creationTime?:
|
|
2831
2856
|
string;
|
|
2832
|
-
/**
|
|
2857
|
+
/**
|
|
2858
|
+
* Optional. If set to `DATA_MASKING`, the function is validated and made available as a masking function. For more information, see [Create custom masking
|
|
2859
|
+
* routines](https://cloud.google.com/bigquery/docs/user-defined-functions#custom-mask).
|
|
2860
|
+
*/
|
|
2833
2861
|
dataGovernanceType?:
|
|
2834
2862
|
string;
|
|
2835
2863
|
/**
|
|
@@ -3114,6 +3142,7 @@ declare namespace gapi.client {
|
|
|
3114
3142
|
StandardSqlDataType;
|
|
3115
3143
|
}
|
|
3116
3144
|
interface StandardSqlStructType {
|
|
3145
|
+
/** Fields within the struct. */
|
|
3117
3146
|
fields?:
|
|
3118
3147
|
StandardSqlField[];
|
|
3119
3148
|
}
|
|
@@ -3260,6 +3289,13 @@ declare namespace gapi.client {
|
|
|
3260
3289
|
/** [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. */
|
|
3261
3290
|
requirePartitionFilter?:
|
|
3262
3291
|
boolean;
|
|
3292
|
+
/**
|
|
3293
|
+
* [Optional] The tags associated with this table. Tag keys are globally unique. See additional information on
|
|
3294
|
+
* [tags](https://cloud.google.com/iam/docs/tags-access-control#definitions). An object containing a list of "key": value pairs. The key is the namespaced friendly name of the tag key,
|
|
3295
|
+
* e.g. "12345/environment" where 12345 is parent id. The value is the friendly short name of the tag value, e.g. "production".
|
|
3296
|
+
*/
|
|
3297
|
+
resourceTags?:
|
|
3298
|
+
{ [P in string]: string };
|
|
3263
3299
|
/** [Optional] Describes the schema of this table. */
|
|
3264
3300
|
schema?:
|
|
3265
3301
|
TableSchema;
|
|
@@ -3994,6 +4030,9 @@ declare namespace gapi.client {
|
|
|
3994
4030
|
/** Dataset ID of the requested dataset */
|
|
3995
4031
|
datasetId:
|
|
3996
4032
|
string;
|
|
4033
|
+
/** Specifies the view that determines which dataset information is returned. By default, metadata and ACL information are returned. Allowed values: METADATA, ACL, FULL. */
|
|
4034
|
+
datasetView?:
|
|
4035
|
+
string;
|
|
3997
4036
|
/** Selector specifying which fields to include in a partial response. */
|
|
3998
4037
|
fields?:
|
|
3999
4038
|
string;
|
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: 20230925
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -53,6 +53,7 @@ gapi.load('client', async () => {
|
|
|
53
53
|
/** Returns the dataset specified by datasetID. */
|
|
54
54
|
await gapi.client.bigquery.datasets.get({
|
|
55
55
|
datasetId: "Test string",
|
|
56
|
+
datasetView: "Test string",
|
|
56
57
|
projectId: "Test string",
|
|
57
58
|
});
|
|
58
59
|
/** Creates a new empty dataset. */
|
|
@@ -596,7 +597,7 @@ gapi.load('client', async () => {
|
|
|
596
597
|
allowQuotedNewlines: true,
|
|
597
598
|
encoding: "Test string",
|
|
598
599
|
fieldDelimiter: "Test string",
|
|
599
|
-
|
|
600
|
+
nullMarker: "Test string",
|
|
600
601
|
preserveAsciiControlCharacters: true,
|
|
601
602
|
quote: "Test string",
|
|
602
603
|
skipLeadingRows: "Test string",
|
|
@@ -684,6 +685,7 @@ gapi.load('client', async () => {
|
|
|
684
685
|
},
|
|
685
686
|
etag: "Test string",
|
|
686
687
|
id: "Test string",
|
|
688
|
+
jobCreationReason: 42,
|
|
687
689
|
jobReference: {
|
|
688
690
|
jobId: "Test string",
|
|
689
691
|
location: "Test string",
|
|
@@ -1027,6 +1029,7 @@ gapi.load('client', async () => {
|
|
|
1027
1029
|
projectId: "Test string",
|
|
1028
1030
|
},
|
|
1029
1031
|
dryRun: true,
|
|
1032
|
+
jobCreationMode: "Test string",
|
|
1030
1033
|
kind: "Test string",
|
|
1031
1034
|
labels: {
|
|
1032
1035
|
A: "Test string"
|
|
@@ -2135,6 +2138,7 @@ gapi.load('client', async () => {
|
|
|
2135
2138
|
},
|
|
2136
2139
|
typeKind: "Test string",
|
|
2137
2140
|
},
|
|
2141
|
+
isAggregate: true,
|
|
2138
2142
|
mode: "Test string",
|
|
2139
2143
|
name: "Test string",
|
|
2140
2144
|
}
|
|
@@ -2247,6 +2251,7 @@ gapi.load('client', async () => {
|
|
|
2247
2251
|
},
|
|
2248
2252
|
typeKind: "Test string",
|
|
2249
2253
|
},
|
|
2254
|
+
isAggregate: true,
|
|
2250
2255
|
mode: "Test string",
|
|
2251
2256
|
name: "Test string",
|
|
2252
2257
|
}
|
|
@@ -2473,7 +2478,7 @@ gapi.load('client', async () => {
|
|
|
2473
2478
|
allowQuotedNewlines: true,
|
|
2474
2479
|
encoding: "Test string",
|
|
2475
2480
|
fieldDelimiter: "Test string",
|
|
2476
|
-
|
|
2481
|
+
nullMarker: "Test string",
|
|
2477
2482
|
preserveAsciiControlCharacters: true,
|
|
2478
2483
|
quote: "Test string",
|
|
2479
2484
|
skipLeadingRows: "Test string",
|
|
@@ -2614,6 +2619,9 @@ gapi.load('client', async () => {
|
|
|
2614
2619
|
},
|
|
2615
2620
|
},
|
|
2616
2621
|
requirePartitionFilter: true,
|
|
2622
|
+
resourceTags: {
|
|
2623
|
+
A: "Test string"
|
|
2624
|
+
},
|
|
2617
2625
|
schema: {
|
|
2618
2626
|
fields: [
|
|
2619
2627
|
{
|
|
@@ -2784,7 +2792,7 @@ gapi.load('client', async () => {
|
|
|
2784
2792
|
allowQuotedNewlines: true,
|
|
2785
2793
|
encoding: "Test string",
|
|
2786
2794
|
fieldDelimiter: "Test string",
|
|
2787
|
-
|
|
2795
|
+
nullMarker: "Test string",
|
|
2788
2796
|
preserveAsciiControlCharacters: true,
|
|
2789
2797
|
quote: "Test string",
|
|
2790
2798
|
skipLeadingRows: "Test string",
|
|
@@ -2925,6 +2933,9 @@ gapi.load('client', async () => {
|
|
|
2925
2933
|
},
|
|
2926
2934
|
},
|
|
2927
2935
|
requirePartitionFilter: true,
|
|
2936
|
+
resourceTags: {
|
|
2937
|
+
A: "Test string"
|
|
2938
|
+
},
|
|
2928
2939
|
schema: {
|
|
2929
2940
|
fields: [
|
|
2930
2941
|
{
|
|
@@ -3136,7 +3147,7 @@ gapi.load('client', async () => {
|
|
|
3136
3147
|
allowQuotedNewlines: true,
|
|
3137
3148
|
encoding: "Test string",
|
|
3138
3149
|
fieldDelimiter: "Test string",
|
|
3139
|
-
|
|
3150
|
+
nullMarker: "Test string",
|
|
3140
3151
|
preserveAsciiControlCharacters: true,
|
|
3141
3152
|
quote: "Test string",
|
|
3142
3153
|
skipLeadingRows: "Test string",
|
|
@@ -3277,6 +3288,9 @@ gapi.load('client', async () => {
|
|
|
3277
3288
|
},
|
|
3278
3289
|
},
|
|
3279
3290
|
requirePartitionFilter: true,
|
|
3291
|
+
resourceTags: {
|
|
3292
|
+
A: "Test string"
|
|
3293
|
+
},
|
|
3280
3294
|
schema: {
|
|
3281
3295
|
fields: [
|
|
3282
3296
|
{
|