MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getRuleset

Function getRuleset

src/database/metadata.ts:47–56  ·  view source on GitHub ↗
(databaseName: string, rulesetId: string)

Source from the content-addressed store, hash-verified

45}
46
47export async function getRuleset(databaseName: string, rulesetId: string): Promise<Ruleset> {
48 const response = await apiClient.get<Ruleset>(
49 `/namespaces/${databaseName}/rulesets/${rulesetId}`,
50 { resolveOnHTTPError: true },
51 );
52 if (response.status === 200) {
53 return response.body;
54 }
55 return handleErrorResponse(response);
56}
57
58export async function getRulesetLabels(databaseName: string): Promise<LabelIds> {
59 const response = await apiClient.get<LabelIds>(`/namespaces/${databaseName}/ruleset_labels`, {

Callers

nothing calls this directly

Calls 1

handleErrorResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…