getExecutable method

Future<GetReleaseExecutableResponse> getExecutable(
  1. String name, {
  2. String? executableVersion,
  3. String? $fields,
})

Get the Release executable to use when enforcing rules.

Request parameters:

name - Required. Resource name of the Release. Format: projects/{project_id}/releases/{release_id} Value must have pattern ^projects/\[^/\]+/releases/.*$.

executableVersion - The requested runtime executable version. Defaults to FIREBASE_RULES_EXECUTABLE_V1. Possible string values are:

  • "RELEASE_EXECUTABLE_VERSION_UNSPECIFIED" : Executable format unspecified. Defaults to FIREBASE_RULES_EXECUTABLE_V1
  • "FIREBASE_RULES_EXECUTABLE_V1" : Firebase Rules syntax 'rules2' executable versions: Custom AST for use with Java clients.
  • "FIREBASE_RULES_EXECUTABLE_V2" : CEL-based executable for use with C++ clients.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GetReleaseExecutableResponse.

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<GetReleaseExecutableResponse> getExecutable(
  core.String name, {
  core.String? executableVersion,
  core.String? $fields,
}) async {
  final _queryParams = <core.String, core.List<core.String>>{
    if (executableVersion != null) 'executableVersion': [executableVersion],
    if ($fields != null) 'fields': [$fields],
  };

  final _url = 'v1/' + core.Uri.encodeFull('$name') + ':getExecutable';

  final _response = await _requester.request(
    _url,
    'GET',
    queryParams: _queryParams,
  );
  return GetReleaseExecutableResponse.fromJson(
      _response as core.Map<core.String, core.dynamic>);
}