import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { KeysImpl , VaultsImpl , PrivateEndpointConnectionsImpl , PrivateLinkResourcesImpl , ManagedHsmsImpl , MhsmPrivateEndpointConnectionsImpl , MhsmPrivateLinkResourcesImpl , OperationsImpl , SecretsImpl } from "./operations" ; import { Keys , Vaults , PrivateEndpointConnections , PrivateLinkResources , ManagedHsms , MhsmPrivateEndpointConnections , MhsmPrivateLinkResources , Operations , Secrets } from "./operationsInterfaces" ; import { KeyVaultManagementClientOptionalParams } from "./models" ; export class KeyVaultManagementClient extends coreClient . ServiceClient { $host : string ; subscriptionId : string ; apiVersion : string ; param credentials param subscriptionId param options constructor ( credentials , subscriptionId , options ? ) { if ( credentials === undefined ) { throw new Error ( "'credentials' cannot be null" ) ; } if ( subscriptionId === undefined ) { throw new Error ( "'subscriptionId' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" , credential : credentials } ; const packageDetails = `azsdk-js-keyvault-resource-manager/1.0.0-beta.1` ; const userAgentPrefix = options . userAgentOptions && options . userAgentOptions . userAgentPrefix ? `${ options . userAgentOptions . userAgentPrefix } ${ packageDetails }` : `${ packageDetails }` ; const optionsWithDefaults = { ... defaults , ... options , userAgentOptions : { userAgentPrefix } , baseUri : options . endpoint || "https://management.azure.com" } ; super ( optionsWithDefaults ) ; this . subscriptionId = subscriptionId ; this . $host = options . $host || "https://management.azure.com" ; this . apiVersion = options . apiVersion || "2021-06-01-preview" ; this . keys = new KeysImpl ( this ) ; this . vaults = new VaultsImpl ( this ) ; this . privateEndpointConnections = new PrivateEndpointConnectionsImpl ( this ) ; this . privateLinkResources = new PrivateLinkResourcesImpl ( this ) ; this . managedHsms = new ManagedHsmsImpl ( this ) ; this . mhsmPrivateEndpointConnections = new MhsmPrivateEndpointConnectionsImpl ( this ) ; this . mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl ( this ) ; this . operations = new OperationsImpl ( this ) ; this . secrets = new SecretsImpl ( this ) ; } keys : Keys ; vaults : Vaults ; privateEndpointConnections : PrivateEndpointConnections ; privateLinkResources : PrivateLinkResources ; managedHsms : ManagedHsms ; mhsmPrivateEndpointConnections : MhsmPrivateEndpointConnections ; mhsmPrivateLinkResources : MhsmPrivateLinkResources ; operations : Operations ; secrets : Secrets ; }