12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /*! firebase-admin v12.1.1 */
- /*!
- * Copyright 2021 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- import { App } from '../app';
- import { AppMetadata as TAppMetadata, AppPlatform as TAppPlatform } from './app-metadata';
- import { ProjectManagement as TProjectManagement } from './project-management';
- import { AndroidApp as TAndroidApp, AndroidAppMetadata as TAndroidAppMetadata, ShaCertificate as TShaCertificate } from './android-app';
- import { IosApp as TIosApp, IosAppMetadata as TIosAppMetadata } from './ios-app';
- /**
- * Gets the {@link firebase-admin.project-management#ProjectManagement} service for the
- * default app or a given app.
- *
- * `admin.projectManagement()` can be called with no arguments to access the
- * default app's `ProjectManagement` service, or as `admin.projectManagement(app)` to access
- * the `ProjectManagement` service associated with a specific app.
- *
- * @example
- * ```javascript
- * // Get the ProjectManagement service for the default app
- * var defaultProjectManagement = admin.projectManagement();
- * ```
- *
- * @example
- * ```javascript
- * // Get the ProjectManagement service for a given app
- * var otherProjectManagement = admin.projectManagement(otherApp);
- * ```
- *
- * @param 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.
- */
- export declare function projectManagement(app?: App): projectManagement.ProjectManagement;
- export declare namespace projectManagement {
- /**
- * Type alias to {@link firebase-admin.project-management#AppMetadata}.
- */
- type AppMetadata = TAppMetadata;
- /**
- * Type alias to {@link firebase-admin.project-management#AppPlatform}.
- */
- type AppPlatform = TAppPlatform;
- /**
- * Type alias to {@link firebase-admin.project-management#ProjectManagement}.
- */
- type ProjectManagement = TProjectManagement;
- /**
- * Type alias to {@link firebase-admin.project-management#IosApp}.
- */
- type IosApp = TIosApp;
- /**
- * Type alias to {@link firebase-admin.project-management#IosAppMetadata}.
- */
- type IosAppMetadata = TIosAppMetadata;
- /**
- * Type alias to {@link firebase-admin.project-management#AndroidApp}.
- */
- type AndroidApp = TAndroidApp;
- /**
- * Type alias to {@link firebase-admin.project-management#AndroidAppMetadata}.
- */
- type AndroidAppMetadata = TAndroidAppMetadata;
- /**
- * Type alias to {@link firebase-admin.project-management#ShaCertificate}.
- */
- type ShaCertificate = TShaCertificate;
- }
|