@maxim_mazurok/gapi.client.bigquery-v2 0.0.20220910 → 0.0.20220924
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 +49 -43
- package/package.json +1 -1
- package/tests.ts +3 -1
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://bigquery.googleapis.com/$discovery/rest?version=v2
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220924
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -1183,6 +1182,11 @@ declare namespace gapi.client {
|
|
|
1183
1182
|
* actions occur as one atomic update upon job completion.
|
|
1184
1183
|
*/
|
|
1185
1184
|
createDisposition?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs
|
|
1187
|
+
* the load job in non-session mode.
|
|
1188
|
+
*/
|
|
1189
|
+
createSession?: boolean;
|
|
1186
1190
|
/**
|
|
1187
1191
|
* [Optional] Defines the list of possible SQL data types to which the source decimal values are converted. This list and the precision and the scale parameters of the decimal field
|
|
1188
1192
|
* determine the target type. In the order of NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified list and if it supports the precision and the scale. STRING
|
|
@@ -1509,15 +1513,15 @@ declare namespace gapi.client {
|
|
|
1509
1513
|
transactionInfo?: TransactionInfo;
|
|
1510
1514
|
}
|
|
1511
1515
|
interface JobStatistics2 {
|
|
1512
|
-
/** BI Engine specific Statistics. [Output
|
|
1516
|
+
/** BI Engine specific Statistics. [Output only] BI Engine specific Statistics. */
|
|
1513
1517
|
biEngineStatistics?: BiEngineStatistics;
|
|
1514
|
-
/** [Output
|
|
1518
|
+
/** [Output only] Billing tier for the job. */
|
|
1515
1519
|
billingTier?: number;
|
|
1516
|
-
/** [Output
|
|
1520
|
+
/** [Output only] Whether the query result was fetched from the query cache. */
|
|
1517
1521
|
cacheHit?: boolean;
|
|
1518
|
-
/** [Output
|
|
1522
|
+
/** [Output only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. */
|
|
1519
1523
|
ddlAffectedRowAccessPolicyCount?: string;
|
|
1520
|
-
/** [Output
|
|
1524
|
+
/** [Output only] The DDL destination table. Present only for ALTER TABLE RENAME TO queries. Note that ddl_target_table is used just for its type information. */
|
|
1521
1525
|
ddlDestinationTable?: TableReference;
|
|
1522
1526
|
/**
|
|
1523
1527
|
* The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the
|
|
@@ -1525,46 +1529,46 @@ declare namespace gapi.client {
|
|
|
1525
1529
|
* exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target.
|
|
1526
1530
|
*/
|
|
1527
1531
|
ddlOperationPerformed?: string;
|
|
1528
|
-
/** [Output
|
|
1532
|
+
/** [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries. */
|
|
1529
1533
|
ddlTargetDataset?: DatasetReference;
|
|
1530
1534
|
/** The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
|
|
1531
1535
|
ddlTargetRoutine?: RoutineReference;
|
|
1532
|
-
/** [Output
|
|
1536
|
+
/** [Output only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. */
|
|
1533
1537
|
ddlTargetRowAccessPolicy?: RowAccessPolicyReference;
|
|
1534
|
-
/** [Output
|
|
1538
|
+
/** [Output only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */
|
|
1535
1539
|
ddlTargetTable?: TableReference;
|
|
1536
|
-
/** [Output
|
|
1540
|
+
/** [Output only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. */
|
|
1537
1541
|
dmlStats?: DmlStatistics;
|
|
1538
|
-
/** [Output
|
|
1542
|
+
/** [Output only] The original estimate of bytes processed for the job. */
|
|
1539
1543
|
estimatedBytesProcessed?: string;
|
|
1540
|
-
/** [Output
|
|
1544
|
+
/** [Output only] Statistics of a BigQuery ML training job. */
|
|
1541
1545
|
mlStatistics?: MlStatistics;
|
|
1542
|
-
/** [Output
|
|
1546
|
+
/** [Output only, Beta] Information about create model query job progress. */
|
|
1543
1547
|
modelTraining?: BigQueryModelTraining;
|
|
1544
|
-
/** [Output
|
|
1548
|
+
/** [Output only, Beta] Deprecated; do not use. */
|
|
1545
1549
|
modelTrainingCurrentIteration?: number;
|
|
1546
|
-
/** [Output
|
|
1550
|
+
/** [Output only, Beta] Deprecated; do not use. */
|
|
1547
1551
|
modelTrainingExpectedTotalIteration?: string;
|
|
1548
|
-
/** [Output
|
|
1552
|
+
/** [Output only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
|
|
1549
1553
|
numDmlAffectedRows?: string;
|
|
1550
|
-
/** [Output
|
|
1554
|
+
/** [Output only] Describes execution plan for the query. */
|
|
1551
1555
|
queryPlan?: ExplainQueryStage[];
|
|
1552
|
-
/** [Output
|
|
1556
|
+
/** [Output only] Referenced routines (persistent user-defined functions and stored procedures) for the job. */
|
|
1553
1557
|
referencedRoutines?: RoutineReference[];
|
|
1554
|
-
/** [Output
|
|
1558
|
+
/** [Output only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. */
|
|
1555
1559
|
referencedTables?: TableReference[];
|
|
1556
|
-
/** [Output
|
|
1560
|
+
/** [Output only] Job resource usage breakdown by reservation. */
|
|
1557
1561
|
reservationUsage?: Array<{
|
|
1558
|
-
/** [Output
|
|
1562
|
+
/** [Output only] Reservation name or "unreserved" for on-demand resources usage. */
|
|
1559
1563
|
name?: string;
|
|
1560
|
-
/** [Output
|
|
1564
|
+
/** [Output only] Slot-milliseconds the job spent in the given reservation. */
|
|
1561
1565
|
slotMs?: string;
|
|
1562
1566
|
}>;
|
|
1563
|
-
/** [Output
|
|
1567
|
+
/** [Output only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
|
|
1564
1568
|
schema?: TableSchema;
|
|
1565
|
-
/** [Output
|
|
1569
|
+
/** [Output only] Search query specific statistics. */
|
|
1566
1570
|
searchStatistics?: SearchStatistics;
|
|
1567
|
-
/** [Output
|
|
1571
|
+
/** [Output only] Statistics of a Spark procedure job. */
|
|
1568
1572
|
sparkStatistics?: SparkStatistics;
|
|
1569
1573
|
/**
|
|
1570
1574
|
* The type of query statement, if valid. Possible values (new values might be added in the future): "SELECT": SELECT query. "INSERT": INSERT query; see
|
|
@@ -1577,21 +1581,23 @@ declare namespace gapi.client {
|
|
|
1577
1581
|
* SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query.
|
|
1578
1582
|
*/
|
|
1579
1583
|
statementType?: string;
|
|
1580
|
-
/** [Output
|
|
1584
|
+
/** [Output only] [Beta] Describes a timeline of job execution. */
|
|
1581
1585
|
timeline?: QueryTimelineSample[];
|
|
1582
|
-
/** [Output
|
|
1586
|
+
/** [Output only] Total bytes billed for the job. */
|
|
1583
1587
|
totalBytesBilled?: string;
|
|
1584
|
-
/** [Output
|
|
1588
|
+
/** [Output only] Total bytes processed for the job. */
|
|
1585
1589
|
totalBytesProcessed?: string;
|
|
1586
1590
|
/**
|
|
1587
|
-
* [Output
|
|
1591
|
+
* [Output only] For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate
|
|
1588
1592
|
* is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost.
|
|
1589
1593
|
*/
|
|
1590
1594
|
totalBytesProcessedAccuracy?: string;
|
|
1591
|
-
/** [Output
|
|
1595
|
+
/** [Output only] Total number of partitions processed from all partitioned tables referenced in the job. */
|
|
1592
1596
|
totalPartitionsProcessed?: string;
|
|
1593
|
-
/** [Output
|
|
1597
|
+
/** [Output only] Slot-milliseconds for the job. */
|
|
1594
1598
|
totalSlotMs?: string;
|
|
1599
|
+
/** [Output-only] Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS). */
|
|
1600
|
+
transferredBytes?: string;
|
|
1595
1601
|
/** Standard SQL only: list of undeclared query parameters detected during a dry run validation. */
|
|
1596
1602
|
undeclaredQueryParameters?: QueryParameter[];
|
|
1597
1603
|
}
|
|
@@ -1740,7 +1746,7 @@ declare namespace gapi.client {
|
|
|
1740
1746
|
* trial_id.
|
|
1741
1747
|
*/
|
|
1742
1748
|
optimalTrialIds?: string[];
|
|
1743
|
-
/**
|
|
1749
|
+
/** Information for all training runs in increasing order of start_time. */
|
|
1744
1750
|
trainingRuns?: TrainingRun[];
|
|
1745
1751
|
}
|
|
1746
1752
|
interface ModelDefinition {
|
|
@@ -2734,25 +2740,25 @@ declare namespace gapi.client {
|
|
|
2734
2740
|
warmStart?: boolean;
|
|
2735
2741
|
}
|
|
2736
2742
|
interface TrainingRun {
|
|
2737
|
-
/** Global explanation contains the explanation of top features on the class level. Applies to classification models only. */
|
|
2743
|
+
/** Output only. Global explanation contains the explanation of top features on the class level. Applies to classification models only. */
|
|
2738
2744
|
classLevelGlobalExplanations?: GlobalExplanation[];
|
|
2739
|
-
/** Data split result of the training run. Only set when the input data is actually split. */
|
|
2745
|
+
/** Output only. Data split result of the training run. Only set when the input data is actually split. */
|
|
2740
2746
|
dataSplitResult?: DataSplitResult;
|
|
2741
|
-
/** The evaluation metrics over training/eval data that were computed at the end of training. */
|
|
2747
|
+
/** Output only. The evaluation metrics over training/eval data that were computed at the end of training. */
|
|
2742
2748
|
evaluationMetrics?: EvaluationMetrics;
|
|
2743
|
-
/** Global explanation contains the explanation of top features on the model level. Applies to both regression and classification models. */
|
|
2749
|
+
/** Output only. Global explanation contains the explanation of top features on the model level. Applies to both regression and classification models. */
|
|
2744
2750
|
modelLevelGlobalExplanation?: GlobalExplanation;
|
|
2745
|
-
/** Output of each iteration run, results.size() <= max_iterations. */
|
|
2751
|
+
/** Output only. Output of each iteration run, results.size() <= max_iterations. */
|
|
2746
2752
|
results?: IterationResult[];
|
|
2747
|
-
/** The start time of this training run. */
|
|
2753
|
+
/** Output only. The start time of this training run. */
|
|
2748
2754
|
startTime?: string;
|
|
2749
|
-
/** Options that were used for this training run, includes user specified and default options that were used. */
|
|
2755
|
+
/** Output only. Options that were used for this training run, includes user specified and default options that were used. */
|
|
2750
2756
|
trainingOptions?: TrainingOptions;
|
|
2751
|
-
/** The start time of this training run, in milliseconds since epoch. */
|
|
2757
|
+
/** Output only. The start time of this training run, in milliseconds since epoch. */
|
|
2752
2758
|
trainingStartTime?: string;
|
|
2753
|
-
/** The model id in Vertex AI Model Registry for this training run */
|
|
2759
|
+
/** The model id in the [Vertex AI Model Registry](https://cloud.google.com/vertex-ai/docs/model-registry/introduction) for this training run. */
|
|
2754
2760
|
vertexAiModelId?: string;
|
|
2755
|
-
/** The model version in Vertex AI Model Registry for this training run */
|
|
2761
|
+
/** Output only. The model version in the [Vertex AI Model Registry](https://cloud.google.com/vertex-ai/docs/model-registry/introduction) for this training run. */
|
|
2756
2762
|
vertexAiModelVersion?: string;
|
|
2757
2763
|
}
|
|
2758
2764
|
interface TransactionInfo {
|
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: 20220924
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -374,6 +374,7 @@ gapi.load('client', async () => {
|
|
|
374
374
|
}
|
|
375
375
|
],
|
|
376
376
|
createDisposition: "Test string",
|
|
377
|
+
createSession: true,
|
|
377
378
|
decimalTargetTypes: [
|
|
378
379
|
"Test string"
|
|
379
380
|
],
|
|
@@ -871,6 +872,7 @@ gapi.load('client', async () => {
|
|
|
871
872
|
totalBytesProcessedAccuracy: "Test string",
|
|
872
873
|
totalPartitionsProcessed: "Test string",
|
|
873
874
|
totalSlotMs: "Test string",
|
|
875
|
+
transferredBytes: "Test string",
|
|
874
876
|
undeclaredQueryParameters: [
|
|
875
877
|
{
|
|
876
878
|
name: "Test string",
|