@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230805 → 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.
Files changed (3) hide show
  1. package/index.d.ts +64 -4
  2. package/package.json +1 -1
  3. package/tests.ts +58 -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: 20230805
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
- null_marker?:
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
@@ -725,6 +731,9 @@ declare namespace gapi.client {
725
731
  /** [Output-only] A hash of the resource. */
726
732
  etag?:
727
733
  string;
734
+ /** [Optional] Information about the external metadata storage where the dataset is defined. Filled out when the dataset type is EXTERNAL. */
735
+ externalDatasetReference?:
736
+ ExternalDatasetReference;
728
737
  /** [Optional] A descriptive name for the dataset. */
729
738
  friendlyName?:
730
739
  string;
@@ -1171,6 +1180,14 @@ declare namespace gapi.client {
1171
1180
  sourceUris?:
1172
1181
  string[];
1173
1182
  }
1183
+ interface ExternalDatasetReference {
1184
+ /** [Required] The connection id that is used to access the external_source. Format: projects/{project_id}/locations/{location_id}/connections/{connection_id} */
1185
+ connection?:
1186
+ string;
1187
+ /** [Required] External source that backs this dataset. */
1188
+ externalSource?:
1189
+ string;
1190
+ }
1174
1191
  interface FeatureValue {
1175
1192
  /** The categorical feature value. */
1176
1193
  categoricalValue?:
@@ -1480,6 +1497,12 @@ declare namespace gapi.client {
1480
1497
  /** [Output-only] Opaque ID field of the job */
1481
1498
  id?:
1482
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;
1483
1506
  /** [Optional] Reference describing the unique-per-user name of the job. */
1484
1507
  jobReference?:
1485
1508
  JobReference;
@@ -2064,7 +2087,7 @@ declare namespace gapi.client {
2064
2087
  */
2065
2088
  ddlOperationPerformed?:
2066
2089
  string;
2067
- /** [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. */
2068
2091
  ddlTargetDataset?:
2069
2092
  DatasetReference;
2070
2093
  /** The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. */
@@ -2576,6 +2599,12 @@ declare namespace gapi.client {
2576
2599
  */
2577
2600
  dryRun?:
2578
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;
2579
2608
  /** The resource type of the request. */
2580
2609
  kind?:
2581
2610
  string;
@@ -2662,6 +2691,13 @@ declare namespace gapi.client {
2662
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. */
2663
2692
  jobComplete?:
2664
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;
2665
2701
  /**
2666
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
2667
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).
@@ -2818,7 +2854,10 @@ declare namespace gapi.client {
2818
2854
  /** Output only. The time when this routine was created, in milliseconds since the epoch. */
2819
2855
  creationTime?:
2820
2856
  string;
2821
- /** Optional. Data governance specific option, if the value is DATA_MASKING, the function will be validated as masking functions. */
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
+ */
2822
2861
  dataGovernanceType?:
2823
2862
  string;
2824
2863
  /**
@@ -3103,6 +3142,7 @@ declare namespace gapi.client {
3103
3142
  StandardSqlDataType;
3104
3143
  }
3105
3144
  interface StandardSqlStructType {
3145
+ /** Fields within the struct. */
3106
3146
  fields?:
3107
3147
  StandardSqlField[];
3108
3148
  }
@@ -3249,6 +3289,13 @@ declare namespace gapi.client {
3249
3289
  /** [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. */
3250
3290
  requirePartitionFilter?:
3251
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 };
3252
3299
  /** [Optional] Describes the schema of this table. */
3253
3300
  schema?:
3254
3301
  TableSchema;
@@ -3436,6 +3483,16 @@ declare namespace gapi.client {
3436
3483
  */
3437
3484
  precision?:
3438
3485
  string;
3486
+ /**
3487
+ * Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include:
3488
+ * - DATE - DATETIME - TIMESTAMP
3489
+ */
3490
+ rangeElementType?:
3491
+ {
3492
+ /** The field element type of a RANGE */
3493
+ type?:
3494
+ string;
3495
+ };
3439
3496
  /** Optional. Rounding Mode specification of the field. It only can be set on NUMERIC or BIGNUMERIC type fields. */
3440
3497
  roundingMode?:
3441
3498
  string;
@@ -3973,6 +4030,9 @@ declare namespace gapi.client {
3973
4030
  /** Dataset ID of the requested dataset */
3974
4031
  datasetId:
3975
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;
3976
4036
  /** Selector specifying which fields to include in a partial response. */
3977
4037
  fields?:
3978
4038
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20230805",
3
+ "version": "0.0.20230925",
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: 20230805
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. */
@@ -102,6 +103,10 @@ gapi.load('client', async () => {
102
103
  defaultTableExpirationMs: "Test string",
103
104
  description: "Test string",
104
105
  etag: "Test string",
106
+ externalDatasetReference: {
107
+ connection: "Test string",
108
+ externalSource: "Test string",
109
+ },
105
110
  friendlyName: "Test string",
106
111
  id: "Test string",
107
112
  isCaseInsensitive: true,
@@ -181,6 +186,10 @@ gapi.load('client', async () => {
181
186
  defaultTableExpirationMs: "Test string",
182
187
  description: "Test string",
183
188
  etag: "Test string",
189
+ externalDatasetReference: {
190
+ connection: "Test string",
191
+ externalSource: "Test string",
192
+ },
184
193
  friendlyName: "Test string",
185
194
  id: "Test string",
186
195
  isCaseInsensitive: true,
@@ -252,6 +261,10 @@ gapi.load('client', async () => {
252
261
  defaultTableExpirationMs: "Test string",
253
262
  description: "Test string",
254
263
  etag: "Test string",
264
+ externalDatasetReference: {
265
+ connection: "Test string",
266
+ externalSource: "Test string",
267
+ },
255
268
  friendlyName: "Test string",
256
269
  id: "Test string",
257
270
  isCaseInsensitive: true,
@@ -454,6 +467,9 @@ gapi.load('client', async () => {
454
467
  ],
455
468
  },
456
469
  precision: "Test string",
470
+ rangeElementType: {
471
+ type: "Test string",
472
+ },
457
473
  roundingMode: "Test string",
458
474
  scale: "Test string",
459
475
  type: "Test string",
@@ -581,7 +597,7 @@ gapi.load('client', async () => {
581
597
  allowQuotedNewlines: true,
582
598
  encoding: "Test string",
583
599
  fieldDelimiter: "Test string",
584
- null_marker: "Test string",
600
+ nullMarker: "Test string",
585
601
  preserveAsciiControlCharacters: true,
586
602
  quote: "Test string",
587
603
  skipLeadingRows: "Test string",
@@ -635,6 +651,9 @@ gapi.load('client', async () => {
635
651
  ],
636
652
  },
637
653
  precision: "Test string",
654
+ rangeElementType: {
655
+ type: "Test string",
656
+ },
638
657
  roundingMode: "Test string",
639
658
  scale: "Test string",
640
659
  type: "Test string",
@@ -666,6 +685,7 @@ gapi.load('client', async () => {
666
685
  },
667
686
  etag: "Test string",
668
687
  id: "Test string",
688
+ jobCreationReason: 42,
669
689
  jobReference: {
670
690
  jobId: "Test string",
671
691
  location: "Test string",
@@ -848,6 +868,9 @@ gapi.load('client', async () => {
848
868
  ],
849
869
  },
850
870
  precision: "Test string",
871
+ rangeElementType: {
872
+ type: "Test string",
873
+ },
851
874
  roundingMode: "Test string",
852
875
  scale: "Test string",
853
876
  type: "Test string",
@@ -1006,6 +1029,7 @@ gapi.load('client', async () => {
1006
1029
  projectId: "Test string",
1007
1030
  },
1008
1031
  dryRun: true,
1032
+ jobCreationMode: "Test string",
1009
1033
  kind: "Test string",
1010
1034
  labels: {
1011
1035
  A: "Test string"
@@ -2114,6 +2138,7 @@ gapi.load('client', async () => {
2114
2138
  },
2115
2139
  typeKind: "Test string",
2116
2140
  },
2141
+ isAggregate: true,
2117
2142
  mode: "Test string",
2118
2143
  name: "Test string",
2119
2144
  }
@@ -2226,6 +2251,7 @@ gapi.load('client', async () => {
2226
2251
  },
2227
2252
  typeKind: "Test string",
2228
2253
  },
2254
+ isAggregate: true,
2229
2255
  mode: "Test string",
2230
2256
  name: "Test string",
2231
2257
  }
@@ -2452,7 +2478,7 @@ gapi.load('client', async () => {
2452
2478
  allowQuotedNewlines: true,
2453
2479
  encoding: "Test string",
2454
2480
  fieldDelimiter: "Test string",
2455
- null_marker: "Test string",
2481
+ nullMarker: "Test string",
2456
2482
  preserveAsciiControlCharacters: true,
2457
2483
  quote: "Test string",
2458
2484
  skipLeadingRows: "Test string",
@@ -2506,6 +2532,9 @@ gapi.load('client', async () => {
2506
2532
  ],
2507
2533
  },
2508
2534
  precision: "Test string",
2535
+ rangeElementType: {
2536
+ type: "Test string",
2537
+ },
2509
2538
  roundingMode: "Test string",
2510
2539
  scale: "Test string",
2511
2540
  type: "Test string",
@@ -2590,6 +2619,9 @@ gapi.load('client', async () => {
2590
2619
  },
2591
2620
  },
2592
2621
  requirePartitionFilter: true,
2622
+ resourceTags: {
2623
+ A: "Test string"
2624
+ },
2593
2625
  schema: {
2594
2626
  fields: [
2595
2627
  {
@@ -2611,6 +2643,9 @@ gapi.load('client', async () => {
2611
2643
  ],
2612
2644
  },
2613
2645
  precision: "Test string",
2646
+ rangeElementType: {
2647
+ type: "Test string",
2648
+ },
2614
2649
  roundingMode: "Test string",
2615
2650
  scale: "Test string",
2616
2651
  type: "Test string",
@@ -2757,7 +2792,7 @@ gapi.load('client', async () => {
2757
2792
  allowQuotedNewlines: true,
2758
2793
  encoding: "Test string",
2759
2794
  fieldDelimiter: "Test string",
2760
- null_marker: "Test string",
2795
+ nullMarker: "Test string",
2761
2796
  preserveAsciiControlCharacters: true,
2762
2797
  quote: "Test string",
2763
2798
  skipLeadingRows: "Test string",
@@ -2811,6 +2846,9 @@ gapi.load('client', async () => {
2811
2846
  ],
2812
2847
  },
2813
2848
  precision: "Test string",
2849
+ rangeElementType: {
2850
+ type: "Test string",
2851
+ },
2814
2852
  roundingMode: "Test string",
2815
2853
  scale: "Test string",
2816
2854
  type: "Test string",
@@ -2895,6 +2933,9 @@ gapi.load('client', async () => {
2895
2933
  },
2896
2934
  },
2897
2935
  requirePartitionFilter: true,
2936
+ resourceTags: {
2937
+ A: "Test string"
2938
+ },
2898
2939
  schema: {
2899
2940
  fields: [
2900
2941
  {
@@ -2916,6 +2957,9 @@ gapi.load('client', async () => {
2916
2957
  ],
2917
2958
  },
2918
2959
  precision: "Test string",
2960
+ rangeElementType: {
2961
+ type: "Test string",
2962
+ },
2919
2963
  roundingMode: "Test string",
2920
2964
  scale: "Test string",
2921
2965
  type: "Test string",
@@ -3103,7 +3147,7 @@ gapi.load('client', async () => {
3103
3147
  allowQuotedNewlines: true,
3104
3148
  encoding: "Test string",
3105
3149
  fieldDelimiter: "Test string",
3106
- null_marker: "Test string",
3150
+ nullMarker: "Test string",
3107
3151
  preserveAsciiControlCharacters: true,
3108
3152
  quote: "Test string",
3109
3153
  skipLeadingRows: "Test string",
@@ -3157,6 +3201,9 @@ gapi.load('client', async () => {
3157
3201
  ],
3158
3202
  },
3159
3203
  precision: "Test string",
3204
+ rangeElementType: {
3205
+ type: "Test string",
3206
+ },
3160
3207
  roundingMode: "Test string",
3161
3208
  scale: "Test string",
3162
3209
  type: "Test string",
@@ -3241,6 +3288,9 @@ gapi.load('client', async () => {
3241
3288
  },
3242
3289
  },
3243
3290
  requirePartitionFilter: true,
3291
+ resourceTags: {
3292
+ A: "Test string"
3293
+ },
3244
3294
  schema: {
3245
3295
  fields: [
3246
3296
  {
@@ -3262,6 +3312,9 @@ gapi.load('client', async () => {
3262
3312
  ],
3263
3313
  },
3264
3314
  precision: "Test string",
3315
+ rangeElementType: {
3316
+ type: "Test string",
3317
+ },
3265
3318
  roundingMode: "Test string",
3266
3319
  scale: "Test string",
3267
3320
  type: "Test string",