@@ -26,43 +26,36 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
2626 * subscription. The subscription ID forms part of the URI for every service call.
2727 * @param [options] The parameter options
2828 */
29- constructor (
30- credentials : msRest . ServiceClientCredentials ,
31- subscriptionId : string ,
32- options ?: Models . AzureNetAppFilesManagementClientOptions
33- ) {
29+ constructor ( credentials : msRest . ServiceClientCredentials , subscriptionId : string , options ?: Models . AzureNetAppFilesManagementClientOptions ) {
3430 if ( credentials == undefined ) {
35- throw new Error ( "' credentials' cannot be null." ) ;
31+ throw new Error ( '\' credentials\ ' cannot be null.' ) ;
3632 }
3733 if ( subscriptionId == undefined ) {
38- throw new Error ( "' subscriptionId' cannot be null." ) ;
34+ throw new Error ( '\' subscriptionId\ ' cannot be null.' ) ;
3935 }
4036
4137 if ( ! options ) {
4238 options = { } ;
4339 }
44- if ( ! options . userAgent ) {
40+ if ( ! options . userAgent ) {
4541 const defaultUserAgent = msRestAzure . getDefaultUserAgentValue ( ) ;
4642 options . userAgent = `${ packageName } /${ packageVersion } ${ defaultUserAgent } ` ;
4743 }
4844
4945 super ( credentials , options ) ;
5046
51- this . apiVersion = " 2021-02-01" ;
52- this . acceptLanguage = " en-US" ;
47+ this . apiVersion = ' 2021-02-01' ;
48+ this . acceptLanguage = ' en-US' ;
5349 this . longRunningOperationRetryTimeout = 30 ;
5450 this . baseUri = options . baseUri || this . baseUri || "https://management.azure.com" ;
5551 this . requestContentType = "application/json; charset=utf-8" ;
5652 this . credentials = credentials ;
5753 this . subscriptionId = subscriptionId ;
5854
59- if ( options . acceptLanguage !== null && options . acceptLanguage !== undefined ) {
55+ if ( options . acceptLanguage !== null && options . acceptLanguage !== undefined ) {
6056 this . acceptLanguage = options . acceptLanguage ;
6157 }
62- if (
63- options . longRunningOperationRetryTimeout !== null &&
64- options . longRunningOperationRetryTimeout !== undefined
65- ) {
58+ if ( options . longRunningOperationRetryTimeout !== null && options . longRunningOperationRetryTimeout !== undefined ) {
6659 this . longRunningOperationRetryTimeout = options . longRunningOperationRetryTimeout ;
6760 }
6861 }
0 commit comments