@@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
12
12
import * as msRestAzure from "@azure/ms-rest-azure-js" ;
13
13
14
14
const packageName = "@azure/arm-datadog" ;
15
- const packageVersion = "1 .0.0" ;
15
+ const packageVersion = "2 .0.0" ;
16
16
17
17
export class MicrosoftDatadogClientContext extends msRestAzure . AzureServiceClient {
18
18
credentials : msRest . ServiceClientCredentials ;
@@ -25,12 +25,16 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
25
25
* @param subscriptionId The ID of the target subscription.
26
26
* @param [options] The parameter options
27
27
*/
28
- constructor ( credentials : msRest . ServiceClientCredentials , subscriptionId : string , options ?: Models . MicrosoftDatadogClientOptions ) {
28
+ constructor (
29
+ credentials : msRest . ServiceClientCredentials ,
30
+ subscriptionId : string ,
31
+ options ?: Models . MicrosoftDatadogClientOptions
32
+ ) {
29
33
if ( credentials == undefined ) {
30
- throw new Error ( '\' credentials\ ' cannot be null.' ) ;
34
+ throw new Error ( "' credentials' cannot be null." ) ;
31
35
}
32
36
if ( subscriptionId == undefined ) {
33
- throw new Error ( '\' subscriptionId\ ' cannot be null.' ) ;
37
+ throw new Error ( "' subscriptionId' cannot be null." ) ;
34
38
}
35
39
36
40
if ( ! options ) {
@@ -43,8 +47,8 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
43
47
44
48
super ( credentials , options ) ;
45
49
46
- this . apiVersion = ' 2021-03-01' ;
47
- this . acceptLanguage = ' en-US' ;
50
+ this . apiVersion = " 2021-03-01" ;
51
+ this . acceptLanguage = " en-US" ;
48
52
this . longRunningOperationRetryTimeout = 30 ;
49
53
this . baseUri = options . baseUri || this . baseUri || "https://management.azure.com" ;
50
54
this . requestContentType = "application/json; charset=utf-8" ;
@@ -54,7 +58,10 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
54
58
if ( options . acceptLanguage !== null && options . acceptLanguage !== undefined ) {
55
59
this . acceptLanguage = options . acceptLanguage ;
56
60
}
57
- if ( options . longRunningOperationRetryTimeout !== null && options . longRunningOperationRetryTimeout !== undefined ) {
61
+ if (
62
+ options . longRunningOperationRetryTimeout !== null &&
63
+ options . longRunningOperationRetryTimeout !== undefined
64
+ ) {
58
65
this . longRunningOperationRetryTimeout = options . longRunningOperationRetryTimeout ;
59
66
}
60
67
}
0 commit comments