@maxim_mazurok/gapi.client.bigquery-v2 0.0.20250427 → 0.0.20250607
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.
- package/index.d.ts +61 -7
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20250607
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -491,6 +491,8 @@ declare namespace gapi.client {
|
|
|
491
491
|
datasets?: Array<{
|
|
492
492
|
/** The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID. */
|
|
493
493
|
datasetReference?: DatasetReference;
|
|
494
|
+
/** Output only. Reference to a read-only external dataset defined in data catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL. */
|
|
495
|
+
externalDatasetReference?: ExternalDatasetReference;
|
|
494
496
|
/** An alternate name for the dataset. The friendly name is purely decorative in nature. */
|
|
495
497
|
friendlyName?: string;
|
|
496
498
|
/** The fully-qualified, unique, opaque ID of the dataset. */
|
|
@@ -783,6 +785,18 @@ declare namespace gapi.client {
|
|
|
783
785
|
/** Required. External source that backs this dataset. */
|
|
784
786
|
externalSource?: string;
|
|
785
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
|
+
}
|
|
786
800
|
interface ExternalServiceCost {
|
|
787
801
|
/** External service cost in terms of bigquery bytes billed. */
|
|
788
802
|
bytesBilled?: string;
|
|
@@ -1016,7 +1030,7 @@ declare namespace gapi.client {
|
|
|
1016
1030
|
etag?: string;
|
|
1017
1031
|
/** Output only. Opaque ID field of the job. */
|
|
1018
1032
|
id?: string;
|
|
1019
|
-
/** Output only. The reason why a Job was created.
|
|
1033
|
+
/** Output only. The reason why a Job was created. */
|
|
1020
1034
|
jobCreationReason?: JobCreationReason;
|
|
1021
1035
|
/** Optional. Reference describing the unique-per-user name of the job. */
|
|
1022
1036
|
jobReference?: JobReference;
|
|
@@ -1168,7 +1182,7 @@ declare namespace gapi.client {
|
|
|
1168
1182
|
timeZone?: string;
|
|
1169
1183
|
/** Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */
|
|
1170
1184
|
useAvroLogicalTypes?: boolean;
|
|
1171
|
-
/** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
|
|
1185
|
+
/** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints and uses the schema from the load job. * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the data, but keeps the constraints and schema of the existing table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
|
|
1172
1186
|
writeDisposition?: string;
|
|
1173
1187
|
}
|
|
1174
1188
|
interface JobConfigurationQuery {
|
|
@@ -1224,7 +1238,7 @@ declare namespace gapi.client {
|
|
|
1224
1238
|
useQueryCache?: boolean;
|
|
1225
1239
|
/** Describes user-defined function resources used in the query. */
|
|
1226
1240
|
userDefinedFunctionResources?: UserDefinedFunctionResource[];
|
|
1227
|
-
/** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
|
|
1241
|
+
/** Optional. Specifies the action that occurs if the destination table already exists. The following values are supported: * WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result. * WRITE_TRUNCATE_DATA: If the table already exists, BigQuery overwrites the data, but keeps the constraints and schema of the existing table. * WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result. The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion. */
|
|
1228
1242
|
writeDisposition?: string;
|
|
1229
1243
|
/** Optional. This is only supported for a SELECT query using a temporary table. If set, the query is allowed to write results incrementally to the temporary result table. This may incur a performance penalty. This option cannot be used with Legacy SQL. This feature is not yet available. */
|
|
1230
1244
|
writeIncrementalResults?: boolean;
|
|
@@ -1737,6 +1751,12 @@ declare namespace gapi.client {
|
|
|
1737
1751
|
/** Required. ID of the project. Can be either the numeric ID or the assigned ID of the project. */
|
|
1738
1752
|
projectId?: string;
|
|
1739
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
|
+
}
|
|
1740
1760
|
interface QueryInfo {
|
|
1741
1761
|
/** Output only. Information about query optimizations. */
|
|
1742
1762
|
optimizationDetails?: {[P in string]: any};
|
|
@@ -1791,7 +1811,7 @@ declare namespace gapi.client {
|
|
|
1791
1811
|
dryRun?: boolean;
|
|
1792
1812
|
/** Optional. Output format adjustments. */
|
|
1793
1813
|
formatOptions?: DataFormatOptions;
|
|
1794
|
-
/** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode.
|
|
1814
|
+
/** Optional. If not set, jobs are always required. If set, the query request will follow the behavior described JobCreationMode. */
|
|
1795
1815
|
jobCreationMode?: string;
|
|
1796
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. */
|
|
1797
1817
|
jobTimeoutMs?: string;
|
|
@@ -1839,7 +1859,7 @@ declare namespace gapi.client {
|
|
|
1839
1859
|
errors?: ErrorProto[];
|
|
1840
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. */
|
|
1841
1861
|
jobComplete?: boolean;
|
|
1842
|
-
/** 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.
|
|
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. */
|
|
1843
1863
|
jobCreationReason?: JobCreationReason;
|
|
1844
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. */
|
|
1845
1865
|
jobReference?: JobReference;
|
|
@@ -1851,7 +1871,7 @@ declare namespace gapi.client {
|
|
|
1851
1871
|
numDmlAffectedRows?: string;
|
|
1852
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). */
|
|
1853
1873
|
pageToken?: string;
|
|
1854
|
-
/** Auto-generated ID for the query.
|
|
1874
|
+
/** Auto-generated ID for the query. */
|
|
1855
1875
|
queryId?: string;
|
|
1856
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. */
|
|
1857
1877
|
rows?: TableRow[];
|
|
@@ -1970,12 +1990,16 @@ declare namespace gapi.client {
|
|
|
1970
1990
|
determinismLevel?: string;
|
|
1971
1991
|
/** Output only. A hash of this resource. */
|
|
1972
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;
|
|
1973
1995
|
/** Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries. */
|
|
1974
1996
|
importedLibraries?: string[];
|
|
1975
1997
|
/** Optional. Defaults to "SQL" if remote_function_options field is absent, not set otherwise. */
|
|
1976
1998
|
language?: string;
|
|
1977
1999
|
/** Output only. The time when this routine was last modified, in milliseconds since the epoch. */
|
|
1978
2000
|
lastModifiedTime?: string;
|
|
2001
|
+
/** Optional. Options for Python UDF. [Preview](https://cloud.google.com/products/#product-launch-stages) */
|
|
2002
|
+
pythonOptions?: PythonOptions;
|
|
1979
2003
|
/** Optional. Remote function specific options. */
|
|
1980
2004
|
remoteFunctionOptions?: RemoteFunctionOptions;
|
|
1981
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. */
|
|
@@ -3905,6 +3929,36 @@ declare namespace gapi.client {
|
|
|
3905
3929
|
},
|
|
3906
3930
|
body: SetIamPolicyRequest,
|
|
3907
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>;
|
|
3908
3962
|
/** Updates information in an existing routine. The update method replaces the entire Routine resource. */
|
|
3909
3963
|
update(request: {
|
|
3910
3964
|
/** V1 error format. */
|
package/package.json
CHANGED
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
|
*/
|