Skip to content

FirebaseML - adding Long Running Operation support #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,8 @@ declare namespace admin.remoteConfig {
* The `nextPageToken` value returned from a previous list versions request, if any.
*/
pageToken?: string;
/**

/**
* Specifies the newest version number to include in the results.
* If specified, must be greater than zero. Defaults to the newest version.
*/
Expand Down Expand Up @@ -1126,9 +1126,9 @@ declare namespace admin.remoteConfig {
/**
* Gets the requested version of the {@link admin.remoteConfig.RemoteConfigTemplate
* `RemoteConfigTemplate`} of the project.
*
*
* @param versionNumber Version number of the Remote Config template to look up.
*
*
* @return A promise that fulfills with a `RemoteConfigTemplate`.
*/
getTemplateAtVersion(versionNumber: number | string): Promise<RemoteConfigTemplate>;
Expand Down Expand Up @@ -1161,7 +1161,7 @@ declare namespace admin.remoteConfig {
* Rolls back a project's published Remote Config template to the specified version.
* A rollback is equivalent to getting a previously published Remote Config
* template and re-publishing it using a force update.
*
*
* @param versionNumber The version number of the Remote Config template to roll back to.
* The specified version number must be lower than the current version number, and not have
* been deleted due to staleness. Only the last 300 versions are stored.
Expand All @@ -1172,11 +1172,11 @@ declare namespace admin.remoteConfig {
rollback(versionNumber: string | number): Promise<RemoteConfigTemplate>;

/**
* Gets a list of Remote Config template versions that have been published, sorted in reverse
* Gets a list of Remote Config template versions that have been published, sorted in reverse
* chronological order. Only the last 300 versions are stored.
* All versions that correspond to non-active Remote Config templates (that is, all except the
* All versions that correspond to non-active Remote Config templates (that is, all except the
* template that is being fetched by clients) are also deleted if they are more than 90 days old.
*
*
* @param options Optional {@link admin.remoteConfig.ListVersionsOptions `ListVersionsOptions`}
* object for getting a list of template versions.
* @return A promise that fulfills with a `ListVersionsResult`.
Expand Down Expand Up @@ -1317,12 +1317,18 @@ declare namespace admin.machineLearning {
/**
* Wait for the model to be unlocked.
*
* @param {number} maxTimeSeconds The maximum time in seconds to wait.
* @param {number} maxTimeMillis The maximum time in milliseconds to wait.
* If not specified, a default maximum of 2 minutes is used.
*
* @return {Promise<void>} A promise that resolves when the model is unlocked
* or the maximum wait time has passed.
*/
waitForUnlocked(maxTimeSeconds?: number): Promise<void>;
waitForUnlocked(maxTimeMillis?: number): Promise<void>;

/**
* Return the model as a JSON object.
*/
toJSON(): {[key: string]: any};

/** Metadata about the model's TensorFlow Lite model file. */
readonly tfliteModel?: TFLiteModel;
Expand Down
Loading