@maxim_mazurok/gapi.client.bigquery-v2 0.0.20230708 → 0.0.20230715
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 +18 -32
- package/package.json +1 -1
- package/readme.md +0 -5
- package/tests.ts +19 -38
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: 20230715
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -2352,6 +2352,12 @@ declare namespace gapi.client {
|
|
|
2352
2352
|
/** Information for all training runs in increasing order of start_time. */
|
|
2353
2353
|
trainingRuns?:
|
|
2354
2354
|
TrainingRun[];
|
|
2355
|
+
/**
|
|
2356
|
+
* Output only. This field will be populated if a TRANSFORM clause was used to train a model. TRANSFORM clause (if used) takes feature_columns as input and outputs transform_columns.
|
|
2357
|
+
* transform_columns then are used to train the model.
|
|
2358
|
+
*/
|
|
2359
|
+
transformColumns?:
|
|
2360
|
+
TransformColumn[];
|
|
2355
2361
|
}
|
|
2356
2362
|
interface ModelDefinition {
|
|
2357
2363
|
/**
|
|
@@ -3830,6 +3836,17 @@ declare namespace gapi.client {
|
|
|
3830
3836
|
transactionId?:
|
|
3831
3837
|
string;
|
|
3832
3838
|
}
|
|
3839
|
+
interface TransformColumn {
|
|
3840
|
+
/** Output only. Name of the column. */
|
|
3841
|
+
name?:
|
|
3842
|
+
string;
|
|
3843
|
+
/** Output only. The SQL expression used in the column transform. */
|
|
3844
|
+
transformSql?:
|
|
3845
|
+
string;
|
|
3846
|
+
/** Output only. Data type of the column after the transform. */
|
|
3847
|
+
type?:
|
|
3848
|
+
StandardSqlDataType;
|
|
3849
|
+
}
|
|
3833
3850
|
interface UserDefinedFunctionResource {
|
|
3834
3851
|
/**
|
|
3835
3852
|
* [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same
|
|
@@ -5043,37 +5060,6 @@ declare namespace gapi.client {
|
|
|
5043
5060
|
userIp?:
|
|
5044
5061
|
string;
|
|
5045
5062
|
}): Request<ListRowAccessPoliciesResponse>;
|
|
5046
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
5047
|
-
setIamPolicy(request: {
|
|
5048
|
-
/** Data format for the response. */
|
|
5049
|
-
alt?:
|
|
5050
|
-
string;
|
|
5051
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
5052
|
-
fields?:
|
|
5053
|
-
string;
|
|
5054
|
-
/** 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. */
|
|
5055
|
-
key?:
|
|
5056
|
-
string;
|
|
5057
|
-
/** OAuth 2.0 token for the current user. */
|
|
5058
|
-
oauth_token?:
|
|
5059
|
-
string;
|
|
5060
|
-
/** Returns response with indentations and line breaks. */
|
|
5061
|
-
prettyPrint?:
|
|
5062
|
-
boolean;
|
|
5063
|
-
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
5064
|
-
quotaUser?:
|
|
5065
|
-
string;
|
|
5066
|
-
/**
|
|
5067
|
-
* 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
|
|
5068
|
-
* field.
|
|
5069
|
-
*/
|
|
5070
|
-
resource:
|
|
5071
|
-
string;
|
|
5072
|
-
/** Deprecated. Please use quotaUser instead. */
|
|
5073
|
-
userIp?:
|
|
5074
|
-
string;
|
|
5075
|
-
},
|
|
5076
|
-
body: SetIamPolicyRequest): Request<Policy>;
|
|
5077
5063
|
/**
|
|
5078
5064
|
* 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
|
|
5079
5065
|
* 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.
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -214,11 +214,6 @@ Lists all row access policies on the specified table.
|
|
|
214
214
|
*/
|
|
215
215
|
await gapi.client.bigquery.rowAccessPolicies.list({ datasetId: "datasetId", projectId: "projectId", tableId: "tableId", });
|
|
216
216
|
|
|
217
|
-
/*
|
|
218
|
-
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
|
219
|
-
*/
|
|
220
|
-
await gapi.client.bigquery.rowAccessPolicies.setIamPolicy({ resource: "resource", });
|
|
221
|
-
|
|
222
217
|
/*
|
|
223
218
|
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.
|
|
224
219
|
*/
|
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:
|
|
6
|
+
// Revision: 20230715
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -2040,6 +2040,24 @@ gapi.load('client', async () => {
|
|
|
2040
2040
|
vertexAiModelVersion: "Test string",
|
|
2041
2041
|
}
|
|
2042
2042
|
],
|
|
2043
|
+
transformColumns: [
|
|
2044
|
+
{
|
|
2045
|
+
name: "Test string",
|
|
2046
|
+
transformSql: "Test string",
|
|
2047
|
+
type: {
|
|
2048
|
+
arrayElementType: undefined,
|
|
2049
|
+
structType: {
|
|
2050
|
+
fields: [
|
|
2051
|
+
{
|
|
2052
|
+
name: "Test string",
|
|
2053
|
+
type: undefined,
|
|
2054
|
+
}
|
|
2055
|
+
],
|
|
2056
|
+
},
|
|
2057
|
+
typeKind: "Test string",
|
|
2058
|
+
},
|
|
2059
|
+
}
|
|
2060
|
+
],
|
|
2043
2061
|
});
|
|
2044
2062
|
/** Returns the email address of the service account for your project used for interactions with Google Cloud KMS. */
|
|
2045
2063
|
await gapi.client.bigquery.projects.getServiceAccount({
|
|
@@ -2285,43 +2303,6 @@ gapi.load('client', async () => {
|
|
|
2285
2303
|
projectId: "Test string",
|
|
2286
2304
|
tableId: "Test string",
|
|
2287
2305
|
});
|
|
2288
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
2289
|
-
await gapi.client.bigquery.rowAccessPolicies.setIamPolicy({
|
|
2290
|
-
resource: "Test string",
|
|
2291
|
-
}, {
|
|
2292
|
-
policy: {
|
|
2293
|
-
auditConfigs: [
|
|
2294
|
-
{
|
|
2295
|
-
auditLogConfigs: [
|
|
2296
|
-
{
|
|
2297
|
-
exemptedMembers: [
|
|
2298
|
-
"Test string"
|
|
2299
|
-
],
|
|
2300
|
-
logType: "Test string",
|
|
2301
|
-
}
|
|
2302
|
-
],
|
|
2303
|
-
service: "Test string",
|
|
2304
|
-
}
|
|
2305
|
-
],
|
|
2306
|
-
bindings: [
|
|
2307
|
-
{
|
|
2308
|
-
condition: {
|
|
2309
|
-
description: "Test string",
|
|
2310
|
-
expression: "Test string",
|
|
2311
|
-
location: "Test string",
|
|
2312
|
-
title: "Test string",
|
|
2313
|
-
},
|
|
2314
|
-
members: [
|
|
2315
|
-
"Test string"
|
|
2316
|
-
],
|
|
2317
|
-
role: "Test string",
|
|
2318
|
-
}
|
|
2319
|
-
],
|
|
2320
|
-
etag: "Test string",
|
|
2321
|
-
version: 42,
|
|
2322
|
-
},
|
|
2323
|
-
updateMask: "Test string",
|
|
2324
|
-
});
|
|
2325
2306
|
/**
|
|
2326
2307
|
* 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
|
|
2327
2308
|
* 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.
|