@maxim_mazurok/gapi.client.bigquery-v2 0.0.20250112 → 0.0.20250128
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 +326 -22
- package/package.json +1 -1
- package/readme.md +50 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
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: 20250128
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load BigQuery API v2 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://bigquery.googleapis.com/$discovery/rest?version=v2'
|
|
19
|
+
urlOrObject: 'https://bigquery.googleapis.com/$discovery/rest?version=v2',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'bigquery', version: 'v2'): Promise<void>;
|
|
@@ -160,6 +160,12 @@ declare namespace gapi.client {
|
|
|
160
160
|
/** 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). */
|
|
161
161
|
useAvroLogicalTypes?: boolean;
|
|
162
162
|
}
|
|
163
|
+
interface BatchDeleteRowAccessPoliciesRequest {
|
|
164
|
+
/** If set to true, it deletes the row access policy even if it's the last row access policy on the table and the deletion will widen the access rather narrowing it. */
|
|
165
|
+
force?: boolean;
|
|
166
|
+
/** Required. Policy IDs of the row access policies. */
|
|
167
|
+
policyIds?: string[];
|
|
168
|
+
}
|
|
163
169
|
interface BiEngineReason {
|
|
164
170
|
/** Output only. High-level BI Engine reason for partial or disabled acceleration */
|
|
165
171
|
code?: string;
|
|
@@ -1190,6 +1196,8 @@ declare namespace gapi.client {
|
|
|
1190
1196
|
userDefinedFunctionResources?: UserDefinedFunctionResource[];
|
|
1191
1197
|
/** 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. */
|
|
1192
1198
|
writeDisposition?: string;
|
|
1199
|
+
/** 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. */
|
|
1200
|
+
writeIncrementalResults?: boolean;
|
|
1193
1201
|
}
|
|
1194
1202
|
interface JobConfigurationTableCopy {
|
|
1195
1203
|
/** 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. */
|
|
@@ -1779,6 +1787,8 @@ declare namespace gapi.client {
|
|
|
1779
1787
|
useLegacySql?: boolean;
|
|
1780
1788
|
/** Optional. Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. The default value is true. */
|
|
1781
1789
|
useQueryCache?: boolean;
|
|
1790
|
+
/** Optional. This is only supported for SELECT query. 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. */
|
|
1791
|
+
writeIncrementalResults?: boolean;
|
|
1782
1792
|
}
|
|
1783
1793
|
interface QueryResponse {
|
|
1784
1794
|
/** Whether the query result was fetched from the query cache. */
|
|
@@ -1966,6 +1976,8 @@ declare namespace gapi.client {
|
|
|
1966
1976
|
etag?: string;
|
|
1967
1977
|
/** Required. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0 */
|
|
1968
1978
|
filterPredicate?: string;
|
|
1979
|
+
/** Optional. Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types: - "user:alice@example.com": An email address that represents a specific Google account. - "serviceAccount:my-other-app@appspot.gserviceaccount.com": An email address that represents a service account. - "group:admins@example.com": An email address that represents a Google group. - "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain. - "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included. - "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users. */
|
|
1980
|
+
grantees?: string[];
|
|
1969
1981
|
/** Output only. The time when this row access policy was last modified, in milliseconds since the epoch. */
|
|
1970
1982
|
lastModifiedTime?: string;
|
|
1971
1983
|
/** Required. Reference describing the ID of this row access policy. */
|
|
@@ -2143,6 +2155,22 @@ declare namespace gapi.client {
|
|
|
2143
2155
|
/** Optional. Serializer and deserializer information. */
|
|
2144
2156
|
serdeInfo?: SerDeInfo;
|
|
2145
2157
|
}
|
|
2158
|
+
interface StoredColumnsUnusedReason {
|
|
2159
|
+
/** Specifies the high-level reason for the unused scenario, each reason must have a code associated. */
|
|
2160
|
+
code?: string;
|
|
2161
|
+
/** Specifies the detailed description for the scenario. */
|
|
2162
|
+
message?: string;
|
|
2163
|
+
/** Specifies which columns were not covered by the stored columns for the specified code up to 20 columns. This is populated when the code is STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS. */
|
|
2164
|
+
uncoveredColumns?: string[];
|
|
2165
|
+
}
|
|
2166
|
+
interface StoredColumnsUsage {
|
|
2167
|
+
/** Specifies the base table. */
|
|
2168
|
+
baseTable?: TableReference;
|
|
2169
|
+
/** Specifies whether the query was accelerated with stored columns. */
|
|
2170
|
+
isQueryAccelerated?: boolean;
|
|
2171
|
+
/** If stored columns were not used, explain why. */
|
|
2172
|
+
storedColumnsUnusedReasons?: StoredColumnsUnusedReason[];
|
|
2173
|
+
}
|
|
2146
2174
|
interface Streamingbuffer {
|
|
2147
2175
|
/** Output only. A lower-bound estimate of the number of bytes currently in the streaming buffer. */
|
|
2148
2176
|
estimatedBytes?: string;
|
|
@@ -2545,6 +2573,10 @@ declare namespace gapi.client {
|
|
|
2545
2573
|
feedbackType?: string;
|
|
2546
2574
|
/** Whether the model should include intercept during model training. */
|
|
2547
2575
|
fitIntercept?: boolean;
|
|
2576
|
+
/** The forecast limit lower bound that was used during ARIMA model training with limits. To see more details of the algorithm: https://otexts.com/fpp2/limits.html */
|
|
2577
|
+
forecastLimitLowerBound?: number;
|
|
2578
|
+
/** The forecast limit upper bound that was used during ARIMA model training with limits. */
|
|
2579
|
+
forecastLimitUpperBound?: number;
|
|
2548
2580
|
/** Hidden units for dnn models. */
|
|
2549
2581
|
hiddenUnits?: string[];
|
|
2550
2582
|
/** The geographical region based on which the holidays are considered in time series modeling. If a valid value is specified, then holiday effects modeling is enabled. */
|
|
@@ -2713,6 +2745,8 @@ declare namespace gapi.client {
|
|
|
2713
2745
|
indexUnusedReasons?: IndexUnusedReason[];
|
|
2714
2746
|
/** Specifies the index usage mode for the query. */
|
|
2715
2747
|
indexUsageMode?: string;
|
|
2748
|
+
/** Specifies the usage of stored columns in the query when stored columns are used in the query. */
|
|
2749
|
+
storedColumnsUsages?: StoredColumnsUsage[];
|
|
2716
2750
|
}
|
|
2717
2751
|
interface ViewDefinition {
|
|
2718
2752
|
/** Optional. Foreign view representations. */
|
|
@@ -2853,7 +2887,7 @@ declare namespace gapi.client {
|
|
|
2853
2887
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2854
2888
|
uploadType?: string;
|
|
2855
2889
|
},
|
|
2856
|
-
body: Dataset
|
|
2890
|
+
body: Dataset,
|
|
2857
2891
|
): Request<Dataset>;
|
|
2858
2892
|
/** Lists all datasets in the specified project to which the user has been granted the READER dataset role. */
|
|
2859
2893
|
list(request?: {
|
|
@@ -2954,7 +2988,7 @@ declare namespace gapi.client {
|
|
|
2954
2988
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2955
2989
|
uploadType?: string;
|
|
2956
2990
|
},
|
|
2957
|
-
body: Dataset
|
|
2991
|
+
body: Dataset,
|
|
2958
2992
|
): Request<Dataset>;
|
|
2959
2993
|
/** Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. */
|
|
2960
2994
|
undelete(request: {
|
|
@@ -3016,7 +3050,7 @@ declare namespace gapi.client {
|
|
|
3016
3050
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3017
3051
|
uploadType?: string;
|
|
3018
3052
|
},
|
|
3019
|
-
body: UndeleteDatasetRequest
|
|
3053
|
+
body: UndeleteDatasetRequest,
|
|
3020
3054
|
): Request<Dataset>;
|
|
3021
3055
|
/** Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. */
|
|
3022
3056
|
update(request: {
|
|
@@ -3082,7 +3116,7 @@ declare namespace gapi.client {
|
|
|
3082
3116
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3083
3117
|
uploadType?: string;
|
|
3084
3118
|
},
|
|
3085
|
-
body: Dataset
|
|
3119
|
+
body: Dataset,
|
|
3086
3120
|
): Request<Dataset>;
|
|
3087
3121
|
}
|
|
3088
3122
|
interface JobsResource {
|
|
@@ -3276,7 +3310,7 @@ declare namespace gapi.client {
|
|
|
3276
3310
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3277
3311
|
uploadType?: string;
|
|
3278
3312
|
},
|
|
3279
|
-
body: Job
|
|
3313
|
+
body: Job,
|
|
3280
3314
|
): Request<Job>;
|
|
3281
3315
|
/** Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property. */
|
|
3282
3316
|
list(request?: {
|
|
@@ -3377,7 +3411,7 @@ declare namespace gapi.client {
|
|
|
3377
3411
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3378
3412
|
uploadType?: string;
|
|
3379
3413
|
},
|
|
3380
|
-
body: QueryRequest
|
|
3414
|
+
body: QueryRequest,
|
|
3381
3415
|
): Request<QueryResponse>;
|
|
3382
3416
|
}
|
|
3383
3417
|
interface ModelsResource {
|
|
@@ -3540,7 +3574,7 @@ declare namespace gapi.client {
|
|
|
3540
3574
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3541
3575
|
uploadType?: string;
|
|
3542
3576
|
},
|
|
3543
|
-
body: Model
|
|
3577
|
+
body: Model,
|
|
3544
3578
|
): Request<Model>;
|
|
3545
3579
|
}
|
|
3546
3580
|
interface ProjectsResource {
|
|
@@ -3694,7 +3728,7 @@ declare namespace gapi.client {
|
|
|
3694
3728
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3695
3729
|
uploadType?: string;
|
|
3696
3730
|
},
|
|
3697
|
-
body: GetIamPolicyRequest
|
|
3731
|
+
body: GetIamPolicyRequest,
|
|
3698
3732
|
): Request<Policy>;
|
|
3699
3733
|
/** Creates a new routine in the dataset. */
|
|
3700
3734
|
insert(request: {
|
|
@@ -3756,7 +3790,7 @@ declare namespace gapi.client {
|
|
|
3756
3790
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3757
3791
|
uploadType?: string;
|
|
3758
3792
|
},
|
|
3759
|
-
body: Routine
|
|
3793
|
+
body: Routine,
|
|
3760
3794
|
): Request<Routine>;
|
|
3761
3795
|
/** Lists all routines in the specified dataset. Requires the READER dataset role. */
|
|
3762
3796
|
list(request?: {
|
|
@@ -3823,7 +3857,7 @@ declare namespace gapi.client {
|
|
|
3823
3857
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3824
3858
|
uploadType?: string;
|
|
3825
3859
|
},
|
|
3826
|
-
body: SetIamPolicyRequest
|
|
3860
|
+
body: SetIamPolicyRequest,
|
|
3827
3861
|
): Request<Policy>;
|
|
3828
3862
|
/** Updates information in an existing routine. The update method replaces the entire Routine resource. */
|
|
3829
3863
|
update(request: {
|
|
@@ -3889,10 +3923,144 @@ declare namespace gapi.client {
|
|
|
3889
3923
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3890
3924
|
uploadType?: string;
|
|
3891
3925
|
},
|
|
3892
|
-
body: Routine
|
|
3926
|
+
body: Routine,
|
|
3893
3927
|
): Request<Routine>;
|
|
3894
3928
|
}
|
|
3895
3929
|
interface RowAccessPoliciesResource {
|
|
3930
|
+
/** Deletes provided row access policies. */
|
|
3931
|
+
batchDelete(request: {
|
|
3932
|
+
/** V1 error format. */
|
|
3933
|
+
'$.xgafv'?: string;
|
|
3934
|
+
/** OAuth access token. */
|
|
3935
|
+
access_token?: string;
|
|
3936
|
+
/** Data format for response. */
|
|
3937
|
+
alt?: string;
|
|
3938
|
+
/** JSONP */
|
|
3939
|
+
callback?: string;
|
|
3940
|
+
/** Required. Dataset ID of the table to delete the row access policies. */
|
|
3941
|
+
datasetId: string;
|
|
3942
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3943
|
+
fields?: string;
|
|
3944
|
+
/** 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. */
|
|
3945
|
+
key?: string;
|
|
3946
|
+
/** OAuth 2.0 token for the current user. */
|
|
3947
|
+
oauth_token?: string;
|
|
3948
|
+
/** Returns response with indentations and line breaks. */
|
|
3949
|
+
prettyPrint?: boolean;
|
|
3950
|
+
/** Required. Project ID of the table to delete the row access policies. */
|
|
3951
|
+
projectId: string;
|
|
3952
|
+
/** 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. */
|
|
3953
|
+
quotaUser?: string;
|
|
3954
|
+
/** Required. Table ID of the table to delete the row access policies. */
|
|
3955
|
+
tableId: string;
|
|
3956
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3957
|
+
upload_protocol?: string;
|
|
3958
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3959
|
+
uploadType?: string;
|
|
3960
|
+
/** Request body */
|
|
3961
|
+
resource: BatchDeleteRowAccessPoliciesRequest;
|
|
3962
|
+
}): Request<void>;
|
|
3963
|
+
batchDelete(
|
|
3964
|
+
request: {
|
|
3965
|
+
/** V1 error format. */
|
|
3966
|
+
'$.xgafv'?: string;
|
|
3967
|
+
/** OAuth access token. */
|
|
3968
|
+
access_token?: string;
|
|
3969
|
+
/** Data format for response. */
|
|
3970
|
+
alt?: string;
|
|
3971
|
+
/** JSONP */
|
|
3972
|
+
callback?: string;
|
|
3973
|
+
/** Required. Dataset ID of the table to delete the row access policies. */
|
|
3974
|
+
datasetId: string;
|
|
3975
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3976
|
+
fields?: string;
|
|
3977
|
+
/** 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. */
|
|
3978
|
+
key?: string;
|
|
3979
|
+
/** OAuth 2.0 token for the current user. */
|
|
3980
|
+
oauth_token?: string;
|
|
3981
|
+
/** Returns response with indentations and line breaks. */
|
|
3982
|
+
prettyPrint?: boolean;
|
|
3983
|
+
/** Required. Project ID of the table to delete the row access policies. */
|
|
3984
|
+
projectId: string;
|
|
3985
|
+
/** 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. */
|
|
3986
|
+
quotaUser?: string;
|
|
3987
|
+
/** Required. Table ID of the table to delete the row access policies. */
|
|
3988
|
+
tableId: string;
|
|
3989
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3990
|
+
upload_protocol?: string;
|
|
3991
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3992
|
+
uploadType?: string;
|
|
3993
|
+
},
|
|
3994
|
+
body: BatchDeleteRowAccessPoliciesRequest,
|
|
3995
|
+
): Request<void>;
|
|
3996
|
+
/** Deletes a row access policy. */
|
|
3997
|
+
delete(request?: {
|
|
3998
|
+
/** V1 error format. */
|
|
3999
|
+
'$.xgafv'?: string;
|
|
4000
|
+
/** OAuth access token. */
|
|
4001
|
+
access_token?: string;
|
|
4002
|
+
/** Data format for response. */
|
|
4003
|
+
alt?: string;
|
|
4004
|
+
/** JSONP */
|
|
4005
|
+
callback?: string;
|
|
4006
|
+
/** Required. Dataset ID of the table to delete the row access policy. */
|
|
4007
|
+
datasetId: string;
|
|
4008
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4009
|
+
fields?: string;
|
|
4010
|
+
/** If set to true, it deletes the row access policy even if it's the last row access policy on the table and the deletion will widen the access rather narrowing it. */
|
|
4011
|
+
force?: boolean;
|
|
4012
|
+
/** 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. */
|
|
4013
|
+
key?: string;
|
|
4014
|
+
/** OAuth 2.0 token for the current user. */
|
|
4015
|
+
oauth_token?: string;
|
|
4016
|
+
/** Required. Policy ID of the row access policy. */
|
|
4017
|
+
policyId: string;
|
|
4018
|
+
/** Returns response with indentations and line breaks. */
|
|
4019
|
+
prettyPrint?: boolean;
|
|
4020
|
+
/** Required. Project ID of the table to delete the row access policy. */
|
|
4021
|
+
projectId: string;
|
|
4022
|
+
/** 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. */
|
|
4023
|
+
quotaUser?: string;
|
|
4024
|
+
/** Required. Table ID of the table to delete the row access policy. */
|
|
4025
|
+
tableId: string;
|
|
4026
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4027
|
+
upload_protocol?: string;
|
|
4028
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4029
|
+
uploadType?: string;
|
|
4030
|
+
}): Request<void>;
|
|
4031
|
+
/** Gets the specified row access policy by policy ID. */
|
|
4032
|
+
get(request?: {
|
|
4033
|
+
/** V1 error format. */
|
|
4034
|
+
'$.xgafv'?: string;
|
|
4035
|
+
/** OAuth access token. */
|
|
4036
|
+
access_token?: string;
|
|
4037
|
+
/** Data format for response. */
|
|
4038
|
+
alt?: string;
|
|
4039
|
+
/** JSONP */
|
|
4040
|
+
callback?: string;
|
|
4041
|
+
/** Required. Dataset ID of the table to get the row access policy. */
|
|
4042
|
+
datasetId: string;
|
|
4043
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4044
|
+
fields?: string;
|
|
4045
|
+
/** 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. */
|
|
4046
|
+
key?: string;
|
|
4047
|
+
/** OAuth 2.0 token for the current user. */
|
|
4048
|
+
oauth_token?: string;
|
|
4049
|
+
/** Required. Policy ID of the row access policy. */
|
|
4050
|
+
policyId: string;
|
|
4051
|
+
/** Returns response with indentations and line breaks. */
|
|
4052
|
+
prettyPrint?: boolean;
|
|
4053
|
+
/** Required. Project ID of the table to get the row access policy. */
|
|
4054
|
+
projectId: string;
|
|
4055
|
+
/** 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. */
|
|
4056
|
+
quotaUser?: string;
|
|
4057
|
+
/** Required. Table ID of the table to get the row access policy. */
|
|
4058
|
+
tableId: string;
|
|
4059
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4060
|
+
upload_protocol?: string;
|
|
4061
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4062
|
+
uploadType?: string;
|
|
4063
|
+
}): Request<RowAccessPolicy>;
|
|
3896
4064
|
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
3897
4065
|
getIamPolicy(
|
|
3898
4066
|
request: {
|
|
@@ -3921,8 +4089,74 @@ declare namespace gapi.client {
|
|
|
3921
4089
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3922
4090
|
uploadType?: string;
|
|
3923
4091
|
},
|
|
3924
|
-
body: GetIamPolicyRequest
|
|
4092
|
+
body: GetIamPolicyRequest,
|
|
3925
4093
|
): Request<Policy>;
|
|
4094
|
+
/** Creates a row access policy. */
|
|
4095
|
+
insert(request: {
|
|
4096
|
+
/** V1 error format. */
|
|
4097
|
+
'$.xgafv'?: string;
|
|
4098
|
+
/** OAuth access token. */
|
|
4099
|
+
access_token?: string;
|
|
4100
|
+
/** Data format for response. */
|
|
4101
|
+
alt?: string;
|
|
4102
|
+
/** JSONP */
|
|
4103
|
+
callback?: string;
|
|
4104
|
+
/** Required. Dataset ID of the table to get the row access policy. */
|
|
4105
|
+
datasetId: string;
|
|
4106
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4107
|
+
fields?: string;
|
|
4108
|
+
/** 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. */
|
|
4109
|
+
key?: string;
|
|
4110
|
+
/** OAuth 2.0 token for the current user. */
|
|
4111
|
+
oauth_token?: string;
|
|
4112
|
+
/** Returns response with indentations and line breaks. */
|
|
4113
|
+
prettyPrint?: boolean;
|
|
4114
|
+
/** Required. Project ID of the table to get the row access policy. */
|
|
4115
|
+
projectId: string;
|
|
4116
|
+
/** 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. */
|
|
4117
|
+
quotaUser?: string;
|
|
4118
|
+
/** Required. Table ID of the table to get the row access policy. */
|
|
4119
|
+
tableId: string;
|
|
4120
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4121
|
+
upload_protocol?: string;
|
|
4122
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4123
|
+
uploadType?: string;
|
|
4124
|
+
/** Request body */
|
|
4125
|
+
resource: RowAccessPolicy;
|
|
4126
|
+
}): Request<RowAccessPolicy>;
|
|
4127
|
+
insert(
|
|
4128
|
+
request: {
|
|
4129
|
+
/** V1 error format. */
|
|
4130
|
+
'$.xgafv'?: string;
|
|
4131
|
+
/** OAuth access token. */
|
|
4132
|
+
access_token?: string;
|
|
4133
|
+
/** Data format for response. */
|
|
4134
|
+
alt?: string;
|
|
4135
|
+
/** JSONP */
|
|
4136
|
+
callback?: string;
|
|
4137
|
+
/** Required. Dataset ID of the table to get the row access policy. */
|
|
4138
|
+
datasetId: string;
|
|
4139
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4140
|
+
fields?: string;
|
|
4141
|
+
/** 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. */
|
|
4142
|
+
key?: string;
|
|
4143
|
+
/** OAuth 2.0 token for the current user. */
|
|
4144
|
+
oauth_token?: string;
|
|
4145
|
+
/** Returns response with indentations and line breaks. */
|
|
4146
|
+
prettyPrint?: boolean;
|
|
4147
|
+
/** Required. Project ID of the table to get the row access policy. */
|
|
4148
|
+
projectId: string;
|
|
4149
|
+
/** 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. */
|
|
4150
|
+
quotaUser?: string;
|
|
4151
|
+
/** Required. Table ID of the table to get the row access policy. */
|
|
4152
|
+
tableId: string;
|
|
4153
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4154
|
+
upload_protocol?: string;
|
|
4155
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4156
|
+
uploadType?: string;
|
|
4157
|
+
},
|
|
4158
|
+
body: RowAccessPolicy,
|
|
4159
|
+
): Request<RowAccessPolicy>;
|
|
3926
4160
|
/** Lists all row access policies on the specified table. */
|
|
3927
4161
|
list(request?: {
|
|
3928
4162
|
/** V1 error format. */
|
|
@@ -3986,8 +4220,78 @@ declare namespace gapi.client {
|
|
|
3986
4220
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3987
4221
|
uploadType?: string;
|
|
3988
4222
|
},
|
|
3989
|
-
body: TestIamPermissionsRequest
|
|
4223
|
+
body: TestIamPermissionsRequest,
|
|
3990
4224
|
): Request<TestIamPermissionsResponse>;
|
|
4225
|
+
/** Updates a row access policy. */
|
|
4226
|
+
update(request: {
|
|
4227
|
+
/** V1 error format. */
|
|
4228
|
+
'$.xgafv'?: string;
|
|
4229
|
+
/** OAuth access token. */
|
|
4230
|
+
access_token?: string;
|
|
4231
|
+
/** Data format for response. */
|
|
4232
|
+
alt?: string;
|
|
4233
|
+
/** JSONP */
|
|
4234
|
+
callback?: string;
|
|
4235
|
+
/** Required. Dataset ID of the table to get the row access policy. */
|
|
4236
|
+
datasetId: string;
|
|
4237
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4238
|
+
fields?: string;
|
|
4239
|
+
/** 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. */
|
|
4240
|
+
key?: string;
|
|
4241
|
+
/** OAuth 2.0 token for the current user. */
|
|
4242
|
+
oauth_token?: string;
|
|
4243
|
+
/** Required. Policy ID of the row access policy. */
|
|
4244
|
+
policyId: string;
|
|
4245
|
+
/** Returns response with indentations and line breaks. */
|
|
4246
|
+
prettyPrint?: boolean;
|
|
4247
|
+
/** Required. Project ID of the table to get the row access policy. */
|
|
4248
|
+
projectId: string;
|
|
4249
|
+
/** 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. */
|
|
4250
|
+
quotaUser?: string;
|
|
4251
|
+
/** Required. Table ID of the table to get the row access policy. */
|
|
4252
|
+
tableId: string;
|
|
4253
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4254
|
+
upload_protocol?: string;
|
|
4255
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4256
|
+
uploadType?: string;
|
|
4257
|
+
/** Request body */
|
|
4258
|
+
resource: RowAccessPolicy;
|
|
4259
|
+
}): Request<RowAccessPolicy>;
|
|
4260
|
+
update(
|
|
4261
|
+
request: {
|
|
4262
|
+
/** V1 error format. */
|
|
4263
|
+
'$.xgafv'?: string;
|
|
4264
|
+
/** OAuth access token. */
|
|
4265
|
+
access_token?: string;
|
|
4266
|
+
/** Data format for response. */
|
|
4267
|
+
alt?: string;
|
|
4268
|
+
/** JSONP */
|
|
4269
|
+
callback?: string;
|
|
4270
|
+
/** Required. Dataset ID of the table to get the row access policy. */
|
|
4271
|
+
datasetId: string;
|
|
4272
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4273
|
+
fields?: string;
|
|
4274
|
+
/** 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. */
|
|
4275
|
+
key?: string;
|
|
4276
|
+
/** OAuth 2.0 token for the current user. */
|
|
4277
|
+
oauth_token?: string;
|
|
4278
|
+
/** Required. Policy ID of the row access policy. */
|
|
4279
|
+
policyId: string;
|
|
4280
|
+
/** Returns response with indentations and line breaks. */
|
|
4281
|
+
prettyPrint?: boolean;
|
|
4282
|
+
/** Required. Project ID of the table to get the row access policy. */
|
|
4283
|
+
projectId: string;
|
|
4284
|
+
/** 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. */
|
|
4285
|
+
quotaUser?: string;
|
|
4286
|
+
/** Required. Table ID of the table to get the row access policy. */
|
|
4287
|
+
tableId: string;
|
|
4288
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4289
|
+
upload_protocol?: string;
|
|
4290
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4291
|
+
uploadType?: string;
|
|
4292
|
+
},
|
|
4293
|
+
body: RowAccessPolicy,
|
|
4294
|
+
): Request<RowAccessPolicy>;
|
|
3991
4295
|
}
|
|
3992
4296
|
interface TabledataResource {
|
|
3993
4297
|
/** Streams data into BigQuery one record at a time without needing to run a load job. */
|
|
@@ -4054,7 +4358,7 @@ declare namespace gapi.client {
|
|
|
4054
4358
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4055
4359
|
uploadType?: string;
|
|
4056
4360
|
},
|
|
4057
|
-
body: TableDataInsertAllRequest
|
|
4361
|
+
body: TableDataInsertAllRequest,
|
|
4058
4362
|
): Request<TableDataInsertAllResponse>;
|
|
4059
4363
|
/** List the content of a table in rows. */
|
|
4060
4364
|
list(request?: {
|
|
@@ -4193,7 +4497,7 @@ declare namespace gapi.client {
|
|
|
4193
4497
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4194
4498
|
uploadType?: string;
|
|
4195
4499
|
},
|
|
4196
|
-
body: GetIamPolicyRequest
|
|
4500
|
+
body: GetIamPolicyRequest,
|
|
4197
4501
|
): Request<Policy>;
|
|
4198
4502
|
/** Creates a new, empty table in the dataset. */
|
|
4199
4503
|
insert(request: {
|
|
@@ -4255,7 +4559,7 @@ declare namespace gapi.client {
|
|
|
4255
4559
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4256
4560
|
uploadType?: string;
|
|
4257
4561
|
},
|
|
4258
|
-
body: Table
|
|
4562
|
+
body: Table,
|
|
4259
4563
|
): Request<Table>;
|
|
4260
4564
|
/** Lists all tables in the specified dataset. Requires the READER dataset role. */
|
|
4261
4565
|
list(request?: {
|
|
@@ -4358,7 +4662,7 @@ declare namespace gapi.client {
|
|
|
4358
4662
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4359
4663
|
uploadType?: string;
|
|
4360
4664
|
},
|
|
4361
|
-
body: Table
|
|
4665
|
+
body: Table,
|
|
4362
4666
|
): Request<Table>;
|
|
4363
4667
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
4364
4668
|
setIamPolicy(
|
|
@@ -4388,7 +4692,7 @@ declare namespace gapi.client {
|
|
|
4388
4692
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4389
4693
|
uploadType?: string;
|
|
4390
4694
|
},
|
|
4391
|
-
body: SetIamPolicyRequest
|
|
4695
|
+
body: SetIamPolicyRequest,
|
|
4392
4696
|
): Request<Policy>;
|
|
4393
4697
|
/** 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. */
|
|
4394
4698
|
testIamPermissions(
|
|
@@ -4418,7 +4722,7 @@ declare namespace gapi.client {
|
|
|
4418
4722
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4419
4723
|
uploadType?: string;
|
|
4420
4724
|
},
|
|
4421
|
-
body: TestIamPermissionsRequest
|
|
4725
|
+
body: TestIamPermissionsRequest,
|
|
4422
4726
|
): Request<TestIamPermissionsResponse>;
|
|
4423
4727
|
/** Updates information in an existing table. The update method replaces the entire Table resource, whereas the patch method only replaces fields that are provided in the submitted Table resource. */
|
|
4424
4728
|
update(request: {
|
|
@@ -4488,7 +4792,7 @@ declare namespace gapi.client {
|
|
|
4488
4792
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4489
4793
|
uploadType?: string;
|
|
4490
4794
|
},
|
|
4491
|
-
body: Table
|
|
4795
|
+
body: Table,
|
|
4492
4796
|
): Request<Table>;
|
|
4493
4797
|
}
|
|
4494
4798
|
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -30,7 +30,7 @@ gapi.client.load(
|
|
|
30
30
|
() => {
|
|
31
31
|
// now we can use:
|
|
32
32
|
// gapi.client.bigquery
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
34
|
);
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -80,7 +80,7 @@ gapi.auth.authorize(
|
|
|
80
80
|
} else {
|
|
81
81
|
/* handle authorization error */
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
84
|
);
|
|
85
85
|
```
|
|
86
86
|
|
|
@@ -279,6 +279,35 @@ await gapi.client.bigquery.routines.update({
|
|
|
279
279
|
routineId: 'routineId',
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
+
/*
|
|
283
|
+
Deletes provided row access policies.
|
|
284
|
+
*/
|
|
285
|
+
await gapi.client.bigquery.rowAccessPolicies.batchDelete({
|
|
286
|
+
datasetId: 'datasetId',
|
|
287
|
+
projectId: 'projectId',
|
|
288
|
+
tableId: 'tableId',
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
/*
|
|
292
|
+
Deletes a row access policy.
|
|
293
|
+
*/
|
|
294
|
+
await gapi.client.bigquery.rowAccessPolicies.delete({
|
|
295
|
+
datasetId: 'datasetId',
|
|
296
|
+
policyId: 'policyId',
|
|
297
|
+
projectId: 'projectId',
|
|
298
|
+
tableId: 'tableId',
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
/*
|
|
302
|
+
Gets the specified row access policy by policy ID.
|
|
303
|
+
*/
|
|
304
|
+
await gapi.client.bigquery.rowAccessPolicies.get({
|
|
305
|
+
datasetId: 'datasetId',
|
|
306
|
+
policyId: 'policyId',
|
|
307
|
+
projectId: 'projectId',
|
|
308
|
+
tableId: 'tableId',
|
|
309
|
+
});
|
|
310
|
+
|
|
282
311
|
/*
|
|
283
312
|
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
|
|
284
313
|
*/
|
|
@@ -286,6 +315,15 @@ await gapi.client.bigquery.rowAccessPolicies.getIamPolicy({
|
|
|
286
315
|
resource: 'resource',
|
|
287
316
|
});
|
|
288
317
|
|
|
318
|
+
/*
|
|
319
|
+
Creates a row access policy.
|
|
320
|
+
*/
|
|
321
|
+
await gapi.client.bigquery.rowAccessPolicies.insert({
|
|
322
|
+
datasetId: 'datasetId',
|
|
323
|
+
projectId: 'projectId',
|
|
324
|
+
tableId: 'tableId',
|
|
325
|
+
});
|
|
326
|
+
|
|
289
327
|
/*
|
|
290
328
|
Lists all row access policies on the specified table.
|
|
291
329
|
*/
|
|
@@ -302,6 +340,16 @@ await gapi.client.bigquery.rowAccessPolicies.testIamPermissions({
|
|
|
302
340
|
resource: 'resource',
|
|
303
341
|
});
|
|
304
342
|
|
|
343
|
+
/*
|
|
344
|
+
Updates a row access policy.
|
|
345
|
+
*/
|
|
346
|
+
await gapi.client.bigquery.rowAccessPolicies.update({
|
|
347
|
+
datasetId: 'datasetId',
|
|
348
|
+
policyId: 'policyId',
|
|
349
|
+
projectId: 'projectId',
|
|
350
|
+
tableId: 'tableId',
|
|
351
|
+
});
|
|
352
|
+
|
|
305
353
|
/*
|
|
306
354
|
Streams data into BigQuery one record at a time without needing to run a load job.
|
|
307
355
|
*/
|