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'sProjectManagementservice, or asgetProjectManagement(app)to access theProjectManagementservice 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 PrefixedFirebaseError. | 
| 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. | 
Type Aliases
| Type Alias | Description | 
|---|---|
| ProjectManagementErrorCode | 
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 ProjectManagementservice to return. If not provided, the defaultProjectManagementservice 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
Signature:
export type ProjectManagementErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-project-id' | 'invalid-server-response' | 'not-found' | 'service-unavailable' | 'unknown-error';
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. |