@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230422 → 0.0.20230520

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 +78 -34
  2. package/package.json +1 -1
  3. package/tests.ts +108 -25
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: 20230422
12
+ // Revision: 20230520
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -885,7 +885,7 @@ declare namespace gapi.client {
885
885
  }
886
886
  interface EncryptionConfiguration {
887
887
  /**
888
- * [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access
888
+ * Optional. Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access
889
889
  * to this encryption key.
890
890
  */
891
891
  kmsKeyName?:
@@ -1106,6 +1106,9 @@ declare namespace gapi.client {
1106
1106
  */
1107
1107
  ignoreUnknownValues?:
1108
1108
  boolean;
1109
+ /** Additional properties to set if `sourceFormat` is set to `NEWLINE_DELIMITED_JSON`. */
1110
+ jsonOptions?:
1111
+ JsonOptions;
1109
1112
  /**
1110
1113
  * [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job
1111
1114
  * result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable,
@@ -2190,6 +2193,11 @@ declare namespace gapi.client {
2190
2193
  [key: string]:
2191
2194
  any;
2192
2195
  }
2196
+ interface JsonOptions {
2197
+ /** [Optional] The character encoding of the data. The supported values are UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default value is UTF-8. */
2198
+ encoding?:
2199
+ string;
2200
+ }
2193
2201
  // tslint:disable-next-line:no-empty-interface
2194
2202
  interface JsonValue {
2195
2203
  }
@@ -2355,13 +2363,13 @@ declare namespace gapi.client {
2355
2363
  BqmlTrainingRun[];
2356
2364
  }
2357
2365
  interface ModelReference {
2358
- /** [Required] The ID of the dataset containing this model. */
2366
+ /** Required. The ID of the dataset containing this model. */
2359
2367
  datasetId?:
2360
2368
  string;
2361
- /** [Required] The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. */
2369
+ /** Required. The ID of the model. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters. */
2362
2370
  modelId?:
2363
2371
  string;
2364
- /** [Required] The ID of the project containing this model. */
2372
+ /** Required. The ID of the project containing this model. */
2365
2373
  projectId?:
2366
2374
  string;
2367
2375
  }
@@ -2834,13 +2842,13 @@ declare namespace gapi.client {
2834
2842
  boolean;
2835
2843
  }
2836
2844
  interface RoutineReference {
2837
- /** [Required] The ID of the dataset containing this routine. */
2845
+ /** Required. The ID of the dataset containing this routine. */
2838
2846
  datasetId?:
2839
2847
  string;
2840
- /** [Required] The ID of the project containing this routine. */
2848
+ /** Required. The ID of the project containing this routine. */
2841
2849
  projectId?:
2842
2850
  string;
2843
- /** [Required] The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. */
2851
+ /** Required. The ID of the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. */
2844
2852
  routineId?:
2845
2853
  string;
2846
2854
  }
@@ -2874,16 +2882,16 @@ declare namespace gapi.client {
2874
2882
  RowAccessPolicyReference;
2875
2883
  }
2876
2884
  interface RowAccessPolicyReference {
2877
- /** [Required] The ID of the dataset containing this row access policy. */
2885
+ /** Required. The ID of the dataset containing this row access policy. */
2878
2886
  datasetId?:
2879
2887
  string;
2880
- /** [Required] The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. */
2888
+ /** Required. The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters. */
2881
2889
  policyId?:
2882
2890
  string;
2883
- /** [Required] The ID of the project containing this row access policy. */
2891
+ /** Required. The ID of the project containing this row access policy. */
2884
2892
  projectId?:
2885
2893
  string;
2886
- /** [Required] The ID of the table containing this row access policy. */
2894
+ /** Required. The ID of the table containing this row access policy. */
2887
2895
  tableId?:
2888
2896
  string;
2889
2897
  }
@@ -3147,46 +3155,46 @@ declare namespace gapi.client {
3147
3155
  model?:
3148
3156
  ModelDefinition;
3149
3157
  /** [Output-only] Number of logical bytes that are less than 90 days old. */
3150
- num_active_logical_bytes?:
3158
+ numActiveLogicalBytes?:
3151
3159
  string;
3152
3160
  /** [Output-only] Number of physical bytes less than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
3153
- num_active_physical_bytes?:
3161
+ numActivePhysicalBytes?:
3162
+ string;
3163
+ /** [Output-only] The size of this table in bytes, excluding any data in the streaming buffer. */
3164
+ numBytes?:
3165
+ string;
3166
+ /** [Output-only] The number of bytes in the table that are considered "long-term storage". */
3167
+ numLongTermBytes?:
3154
3168
  string;
3155
3169
  /** [Output-only] Number of logical bytes that are more than 90 days old. */
3156
- num_long_term_logical_bytes?:
3170
+ numLongTermLogicalBytes?:
3157
3171
  string;
3158
3172
  /** [Output-only] Number of physical bytes more than 90 days old. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
3159
- num_long_term_physical_bytes?:
3173
+ numLongTermPhysicalBytes?:
3160
3174
  string;
3161
3175
  /** [Output-only] The number of partitions present in the table or materialized view. This data is not kept in real time, and might be delayed by a few seconds to a few minutes. */
3162
- num_partitions?:
3176
+ numPartitions?:
3177
+ string;
3178
+ /** [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel. */
3179
+ numPhysicalBytes?:
3180
+ string;
3181
+ /** [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer. */
3182
+ numRows?:
3163
3183
  string;
3164
3184
  /**
3165
3185
  * [Output-only] Number of physical bytes used by time travel storage (deleted or changed data). This data is not kept in real time, and might be delayed by a few seconds to a few
3166
3186
  * minutes.
3167
3187
  */
3168
- num_time_travel_physical_bytes?:
3188
+ numTimeTravelPhysicalBytes?:
3169
3189
  string;
3170
3190
  /** [Output-only] Total number of logical bytes in the table or materialized view. */
3171
- num_total_logical_bytes?:
3191
+ numTotalLogicalBytes?:
3172
3192
  string;
3173
3193
  /**
3174
3194
  * [Output-only] The physical size of this table in bytes. This also includes storage used for time travel. This data is not kept in real time, and might be delayed by a few seconds to
3175
3195
  * a few minutes.
3176
3196
  */
3177
- num_total_physical_bytes?:
3178
- string;
3179
- /** [Output-only] The size of this table in bytes, excluding any data in the streaming buffer. */
3180
- numBytes?:
3181
- string;
3182
- /** [Output-only] The number of bytes in the table that are considered "long-term storage". */
3183
- numLongTermBytes?:
3184
- string;
3185
- /** [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel. */
3186
- numPhysicalBytes?:
3187
- string;
3188
- /** [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer. */
3189
- numRows?:
3197
+ numTotalPhysicalBytes?:
3190
3198
  string;
3191
3199
  /** [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified. */
3192
3200
  rangePartitioning?:
@@ -3209,6 +3217,9 @@ declare namespace gapi.client {
3209
3217
  */
3210
3218
  streamingBuffer?:
3211
3219
  Streamingbuffer;
3220
+ /** [Optional] The table constraints on the table. */
3221
+ tableConstraints?:
3222
+ TableConstraints;
3212
3223
  /** [Required] Reference describing the ID of this table. */
3213
3224
  tableReference?:
3214
3225
  TableReference;
@@ -3230,6 +3241,36 @@ declare namespace gapi.client {
3230
3241
  v?:
3231
3242
  any;
3232
3243
  }
3244
+ interface TableConstraints {
3245
+ /** [Optional] The foreign keys of the tables. */
3246
+ foreignKeys?:
3247
+ Array<{
3248
+ columnReferences?:
3249
+ Array<{
3250
+ referencedColumn?:
3251
+ string;
3252
+ referencingColumn?:
3253
+ string;
3254
+ }>;
3255
+ name?:
3256
+ string;
3257
+ referencedTable?:
3258
+ {
3259
+ datasetId?:
3260
+ string;
3261
+ projectId?:
3262
+ string;
3263
+ tableId?:
3264
+ string;
3265
+ };
3266
+ }>;
3267
+ /** [Optional] The primary key of the table. */
3268
+ primaryKey?:
3269
+ {
3270
+ columns?:
3271
+ string[];
3272
+ };
3273
+ }
3233
3274
  interface TableDataInsertAllRequest {
3234
3275
  /** [Optional] Accept rows that contain values that do not match the schema. The unknown values are ignored. Default is false, which treats unknown values as errors. */
3235
3276
  ignoreUnknownValues?:
@@ -3482,6 +3523,9 @@ declare namespace gapi.client {
3482
3523
  /** If true, detect step changes and make data adjustment in the input time series. */
3483
3524
  adjustStepChanges?:
3484
3525
  boolean;
3526
+ /** Whether to use approximate feature contribution method in XGBoost model explanation for global explain. */
3527
+ approxGlobalFeatureContrib?:
3528
+ boolean;
3485
3529
  /** Whether to enable auto ARIMA or not. */
3486
3530
  autoArima?:
3487
3531
  boolean;
@@ -4777,8 +4821,8 @@ declare namespace gapi.client {
4777
4821
  fields?:
4778
4822
  string;
4779
4823
  /**
4780
- * If set, then only the Routines matching this filter are returned. The current supported form is either "routine_type:" or "routineType:", where is a RoutineType enum. Example:
4781
- * "routineType:SCALAR_FUNCTION".
4824
+ * If set, then only the Routines matching this filter are returned. The supported format is `routineType:{RoutineType}`, where `{RoutineType}` is a RoutineType enum. For example:
4825
+ * `routineType:SCALAR_FUNCTION`.
4782
4826
  */
4783
4827
  filter?:
4784
4828
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20230422",
3
+ "version": "0.0.20230520",
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: 20230422
6
+ // Revision: 20230520
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -601,6 +601,9 @@ gapi.load('client', async () => {
601
601
  sourceUriPrefix: "Test string",
602
602
  },
603
603
  ignoreUnknownValues: true,
604
+ jsonOptions: {
605
+ encoding: "Test string",
606
+ },
604
607
  maxBadRecords: 42,
605
608
  metadataCacheMode: "Test string",
606
609
  objectMetadata: "Test string",
@@ -1451,6 +1454,7 @@ gapi.load('client', async () => {
1451
1454
  },
1452
1455
  hparams: {
1453
1456
  adjustStepChanges: true,
1457
+ approxGlobalFeatureContrib: true,
1454
1458
  autoArima: true,
1455
1459
  autoArimaMaxOrder: "Test string",
1456
1460
  autoArimaMinOrder: "Test string",
@@ -1915,6 +1919,7 @@ gapi.load('client', async () => {
1915
1919
  startTime: "Test string",
1916
1920
  trainingOptions: {
1917
1921
  adjustStepChanges: true,
1922
+ approxGlobalFeatureContrib: true,
1918
1923
  autoArima: true,
1919
1924
  autoArimaMaxOrder: "Test string",
1920
1925
  autoArimaMinOrder: "Test string",
@@ -2431,6 +2436,9 @@ gapi.load('client', async () => {
2431
2436
  sourceUriPrefix: "Test string",
2432
2437
  },
2433
2438
  ignoreUnknownValues: true,
2439
+ jsonOptions: {
2440
+ encoding: "Test string",
2441
+ },
2434
2442
  maxBadRecords: 42,
2435
2443
  metadataCacheMode: "Test string",
2436
2444
  objectMetadata: "Test string",
@@ -2523,18 +2531,18 @@ gapi.load('client', async () => {
2523
2531
  }
2524
2532
  ],
2525
2533
  },
2526
- num_active_logical_bytes: "Test string",
2527
- num_active_physical_bytes: "Test string",
2528
- num_long_term_logical_bytes: "Test string",
2529
- num_long_term_physical_bytes: "Test string",
2530
- num_partitions: "Test string",
2531
- num_time_travel_physical_bytes: "Test string",
2532
- num_total_logical_bytes: "Test string",
2533
- num_total_physical_bytes: "Test string",
2534
+ numActiveLogicalBytes: "Test string",
2535
+ numActivePhysicalBytes: "Test string",
2534
2536
  numBytes: "Test string",
2535
2537
  numLongTermBytes: "Test string",
2538
+ numLongTermLogicalBytes: "Test string",
2539
+ numLongTermPhysicalBytes: "Test string",
2540
+ numPartitions: "Test string",
2536
2541
  numPhysicalBytes: "Test string",
2537
2542
  numRows: "Test string",
2543
+ numTimeTravelPhysicalBytes: "Test string",
2544
+ numTotalLogicalBytes: "Test string",
2545
+ numTotalPhysicalBytes: "Test string",
2538
2546
  rangePartitioning: {
2539
2547
  field: "Test string",
2540
2548
  range: {
@@ -2585,6 +2593,29 @@ gapi.load('client', async () => {
2585
2593
  estimatedRows: "Test string",
2586
2594
  oldestEntryTime: "Test string",
2587
2595
  },
2596
+ tableConstraints: {
2597
+ foreignKeys: [
2598
+ {
2599
+ columnReferences: [
2600
+ {
2601
+ referencedColumn: "Test string",
2602
+ referencingColumn: "Test string",
2603
+ }
2604
+ ],
2605
+ name: "Test string",
2606
+ referencedTable: {
2607
+ datasetId: "Test string",
2608
+ projectId: "Test string",
2609
+ tableId: "Test string",
2610
+ },
2611
+ }
2612
+ ],
2613
+ primaryKey: {
2614
+ columns: [
2615
+ "Test string"
2616
+ ],
2617
+ },
2618
+ },
2588
2619
  tableReference: {
2589
2620
  datasetId: "Test string",
2590
2621
  projectId: "Test string",
@@ -2703,6 +2734,9 @@ gapi.load('client', async () => {
2703
2734
  sourceUriPrefix: "Test string",
2704
2735
  },
2705
2736
  ignoreUnknownValues: true,
2737
+ jsonOptions: {
2738
+ encoding: "Test string",
2739
+ },
2706
2740
  maxBadRecords: 42,
2707
2741
  metadataCacheMode: "Test string",
2708
2742
  objectMetadata: "Test string",
@@ -2795,18 +2829,18 @@ gapi.load('client', async () => {
2795
2829
  }
2796
2830
  ],
2797
2831
  },
2798
- num_active_logical_bytes: "Test string",
2799
- num_active_physical_bytes: "Test string",
2800
- num_long_term_logical_bytes: "Test string",
2801
- num_long_term_physical_bytes: "Test string",
2802
- num_partitions: "Test string",
2803
- num_time_travel_physical_bytes: "Test string",
2804
- num_total_logical_bytes: "Test string",
2805
- num_total_physical_bytes: "Test string",
2832
+ numActiveLogicalBytes: "Test string",
2833
+ numActivePhysicalBytes: "Test string",
2806
2834
  numBytes: "Test string",
2807
2835
  numLongTermBytes: "Test string",
2836
+ numLongTermLogicalBytes: "Test string",
2837
+ numLongTermPhysicalBytes: "Test string",
2838
+ numPartitions: "Test string",
2808
2839
  numPhysicalBytes: "Test string",
2809
2840
  numRows: "Test string",
2841
+ numTimeTravelPhysicalBytes: "Test string",
2842
+ numTotalLogicalBytes: "Test string",
2843
+ numTotalPhysicalBytes: "Test string",
2810
2844
  rangePartitioning: {
2811
2845
  field: "Test string",
2812
2846
  range: {
@@ -2857,6 +2891,29 @@ gapi.load('client', async () => {
2857
2891
  estimatedRows: "Test string",
2858
2892
  oldestEntryTime: "Test string",
2859
2893
  },
2894
+ tableConstraints: {
2895
+ foreignKeys: [
2896
+ {
2897
+ columnReferences: [
2898
+ {
2899
+ referencedColumn: "Test string",
2900
+ referencingColumn: "Test string",
2901
+ }
2902
+ ],
2903
+ name: "Test string",
2904
+ referencedTable: {
2905
+ datasetId: "Test string",
2906
+ projectId: "Test string",
2907
+ tableId: "Test string",
2908
+ },
2909
+ }
2910
+ ],
2911
+ primaryKey: {
2912
+ columns: [
2913
+ "Test string"
2914
+ ],
2915
+ },
2916
+ },
2860
2917
  tableReference: {
2861
2918
  datasetId: "Test string",
2862
2919
  projectId: "Test string",
@@ -3016,6 +3073,9 @@ gapi.load('client', async () => {
3016
3073
  sourceUriPrefix: "Test string",
3017
3074
  },
3018
3075
  ignoreUnknownValues: true,
3076
+ jsonOptions: {
3077
+ encoding: "Test string",
3078
+ },
3019
3079
  maxBadRecords: 42,
3020
3080
  metadataCacheMode: "Test string",
3021
3081
  objectMetadata: "Test string",
@@ -3108,18 +3168,18 @@ gapi.load('client', async () => {
3108
3168
  }
3109
3169
  ],
3110
3170
  },
3111
- num_active_logical_bytes: "Test string",
3112
- num_active_physical_bytes: "Test string",
3113
- num_long_term_logical_bytes: "Test string",
3114
- num_long_term_physical_bytes: "Test string",
3115
- num_partitions: "Test string",
3116
- num_time_travel_physical_bytes: "Test string",
3117
- num_total_logical_bytes: "Test string",
3118
- num_total_physical_bytes: "Test string",
3171
+ numActiveLogicalBytes: "Test string",
3172
+ numActivePhysicalBytes: "Test string",
3119
3173
  numBytes: "Test string",
3120
3174
  numLongTermBytes: "Test string",
3175
+ numLongTermLogicalBytes: "Test string",
3176
+ numLongTermPhysicalBytes: "Test string",
3177
+ numPartitions: "Test string",
3121
3178
  numPhysicalBytes: "Test string",
3122
3179
  numRows: "Test string",
3180
+ numTimeTravelPhysicalBytes: "Test string",
3181
+ numTotalLogicalBytes: "Test string",
3182
+ numTotalPhysicalBytes: "Test string",
3123
3183
  rangePartitioning: {
3124
3184
  field: "Test string",
3125
3185
  range: {
@@ -3170,6 +3230,29 @@ gapi.load('client', async () => {
3170
3230
  estimatedRows: "Test string",
3171
3231
  oldestEntryTime: "Test string",
3172
3232
  },
3233
+ tableConstraints: {
3234
+ foreignKeys: [
3235
+ {
3236
+ columnReferences: [
3237
+ {
3238
+ referencedColumn: "Test string",
3239
+ referencingColumn: "Test string",
3240
+ }
3241
+ ],
3242
+ name: "Test string",
3243
+ referencedTable: {
3244
+ datasetId: "Test string",
3245
+ projectId: "Test string",
3246
+ tableId: "Test string",
3247
+ },
3248
+ }
3249
+ ],
3250
+ primaryKey: {
3251
+ columns: [
3252
+ "Test string"
3253
+ ],
3254
+ },
3255
+ },
3173
3256
  tableReference: {
3174
3257
  datasetId: "Test string",
3175
3258
  projectId: "Test string",