@maxim_mazurok/gapi.client.bigquery-v2 0.0.20250511 → 0.0.20250615

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 +57 -5
  2. package/package.json +1 -1
  3. package/readme.md +5 -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: 20250511
12
+ // Revision: 20250615
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -785,6 +785,18 @@ declare namespace gapi.client {
785
785
  /** Required. External source that backs this dataset. */
786
786
  externalSource?: string;
787
787
  }
788
+ interface ExternalRuntimeOptions {
789
+ /** Optional. Amount of CPU provisioned for the container instance. If not specified, the default value is 0.33 vCPUs. */
790
+ containerCpu?: number;
791
+ /** Optional. Amount of memory provisioned for the container instance. Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi). If not specified, the default value is 512Mi. */
792
+ containerMemory?: string;
793
+ /** Optional. Maximum number of rows in each batch sent to the external runtime. If absent or if 0, BigQuery dynamically decides the number of rows in a batch. */
794
+ maxBatchingRows?: string;
795
+ /** Optional. Fully qualified name of the connection whose service account will be used to execute the code in the container. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"``` */
796
+ runtimeConnection?: string;
797
+ /** Optional. Language runtime version (e.g. python-3.11). */
798
+ runtimeVersion?: string;
799
+ }
788
800
  interface ExternalServiceCost {
789
801
  /** External service cost in terms of bigquery bytes billed. */
790
802
  bytesBilled?: string;
@@ -1018,7 +1030,7 @@ declare namespace gapi.client {
1018
1030
  etag?: string;
1019
1031
  /** Output only. Opaque ID field of the job. */
1020
1032
  id?: string;
1021
- /** Output only. The reason why a Job was created. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1033
+ /** Output only. The reason why a Job was created. */
1022
1034
  jobCreationReason?: JobCreationReason;
1023
1035
  /** Optional. Reference describing the unique-per-user name of the job. */
1024
1036
  jobReference?: JobReference;
@@ -1739,6 +1751,12 @@ declare namespace gapi.client {
1739
1751
  /** Required. ID of the project. Can be either the numeric ID or the assigned ID of the project. */
1740
1752
  projectId?: string;
1741
1753
  }
1754
+ interface PythonOptions {
1755
+ /** Required. The entry point function in the user's Python code. */
1756
+ entryPoint?: string;
1757
+ /** Optional. A list of package names along with versions to be installed. Follows requirements.txt syntax (e.g. numpy==2.0, permutation, urllib3<2.2.1) */
1758
+ packages?: string[];
1759
+ }
1742
1760
  interface QueryInfo {
1743
1761
  /** Output only. Information about query optimizations. */
1744
1762
  optimizationDetails?: {[P in string]: any};
@@ -1793,7 +1811,7 @@ declare namespace gapi.client {
1793
1811
  dryRun?: boolean;
1794
1812
  /** Optional. Output format adjustments. */
1795
1813
  formatOptions?: DataFormatOptions;
1796
- /** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1814
+ /** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. */
1797
1815
  jobCreationMode?: string;
1798
1816
  /** Optional. Job timeout in milliseconds. If this time limit is exceeded, BigQuery will attempt to stop a longer job, but may not always succeed in canceling it before the job completes. For example, a job that takes more than 60 seconds to complete has a better chance of being stopped than a job that takes 10 seconds to complete. This timeout applies to the query even if a job does not need to be created. */
1799
1817
  jobTimeoutMs?: string;
@@ -1841,7 +1859,7 @@ declare namespace gapi.client {
1841
1859
  errors?: ErrorProto[];
1842
1860
  /** 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. */
1843
1861
  jobComplete?: boolean;
1844
- /** Optional. The reason why a Job was created. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1862
+ /** Optional. The reason why a Job was created. Only relevant when a job_reference is present in the response. If job_reference is not present it will always be unset. */
1845
1863
  jobCreationReason?: JobCreationReason;
1846
1864
  /** 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 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). If job_creation_mode was set to `JOB_CREATION_OPTIONAL` and the query completes without creating a job, this field will be empty. */
1847
1865
  jobReference?: JobReference;
@@ -1853,7 +1871,7 @@ declare namespace gapi.client {
1853
1871
  numDmlAffectedRows?: string;
1854
1872
  /** A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results). */
1855
1873
  pageToken?: string;
1856
- /** Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1874
+ /** Auto-generated ID for the query. */
1857
1875
  queryId?: string;
1858
1876
  /** An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. */
1859
1877
  rows?: TableRow[];
@@ -1972,12 +1990,16 @@ declare namespace gapi.client {
1972
1990
  determinismLevel?: string;
1973
1991
  /** Output only. A hash of this resource. */
1974
1992
  etag?: string;
1993
+ /** Optional. Options for the runtime of the external system executing the routine. This field is only applicable for Python UDFs. [Preview](https://cloud.google.com/products/#product-launch-stages) */
1994
+ externalRuntimeOptions?: ExternalRuntimeOptions;
1975
1995
  /** Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries. */
1976
1996
  importedLibraries?: string[];
1977
1997
  /** Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. */
1978
1998
  language?: string;
1979
1999
  /** Output only. The time when this routine was last modified, in milliseconds since the epoch. */
1980
2000
  lastModifiedTime?: string;
2001
+ /** Optional. Options for Python UDF. [Preview](https://cloud.google.com/products/#product-launch-stages) */
2002
+ pythonOptions?: PythonOptions;
1981
2003
  /** Optional. Remote function specific options. */
1982
2004
  remoteFunctionOptions?: RemoteFunctionOptions;
1983
2005
  /** Optional. Can be set only if routine_type = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definition_body at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specified in return table type, at query time. */
@@ -3907,6 +3929,36 @@ declare namespace gapi.client {
3907
3929
  },
3908
3930
  body: SetIamPolicyRequest,
3909
3931
  ): Request<Policy>;
3932
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
3933
+ testIamPermissions(
3934
+ request: {
3935
+ /** V1 error format. */
3936
+ '$.xgafv'?: string;
3937
+ /** OAuth access token. */
3938
+ access_token?: string;
3939
+ /** Data format for response. */
3940
+ alt?: string;
3941
+ /** JSONP */
3942
+ callback?: string;
3943
+ /** Selector specifying which fields to include in a partial response. */
3944
+ fields?: string;
3945
+ /** 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. */
3946
+ key?: string;
3947
+ /** OAuth 2.0 token for the current user. */
3948
+ oauth_token?: string;
3949
+ /** Returns response with indentations and line breaks. */
3950
+ prettyPrint?: boolean;
3951
+ /** 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. */
3952
+ quotaUser?: string;
3953
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3954
+ resource: string;
3955
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3956
+ upload_protocol?: string;
3957
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3958
+ uploadType?: string;
3959
+ },
3960
+ body: TestIamPermissionsRequest,
3961
+ ): Request<TestIamPermissionsResponse>;
3910
3962
  /** Updates information in an existing routine. The update method replaces the entire Routine resource. */
3911
3963
  update(request: {
3912
3964
  /** 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.20250511",
3
+ "version": "0.0.20250615",
4
4
  "description": "TypeScript typings for BigQuery API v2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -270,6 +270,11 @@ Sets the access control policy on the specified resource. Replaces any existing
270
270
  */
271
271
  await gapi.client.bigquery.routines.setIamPolicy({resource: 'resource'});
272
272
 
273
+ /*
274
+ Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
275
+ */
276
+ await gapi.client.bigquery.routines.testIamPermissions({resource: 'resource'});
277
+
273
278
  /*
274
279
  Updates information in an existing routine. The update method replaces the entire Routine resource.
275
280
  */