From a12b094d2e6e48049203c9cd773fecb98713a3fa Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 1 Apr 2020 11:16:17 -0700 Subject: [PATCH] feat: update types.d.ts (#667) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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) https://github.com/googleapis/nodejs-bigquery/commit/712b0294c6329545de70febb48762abd8b0567b9 commit 712b0294c6329545de70febb48762abd8b0567b9 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) https://github.com/googleapis/nodejs-bigquery/commit/8e26fb561a9595e0f05e0506cebb71aa1eaba432 commit 8e26fb561a9595e0f05e0506cebb71aa1eaba432 Author: Andrew Zammit 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 Co-authored-by: Steffany Brown <30247553+steffnay@users.noreply.github.com> * chore: update dependency @google-cloud/common to v3 (#661) https://github.com/googleapis/nodejs-bigquery/commit/c61407e66335c0d213a9013f2f8ecbf3fd6ab751 commit c61407e66335c0d213a9013f2f8ecbf3fd6ab751 Author: WhiteSource Renovate 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) https://github.com/googleapis/nodejs-bigquery/commit/a09c493f1f94e4a0272c17cb62009c92945c20d0 commit a09c493f1f94e4a0272c17cb62009c92945c20d0 Author: WhiteSource Renovate 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://togithub.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
googleapis/nodejs-paginator ### [`v3.0.0`](https://togithub.com/googleapis/nodejs-paginator/blob/master/CHANGELOG.md#​300-httpswwwgithubcomgoogleapisnodejs-paginatorcomparev203v300-2020-03-25) [Compare Source](https://togithub.com/googleapis/nodejs-paginator/compare/v2.0.3...v3.0.0) ##### ⚠ BREAKING CHANGES - **dep:** upgrade gts 2.0.0 ([#​194](https://togithub.com/googleapis/nodejs-paginator/issues/194)) - **deps:** deprecated node 8 to 10; upgrade typescript ##### Miscellaneous Chores - **dep:** upgrade gts 2.0.0 ([#​194](https://www.github.com/googleapis/nodejs-paginator/issues/194)) ([4eaf9be](https://www.github.com/googleapis/nodejs-paginator/commit/4eaf9bed1fcfd0f10e877ff15c1d0e968e3356c8)) - **deps:** deprecated node 8 to 10; upgrade typescript ([f6434ab](https://www.github.com/googleapis/nodejs-paginator/commit/f6434ab9cacb6ab804c070f19c38b6072ca326b5)) ##### [2.0.3](https://www.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://www.github.com/googleapis/nodejs-paginator/commit/e06e1b0a2e2bb1cf56fc806c1703b8b5e468b954)) ##### [2.0.2](https://www.github.com/googleapis/nodejs-paginator/compare/v2.0.1...v2.0.2) (2019-11-13) ##### Bug Fixes - **docs:** add jsdoc-region-tag plugin ([#​155](https://www.github.com/googleapis/nodejs-paginator/issues/155)) ([b983799](https://www.github.com/googleapis/nodejs-paginator/commit/b98379905848fd179c6268aff3e1cfaf2bf76663)) ##### [2.0.1](https://www.github.com/googleapis/nodejs-paginator/compare/v2.0.0...v2.0.1) (2019-08-25) ##### Bug Fixes - **deps:** use the latest extend ([#​141](https://www.github.com/googleapis/nodejs-paginator/issues/141)) ([61b383e](https://www.github.com/googleapis/nodejs-paginator/commit/61b383e))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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) https://github.com/googleapis/nodejs-bigquery/commit/5d8112c2cd3994d1d32102d63a7a90fb9478223c commit 5d8112c2cd3994d1d32102d63a7a90fb9478223c Author: WhiteSource Renovate 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://togithub.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
googleapis/nodejs-promisify ### [`v2.0.0`](https://togithub.com/googleapis/nodejs-promisify/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgoogleapisnodejs-promisifycomparev104v200-2020-03-23) [Compare Source](https://togithub.com/googleapis/nodejs-promisify/compare/v1.0.4...v2.0.0) ##### ⚠ BREAKING CHANGES - update to latest version of gts/typescript ([#​183](https://togithub.com/googleapis/nodejs-promisify/issues/183)) - drop Node 8 from engines field ([#​184](https://togithub.com/googleapis/nodejs-promisify/issues/184)) ##### Features - drop Node 8 from engines field ([#​184](https://www.github.com/googleapis/nodejs-promisify/issues/184)) ([7e6d3c5](https://www.github.com/googleapis/nodejs-promisify/commit/7e6d3c54066d89530ed25c7f9722efd252f43fb8)) ##### Build System - update to latest version of gts/typescript ([#​183](https://www.github.com/googleapis/nodejs-promisify/issues/183)) ([9c3ed12](https://www.github.com/googleapis/nodejs-promisify/commit/9c3ed12c12f4bb1e17af7440c6371c4cefddcd59)) ##### [1.0.4](https://www.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://www.github.com/googleapis/nodejs-promisify/commit/e48750ef96aa20eb3a2b73fe2f062d04430468a7)) ##### [1.0.3](https://www.github.com/googleapis/nodejs-promisify/compare/v1.0.2...v1.0.3) (2019-11-13) ##### Bug Fixes - **docs:** add jsdoc-region-tag plugin ([#​146](https://www.github.com/googleapis/nodejs-promisify/issues/146)) ([ff0ee74](https://www.github.com/googleapis/nodejs-promisify/commit/ff0ee7408f50e8f7147b8ccf7e10337aa5920076)) ##### [1.0.2](https://www.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 ([#​128](https://www.github.com/googleapis/nodejs-promisify/issues/128)) ([5a8bd90](https://www.github.com/googleapis/nodejs-promisify/commit/5a8bd90)) ##### [1.0.1](https://www.github.com/googleapis/nodejs-promisify/compare/v1.0.0...v1.0.1) (2019-06-14) ##### Bug Fixes - **docs:** move to new client docs URL ([#​124](https://www.github.com/googleapis/nodejs-promisify/issues/124)) ([34d18cd](https://www.github.com/googleapis/nodejs-promisify/commit/34d18cd))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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) https://github.com/googleapis/nodejs-bigquery/commit/3ea642ec9f1c471bff0d5d095fcc3e1b3813e52a commit 3ea642ec9f1c471bff0d5d095fcc3e1b3813e52a Author: WhiteSource Renovate 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://togithub.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
googleapis/google-auth-library-nodejs ### [`v6.0.0`](https://togithub.com/googleapis/google-auth-library-nodejs/blob/master/CHANGELOG.md#​600-httpswwwgithubcomgoogleapisgoogle-auth-library-nodejscomparev5101v600-2020-03-26) [Compare Source](https://togithub.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 ([#​926](https://togithub.com/googleapis/google-auth-library-nodejs/issues/926)) - remove deprecated methods ([#​906](https://togithub.com/googleapis/google-auth-library-nodejs/issues/906)) ##### Features - require node 10 in engines field ([#​926](https://www.github.com/googleapis/google-auth-library-nodejs/issues/926)) ([d89c59a](https://www.github.com/googleapis/google-auth-library-nodejs/commit/d89c59a316e9ca5b8c351128ee3e2d91e9729d5c)) ##### Bug Fixes - do not warn for SDK creds ([#​905](https://www.github.com/googleapis/google-auth-library-nodejs/issues/905)) ([9536840](https://www.github.com/googleapis/google-auth-library-nodejs/commit/9536840f88e77f747bbbc2c1b5b4289018fc23c9)) - use iamcredentials API to sign blobs ([#​908](https://www.github.com/googleapis/google-auth-library-nodejs/issues/908)) ([7b8e4c5](https://www.github.com/googleapis/google-auth-library-nodejs/commit/7b8e4c52e31bb3d448c3ff8c05002188900eaa04)) - **deps:** update dependency gaxios to v3 ([#​917](https://www.github.com/googleapis/google-auth-library-nodejs/issues/917)) ([1f4bf61](https://www.github.com/googleapis/google-auth-library-nodejs/commit/1f4bf6128a0dcf22cfe1ec492b2192f513836cb2)) - **deps:** update dependency gcp-metadata to v4 ([#​918](https://www.github.com/googleapis/google-auth-library-nodejs/issues/918)) ([d337131](https://www.github.com/googleapis/google-auth-library-nodejs/commit/d337131d009cc1f8182f7a1f8a9034433ee3fbf7)) - **types:** add additional fields to TokenInfo ([#​907](https://www.github.com/googleapis/google-auth-library-nodejs/issues/907)) ([5b48eb8](https://www.github.com/googleapis/google-auth-library-nodejs/commit/5b48eb86c108c47d317a0eb96b47c0cae86f98cb)) ##### Build System - update to latest gts and TypeScript ([#​927](https://www.github.com/googleapis/google-auth-library-nodejs/issues/927)) ([e11e18c](https://www.github.com/googleapis/google-auth-library-nodejs/commit/e11e18cb33eb60a666980d061c54bb8891cdd242)) ##### Miscellaneous Chores - remove deprecated methods ([#​906](https://www.github.com/googleapis/google-auth-library-nodejs/issues/906)) ([f453fb7](https://www.github.com/googleapis/google-auth-library-nodejs/commit/f453fb7d8355e6dc74800b18d6f43c4e91d4acc9)) ##### [5.10.1](https://www.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 ([#​899](https://www.github.com/googleapis/google-auth-library-nodejs/issues/899)) ([2577ff2](https://www.github.com/googleapis/google-auth-library-nodejs/commit/2577ff28bf22dfc58bd09e7365471c16f359f109))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] 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) https://github.com/googleapis/nodejs-bigquery/commit/3f789144eaab967fc508d954a27489761caf4b98 commit 3f789144eaab967fc508d954a27489761caf4b98 Author: Benjamin E. Coe 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) https://github.com/googleapis/synthtool/commit/6a17abc7652e2fe563e1288c6e8c23fc260dda97 commit 6a17abc7652e2fe563e1288c6e8c23fc260dda97 Author: Benjamin E. Coe 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) https://github.com/googleapis/synthtool/commit/1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c commit 1b4cc80a7aaf164f6241937dd87f3bd1f4149e0c Author: Alexander Fenster 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) https://github.com/googleapis/synthtool/commit/99820243d348191bc9c634f2b48ddf65096285ed commit 99820243d348191bc9c634f2b48ddf65096285ed Author: Alexander Fenster Date: Tue Mar 31 11:56:27 2020 -0700 fix: update template files for Node.js libraries (#463) --- .eslintrc.json | 3 + .github/workflows/ci.yaml | 2 +- .prettierrc.js | 17 +++++ src/types.d.ts | 149 ++++++++++++++++++++++++++++++++++++-- synth.metadata | 5 +- 5 files changed, 166 insertions(+), 10 deletions(-) create mode 100644 .eslintrc.json create mode 100644 .prettierrc.js diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..78215349 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 92394b1e..7138a79a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [8, 10, 12, 13] + node: [10, 12, 13] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..08cba377 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/src/types.d.ts b/src/types.d.ts index 47b9ea88..1600bf58 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -727,6 +727,11 @@ declare namespace bigquery { * Populated for multi-class classification/classifier models. */ multiClassClassificationMetrics?: IMultiClassClassificationMetrics; + /** + * [Alpha] Populated for implicit feedback type matrix factorization + * models. + */ + rankingMetrics?: IRankingMetrics; /** * Populated for regression models and explicit feedback type matrix * factorization models. @@ -1140,11 +1145,11 @@ declare namespace bigquery { type IJobConfigurationExtract = { /** - * [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. + * [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. */ compression?: string; /** - * [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. + * [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. */ destinationFormat?: string; /** @@ -1156,11 +1161,11 @@ declare namespace bigquery { */ destinationUris?: Array; /** - * [Optional] Delimiter to use between fields in the exported data. Default is ',' + * [Optional] Delimiter to use between fields in the exported data. Default is ','. Not applicable when extracting models. */ fieldDelimiter?: string; /** - * [Optional] Whether to print out a header row in the results. Default is true. + * [Optional] Whether to print out a header row in the results. Default is true. Not applicable when extracting models. */ printHeader?: boolean; /** @@ -1172,7 +1177,7 @@ declare namespace bigquery { */ sourceTable?: ITableReference; /** - * [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). + * [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. */ useAvroLogicalTypes?: boolean; }; @@ -1301,6 +1306,10 @@ declare namespace bigquery { * [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. */ clustering?: IClustering; + /** + * Connection properties. + */ + connectionProperties?: Array; /** * [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. */ @@ -1535,6 +1544,10 @@ declare namespace bigquery { * [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. */ reservation_id?: string; + /** + * [Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs. + */ + rowLevelSecurityStatistics?: IRowLevelSecurityStatistics; /** * [Output-only] Statistics for a child job of a script. */ @@ -1562,6 +1575,10 @@ declare namespace bigquery { * [Output-only] Whether the query result was fetched from the query cache. */ cacheHit?: boolean; + /** + * [Output-only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. + */ + ddlAffectedRowAccessPolicyCount?: string; /** * 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. */ @@ -1571,7 +1588,11 @@ declare namespace bigquery { */ ddlTargetRoutine?: IRoutineReference; /** - * The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries. + * [Output-only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. + */ + ddlTargetRowAccessPolicy?: IRowAccessPolicyReference; + /** + * [Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. */ ddlTargetTable?: ITableReference; /** @@ -1843,7 +1864,14 @@ declare namespace bigquery { | 'LINEAR_REGRESSION' | 'LOGISTIC_REGRESSION' | 'KMEANS' - | 'TENSORFLOW'; + | 'MATRIX_FACTORIZATION' + | 'DNN_CLASSIFIER' + | 'TENSORFLOW' + | 'DNN_REGRESSOR' + | 'BOOSTED_TREE_REGRESSOR' + | 'BOOSTED_TREE_CLASSIFIER' + | 'AUTOML_REGRESSOR' + | 'AUTOML_CLASSIFIER'; /** * Output only. Information for all training runs in increasing order of start_time. */ @@ -2004,6 +2032,10 @@ declare namespace bigquery { }; type IQueryRequest = { + /** + * Connection properties. + */ + connectionProperties?: Array; /** * [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'. */ @@ -2148,6 +2180,36 @@ declare namespace bigquery { }; }; + /** + * Evaluation metrics used by weighted-ALS models specified by + * feedback_type=implicit. + */ + type IRankingMetrics = { + /** + * Determines the goodness of a ranking by computing the percentile rank + * from the predicted confidence and dividing it by the original rank. + */ + averageRank?: number; + /** + * Calculates a precision per user for all the items by ranking them and + * then averages all the precisions across all the users. + */ + meanAveragePrecision?: number; + /** + * Similar to the mean squared error computed in regression and explicit + * recommendation models except instead of computing the rating directly, + * the output from evaluate is computed against a preference which is 1 or 0 + * depending on if the rating exists or not. + */ + meanSquaredError?: number; + /** + * A metric to determine the goodness of a ranking calculated from the + * predicted confidence by comparing it to an ideal rank measured by the + * original ratings. + */ + normalizedDiscountedCumulativeGain?: number; + }; + /** * Evaluation metrics for regression and explicit feedback type matrix * factorization models. @@ -2300,6 +2362,32 @@ declare namespace bigquery { entries?: Array; }; + type IRowAccessPolicyReference = { + /** + * [Required] The ID of the dataset containing this row access policy. + */ + datasetId?: string; + /** + * [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. + */ + policyId?: string; + /** + * [Required] The ID of the project containing this row access policy. + */ + projectId?: string; + /** + * [Required] The ID of the table containing this row access policy. + */ + tableId?: string; + }; + + type IRowLevelSecurityStatistics = { + /** + * [Output-only] [Preview] Whether any accessed data was protected by row access policies. + */ + rowLevelSecurityApplied?: boolean; + }; + type IScriptStackFrame = { /** * [Output-only] One-based end column. @@ -2766,6 +2854,10 @@ declare namespace bigquery { }; type ITrainingOptions = { + /** + * Batch size for dnn models. + */ + batchSize?: string; /** * The column to split data with. This column won't be used as a * feature. @@ -2800,12 +2892,25 @@ declare namespace bigquery { * Distance type for clustering models. */ distanceType?: 'DISTANCE_TYPE_UNSPECIFIED' | 'EUCLIDEAN' | 'COSINE'; + /** + * Dropout probability for dnn models. + */ + dropout?: number; /** * Whether to stop early when the loss doesn't improve significantly * any more (compared to min_relative_progress). Used only for iterative * training algorithms. */ earlyStop?: boolean; + /** + * Feedback type that specifies which algorithm to run for matrix + * factorization. + */ + feedbackType?: 'FEEDBACK_TYPE_UNSPECIFIED' | 'IMPLICIT' | 'EXPLICIT'; + /** + * Hidden units for dnn models. + */ + hiddenUnits?: Array; /** * Specifies the initial learning rate for the line search learn rate * strategy. @@ -2815,6 +2920,10 @@ declare namespace bigquery { * Name of input label columns in training data. */ inputLabelColumns?: Array; + /** + * Item column specified for matrix factorization models. + */ + itemColumn?: string; /** * The column used to provide the initial centroids for kmeans algorithm * when kmeans_initialization_method is CUSTOM. @@ -2861,12 +2970,20 @@ declare namespace bigquery { * training algorithms. */ maxIterations?: string; + /** + * Maximum depth of a tree for boosted tree models. + */ + maxTreeDepth?: string; /** * When early_stop is true, stops training when accuracy improvement is * less than 'min_relative_progress'. Used only for iterative training * algorithms. */ minRelativeProgress?: number; + /** + * Minimum split loss for boosted tree models. + */ + minSplitLoss?: number; /** * [Beta] Google Cloud Storage URI from which the model was imported. Only * applicable for imported models. @@ -2876,6 +2993,10 @@ declare namespace bigquery { * Number of clusters for clustering models. */ numClusters?: string; + /** + * Num factors specified for matrix factorization models. + */ + numFactors?: string; /** * Optimization strategy for training linear regression models. */ @@ -2883,6 +3004,20 @@ declare namespace bigquery { | 'OPTIMIZATION_STRATEGY_UNSPECIFIED' | 'BATCH_GRADIENT_DESCENT' | 'NORMAL_EQUATION'; + /** + * Subsample fraction of the training data to grow tree to prevent + * overfitting for boosted tree models. + */ + subsample?: number; + /** + * User column specified for matrix factorization models. + */ + userColumn?: string; + /** + * Hyperparameter for matrix factoration when implicit feedback type is + * specified. + */ + walsAlpha?: number; /** * Whether to train a model from the last checkpoint. */ diff --git a/synth.metadata b/synth.metadata index f9933840..b6732ac8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,11 +1,12 @@ { - "updateTime": "2020-03-22T11:14:28.558157Z", + "updateTime": "2020-04-01T11:22:48.136763Z", "sources": [ { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7e98e1609c91082f4eeb63b530c6468aefd18cfd" + "sha": "99820243d348191bc9c634f2b48ddf65096285ed", + "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" } } ]