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

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 +161 -9
  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: 20240418
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -361,7 +361,7 @@ declare namespace gapi.client {
361
361
  encoding?: string;
362
362
  /** Optional. The separator character for fields in a CSV file. The separator is interpreted as a single byte. For files encoded in ISO-8859-1, any single character can be used as a separator. For files encoded in UTF-8, characters represented in decimal range 1-127 (U+0001-U+007F) can be used without any modification. UTF-8 characters encoded with multiple bytes (i.e. U+0080 and above) will have only the first byte used for separating fields. The remaining bytes will be treated as a part of the field. BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab separator. The default value is comma (",", U+002C). */
363
363
  fieldDelimiter?: string;
364
- /** [Optional] A custom string that will represent a NULL value in CSV import data. */
364
+ /** Optional. Specifies a string that represents a null value in a CSV file. For example, if you specify "\N", BigQuery interprets "\N" as a null value when querying a CSV file. The default value is the empty string. If you set this property to a custom value, BigQuery throws an error if an empty string is present for all data types except for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the empty string as an empty value. */
365
365
  nullMarker?: string;
366
366
  /** Optional. Indicates if the embedded ASCII control characters (the first 32 characters in the ASCII-table, from '\x00' to '\x1F') are preserved. */
367
367
  preserveAsciiControlCharacters?: boolean;
@@ -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. */
@@ -440,6 +442,8 @@ declare namespace gapi.client {
440
442
  location?: string;
441
443
  /** Optional. Defines the time travel window in hours. The value can be from 48 to 168 hours (2 to 7 days). The default value is 168 hours if this is not set. */
442
444
  maxTimeTravelHours?: string;
445
+ /** Optional. Output only. Restriction config for all tables and dataset. If set, restrict certain accesses on the dataset and all its tables based on the config. See [Data egress](/bigquery/docs/analytics-hub-introduction#data_egress) for more details. */
446
+ restrictions?: RestrictionConfig;
443
447
  /** Output only. Reserved for future use. */
444
448
  satisfiesPzi?: boolean;
445
449
  /** Output only. Reserved for future use. */
@@ -455,7 +459,7 @@ declare namespace gapi.client {
455
459
  /** Required. The friendly short name of the tag value, e.g. "production". */
456
460
  tagValue?: string;
457
461
  }>;
458
- /** Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog. -- *BIGLAKE_METASTORE - dataset that references a database created in BigLakeMetastore service. -- */
462
+ /** Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog. */
459
463
  type?: string;
460
464
  }
461
465
  interface DatasetAccessEntry {
@@ -513,6 +517,24 @@ declare namespace gapi.client {
513
517
  /** 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
518
  labels?: {[P in string]: string};
515
519
  }
520
+ interface DifferentialPrivacyPolicy {
521
+ /** 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. */
522
+ deltaBudget?: number;
523
+ /** Output only. The delta budget remaining. If budget is exhausted, no more queries are allowed. Note that the budget for queries that are in progress is deducted before the query executes. If the query fails or is cancelled then the budget is refunded. In this case the amount of budget remaining can increase. */
524
+ deltaBudgetRemaining?: number;
525
+ /** 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. */
526
+ deltaPerQuery?: number;
527
+ /** 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. */
528
+ epsilonBudget?: number;
529
+ /** Output only. The epsilon budget remaining. If budget is exhausted, no more queries are allowed. Note that the budget for queries that are in progress is deducted before the query executes. If the query fails or is cancelled then the budget is refunded. In this case the amount of budget remaining can increase. */
530
+ epsilonBudgetRemaining?: number;
531
+ /** 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. */
532
+ maxEpsilonPerQuery?: number;
533
+ /** 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. */
534
+ maxGroupsContributed?: string;
535
+ /** 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). */
536
+ privacyUnitColumn?: string;
537
+ }
516
538
  interface DimensionalityReductionMetrics {
517
539
  /** Total percentage of variance explained by the selected principal components. */
518
540
  totalExplainedVarianceRatio?: number;
@@ -669,6 +691,20 @@ declare namespace gapi.client {
669
691
  /** 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
692
  title?: string;
671
693
  }
694
+ interface ExternalCatalogDatasetOptions {
695
+ /** Optional. The storage location URI for all tables in the dataset. Equivalent to hive metastore's database locationUri. Maximum length of 1024 characters. */
696
+ defaultStorageLocationUri?: string;
697
+ /** Optional. A map of key value pairs defining the parameters and properties of the open source schema. Maximum size of 2Mib. */
698
+ parameters?: {[P in string]: string};
699
+ }
700
+ interface ExternalCatalogTableOptions {
701
+ /** 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/`. */
702
+ connectionId?: string;
703
+ /** 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. */
704
+ parameters?: {[P in string]: string};
705
+ /** Optional. A storage descriptor containing information about the physical storage of this table. */
706
+ storageDescriptor?: StorageDescriptor;
707
+ }
672
708
  interface ExternalDataConfiguration {
673
709
  /** Try to detect schema and format options automatically. Any option specified explicitly will be honored. */
674
710
  autodetect?: boolean;
@@ -739,6 +775,10 @@ declare namespace gapi.client {
739
775
  /** The numerical feature value. This is the centroid value for this feature. */
740
776
  numericalValue?: number;
741
777
  }
778
+ interface ForeignTypeInfo {
779
+ /** Required. Specifies the system which defines the foreign data type. */
780
+ typeSystem?: string;
781
+ }
742
782
  interface GetIamPolicyRequest {
743
783
  /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
744
784
  options?: GetPolicyOptions;
@@ -1016,7 +1056,7 @@ declare namespace gapi.client {
1016
1056
  clustering?: Clustering;
1017
1057
  /** Optional. Connection properties which can modify the load job behavior. Currently, only the 'session_id' connection property is supported, and is used to resolve _SESSION appearing as the dataset id. */
1018
1058
  connectionProperties?: ConnectionProperty[];
1019
- /** Optional. [Experimental] Configures the load job to only copy files to the destination BigLake managed table with an external storage_uri, without reading file content and writing them to new files. Copying files only is supported when: * source_uris are in the same external storage system as the destination table but they do not overlap with storage_uri of the destination table. * source_format is the same file format as the destination table. * destination_table is an existing BigLake managed table. Its schema does not have default value expression. It schema does not have type parameters other than precision and scale. * No options other than the above are specified. */
1059
+ /** Optional. [Experimental] Configures the load job to copy files directly to the destination BigLake managed table, bypassing file content reading and rewriting. Copying files only is supported when all the following are true: * `source_uris` are located in the same Cloud Storage location as the destination table's `storage_uri` location. * `source_format` is `PARQUET`. * `destination_table` is an existing BigLake managed table. The table's schema does not have flexible column names. The table's columns do not have type parameters other than precision and scale. * No options other than the above are specified. */
1020
1060
  copyFilesOnly?: boolean;
1021
1061
  /** Optional. Specifies whether the job is allowed to create new tables. The following values are supported: * CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. * CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion. */
1022
1062
  createDisposition?: string;
@@ -1227,7 +1267,7 @@ declare namespace gapi.client {
1227
1267
  reservation_id?: string;
1228
1268
  /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1229
1269
  reservationUsage?: Array<{
1230
- /** Reservation name or "unreserved" for on-demand resources usage. */
1270
+ /** Reservation name or "unreserved" for on-demand resource usage and multi-statement queries. */
1231
1271
  name?: string;
1232
1272
  /** Total slot milliseconds used by the reservation for a particular job. */
1233
1273
  slotMs?: string;
@@ -1310,7 +1350,7 @@ declare namespace gapi.client {
1310
1350
  referencedTables?: TableReference[];
1311
1351
  /** Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */
1312
1352
  reservationUsage?: Array<{
1313
- /** Reservation name or "unreserved" for on-demand resources usage. */
1353
+ /** Reservation name or "unreserved" for on-demand resource usage and multi-statement queries. */
1314
1354
  name?: string;
1315
1355
  /** Total slot milliseconds used by the reservation for a particular job. */
1316
1356
  slotMs?: string;
@@ -1378,6 +1418,12 @@ declare namespace gapi.client {
1378
1418
  /** Output only. Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'. */
1379
1419
  state?: string;
1380
1420
  }
1421
+ interface JoinRestrictionPolicy {
1422
+ /** 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. */
1423
+ joinAllowedColumns?: string[];
1424
+ /** Optional. Specifies if a join is required or not on queries for the view. Default is JOIN_CONDITION_UNSPECIFIED. */
1425
+ joinCondition?: string;
1426
+ }
1381
1427
  interface JsonObject {
1382
1428
  [key: string]: any;
1383
1429
  }
@@ -1441,7 +1487,7 @@ declare namespace gapi.client {
1441
1487
  tableReference?: TableReference;
1442
1488
  }
1443
1489
  interface MaterializedViewDefinition {
1444
- /** Optional. This option declares authors intention to construct a materialized view that will not be refreshed incrementally. */
1490
+ /** Optional. This option declares the intention to construct a materialized view that isn't refreshed incrementally. */
1445
1491
  allowNonIncrementalDefinition?: boolean;
1446
1492
  /** Optional. Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". */
1447
1493
  enableRefresh?: boolean;
@@ -1557,6 +1603,8 @@ declare namespace gapi.client {
1557
1603
  enableListInference?: boolean;
1558
1604
  /** Optional. Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default. */
1559
1605
  enumAsString?: boolean;
1606
+ /** Optional. Will indicate how to represent a parquet map if present. */
1607
+ mapTargetType?: string;
1560
1608
  }
1561
1609
  interface PartitionedColumn {
1562
1610
  /** Output only. The name of the partition column. */
@@ -1566,6 +1614,10 @@ declare namespace gapi.client {
1566
1614
  /** 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
1615
  partitionedColumn?: PartitionedColumn[];
1568
1616
  }
1617
+ interface PartitionSkew {
1618
+ /** Output only. Source stages which produce skewed data. */
1619
+ skewSources?: SkewSource[];
1620
+ }
1569
1621
  interface PerformanceInsights {
1570
1622
  /** 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
1623
  avgPreviousExecutionMs?: string;
@@ -1597,6 +1649,10 @@ declare namespace gapi.client {
1597
1649
  interface PrivacyPolicy {
1598
1650
  /** Optional. Policy used for aggregation thresholds. */
1599
1651
  aggregationThresholdPolicy?: AggregationThresholdPolicy;
1652
+ /** Optional. Policy used for differential privacy. */
1653
+ differentialPrivacyPolicy?: DifferentialPrivacyPolicy;
1654
+ /** 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. */
1655
+ joinRestrictionPolicy?: JoinRestrictionPolicy;
1600
1656
  }
1601
1657
  interface ProjectList {
1602
1658
  /** A hash of the page of results. */
@@ -1817,6 +1873,10 @@ declare namespace gapi.client {
1817
1873
  /** Output only. The name of the speech recognizer to use for speech recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. Customers can specify this field at model creation. If not specified, a default recognizer `projects/{model project}/locations/global/recognizers/_` will be used. See more details at [recognizers](https://cloud.google.com/speech-to-text/v2/docs/reference/rest/v2/projects.locations.recognizers) */
1818
1874
  speechRecognizer?: string;
1819
1875
  }
1876
+ interface RestrictionConfig {
1877
+ /** Output only. Specifies the type of dataset/table restriction. */
1878
+ type?: string;
1879
+ }
1820
1880
  interface Routine {
1821
1881
  /** Optional. */
1822
1882
  arguments?: Argument[];
@@ -1929,6 +1989,14 @@ declare namespace gapi.client {
1929
1989
  /** Specifies the index usage mode for the query. */
1930
1990
  indexUsageMode?: string;
1931
1991
  }
1992
+ interface SerDeInfo {
1993
+ /** Optional. Name of the SerDe. The maximum length is 256 characters. */
1994
+ name?: string;
1995
+ /** Optional. Key-value pairs that define the initialization parameters for the serialization library. Maximum size 10 Kib. */
1996
+ parameters?: {[P in string]: string};
1997
+ /** 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. */
1998
+ serializationLibrary?: string;
1999
+ }
1932
2000
  interface SessionInfo {
1933
2001
  /** Output only. The id of the session. */
1934
2002
  sessionId?: string;
@@ -1939,6 +2007,10 @@ declare namespace gapi.client {
1939
2007
  /** 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
2008
  updateMask?: string;
1941
2009
  }
2010
+ interface SkewSource {
2011
+ /** Output only. Stage id of the skew source stage. */
2012
+ stageId?: string;
2013
+ }
1942
2014
  interface SnapshotDefinition {
1943
2015
  /** Required. Reference describing the ID of the table that was snapshot. */
1944
2016
  baseTableReference?: TableReference;
@@ -2000,6 +2072,8 @@ declare namespace gapi.client {
2000
2072
  highCardinalityJoins?: HighCardinalityJoin[];
2001
2073
  /** Output only. True if the stage has insufficient shuffle quota. */
2002
2074
  insufficientShuffleQuota?: boolean;
2075
+ /** Output only. Partition skew in the stage. */
2076
+ partitionSkew?: PartitionSkew;
2003
2077
  /** Output only. True if the stage has a slot contention issue. */
2004
2078
  slotContention?: boolean;
2005
2079
  /** Output only. The stage id that the insight mapped to. */
@@ -2029,6 +2103,16 @@ declare namespace gapi.client {
2029
2103
  /** The columns in this table type */
2030
2104
  columns?: StandardSqlField[];
2031
2105
  }
2106
+ interface StorageDescriptor {
2107
+ /** 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. */
2108
+ inputFormat?: string;
2109
+ /** 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. */
2110
+ locationUri?: string;
2111
+ /** 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. */
2112
+ outputFormat?: string;
2113
+ /** Optional. Serializer and deserializer information. */
2114
+ serdeInfo?: SerDeInfo;
2115
+ }
2032
2116
  interface Streamingbuffer {
2033
2117
  /** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
2034
2118
  estimatedBytes?: string;
@@ -2068,6 +2152,8 @@ declare namespace gapi.client {
2068
2152
  etag?: string;
2069
2153
  /** 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
2154
  expirationTime?: string;
2155
+ /** Optional. Options defining open source compatible table. */
2156
+ externalCatalogTableOptions?: ExternalCatalogTableOptions;
2071
2157
  /** 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
2158
  externalDataConfiguration?: ExternalDataConfiguration;
2073
2159
  /** Optional. A descriptive name for this table. */
@@ -2124,6 +2210,8 @@ declare namespace gapi.client {
2124
2210
  requirePartitionFilter?: boolean;
2125
2211
  /** [Optional] The tags associated with this table. Tag keys are globally unique. See additional information on [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, e.g. "12345/environment" where 12345 is parent id. The value is the friendly short name of the tag value, e.g. "production". */
2126
2212
  resourceTags?: {[P in string]: string};
2213
+ /** Optional. Output only. Restriction config for table. If set, restrict certain accesses on the table based on the config. See [Data egress](/bigquery/docs/analytics-hub-introduction#data_egress) for more details. */
2214
+ restrictions?: RestrictionConfig;
2127
2215
  /** Optional. Describes the schema of this table. */
2128
2216
  schema?: TableSchema;
2129
2217
  /** Output only. A URL that can be used to access this resource again. */
@@ -2227,6 +2315,8 @@ declare namespace gapi.client {
2227
2315
  description?: string;
2228
2316
  /** Optional. Describes the nested schema fields if the type property is set to RECORD. */
2229
2317
  fields?: TableFieldSchema[];
2318
+ /** Optional. Definition of the foreign data type. Only valid for top-level schema fields (not nested fields). If the type is FOREIGN, this field is required. */
2319
+ foreignTypeDefinition?: string;
2230
2320
  /** Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES". */
2231
2321
  maxLength?: string;
2232
2322
  /** Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. */
@@ -2333,6 +2423,8 @@ declare namespace gapi.client {
2333
2423
  interface TableSchema {
2334
2424
  /** Describes the fields in a table. */
2335
2425
  fields?: TableFieldSchema[];
2426
+ /** Optional. Specifies metadata of the foreign data type definition in field schema (TableFieldSchema.foreign_type_definition). */
2427
+ foreignTypeInfo?: ForeignTypeInfo;
2336
2428
  }
2337
2429
  interface TestIamPermissionsRequest {
2338
2430
  /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
@@ -2561,7 +2653,7 @@ declare namespace gapi.client {
2561
2653
  type?: StandardSqlDataType;
2562
2654
  }
2563
2655
  interface UndeleteDatasetRequest {
2564
- /** Optional. The exact time when the dataset was deleted. If not specified, it will undelete the most recently deleted version. */
2656
+ /** Optional. The exact time when the dataset was deleted. If not specified, the most recently deleted version is undeleted. */
2565
2657
  deletionTime?: string;
2566
2658
  }
2567
2659
  interface UserDefinedFunctionResource {
@@ -2723,7 +2815,7 @@ declare namespace gapi.client {
2723
2815
  callback?: string;
2724
2816
  /** Selector specifying which fields to include in a partial response. */
2725
2817
  fields?: string;
2726
- /** An expression for filtering the results of the request by label. The syntax is \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by connecting with a space. Example: \"labels.department:receiving labels.active\". See [Filtering datasets using labels](/bigquery/docs/labeling-datasets#filtering_datasets_using_labels) for details. */
2818
+ /** An expression for filtering the results of the request by label. The syntax is \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by connecting with a space. Example: \"labels.department:receiving labels.active\". See [Filtering datasets using labels](/bigquery/docs/filtering-labels#filtering_datasets_using_labels) for details. */
2727
2819
  filter?: string;
2728
2820
  /** 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. */
2729
2821
  key?: string;
@@ -3512,6 +3604,36 @@ declare namespace gapi.client {
3512
3604
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3513
3605
  uploadType?: string;
3514
3606
  }): Request<Routine>;
3607
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3608
+ getIamPolicy(
3609
+ request: {
3610
+ /** V1 error format. */
3611
+ '$.xgafv'?: string;
3612
+ /** OAuth access token. */
3613
+ access_token?: string;
3614
+ /** Data format for response. */
3615
+ alt?: string;
3616
+ /** JSONP */
3617
+ callback?: string;
3618
+ /** Selector specifying which fields to include in a partial response. */
3619
+ fields?: string;
3620
+ /** 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. */
3621
+ key?: string;
3622
+ /** OAuth 2.0 token for the current user. */
3623
+ oauth_token?: string;
3624
+ /** Returns response with indentations and line breaks. */
3625
+ prettyPrint?: boolean;
3626
+ /** 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. */
3627
+ quotaUser?: string;
3628
+ /** 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. */
3629
+ resource: string;
3630
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3631
+ upload_protocol?: string;
3632
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3633
+ uploadType?: string;
3634
+ },
3635
+ body: GetIamPolicyRequest
3636
+ ): Request<Policy>;
3515
3637
  /** Creates a new routine in the dataset. */
3516
3638
  insert(request: {
3517
3639
  /** V1 error format. */
@@ -3611,6 +3733,36 @@ declare namespace gapi.client {
3611
3733
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3612
3734
  uploadType?: string;
3613
3735
  }): Request<ListRoutinesResponse>;
3736
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
3737
+ setIamPolicy(
3738
+ request: {
3739
+ /** V1 error format. */
3740
+ '$.xgafv'?: string;
3741
+ /** OAuth access token. */
3742
+ access_token?: string;
3743
+ /** Data format for response. */
3744
+ alt?: string;
3745
+ /** JSONP */
3746
+ callback?: string;
3747
+ /** Selector specifying which fields to include in a partial response. */
3748
+ fields?: string;
3749
+ /** 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. */
3750
+ key?: string;
3751
+ /** OAuth 2.0 token for the current user. */
3752
+ oauth_token?: string;
3753
+ /** Returns response with indentations and line breaks. */
3754
+ prettyPrint?: boolean;
3755
+ /** 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. */
3756
+ quotaUser?: string;
3757
+ /** 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. */
3758
+ resource: string;
3759
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3760
+ upload_protocol?: string;
3761
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3762
+ uploadType?: string;
3763
+ },
3764
+ body: SetIamPolicyRequest
3765
+ ): Request<Policy>;
3614
3766
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3615
3767
  update(request: {
3616
3768
  /** 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.20240418",
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
  */