@maxim_mazurok/gapi.client.bigquery-v2 0.0.20240229 → 0.0.20240323

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 +132 -2
  2. package/package.json +1 -1
  3. package/readme.md +10 -0
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: 20240229
12
+ // Revision: 20240323
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -418,6 +418,8 @@ declare namespace gapi.client {
418
418
  description?: string;
419
419
  /** Output only. A hash of the resource. */
420
420
  etag?: string;
421
+ /** Optional. Options defining open source compatible datasets living in the BigQuery catalog. Contains metadata of open source database, schema or namespace represented by the current dataset. */
422
+ externalCatalogDatasetOptions?: ExternalCatalogDatasetOptions;
421
423
  /** Optional. Reference to a read-only external dataset defined in data catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL. */
422
424
  externalDatasetReference?: ExternalDatasetReference;
423
425
  /** Optional. A descriptive name for the dataset. */
@@ -513,6 +515,20 @@ declare namespace gapi.client {
513
515
  /** Optional. The labels associated with this table. You can use these to organize and group your tables. This will only be used if the destination table is newly created. If the table already exists and labels are different than the current labels are provided, the job will fail. */
514
516
  labels?: {[P in string]: string};
515
517
  }
518
+ interface DifferentialPrivacyPolicy {
519
+ /** Optional. The total delta budget for all queries against the privacy-protected view. Each subscriber query against this view charges the amount of delta that is pre-defined by the contributor through the privacy policy delta_per_query field. If there is sufficient budget, then the subscriber query attempts to complete. It might still fail due to other reasons, in which case the charge is refunded. If there is insufficient budget the query is rejected. There might be multiple charge attempts if a single query references multiple views. In this case there must be sufficient budget for all charges or the query is rejected and charges are refunded in best effort. The budget does not have a refresh policy and can only be updated via ALTER VIEW or circumvented by creating a new view that can be queried with a fresh budget. */
520
+ deltaBudget?: number;
521
+ /** Optional. The delta value that is used per query. Delta represents the probability that any row will fail to be epsilon differentially private. Indicates the risk associated with exposing aggregate rows in the result of a query. */
522
+ deltaPerQuery?: number;
523
+ /** Optional. The total epsilon budget for all queries against the privacy-protected view. Each subscriber query against this view charges the amount of epsilon they request in their query. If there is sufficient budget, then the subscriber query attempts to complete. It might still fail due to other reasons, in which case the charge is refunded. If there is insufficient budget the query is rejected. There might be multiple charge attempts if a single query references multiple views. In this case there must be sufficient budget for all charges or the query is rejected and charges are refunded in best effort. The budget does not have a refresh policy and can only be updated via ALTER VIEW or circumvented by creating a new view that can be queried with a fresh budget. */
524
+ epsilonBudget?: number;
525
+ /** Optional. The maximum epsilon value that a query can consume. If the subscriber specifies epsilon as a parameter in a SELECT query, it must be less than or equal to this value. The epsilon parameter controls the amount of noise that is added to the groups — a higher epsilon means less noise. */
526
+ maxEpsilonPerQuery?: number;
527
+ /** Optional. The maximum groups contributed value that is used per query. Represents the maximum number of groups to which each protected entity can contribute. Changing this value does not improve or worsen privacy. The best value for accuracy and utility depends on the query and data. */
528
+ maxGroupsContributed?: string;
529
+ /** Optional. The privacy unit column associated with this policy. Differential privacy policies can only have one privacy unit column per data source object (table, view). */
530
+ privacyUnitColumn?: string;
531
+ }
516
532
  interface DimensionalityReductionMetrics {
517
533
  /** Total percentage of variance explained by the selected principal components. */
518
534
  totalExplainedVarianceRatio?: number;
@@ -669,6 +685,20 @@ declare namespace gapi.client {
669
685
  /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
670
686
  title?: string;
671
687
  }
688
+ interface ExternalCatalogDatasetOptions {
689
+ /** Optional. The storage location URI for all tables in the dataset. Equivalent to hive metastore's database locationUri. Maximum length of 1024 characters. */
690
+ defaultStorageLocationUri?: string;
691
+ /** Optional. A map of key value pairs defining the parameters and properties of the open source schema. Maximum size of 2Mib. */
692
+ parameters?: {[P in string]: string};
693
+ }
694
+ interface ExternalCatalogTableOptions {
695
+ /** Optional. The connection specifying the credentials to be used to read external storage, such as Azure Blob, Cloud Storage, or S3. The connection is needed to read the open source table from BigQuery Engine. The connection_id can have the form `..` or `projects//locations//connections/`. */
696
+ connectionId?: string;
697
+ /** Optional. A map of key value pairs defining the parameters and properties of the open source table. Corresponds with hive meta store table parameters. Maximum size of 4Mib. */
698
+ parameters?: {[P in string]: string};
699
+ /** Optional. A storage descriptor containing information about the physical storage of this table. */
700
+ storageDescriptor?: StorageDescriptor;
701
+ }
672
702
  interface ExternalDataConfiguration {
673
703
  /** Try to detect schema and format options automatically. Any option specified explicitly will be honored. */
674
704
  autodetect?: boolean;
@@ -1378,6 +1408,12 @@ declare namespace gapi.client {
1378
1408
  /** Output only. Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'. */
1379
1409
  state?: string;
1380
1410
  }
1411
+ interface JoinRestrictionPolicy {
1412
+ /** Optional. The only columns that joins are allowed on. This field is must be specified for join_conditions JOIN_ANY and JOIN_ALL and it cannot be set for JOIN_BLOCKED. */
1413
+ joinAllowedColumns?: string[];
1414
+ /** Optional. Specifies if a join is required or not on queries for the view. Default is JOIN_CONDITION_UNSPECIFIED. */
1415
+ joinCondition?: string;
1416
+ }
1381
1417
  interface JsonObject {
1382
1418
  [key: string]: any;
1383
1419
  }
@@ -1566,6 +1602,10 @@ declare namespace gapi.client {
1566
1602
  /** Output only. Details about each partitioning column. BigQuery native tables only support 1 partitioning column. Other table types may support 0, 1 or more partitioning columns. */
1567
1603
  partitionedColumn?: PartitionedColumn[];
1568
1604
  }
1605
+ interface PartitionSkew {
1606
+ /** Output only. Source stages which produce skewed data. */
1607
+ skewSources?: SkewSource[];
1608
+ }
1569
1609
  interface PerformanceInsights {
1570
1610
  /** Output only. Average execution ms of previous runs. Indicates the job ran slow compared to previous executions. To find previous executions, use INFORMATION_SCHEMA tables and filter jobs with same query hash. */
1571
1611
  avgPreviousExecutionMs?: string;
@@ -1597,6 +1637,10 @@ declare namespace gapi.client {
1597
1637
  interface PrivacyPolicy {
1598
1638
  /** Optional. Policy used for aggregation thresholds. */
1599
1639
  aggregationThresholdPolicy?: AggregationThresholdPolicy;
1640
+ /** Optional. Policy used for differential privacy. */
1641
+ differentialPrivacyPolicy?: DifferentialPrivacyPolicy;
1642
+ /** Optional. Join restriction policy is outside of the one of policies, since this policy can be set along with other policies. This policy gives data providers the ability to enforce joins on the 'join_allowed_columns' when data is queried from a privacy protected view. */
1643
+ joinRestrictionPolicy?: JoinRestrictionPolicy;
1600
1644
  }
1601
1645
  interface ProjectList {
1602
1646
  /** A hash of the page of results. */
@@ -1929,6 +1973,14 @@ declare namespace gapi.client {
1929
1973
  /** Specifies the index usage mode for the query. */
1930
1974
  indexUsageMode?: string;
1931
1975
  }
1976
+ interface SerDeInfo {
1977
+ /** Optional. Name of the SerDe. The maximum length is 256 characters. */
1978
+ name?: string;
1979
+ /** Optional. Key-value pairs that define the initialization parameters for the serialization library. Maximum size 10 Kib. */
1980
+ parameters?: {[P in string]: string};
1981
+ /** Required. Specifies a fully-qualified class name of the serialization library that is responsible for the translation of data between table representation and the underlying low-level input and output format structures. The maximum length is 256 characters. */
1982
+ serializationLibrary?: string;
1983
+ }
1932
1984
  interface SessionInfo {
1933
1985
  /** Output only. The id of the session. */
1934
1986
  sessionId?: string;
@@ -1939,6 +1991,10 @@ declare namespace gapi.client {
1939
1991
  /** OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"` */
1940
1992
  updateMask?: string;
1941
1993
  }
1994
+ interface SkewSource {
1995
+ /** Output only. Stage id of the skew source stage. */
1996
+ stageId?: string;
1997
+ }
1942
1998
  interface SnapshotDefinition {
1943
1999
  /** Required. Reference describing the ID of the table that was snapshot. */
1944
2000
  baseTableReference?: TableReference;
@@ -2000,6 +2056,8 @@ declare namespace gapi.client {
2000
2056
  highCardinalityJoins?: HighCardinalityJoin[];
2001
2057
  /** Output only. True if the stage has insufficient shuffle quota. */
2002
2058
  insufficientShuffleQuota?: boolean;
2059
+ /** Output only. Partition skew in the stage. */
2060
+ partitionSkew?: PartitionSkew;
2003
2061
  /** Output only. True if the stage has a slot contention issue. */
2004
2062
  slotContention?: boolean;
2005
2063
  /** Output only. The stage id that the insight mapped to. */
@@ -2029,6 +2087,16 @@ declare namespace gapi.client {
2029
2087
  /** The columns in this table type */
2030
2088
  columns?: StandardSqlField[];
2031
2089
  }
2090
+ interface StorageDescriptor {
2091
+ /** Optional. Specifies the fully qualified class name of the InputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128 characters. */
2092
+ inputFormat?: string;
2093
+ /** Optional. The physical location of the table (e.g. 'gs://spark-dataproc-data/pangea-data/case_sensitive/' or 'gs://spark-dataproc-data/pangea-data/*'). The maximum length is 2056 bytes. */
2094
+ locationUri?: string;
2095
+ /** Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128 characters. */
2096
+ outputFormat?: string;
2097
+ /** Optional. Serializer and deserializer information. */
2098
+ serdeInfo?: SerDeInfo;
2099
+ }
2032
2100
  interface Streamingbuffer {
2033
2101
  /** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
2034
2102
  estimatedBytes?: string;
@@ -2068,6 +2136,8 @@ declare namespace gapi.client {
2068
2136
  etag?: string;
2069
2137
  /** Optional. The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables. */
2070
2138
  expirationTime?: string;
2139
+ /** Optional. Options defining open source compatible table. */
2140
+ externalCatalogTableOptions?: ExternalCatalogTableOptions;
2071
2141
  /** Optional. Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table. */
2072
2142
  externalDataConfiguration?: ExternalDataConfiguration;
2073
2143
  /** Optional. A descriptive name for this table. */
@@ -2561,7 +2631,7 @@ declare namespace gapi.client {
2561
2631
  type?: StandardSqlDataType;
2562
2632
  }
2563
2633
  interface UndeleteDatasetRequest {
2564
- /** Optional. The exact time when the dataset was deleted. If not specified, it will undelete the most recently deleted version. */
2634
+ /** Optional. The exact time when the dataset was deleted. If not specified, the most recently deleted version is undeleted. */
2565
2635
  deletionTime?: string;
2566
2636
  }
2567
2637
  interface UserDefinedFunctionResource {
@@ -3512,6 +3582,36 @@ declare namespace gapi.client {
3512
3582
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3513
3583
  uploadType?: string;
3514
3584
  }): Request<Routine>;
3585
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3586
+ getIamPolicy(
3587
+ request: {
3588
+ /** V1 error format. */
3589
+ '$.xgafv'?: string;
3590
+ /** OAuth access token. */
3591
+ access_token?: string;
3592
+ /** Data format for response. */
3593
+ alt?: string;
3594
+ /** JSONP */
3595
+ callback?: string;
3596
+ /** Selector specifying which fields to include in a partial response. */
3597
+ fields?: string;
3598
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3599
+ key?: string;
3600
+ /** OAuth 2.0 token for the current user. */
3601
+ oauth_token?: string;
3602
+ /** Returns response with indentations and line breaks. */
3603
+ prettyPrint?: boolean;
3604
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3605
+ quotaUser?: string;
3606
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3607
+ resource: string;
3608
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3609
+ upload_protocol?: string;
3610
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3611
+ uploadType?: string;
3612
+ },
3613
+ body: GetIamPolicyRequest
3614
+ ): Request<Policy>;
3515
3615
  /** Creates a new routine in the dataset. */
3516
3616
  insert(request: {
3517
3617
  /** V1 error format. */
@@ -3611,6 +3711,36 @@ declare namespace gapi.client {
3611
3711
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3612
3712
  uploadType?: string;
3613
3713
  }): Request<ListRoutinesResponse>;
3714
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
3715
+ setIamPolicy(
3716
+ request: {
3717
+ /** V1 error format. */
3718
+ '$.xgafv'?: string;
3719
+ /** OAuth access token. */
3720
+ access_token?: string;
3721
+ /** Data format for response. */
3722
+ alt?: string;
3723
+ /** JSONP */
3724
+ callback?: string;
3725
+ /** Selector specifying which fields to include in a partial response. */
3726
+ fields?: string;
3727
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3728
+ key?: string;
3729
+ /** OAuth 2.0 token for the current user. */
3730
+ oauth_token?: string;
3731
+ /** Returns response with indentations and line breaks. */
3732
+ prettyPrint?: boolean;
3733
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3734
+ quotaUser?: string;
3735
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3736
+ resource: string;
3737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3738
+ upload_protocol?: string;
3739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3740
+ uploadType?: string;
3741
+ },
3742
+ body: SetIamPolicyRequest
3743
+ ): Request<Policy>;
3614
3744
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3615
3745
  update(request: {
3616
3746
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquery-v2",
3
- "version": "0.0.20240229",
3
+ "version": "0.0.20240323",
4
4
  "description": "TypeScript typings for BigQuery API v2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -244,6 +244,11 @@ await gapi.client.bigquery.routines.get({
244
244
  routineId: 'routineId',
245
245
  });
246
246
 
247
+ /*
248
+ Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
249
+ */
250
+ await gapi.client.bigquery.routines.getIamPolicy({resource: 'resource'});
251
+
247
252
  /*
248
253
  Creates a new routine in the dataset.
249
254
  */
@@ -260,6 +265,11 @@ await gapi.client.bigquery.routines.list({
260
265
  projectId: 'projectId',
261
266
  });
262
267
 
268
+ /*
269
+ Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
270
+ */
271
+ await gapi.client.bigquery.routines.setIamPolicy({resource: 'resource'});
272
+
263
273
  /*
264
274
  Updates information in an existing routine. The update method replaces the entire Routine resource.
265
275
  */