getServerRemoteConfig method
Get a project's server-side Remote Config template.
Note that this request proto is structured differently from other request messages in this proto, however this is consistent and compliant with the new API guidance (https://google.aip.dev/122#fields-representing-resource-names) and the standard going forward.
Request parameters:
name
- Required. The name of the template to get. Format:
projects/{project}/namespaces/{namespace}/serverRemoteConfig Project is a
Firebase project ID or project number. Namespace is the namespace ID
(e.g.: firebase-server)
Value must have pattern
^projects/\[^/\]+/namespaces/\[^/\]+/serverRemoteConfig$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ServerRemoteConfig.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<ServerRemoteConfig> getServerRemoteConfig(
core.String name, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ServerRemoteConfig.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}