ServerTemplate interface

Represents a stateful abstraction for a Remote Config server template.

Signature:

exportinterfaceServerTemplate

Methods

MethodDescription
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

ParameterTypeDescription
contextEvaluationContext

Returns:

ServerConfig

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

ParameterTypeDescription
templateServerTemplateDataType

Returns:

void

ServerTemplate.toJSON()

Returns a JSON representation ofServerTemplateData

Signature:

toJSON():ServerTemplateData;

Returns:

ServerTemplateData

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.