import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { AuthorizationOperationsImpl , ManagementLocksImpl } from "./operations" ; import { AuthorizationOperations , ManagementLocks } from "./operationsInterfaces" ; import { ManagementLockClientOptionalParams } from "./models" ; export class ManagementLockClient extends coreClient . ServiceClient { $host : string ; apiVersion : string ; subscriptionId : 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-arm-package-locks-2016-09/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 || "2016-09-01" ; this . authorizationOperations = new AuthorizationOperationsImpl ( this ) ; this . managementLocks = new ManagementLocksImpl ( this ) ; } authorizationOperations : AuthorizationOperations ; managementLocks : ManagementLocks ; }