UNPKG

@omnia/tooling-composers

Version:

Provide tooling to work with manifest things.

27 lines (26 loc) 1.36 kB
import { GuidValue } from '../../fx-models'; import { IServiceManifestComposer } from './ServiceManifestComposer'; import { OnTheFlyServiceRequest, PersistentDiskResourceOption, ServiceFeatureOption, SqlElasticPoolResourceOption, SqlResourceOption } from './models/index'; export interface IServiceFeatureComposer extends Omit<IServiceManifestComposer<IServiceFeatureComposer>, "requireAzureAdAppPermissions" | "isOnTheFlyService"> { requestOnTheFlyService: (onTheFlyService: OnTheFlyServiceRequest) => IServiceFeatureComposer; } export declare class ServiceFeatureComposer implements IServiceFeatureComposer { private featureId; private option; constructor(featureId: GuidValue, option: ServiceFeatureOption); private readonly AddFeature; /** * Request an SQL database when feature activated */ requestSqlDatabase: (options: SqlResourceOption) => this; /** * Request a Persistent Disk for storing files when feature activated */ requestPersistentDisk: (options: PersistentDiskResourceOption) => this; /** * Request an SQL database using shared Elastic Pool when feature activated */ requestSqlElasticPoolDatabase: (options: SqlElasticPoolResourceOption) => this; requestOnTheFlyService: (onTheFlyService: OnTheFlyServiceRequest) => this; private addRequestedResource; }