import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { DeploymentScriptsImpl } from "./operations" ; import { DeploymentScripts } from "./operationsInterfaces" ; import { DeploymentScriptsClientOptionalParams } from "./models" ; export class DeploymentScriptsClient 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-arm-package-deploymentscripts-2019-10-preview/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 || "2019-10-01-preview" ; this . deploymentScripts = new DeploymentScriptsImpl ( this ) ; } deploymentScripts : DeploymentScripts ; }