Firebase project management.
Functions
| Function | Description |
|---|---|
| getProjectManagement(app) | Gets the ProjectManagement service for the default app or a given app.getProjectManagement() can be called with no arguments to access the default app's ProjectManagement service, or as getProjectManagement(app) to access the ProjectManagement service associated with a specific app. |
Classes
| Class | Description |
|---|---|
| AndroidApp | A reference to a Firebase Android app.Do not call this constructor directly. Instead, use ProjectManagement.androidApp(). |
| FirebaseProjectManagementError | Firebase project management error code structure. This extends FirebaseError. |
| IosApp | A reference to a Firebase iOS app.Do not call this constructor directly. Instead, use ProjectManagement.iosApp(). |
| ProjectManagement | The Firebase ProjectManagement service interface. |
| ShaCertificate | A SHA-1 or SHA-256 certificate.Do not call this constructor directly. Instead, use [projectManagement.shaCertificate()](projectManagement.ProjectManagement#shaCertificate). |
Enumerations
| Enumeration | Description |
|---|---|
| AppPlatform | Platforms with which a Firebase App can be associated. |
Interfaces
| Interface | Description |
|---|---|
| AndroidAppMetadata | Metadata about a Firebase Android App. |
| AppMetadata | Metadata about a Firebase app. |
| IosAppMetadata | Metadata about a Firebase iOS App. |
Variables
| Variable | Description |
|---|---|
| ProjectManagementErrorCode | The constant mapping for valid Project Management client error codes. |
Type Aliases
| Type Alias | Description |
|---|---|
| ProjectManagementErrorCode | The type definition for valid Project Management client error codes. |
getProjectManagement(app)
Gets the ProjectManagement service for the default app or a given app.
getProjectManagement() can be called with no arguments to access the default app's ProjectManagement service, or as getProjectManagement(app) to access the ProjectManagement service associated with a specific app.
Signature:
export declare function getProjectManagement(app?: App): ProjectManagement;
Parameters
| Parameter | Type | Description |
|---|---|---|
| app | App | Optional app whose ProjectManagement service to return. If not provided, the default ProjectManagement service will be returned. * |
Returns:
The default ProjectManagement service if no app is provided or the ProjectManagement service associated with the provided app.
Example 1
// Get the ProjectManagement service for the default app
const defaultProjectManagement = getProjectManagement();
Example 2
// Get the ProjectManagement service for a given app
const otherProjectManagement = getProjectManagement(otherApp);
ProjectManagementErrorCode
The constant mapping for valid Project Management client error codes.
Signature:
ProjectManagementErrorCode: {
readonly ALREADY_EXISTS: "already-exists";
readonly AUTHENTICATION_ERROR: "authentication-error";
readonly INTERNAL_ERROR: "internal-error";
readonly INVALID_ARGUMENT: "invalid-argument";
readonly INVALID_PROJECT_ID: "invalid-project-id";
readonly INVALID_SERVER_RESPONSE: "invalid-server-response";
readonly NOT_FOUND: "not-found";
readonly SERVICE_UNAVAILABLE: "service-unavailable";
readonly UNKNOWN_ERROR: "unknown-error";
}
ProjectManagementErrorCode
The type definition for valid Project Management client error codes.
Signature:
export type ProjectManagementErrorCode = typeof ProjectManagementErrorCode[keyof typeof ProjectManagementErrorCode];
AppPlatform
Platforms with which a Firebase App can be associated.
Signature:
export declare enum AppPlatform
Enumeration Members
| Member | Value | Description |
|---|---|---|
| ANDROID | "ANDROID" |
The Firebase App is associated with Android. |
| IOS | "IOS" |
The Firebase App is associated with iOS. |
| PLATFORM_UNKNOWN | "PLATFORM_UNKNOWN" |
Unknown state. This is only used for distinguishing unset values. |