ServerTemplate interface
Stay organized with collections
Save and categorize content based on your preferences.
Represents a stateful abstraction for a Remote Config server template.
Signature:
export interface ServerTemplate
Methods
ServerTemplate.evaluate()
Evaluates the current template to produce a ServerConfig.
Signature:
evaluate(context?: EvaluationContext): ServerConfig;
Parameters
Returns:
ServerConfig
ServerTemplate.load()
Fetches and caches the current active version of the project's ServerTemplate.
Signature:
load(): Promise<void>;
Returns:
Promise<void>
ServerTemplate.set()
Sets and caches a ServerTemplateData or a JSON string representing the server template
Signature:
set(template: ServerTemplateDataType): void;
Parameters
Returns:
void
ServerTemplate.toJSON()
Returns a JSON representation of ServerTemplateData
Signature:
toJSON(): ServerTemplateData;
Returns:
ServerTemplateData
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-16 UTC.
[null,null,["Last updated 2024-04-16 UTC."],[],[],null,["Represents a stateful abstraction for a Remote Config server template.\n\n**Signature:** \n\n export interface ServerTemplate \n\nMethods\n\nServerTemplate.evaluate()\n\nEvaluates the current template to produce a [ServerConfig](./firebase-admin.remote-config.serverconfig.md#serverconfig_interface).\n\n**Signature:** \n\n evaluate(context?: EvaluationContext): ServerConfig;\n\nParameters\n\n**Returns:**\n\n[ServerConfig](./firebase-admin.remote-config.serverconfig.md#serverconfig_interface)\n\nServerTemplate.load()\n\nFetches and caches the current active version of the project's [ServerTemplate](./firebase-admin.remote-config.servertemplate.md#servertemplate_interface).\n\n**Signature:** \n\n load(): Promise\u003cvoid\u003e;\n\n**Returns:**\n\nPromise\\\u003cvoid\\\u003e\n\nServerTemplate.set()\n\nSets and caches a [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface) or a JSON string representing the server template\n\n**Signature:** \n\n set(template: ServerTemplateDataType): void;\n\nParameters\n\n**Returns:**\n\nvoid\n\nServerTemplate.toJSON()\n\nReturns a JSON representation of [ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface)\n\n**Signature:** \n\n toJSON(): ServerTemplateData;\n\n**Returns:**\n\n[ServerTemplateData](./firebase-admin.remote-config.servertemplatedata.md#servertemplatedata_interface)"]]