getExecutable method
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>);
}