Skip to content

Commit a12b094

Browse files
authoredApr 1, 2020
feat: update types.d.ts (#667)
* Change triggered by none of the following: This git repo (https://github.com/googleapis/nodejs-bigquery.git) Git repo https://github.com/googleapis/synthtool.git * feat!: drop Node 8 from engines field (#662) 712b029 commit 712b029 Author: Steffany Brown <30247553+steffnay@users.noreply.github.com> Date: Mon Mar 30 12:59:52 2020 -0700 feat!: drop Node 8 from engines field (#662) Drops Node 8 from the engines field. * refactor!: don't return Stream from createLoadJob (#647) 8e26fb5 commit 8e26fb5 Author: Andrew Zammit <zammit.andrew@gmail.com> Date: Mon Mar 30 21:58:06 2020 -0700 refactor!: don't return Stream from createLoadJob (#647) * fix!(table): createLoadJobStream sync returns a stream, createLoadJob always returns a job #640 * chore(table): remove createLoadJobStream, createLoadJob test refactor for promises #640 * chore(table): remove never encountered callback noop in createLoadJob given promisifyAll * test(biqquery): add tests to increase codecov as a result of #647 refactor Co-authored-by: Benjamin E. Coe <bencoe@google.com> Co-authored-by: Steffany Brown <30247553+steffnay@users.noreply.github.com> * chore: update dependency @google-cloud/common to v3 (#661) c61407e commit c61407e Author: WhiteSource Renovate <bot@renovateapp.com> Date: Tue Mar 31 19:27:51 2020 +0200 chore: update dependency @google-cloud/common to v3 (#661) * fix(deps): update dependency @google-cloud/paginator to v3 (#658) a09c493 commit a09c493 Author: WhiteSource Renovate <bot@renovateapp.com> Date: Tue Mar 31 19:38:07 2020 +0200 fix(deps): update dependency @google-cloud/paginator to v3 (#658) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@google-cloud/paginator](https://github.com/googleapis/nodejs-paginator) | dependencies | major | [`^2.0.0` -> `^3.0.0`](https://renovatebot.com/diffs/npm/@google-cloud%2fpaginator/2.0.3/3.0.0) | --- ### Release Notes <details> <summary>googleapis/nodejs-paginator</summary> ### [`v3.0.0`](https://github.com/googleapis/nodejs-paginator/blob/master/CHANGELOG.md#&#8203;300-httpswwwgithubcomgoogleapisnodejs-paginatorcomparev203v300-2020-03-25) [Compare Source](https://github.com/googleapis/nodejs-paginator/compare/v2.0.3...v3.0.0) ##### ⚠ BREAKING CHANGES - **dep:** upgrade gts 2.0.0 ([#&#8203;194](https://github.com/googleapis/nodejs-paginator/issues/194)) - **deps:** deprecated node 8 to 10; upgrade typescript ##### Miscellaneous Chores - **dep:** upgrade gts 2.0.0 ([#&#8203;194](https://github.com/googleapis/nodejs-paginator/issues/194)) ([4eaf9be](https://github.com/googleapis/nodejs-paginator/commit/4eaf9bed1fcfd0f10e877ff15c1d0e968e3356c8)) - **deps:** deprecated node 8 to 10; upgrade typescript ([f6434ab](https://github.com/googleapis/nodejs-paginator/commit/f6434ab9cacb6ab804c070f19c38b6072ca326b5)) ##### [2.0.3](https://github.com/googleapis/nodejs-paginator/compare/v2.0.2...v2.0.3) (2019-12-05) ##### Bug Fixes - **deps:** pin TypeScript below 3.7.0 ([e06e1b0](https://github.com/googleapis/nodejs-paginator/commit/e06e1b0a2e2bb1cf56fc806c1703b8b5e468b954)) ##### [2.0.2](https://github.com/googleapis/nodejs-paginator/compare/v2.0.1...v2.0.2) (2019-11-13) ##### Bug Fixes - **docs:** add jsdoc-region-tag plugin ([#&#8203;155](https://github.com/googleapis/nodejs-paginator/issues/155)) ([b983799](https://github.com/googleapis/nodejs-paginator/commit/b98379905848fd179c6268aff3e1cfaf2bf76663)) ##### [2.0.1](https://github.com/googleapis/nodejs-paginator/compare/v2.0.0...v2.0.1) (2019-08-25) ##### Bug Fixes - **deps:** use the latest extend ([#&#8203;141](https://github.com/googleapis/nodejs-paginator/issues/141)) ([61b383e](https://github.com/googleapis/nodejs-paginator/commit/61b383e)) </details> --- ### Renovate configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-bigquery). * fix(deps): update dependency @google-cloud/promisify to v2 (#657) 5d8112c commit 5d8112c Author: WhiteSource Renovate <bot@renovateapp.com> Date: Tue Mar 31 19:48:07 2020 +0200 fix(deps): update dependency @google-cloud/promisify to v2 (#657) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@google-cloud/promisify](https://github.com/googleapis/nodejs-promisify) | dependencies | major | [`^1.0.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/@google-cloud%2fpromisify/1.0.4/2.0.0) | --- ### Release Notes <details> <summary>googleapis/nodejs-promisify</summary> ### [`v2.0.0`](https://github.com/googleapis/nodejs-promisify/blob/master/CHANGELOG.md#&#8203;200-httpswwwgithubcomgoogleapisnodejs-promisifycomparev104v200-2020-03-23) [Compare Source](https://github.com/googleapis/nodejs-promisify/compare/v1.0.4...v2.0.0) ##### ⚠ BREAKING CHANGES - update to latest version of gts/typescript ([#&#8203;183](https://github.com/googleapis/nodejs-promisify/issues/183)) - drop Node 8 from engines field ([#&#8203;184](https://github.com/googleapis/nodejs-promisify/issues/184)) ##### Features - drop Node 8 from engines field ([#&#8203;184](https://github.com/googleapis/nodejs-promisify/issues/184)) ([7e6d3c5](https://github.com/googleapis/nodejs-promisify/commit/7e6d3c54066d89530ed25c7f9722efd252f43fb8)) ##### Build System - update to latest version of gts/typescript ([#&#8203;183](https://github.com/googleapis/nodejs-promisify/issues/183)) ([9c3ed12](https://github.com/googleapis/nodejs-promisify/commit/9c3ed12c12f4bb1e17af7440c6371c4cefddcd59)) ##### [1.0.4](https://github.com/googleapis/nodejs-promisify/compare/v1.0.3...v1.0.4) (2019-12-05) ##### Bug Fixes - **deps:** pin TypeScript below 3.7.0 ([e48750e](https://github.com/googleapis/nodejs-promisify/commit/e48750ef96aa20eb3a2b73fe2f062d04430468a7)) ##### [1.0.3](https://github.com/googleapis/nodejs-promisify/compare/v1.0.2...v1.0.3) (2019-11-13) ##### Bug Fixes - **docs:** add jsdoc-region-tag plugin ([#&#8203;146](https://github.com/googleapis/nodejs-promisify/issues/146)) ([ff0ee74](https://github.com/googleapis/nodejs-promisify/commit/ff0ee7408f50e8f7147b8ccf7e10337aa5920076)) ##### [1.0.2](https://github.com/googleapis/nodejs-promisify/compare/v1.0.1...v1.0.2) (2019-06-26) ##### Bug Fixes - **docs:** link to reference docs section on googleapis.dev ([#&#8203;128](https://github.com/googleapis/nodejs-promisify/issues/128)) ([5a8bd90](https://github.com/googleapis/nodejs-promisify/commit/5a8bd90)) ##### [1.0.1](https://github.com/googleapis/nodejs-promisify/compare/v1.0.0...v1.0.1) (2019-06-14) ##### Bug Fixes - **docs:** move to new client docs URL ([#&#8203;124](https://github.com/googleapis/nodejs-promisify/issues/124)) ([34d18cd](https://github.com/googleapis/nodejs-promisify/commit/34d18cd)) </details> --- ### Renovate configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-bigquery). * fix(deps): update dependency google-auth-library to v6 (#660) 3ea642e commit 3ea642e Author: WhiteSource Renovate <bot@renovateapp.com> Date: Tue Mar 31 19:58:07 2020 +0200 fix(deps): update dependency google-auth-library to v6 (#660) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [google-auth-library](https://github.com/googleapis/google-auth-library-nodejs) | dependencies | major | [`^5.8.0` -> `^6.0.0`](https://renovatebot.com/diffs/npm/google-auth-library/5.10.1/6.0.0) | --- ### Release Notes <details> <summary>googleapis/google-auth-library-nodejs</summary> ### [`v6.0.0`](https://github.com/googleapis/google-auth-library-nodejs/blob/master/CHANGELOG.md#&#8203;600-httpswwwgithubcomgoogleapisgoogle-auth-library-nodejscomparev5101v600-2020-03-26) [Compare Source](https://github.com/googleapis/google-auth-library-nodejs/compare/v5.10.1...v6.0.0) ##### ⚠ BREAKING CHANGES - typescript@3.7.x introduced some breaking changes in generated code. - require node 10 in engines field ([#&#8203;926](https://github.com/googleapis/google-auth-library-nodejs/issues/926)) - remove deprecated methods ([#&#8203;906](https://github.com/googleapis/google-auth-library-nodejs/issues/906)) ##### Features - require node 10 in engines field ([#&#8203;926](https://github.com/googleapis/google-auth-library-nodejs/issues/926)) ([d89c59a](https://github.com/googleapis/google-auth-library-nodejs/commit/d89c59a316e9ca5b8c351128ee3e2d91e9729d5c)) ##### Bug Fixes - do not warn for SDK creds ([#&#8203;905](https://github.com/googleapis/google-auth-library-nodejs/issues/905)) ([9536840](https://github.com/googleapis/google-auth-library-nodejs/commit/9536840f88e77f747bbbc2c1b5b4289018fc23c9)) - use iamcredentials API to sign blobs ([#&#8203;908](https://github.com/googleapis/google-auth-library-nodejs/issues/908)) ([7b8e4c5](https://github.com/googleapis/google-auth-library-nodejs/commit/7b8e4c52e31bb3d448c3ff8c05002188900eaa04)) - **deps:** update dependency gaxios to v3 ([#&#8203;917](https://github.com/googleapis/google-auth-library-nodejs/issues/917)) ([1f4bf61](https://github.com/googleapis/google-auth-library-nodejs/commit/1f4bf6128a0dcf22cfe1ec492b2192f513836cb2)) - **deps:** update dependency gcp-metadata to v4 ([#&#8203;918](https://github.com/googleapis/google-auth-library-nodejs/issues/918)) ([d337131](https://github.com/googleapis/google-auth-library-nodejs/commit/d337131d009cc1f8182f7a1f8a9034433ee3fbf7)) - **types:** add additional fields to TokenInfo ([#&#8203;907](https://github.com/googleapis/google-auth-library-nodejs/issues/907)) ([5b48eb8](https://github.com/googleapis/google-auth-library-nodejs/commit/5b48eb86c108c47d317a0eb96b47c0cae86f98cb)) ##### Build System - update to latest gts and TypeScript ([#&#8203;927](https://github.com/googleapis/google-auth-library-nodejs/issues/927)) ([e11e18c](https://github.com/googleapis/google-auth-library-nodejs/commit/e11e18cb33eb60a666980d061c54bb8891cdd242)) ##### Miscellaneous Chores - remove deprecated methods ([#&#8203;906](https://github.com/googleapis/google-auth-library-nodejs/issues/906)) ([f453fb7](https://github.com/googleapis/google-auth-library-nodejs/commit/f453fb7d8355e6dc74800b18d6f43c4e91d4acc9)) ##### [5.10.1](https://github.com/googleapis/google-auth-library-nodejs/compare/v5.10.0...v5.10.1) (2020-02-25) ##### Bug Fixes - if GCF environment detected, increase library timeout ([#&#8203;899](https://github.com/googleapis/google-auth-library-nodejs/issues/899)) ([2577ff2](https://github.com/googleapis/google-auth-library-nodejs/commit/2577ff28bf22dfc58bd09e7365471c16f359f109)) </details> --- ### Renovate configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-bigquery). * build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#665) 3f78914 commit 3f78914 Author: Benjamin E. Coe <bencoe@google.com> Date: Tue Mar 31 18:35:04 2020 -0700 build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#665) * docs: document the release schedule we follow (#454) googleapis/synthtool@6a17abc commit 6a17abc7652e2fe563e1288c6e8c23fc260dda97 Author: Benjamin E. Coe <bencoe@google.com> Date: Mon Mar 23 19:22:34 2020 -0700 docs: document the release schedule we follow (#454) * fix: do not run node 8 CI (#456) googleapis/synthtool@1b4cc80 commit 1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c Author: Alexander Fenster <fenster@google.com> Date: Wed Mar 25 08:01:31 2020 -0700 fix: do not run node 8 CI (#456) * fix: update template files for Node.js libraries (#463) googleapis/synthtool@9982024 commit 99820243d348191bc9c634f2b48ddf65096285ed Author: Alexander Fenster <fenster@google.com> Date: Tue Mar 31 11:56:27 2020 -0700 fix: update template files for Node.js libraries (#463)
1 parent 3f78914 commit a12b094

File tree

5 files changed

+166
-10
lines changed

5 files changed

+166
-10
lines changed
 

‎.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}

‎.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node: [8, 10, 12, 13]
12+
node: [10, 12, 13]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1

‎.prettierrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
module.exports = {
16+
...require('gts/.prettierrc.json')
17+
}

‎src/types.d.ts

+142-7
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ declare namespace bigquery {
727727
* Populated for multi-class classification/classifier models.
728728
*/
729729
multiClassClassificationMetrics?: IMultiClassClassificationMetrics;
730+
/**
731+
* [Alpha] Populated for implicit feedback type matrix factorization
732+
* models.
733+
*/
734+
rankingMetrics?: IRankingMetrics;
730735
/**
731736
* Populated for regression models and explicit feedback type matrix
732737
* factorization models.
@@ -1140,11 +1145,11 @@ declare namespace bigquery {
11401145

11411146
type IJobConfigurationExtract = {
11421147
/**
1143-
* [Optional] The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE and SNAPPY are only supported for Avro.
1148+
* [Optional] The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE and SNAPPY are only supported for Avro. Not applicable when extracting models.
11441149
*/
11451150
compression?: string;
11461151
/**
1147-
* [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV. Tables with nested or repeated fields cannot be exported as CSV.
1152+
* [Optional] The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON or AVRO for tables and ML_TF_SAVED_MODEL or ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV. The default value for models is ML_TF_SAVED_MODEL.
11481153
*/
11491154
destinationFormat?: string;
11501155
/**
@@ -1156,11 +1161,11 @@ declare namespace bigquery {
11561161
*/
11571162
destinationUris?: Array<string>;
11581163
/**
1159-
* [Optional] Delimiter to use between fields in the exported data. Default is ','
1164+
* [Optional] Delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models.
11601165
*/
11611166
fieldDelimiter?: string;
11621167
/**
1163-
* [Optional] Whether to print out a header row in the results. Default is true.
1168+
* [Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models.
11641169
*/
11651170
printHeader?: boolean;
11661171
/**
@@ -1172,7 +1177,7 @@ declare namespace bigquery {
11721177
*/
11731178
sourceTable?: ITableReference;
11741179
/**
1175-
* [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long).
1180+
* [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long). Not applicable when extracting models.
11761181
*/
11771182
useAvroLogicalTypes?: boolean;
11781183
};
@@ -1301,6 +1306,10 @@ declare namespace bigquery {
13011306
* [Beta] Clustering specification for the destination table. Must be specified with time-based partitioning, data in the table will be first partitioned and subsequently clustered.
13021307
*/
13031308
clustering?: IClustering;
1309+
/**
1310+
* Connection properties.
1311+
*/
1312+
connectionProperties?: Array<any>;
13041313
/**
13051314
* [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.
13061315
*/
@@ -1535,6 +1544,10 @@ declare namespace bigquery {
15351544
* [Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job.
15361545
*/
15371546
reservation_id?: string;
1547+
/**
1548+
* [Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs.
1549+
*/
1550+
rowLevelSecurityStatistics?: IRowLevelSecurityStatistics;
15381551
/**
15391552
* [Output-only] Statistics for a child job of a script.
15401553
*/
@@ -1562,6 +1575,10 @@ declare namespace bigquery {
15621575
* [Output-only] Whether the query result was fetched from the query cache.
15631576
*/
15641577
cacheHit?: boolean;
1578+
/**
1579+
* [Output-only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries.
1580+
*/
1581+
ddlAffectedRowAccessPolicyCount?: string;
15651582
/**
15661583
* The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the DDL target. "SKIP": No-op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target.
15671584
*/
@@ -1571,7 +1588,11 @@ declare namespace bigquery {
15711588
*/
15721589
ddlTargetRoutine?: IRoutineReference;
15731590
/**
1574-
* The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries.
1591+
* [Output-only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries.
1592+
*/
1593+
ddlTargetRowAccessPolicy?: IRowAccessPolicyReference;
1594+
/**
1595+
* [Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries.
15751596
*/
15761597
ddlTargetTable?: ITableReference;
15771598
/**
@@ -1843,7 +1864,14 @@ declare namespace bigquery {
18431864
| 'LINEAR_REGRESSION'
18441865
| 'LOGISTIC_REGRESSION'
18451866
| 'KMEANS'
1846-
| 'TENSORFLOW';
1867+
| 'MATRIX_FACTORIZATION'
1868+
| 'DNN_CLASSIFIER'
1869+
| 'TENSORFLOW'
1870+
| 'DNN_REGRESSOR'
1871+
| 'BOOSTED_TREE_REGRESSOR'
1872+
| 'BOOSTED_TREE_CLASSIFIER'
1873+
| 'AUTOML_REGRESSOR'
1874+
| 'AUTOML_CLASSIFIER';
18471875
/**
18481876
* Output only. Information for all training runs in increasing order of start_time.
18491877
*/
@@ -2004,6 +2032,10 @@ declare namespace bigquery {
20042032
};
20052033

20062034
type IQueryRequest = {
2035+
/**
2036+
* Connection properties.
2037+
*/
2038+
connectionProperties?: Array<any>;
20072039
/**
20082040
* [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'.
20092041
*/
@@ -2148,6 +2180,36 @@ declare namespace bigquery {
21482180
};
21492181
};
21502182

2183+
/**
2184+
* Evaluation metrics used by weighted-ALS models specified by
2185+
* feedback_type=implicit.
2186+
*/
2187+
type IRankingMetrics = {
2188+
/**
2189+
* Determines the goodness of a ranking by computing the percentile rank
2190+
* from the predicted confidence and dividing it by the original rank.
2191+
*/
2192+
averageRank?: number;
2193+
/**
2194+
* Calculates a precision per user for all the items by ranking them and
2195+
* then averages all the precisions across all the users.
2196+
*/
2197+
meanAveragePrecision?: number;
2198+
/**
2199+
* Similar to the mean squared error computed in regression and explicit
2200+
* recommendation models except instead of computing the rating directly,
2201+
* the output from evaluate is computed against a preference which is 1 or 0
2202+
* depending on if the rating exists or not.
2203+
*/
2204+
meanSquaredError?: number;
2205+
/**
2206+
* A metric to determine the goodness of a ranking calculated from the
2207+
* predicted confidence by comparing it to an ideal rank measured by the
2208+
* original ratings.
2209+
*/
2210+
normalizedDiscountedCumulativeGain?: number;
2211+
};
2212+
21512213
/**
21522214
* Evaluation metrics for regression and explicit feedback type matrix
21532215
* factorization models.
@@ -2300,6 +2362,32 @@ declare namespace bigquery {
23002362
entries?: Array<IEntry>;
23012363
};
23022364

2365+
type IRowAccessPolicyReference = {
2366+
/**
2367+
* [Required] The ID of the dataset containing this row access policy.
2368+
*/
2369+
datasetId?: string;
2370+
/**
2371+
* [Required] The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
2372+
*/
2373+
policyId?: string;
2374+
/**
2375+
* [Required] The ID of the project containing this row access policy.
2376+
*/
2377+
projectId?: string;
2378+
/**
2379+
* [Required] The ID of the table containing this row access policy.
2380+
*/
2381+
tableId?: string;
2382+
};
2383+
2384+
type IRowLevelSecurityStatistics = {
2385+
/**
2386+
* [Output-only] [Preview] Whether any accessed data was protected by row access policies.
2387+
*/
2388+
rowLevelSecurityApplied?: boolean;
2389+
};
2390+
23032391
type IScriptStackFrame = {
23042392
/**
23052393
* [Output-only] One-based end column.
@@ -2766,6 +2854,10 @@ declare namespace bigquery {
27662854
};
27672855

27682856
type ITrainingOptions = {
2857+
/**
2858+
* Batch size for dnn models.
2859+
*/
2860+
batchSize?: string;
27692861
/**
27702862
* The column to split data with. This column won't be used as a
27712863
* feature.
@@ -2800,12 +2892,25 @@ declare namespace bigquery {
28002892
* Distance type for clustering models.
28012893
*/
28022894
distanceType?: 'DISTANCE_TYPE_UNSPECIFIED' | 'EUCLIDEAN' | 'COSINE';
2895+
/**
2896+
* Dropout probability for dnn models.
2897+
*/
2898+
dropout?: number;
28032899
/**
28042900
* Whether to stop early when the loss doesn't improve significantly
28052901
* any more (compared to min_relative_progress). Used only for iterative
28062902
* training algorithms.
28072903
*/
28082904
earlyStop?: boolean;
2905+
/**
2906+
* Feedback type that specifies which algorithm to run for matrix
2907+
* factorization.
2908+
*/
2909+
feedbackType?: 'FEEDBACK_TYPE_UNSPECIFIED' | 'IMPLICIT' | 'EXPLICIT';
2910+
/**
2911+
* Hidden units for dnn models.
2912+
*/
2913+
hiddenUnits?: Array<string>;
28092914
/**
28102915
* Specifies the initial learning rate for the line search learn rate
28112916
* strategy.
@@ -2815,6 +2920,10 @@ declare namespace bigquery {
28152920
* Name of input label columns in training data.
28162921
*/
28172922
inputLabelColumns?: Array<string>;
2923+
/**
2924+
* Item column specified for matrix factorization models.
2925+
*/
2926+
itemColumn?: string;
28182927
/**
28192928
* The column used to provide the initial centroids for kmeans algorithm
28202929
* when kmeans_initialization_method is CUSTOM.
@@ -2861,12 +2970,20 @@ declare namespace bigquery {
28612970
* training algorithms.
28622971
*/
28632972
maxIterations?: string;
2973+
/**
2974+
* Maximum depth of a tree for boosted tree models.
2975+
*/
2976+
maxTreeDepth?: string;
28642977
/**
28652978
* When early_stop is true, stops training when accuracy improvement is
28662979
* less than 'min_relative_progress'. Used only for iterative training
28672980
* algorithms.
28682981
*/
28692982
minRelativeProgress?: number;
2983+
/**
2984+
* Minimum split loss for boosted tree models.
2985+
*/
2986+
minSplitLoss?: number;
28702987
/**
28712988
* [Beta] Google Cloud Storage URI from which the model was imported. Only
28722989
* applicable for imported models.
@@ -2876,13 +2993,31 @@ declare namespace bigquery {
28762993
* Number of clusters for clustering models.
28772994
*/
28782995
numClusters?: string;
2996+
/**
2997+
* Num factors specified for matrix factorization models.
2998+
*/
2999+
numFactors?: string;
28793000
/**
28803001
* Optimization strategy for training linear regression models.
28813002
*/
28823003
optimizationStrategy?:
28833004
| 'OPTIMIZATION_STRATEGY_UNSPECIFIED'
28843005
| 'BATCH_GRADIENT_DESCENT'
28853006
| 'NORMAL_EQUATION';
3007+
/**
3008+
* Subsample fraction of the training data to grow tree to prevent
3009+
* overfitting for boosted tree models.
3010+
*/
3011+
subsample?: number;
3012+
/**
3013+
* User column specified for matrix factorization models.
3014+
*/
3015+
userColumn?: string;
3016+
/**
3017+
* Hyperparameter for matrix factoration when implicit feedback type is
3018+
* specified.
3019+
*/
3020+
walsAlpha?: number;
28863021
/**
28873022
* Whether to train a model from the last checkpoint.
28883023
*/

‎synth.metadata

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"updateTime": "2020-03-22T11:14:28.558157Z",
2+
"updateTime": "2020-04-01T11:22:48.136763Z",
33
"sources": [
44
{
55
"git": {
66
"name": "synthtool",
77
"remote": "https://github.com/googleapis/synthtool.git",
8-
"sha": "7e98e1609c91082f4eeb63b530c6468aefd18cfd"
8+
"sha": "99820243d348191bc9c634f2b48ddf65096285ed",
9+
"log": "99820243d348191bc9c634f2b48ddf65096285ed\nfix: update template files for Node.js libraries (#463)\n\n\n3cbe6bcd5623139ac9834c43818424ddca5430cb\nfix(ruby): remove dead troubleshooting link from generated auth guide (#462)\n\n\na003d8655d3ebec2bbbd5fc3898e91e152265c67\ndocs: remove \"install stable\" instructions (#461)\n\nThe package hasn't been released to PyPI in some time\nf5e8c88d9870d8aa4eb43fa0b39f07e02bfbe4df\nchore(python): add license headers to config files; make small tweaks to templates (#458)\n\n\ne36822bfa0acb355502dab391b8ef9c4f30208d8\nchore(java): treat samples shared configuration dependency update as chore (#457)\n\n\n1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c\nfix: do not run node 8 CI (#456)\n\n\nee4330a0e5f4b93978e8683fbda8e6d4148326b7\nchore(java_templates): mark version bumps of current library as a chore (#452)\n\nWith the samples/install-without-bom/pom.xml referencing the latest released library, we want to mark updates of this version as a chore for renovate bot.\na0d3133a5d45544a66345059eebf76933265c099\nfix(java): run mvn install with retry (#453)\n\n* fix(java): run mvn install with retry\n\n* fix invocation of command\n6a17abc7652e2fe563e1288c6e8c23fc260dda97\ndocs: document the release schedule we follow (#454)\n\n\n"
910
}
1011
}
1112
]

0 commit comments

Comments
 (0)