@maxim_mazurok/gapi.client.bigquery-v2 0.0.20220910 → 0.0.20220913

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.
Files changed (3) hide show
  1. package/index.d.ts +46 -41
  2. package/package.json +1 -1
  3. package/tests.ts +2 -1
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://bigquery.googleapis.com/$discovery/rest?version=v2
13
- // Revision: 20220910
13
+ // Revision: 20220913
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -1183,6 +1183,11 @@ declare namespace gapi.client {
1183
1183
  * actions occur as one atomic update upon job completion.
1184
1184
  */
1185
1185
  createDisposition?: string;
1186
+ /**
1187
+ * 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
1188
+ * the load job in non-session mode.
1189
+ */
1190
+ createSession?: boolean;
1186
1191
  /**
1187
1192
  * [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
1193
  * 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 +1514,15 @@ declare namespace gapi.client {
1509
1514
  transactionInfo?: TransactionInfo;
1510
1515
  }
1511
1516
  interface JobStatistics2 {
1512
- /** BI Engine specific Statistics. [Output-only] BI Engine specific Statistics. */
1517
+ /** BI Engine specific Statistics. [Output only] BI Engine specific Statistics. */
1513
1518
  biEngineStatistics?: BiEngineStatistics;
1514
- /** [Output-only] Billing tier for the job. */
1519
+ /** [Output only] Billing tier for the job. */
1515
1520
  billingTier?: number;
1516
- /** [Output-only] Whether the query result was fetched from the query cache. */
1521
+ /** [Output only] Whether the query result was fetched from the query cache. */
1517
1522
  cacheHit?: boolean;
1518
- /** [Output-only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. */
1523
+ /** [Output only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. */
1519
1524
  ddlAffectedRowAccessPolicyCount?: string;
1520
- /** [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. */
1525
+ /** [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
1526
  ddlDestinationTable?: TableReference;
1522
1527
  /**
1523
1528
  * 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 +1530,46 @@ declare namespace gapi.client {
1525
1530
  * 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
1531
  */
1527
1532
  ddlOperationPerformed?: string;
1528
- /** [Output-only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries. */
1533
+ /** [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA queries. */
1529
1534
  ddlTargetDataset?: DatasetReference;
1530
1535
  /** The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
1531
1536
  ddlTargetRoutine?: RoutineReference;
1532
- /** [Output-only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. */
1537
+ /** [Output only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. */
1533
1538
  ddlTargetRowAccessPolicy?: RowAccessPolicyReference;
1534
- /** [Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */
1539
+ /** [Output only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */
1535
1540
  ddlTargetTable?: TableReference;
1536
- /** [Output-only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. */
1541
+ /** [Output only] Detailed statistics for DML statements Present only for DML statements INSERT, UPDATE, DELETE or TRUNCATE. */
1537
1542
  dmlStats?: DmlStatistics;
1538
- /** [Output-only] The original estimate of bytes processed for the job. */
1543
+ /** [Output only] The original estimate of bytes processed for the job. */
1539
1544
  estimatedBytesProcessed?: string;
1540
- /** [Output-only] Statistics of a BigQuery ML training job. */
1545
+ /** [Output only] Statistics of a BigQuery ML training job. */
1541
1546
  mlStatistics?: MlStatistics;
1542
- /** [Output-only, Beta] Information about create model query job progress. */
1547
+ /** [Output only, Beta] Information about create model query job progress. */
1543
1548
  modelTraining?: BigQueryModelTraining;
1544
- /** [Output-only, Beta] Deprecated; do not use. */
1549
+ /** [Output only, Beta] Deprecated; do not use. */
1545
1550
  modelTrainingCurrentIteration?: number;
1546
- /** [Output-only, Beta] Deprecated; do not use. */
1551
+ /** [Output only, Beta] Deprecated; do not use. */
1547
1552
  modelTrainingExpectedTotalIteration?: string;
1548
- /** [Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1553
+ /** [Output only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. */
1549
1554
  numDmlAffectedRows?: string;
1550
- /** [Output-only] Describes execution plan for the query. */
1555
+ /** [Output only] Describes execution plan for the query. */
1551
1556
  queryPlan?: ExplainQueryStage[];
1552
- /** [Output-only] Referenced routines (persistent user-defined functions and stored procedures) for the job. */
1557
+ /** [Output only] Referenced routines (persistent user-defined functions and stored procedures) for the job. */
1553
1558
  referencedRoutines?: RoutineReference[];
1554
- /** [Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. */
1559
+ /** [Output only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. */
1555
1560
  referencedTables?: TableReference[];
1556
- /** [Output-only] Job resource usage breakdown by reservation. */
1561
+ /** [Output only] Job resource usage breakdown by reservation. */
1557
1562
  reservationUsage?: Array<{
1558
- /** [Output-only] Reservation name or "unreserved" for on-demand resources usage. */
1563
+ /** [Output only] Reservation name or "unreserved" for on-demand resources usage. */
1559
1564
  name?: string;
1560
- /** [Output-only] Slot-milliseconds the job spent in the given reservation. */
1565
+ /** [Output only] Slot-milliseconds the job spent in the given reservation. */
1561
1566
  slotMs?: string;
1562
1567
  }>;
1563
- /** [Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
1568
+ /** [Output only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */
1564
1569
  schema?: TableSchema;
1565
- /** [Output-only] Search query specific statistics. */
1570
+ /** [Output only] Search query specific statistics. */
1566
1571
  searchStatistics?: SearchStatistics;
1567
- /** [Output-only] Statistics of a Spark procedure job. */
1572
+ /** [Output only] Statistics of a Spark procedure job. */
1568
1573
  sparkStatistics?: SparkStatistics;
1569
1574
  /**
1570
1575
  * 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,20 +1582,20 @@ declare namespace gapi.client {
1577
1582
  * SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query.
1578
1583
  */
1579
1584
  statementType?: string;
1580
- /** [Output-only] [Beta] Describes a timeline of job execution. */
1585
+ /** [Output only] [Beta] Describes a timeline of job execution. */
1581
1586
  timeline?: QueryTimelineSample[];
1582
- /** [Output-only] Total bytes billed for the job. */
1587
+ /** [Output only] Total bytes billed for the job. */
1583
1588
  totalBytesBilled?: string;
1584
- /** [Output-only] Total bytes processed for the job. */
1589
+ /** [Output only] Total bytes processed for the job. */
1585
1590
  totalBytesProcessed?: string;
1586
1591
  /**
1587
- * [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
1592
+ * [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
1593
  * 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
1594
  */
1590
1595
  totalBytesProcessedAccuracy?: string;
1591
- /** [Output-only] Total number of partitions processed from all partitioned tables referenced in the job. */
1596
+ /** [Output only] Total number of partitions processed from all partitioned tables referenced in the job. */
1592
1597
  totalPartitionsProcessed?: string;
1593
- /** [Output-only] Slot-milliseconds for the job. */
1598
+ /** [Output only] Slot-milliseconds for the job. */
1594
1599
  totalSlotMs?: string;
1595
1600
  /** Standard SQL only: list of undeclared query parameters detected during a dry run validation. */
1596
1601
  undeclaredQueryParameters?: QueryParameter[];
@@ -1740,7 +1745,7 @@ declare namespace gapi.client {
1740
1745
  * trial_id.
1741
1746
  */
1742
1747
  optimalTrialIds?: string[];
1743
- /** Output only. Information for all training runs in increasing order of start_time. */
1748
+ /** Information for all training runs in increasing order of start_time. */
1744
1749
  trainingRuns?: TrainingRun[];
1745
1750
  }
1746
1751
  interface ModelDefinition {
@@ -2734,25 +2739,25 @@ declare namespace gapi.client {
2734
2739
  warmStart?: boolean;
2735
2740
  }
2736
2741
  interface TrainingRun {
2737
- /** Global explanation contains the explanation of top features on the class level. Applies to classification models only. */
2742
+ /** Output only. Global explanation contains the explanation of top features on the class level. Applies to classification models only. */
2738
2743
  classLevelGlobalExplanations?: GlobalExplanation[];
2739
- /** Data split result of the training run. Only set when the input data is actually split. */
2744
+ /** Output only. Data split result of the training run. Only set when the input data is actually split. */
2740
2745
  dataSplitResult?: DataSplitResult;
2741
- /** The evaluation metrics over training/eval data that were computed at the end of training. */
2746
+ /** Output only. The evaluation metrics over training/eval data that were computed at the end of training. */
2742
2747
  evaluationMetrics?: EvaluationMetrics;
2743
- /** Global explanation contains the explanation of top features on the model level. Applies to both regression and classification models. */
2748
+ /** Output only. Global explanation contains the explanation of top features on the model level. Applies to both regression and classification models. */
2744
2749
  modelLevelGlobalExplanation?: GlobalExplanation;
2745
- /** Output of each iteration run, results.size() <= max_iterations. */
2750
+ /** Output only. Output of each iteration run, results.size() <= max_iterations. */
2746
2751
  results?: IterationResult[];
2747
- /** The start time of this training run. */
2752
+ /** Output only. The start time of this training run. */
2748
2753
  startTime?: string;
2749
- /** Options that were used for this training run, includes user specified and default options that were used. */
2754
+ /** Output only. Options that were used for this training run, includes user specified and default options that were used. */
2750
2755
  trainingOptions?: TrainingOptions;
2751
- /** The start time of this training run, in milliseconds since epoch. */
2756
+ /** Output only. The start time of this training run, in milliseconds since epoch. */
2752
2757
  trainingStartTime?: string;
2753
2758
  /** The model id in Vertex AI Model Registry for this training run */
2754
2759
  vertexAiModelId?: string;
2755
- /** The model version in Vertex AI Model Registry for this training run */
2760
+ /** Output only. The model version in Vertex AI Model Registry for this training run */
2756
2761
  vertexAiModelVersion?: string;
2757
2762
  }
2758
2763
  interface TransactionInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20220910",
3
+ "version": "0.0.20220913",
4
4
  "description": "TypeScript typings for BigQuery API v2",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20220910
6
+ // Revision: 20220913
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
  ],