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.
A SHA-1 or SHA-256 certificate.Do not call this constructor directly. Instead, use [projectManagement.shaCertificate()](projectManagement.ProjectManagement#shaCertificate).
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-21 UTC."],[],[],null,["# firebase-admin.project-management package\n\nFirebase project management.\n\nFunctions\n---------\n\n| Function | Description |\n|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getProjectManagement(app)](./firebase-admin.project-management.md#getprojectmanagement_8a40afc) | Gets the [ProjectManagement](./firebase-admin.project-management.projectmanagement.md#projectmanagement_class) 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. |\n\nClasses\n-------\n\n| Class | Description |\n|----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AndroidApp](./firebase-admin.project-management.androidapp.md#androidapp_class) | A reference to a Firebase Android app.Do not call this constructor directly. Instead, use [ProjectManagement.androidApp()](./firebase-admin.project-management.projectmanagement.md#projectmanagementandroidapp). |\n| [FirebaseProjectManagementError](./firebase-admin.project-management.firebaseprojectmanagementerror.md#firebaseprojectmanagementerror_class) | Firebase project management error code structure. This extends PrefixedFirebaseError. |\n| [IosApp](./firebase-admin.project-management.iosapp.md#iosapp_class) | A reference to a Firebase iOS app.Do not call this constructor directly. Instead, use [ProjectManagement.iosApp()](./firebase-admin.project-management.projectmanagement.md#projectmanagementiosapp). |\n| [ProjectManagement](./firebase-admin.project-management.projectmanagement.md#projectmanagement_class) | The Firebase ProjectManagement service interface. |\n| [ShaCertificate](./firebase-admin.project-management.shacertificate.md#shacertificate_class) | A SHA-1 or SHA-256 certificate.Do not call this constructor directly. Instead, use \\[`projectManagement.shaCertificate()`\\](projectManagement.ProjectManagement#shaCertificate). |\n\nEnumerations\n------------\n\n| Enumeration | Description |\n|-------------------------------------------------------------------|--------------------------------------------------------|\n| [AppPlatform](./firebase-admin.project-management.md#appplatform) | Platforms with which a Firebase App can be associated. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|--------------------------------------------------------------------------------------------------------------|----------------------------------------|\n| [AndroidAppMetadata](./firebase-admin.project-management.androidappmetadata.md#androidappmetadata_interface) | Metadata about a Firebase Android App. |\n| [AppMetadata](./firebase-admin.project-management.appmetadata.md#appmetadata_interface) | Metadata about a Firebase app. |\n| [IosAppMetadata](./firebase-admin.project-management.iosappmetadata.md#iosappmetadata_interface) | Metadata about a Firebase iOS App. |\n\nType Aliases\n------------\n\n| Type Alias | Description |\n|-------------------------------------------------------------------------------------------------|-------------|\n| [ProjectManagementErrorCode](./firebase-admin.project-management.md#projectmanagementerrorcode) | |\n\ngetProjectManagement(app)\n-------------------------\n\nGets the [ProjectManagement](./firebase-admin.project-management.projectmanagement.md#projectmanagement_class) service for the default app or a given app.\n\n`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.\n\n**Signature:** \n\n export declare function getProjectManagement(app?: App): ProjectManagement;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| app | App | Optional app whose `ProjectManagement` service to return. If not provided, the default `ProjectManagement` service will be returned. \\* |\n\n**Returns:**\n\n[ProjectManagement](./firebase-admin.project-management.projectmanagement.md#projectmanagement_class)\n\nThe default `ProjectManagement` service if no app is provided or the `ProjectManagement` service associated with the provided app.\n\n### Example 1\n\n // Get the ProjectManagement service for the default app\n const defaultProjectManagement = getProjectManagement();\n\n### Example 2\n\n // Get the ProjectManagement service for a given app\n const otherProjectManagement = getProjectManagement(otherApp);\n\nProjectManagementErrorCode\n--------------------------\n\n**Signature:** \n\n export type ProjectManagementErrorCode = 'already-exists' | 'authentication-error' | 'internal-error' | 'invalid-argument' | 'invalid-project-id' | 'invalid-server-response' | 'not-found' | 'service-unavailable' | 'unknown-error';\n\nAppPlatform\n-----------\n\nPlatforms with which a Firebase App can be associated.\n\n**Signature:** \n\n export declare enum AppPlatform \n\nEnumeration Members\n-------------------\n\n| Member | Value | Description |\n|------------------|----------------------|-------------------------------------------------------------------|\n| ANDROID | `\"ANDROID\"` | The Firebase App is associated with Android. |\n| IOS | `\"IOS\"` | The Firebase App is associated with iOS. |\n| PLATFORM_UNKNOWN | `\"PLATFORM_UNKNOWN\"` | Unknown state. This is only used for distinguishing unset values. |"]]