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:
exportinterfaceServerTemplateMethods
| Method | Description |
|---|---|
| evaluate(context) | Evaluates the current template to produce aServerConfig. |
| load() | Fetches and caches the current active version of the project'sServerTemplate. |
| set(template) | Sets and caches aServerTemplateData or a JSON string representing the server template |
| toJSON() | Returns a JSON representation ofServerTemplateData |
ServerTemplate.evaluate()
Evaluates the current template to produce aServerConfig.
Signature:
evaluate(context?:EvaluationContext):ServerConfig;Parameters
| Parameter | Type | Description |
|---|---|---|
| context | EvaluationContext |
Returns:
ServerTemplate.load()
Fetches and caches the current active version of the project'sServerTemplate.
Signature:
load():Promise<void>;Returns:
Promise<void>
ServerTemplate.set()
Sets and caches aServerTemplateData or a JSON string representing the server template
Signature:
set(template:ServerTemplateDataType):void;Parameters
| Parameter | Type | Description |
|---|---|---|
| template | ServerTemplateDataType |
Returns:
void
ServerTemplate.toJSON()
Returns a JSON representation ofServerTemplateData
Signature:
toJSON():ServerTemplateData;Returns:
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-16 UTC.