@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230506 → 0.0.20230617

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 +40 -26
  2. package/package.json +1 -1
  3. package/tests.ts +36 -21
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: 20230506
12
+ // Revision: 20230617
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?:
@@ -1092,6 +1092,12 @@ declare namespace gapi.client {
1092
1092
  */
1093
1093
  decimalTargetTypes?:
1094
1094
  string[];
1095
+ /**
1096
+ * [Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include
1097
+ * specifying manifest files. Only applicable to object storage systems.
1098
+ */
1099
+ fileSetSpecType?:
1100
+ string;
1095
1101
  /** [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. */
1096
1102
  googleSheetsOptions?:
1097
1103
  GoogleSheetsOptions;
@@ -1106,6 +1112,9 @@ declare namespace gapi.client {
1106
1112
  */
1107
1113
  ignoreUnknownValues?:
1108
1114
  boolean;
1115
+ /** Additional properties to set if `sourceFormat` is set to `NEWLINE_DELIMITED_JSON`. */
1116
+ jsonOptions?:
1117
+ JsonOptions;
1109
1118
  /**
1110
1119
  * [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
1120
  * 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,
@@ -1618,6 +1627,12 @@ declare namespace gapi.client {
1618
1627
  */
1619
1628
  fieldDelimiter?:
1620
1629
  string;
1630
+ /**
1631
+ * [Optional] Specifies how source URIs are interpreted for constructing the file set to load. By default source URIs are expanded against the underlying storage. Other options include
1632
+ * specifying manifest files. Only applicable to object storage systems.
1633
+ */
1634
+ fileSetSpecType?:
1635
+ string;
1621
1636
  /** [Optional] Options to configure hive partitioning support. */
1622
1637
  hivePartitioningOptions?:
1623
1638
  HivePartitioningOptions;
@@ -2190,6 +2205,11 @@ declare namespace gapi.client {
2190
2205
  [key: string]:
2191
2206
  any;
2192
2207
  }
2208
+ interface JsonOptions {
2209
+ /** [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. */
2210
+ encoding?:
2211
+ string;
2212
+ }
2193
2213
  // tslint:disable-next-line:no-empty-interface
2194
2214
  interface JsonValue {
2195
2215
  }
@@ -2355,13 +2375,13 @@ declare namespace gapi.client {
2355
2375
  BqmlTrainingRun[];
2356
2376
  }
2357
2377
  interface ModelReference {
2358
- /** [Required] The ID of the dataset containing this model. */
2378
+ /** Required. The ID of the dataset containing this model. */
2359
2379
  datasetId?:
2360
2380
  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. */
2381
+ /** 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
2382
  modelId?:
2363
2383
  string;
2364
- /** [Required] The ID of the project containing this model. */
2384
+ /** Required. The ID of the project containing this model. */
2365
2385
  projectId?:
2366
2386
  string;
2367
2387
  }
@@ -2834,13 +2854,13 @@ declare namespace gapi.client {
2834
2854
  boolean;
2835
2855
  }
2836
2856
  interface RoutineReference {
2837
- /** [Required] The ID of the dataset containing this routine. */
2857
+ /** Required. The ID of the dataset containing this routine. */
2838
2858
  datasetId?:
2839
2859
  string;
2840
- /** [Required] The ID of the project containing this routine. */
2860
+ /** Required. The ID of the project containing this routine. */
2841
2861
  projectId?:
2842
2862
  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. */
2863
+ /** 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
2864
  routineId?:
2845
2865
  string;
2846
2866
  }
@@ -2874,16 +2894,16 @@ declare namespace gapi.client {
2874
2894
  RowAccessPolicyReference;
2875
2895
  }
2876
2896
  interface RowAccessPolicyReference {
2877
- /** [Required] The ID of the dataset containing this row access policy. */
2897
+ /** Required. The ID of the dataset containing this row access policy. */
2878
2898
  datasetId?:
2879
2899
  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. */
2900
+ /** 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
2901
  policyId?:
2882
2902
  string;
2883
- /** [Required] The ID of the project containing this row access policy. */
2903
+ /** Required. The ID of the project containing this row access policy. */
2884
2904
  projectId?:
2885
2905
  string;
2886
- /** [Required] The ID of the table containing this row access policy. */
2906
+ /** Required. The ID of the table containing this row access policy. */
2887
2907
  tableId?:
2888
2908
  string;
2889
2909
  }
@@ -3235,18 +3255,18 @@ declare namespace gapi.client {
3235
3255
  }
3236
3256
  interface TableConstraints {
3237
3257
  /** [Optional] The foreign keys of the tables. */
3238
- foreign_keys?:
3258
+ foreignKeys?:
3239
3259
  Array<{
3240
- column_references?:
3260
+ columnReferences?:
3241
3261
  Array<{
3242
- referenced_column?:
3262
+ referencedColumn?:
3243
3263
  string;
3244
- referencing_column?:
3264
+ referencingColumn?:
3245
3265
  string;
3246
3266
  }>;
3247
3267
  name?:
3248
3268
  string;
3249
- referenced_table?:
3269
+ referencedTable?:
3250
3270
  {
3251
3271
  datasetId?:
3252
3272
  string;
@@ -3257,7 +3277,7 @@ declare namespace gapi.client {
3257
3277
  };
3258
3278
  }>;
3259
3279
  /** [Optional] The primary key of the table. */
3260
- primary_key?:
3280
+ primaryKey?:
3261
3281
  {
3262
3282
  columns?:
3263
3283
  string[];
@@ -3691,12 +3711,6 @@ declare namespace gapi.client {
3691
3711
  /** Optimization strategy for training linear regression models. */
3692
3712
  optimizationStrategy?:
3693
3713
  string;
3694
- /**
3695
- * Whether to preserve the input structs in output feature names. Suppose there is a struct A with field b. When false (default), the output feature name is A_b. When true, the output
3696
- * feature name is A.b.
3697
- */
3698
- preserveInputStructs?:
3699
- boolean;
3700
3714
  /** Number of paths for the sampled Shapley explain method. */
3701
3715
  sampledShapleyNumPaths?:
3702
3716
  string;
@@ -4813,8 +4827,8 @@ declare namespace gapi.client {
4813
4827
  fields?:
4814
4828
  string;
4815
4829
  /**
4816
- * 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:
4817
- * "routineType:SCALAR_FUNCTION".
4830
+ * 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:
4831
+ * `routineType:SCALAR_FUNCTION`.
4818
4832
  */
4819
4833
  filter?:
4820
4834
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20230506",
3
+ "version": "0.0.20230617",
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: 20230506
6
+ // Revision: 20230617
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -402,6 +402,7 @@ gapi.load('client', async () => {
402
402
  },
403
403
  encoding: "Test string",
404
404
  fieldDelimiter: "Test string",
405
+ fileSetSpecType: "Test string",
405
406
  hivePartitioningOptions: {
406
407
  fields: [
407
408
  "Test string"
@@ -588,6 +589,7 @@ gapi.load('client', async () => {
588
589
  decimalTargetTypes: [
589
590
  "Test string"
590
591
  ],
592
+ fileSetSpecType: "Test string",
591
593
  googleSheetsOptions: {
592
594
  range: "Test string",
593
595
  skipLeadingRows: "Test string",
@@ -601,6 +603,9 @@ gapi.load('client', async () => {
601
603
  sourceUriPrefix: "Test string",
602
604
  },
603
605
  ignoreUnknownValues: true,
606
+ jsonOptions: {
607
+ encoding: "Test string",
608
+ },
604
609
  maxBadRecords: 42,
605
610
  metadataCacheMode: "Test string",
606
611
  objectMetadata: "Test string",
@@ -1519,7 +1524,6 @@ gapi.load('client', async () => {
1519
1524
  numParallelTree: "Test string",
1520
1525
  numTrials: "Test string",
1521
1526
  optimizationStrategy: "Test string",
1522
- preserveInputStructs: true,
1523
1527
  sampledShapleyNumPaths: "Test string",
1524
1528
  subsample: 42,
1525
1529
  tfVersion: "Test string",
@@ -1984,7 +1988,6 @@ gapi.load('client', async () => {
1984
1988
  numParallelTree: "Test string",
1985
1989
  numTrials: "Test string",
1986
1990
  optimizationStrategy: "Test string",
1987
- preserveInputStructs: true,
1988
1991
  sampledShapleyNumPaths: "Test string",
1989
1992
  subsample: 42,
1990
1993
  tfVersion: "Test string",
@@ -2420,6 +2423,7 @@ gapi.load('client', async () => {
2420
2423
  decimalTargetTypes: [
2421
2424
  "Test string"
2422
2425
  ],
2426
+ fileSetSpecType: "Test string",
2423
2427
  googleSheetsOptions: {
2424
2428
  range: "Test string",
2425
2429
  skipLeadingRows: "Test string",
@@ -2433,6 +2437,9 @@ gapi.load('client', async () => {
2433
2437
  sourceUriPrefix: "Test string",
2434
2438
  },
2435
2439
  ignoreUnknownValues: true,
2440
+ jsonOptions: {
2441
+ encoding: "Test string",
2442
+ },
2436
2443
  maxBadRecords: 42,
2437
2444
  metadataCacheMode: "Test string",
2438
2445
  objectMetadata: "Test string",
@@ -2588,23 +2595,23 @@ gapi.load('client', async () => {
2588
2595
  oldestEntryTime: "Test string",
2589
2596
  },
2590
2597
  tableConstraints: {
2591
- foreign_keys: [
2598
+ foreignKeys: [
2592
2599
  {
2593
- column_references: [
2600
+ columnReferences: [
2594
2601
  {
2595
- referenced_column: "Test string",
2596
- referencing_column: "Test string",
2602
+ referencedColumn: "Test string",
2603
+ referencingColumn: "Test string",
2597
2604
  }
2598
2605
  ],
2599
2606
  name: "Test string",
2600
- referenced_table: {
2607
+ referencedTable: {
2601
2608
  datasetId: "Test string",
2602
2609
  projectId: "Test string",
2603
2610
  tableId: "Test string",
2604
2611
  },
2605
2612
  }
2606
2613
  ],
2607
- primary_key: {
2614
+ primaryKey: {
2608
2615
  columns: [
2609
2616
  "Test string"
2610
2617
  ],
@@ -2715,6 +2722,7 @@ gapi.load('client', async () => {
2715
2722
  decimalTargetTypes: [
2716
2723
  "Test string"
2717
2724
  ],
2725
+ fileSetSpecType: "Test string",
2718
2726
  googleSheetsOptions: {
2719
2727
  range: "Test string",
2720
2728
  skipLeadingRows: "Test string",
@@ -2728,6 +2736,9 @@ gapi.load('client', async () => {
2728
2736
  sourceUriPrefix: "Test string",
2729
2737
  },
2730
2738
  ignoreUnknownValues: true,
2739
+ jsonOptions: {
2740
+ encoding: "Test string",
2741
+ },
2731
2742
  maxBadRecords: 42,
2732
2743
  metadataCacheMode: "Test string",
2733
2744
  objectMetadata: "Test string",
@@ -2883,23 +2894,23 @@ gapi.load('client', async () => {
2883
2894
  oldestEntryTime: "Test string",
2884
2895
  },
2885
2896
  tableConstraints: {
2886
- foreign_keys: [
2897
+ foreignKeys: [
2887
2898
  {
2888
- column_references: [
2899
+ columnReferences: [
2889
2900
  {
2890
- referenced_column: "Test string",
2891
- referencing_column: "Test string",
2901
+ referencedColumn: "Test string",
2902
+ referencingColumn: "Test string",
2892
2903
  }
2893
2904
  ],
2894
2905
  name: "Test string",
2895
- referenced_table: {
2906
+ referencedTable: {
2896
2907
  datasetId: "Test string",
2897
2908
  projectId: "Test string",
2898
2909
  tableId: "Test string",
2899
2910
  },
2900
2911
  }
2901
2912
  ],
2902
- primary_key: {
2913
+ primaryKey: {
2903
2914
  columns: [
2904
2915
  "Test string"
2905
2916
  ],
@@ -3051,6 +3062,7 @@ gapi.load('client', async () => {
3051
3062
  decimalTargetTypes: [
3052
3063
  "Test string"
3053
3064
  ],
3065
+ fileSetSpecType: "Test string",
3054
3066
  googleSheetsOptions: {
3055
3067
  range: "Test string",
3056
3068
  skipLeadingRows: "Test string",
@@ -3064,6 +3076,9 @@ gapi.load('client', async () => {
3064
3076
  sourceUriPrefix: "Test string",
3065
3077
  },
3066
3078
  ignoreUnknownValues: true,
3079
+ jsonOptions: {
3080
+ encoding: "Test string",
3081
+ },
3067
3082
  maxBadRecords: 42,
3068
3083
  metadataCacheMode: "Test string",
3069
3084
  objectMetadata: "Test string",
@@ -3219,23 +3234,23 @@ gapi.load('client', async () => {
3219
3234
  oldestEntryTime: "Test string",
3220
3235
  },
3221
3236
  tableConstraints: {
3222
- foreign_keys: [
3237
+ foreignKeys: [
3223
3238
  {
3224
- column_references: [
3239
+ columnReferences: [
3225
3240
  {
3226
- referenced_column: "Test string",
3227
- referencing_column: "Test string",
3241
+ referencedColumn: "Test string",
3242
+ referencingColumn: "Test string",
3228
3243
  }
3229
3244
  ],
3230
3245
  name: "Test string",
3231
- referenced_table: {
3246
+ referencedTable: {
3232
3247
  datasetId: "Test string",
3233
3248
  projectId: "Test string",
3234
3249
  tableId: "Test string",
3235
3250
  },
3236
3251
  }
3237
3252
  ],
3238
- primary_key: {
3253
+ primaryKey: {
3239
3254
  columns: [
3240
3255
  "Test string"
3241
3256
  ],