Skip to content

Commit 7510d4b

Browse files
authored
Arm datadog release (Azure#15381)
* arm-datadog-release * arm-datadog-release * version-update
1 parent b32066c commit 7510d4b

File tree

5 files changed

+915
-683
lines changed

5 files changed

+915
-683
lines changed

sdk/datadog/arm-datadog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-datadog",
33
"author": "Microsoft Corporation",
44
"description": "MicrosoftDatadogClient Library with typescript type definitions for node.js and browser.",
5-
"version": "1.0.0",
5+
"version": "2.0.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
1212
import * as msRestAzure from "@azure/ms-rest-azure-js";
1313

1414
const packageName = "@azure/arm-datadog";
15-
const packageVersion = "1.0.0";
15+
const packageVersion = "2.0.0";
1616

1717
export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClient {
1818
credentials: msRest.ServiceClientCredentials;
@@ -25,12 +25,16 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
2525
* @param subscriptionId The ID of the target subscription.
2626
* @param [options] The parameter options
2727
*/
28-
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftDatadogClientOptions) {
28+
constructor(
29+
credentials: msRest.ServiceClientCredentials,
30+
subscriptionId: string,
31+
options?: Models.MicrosoftDatadogClientOptions
32+
) {
2933
if (credentials == undefined) {
30-
throw new Error('\'credentials\' cannot be null.');
34+
throw new Error("'credentials' cannot be null.");
3135
}
3236
if (subscriptionId == undefined) {
33-
throw new Error('\'subscriptionId\' cannot be null.');
37+
throw new Error("'subscriptionId' cannot be null.");
3438
}
3539

3640
if (!options) {
@@ -43,8 +47,8 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
4347

4448
super(credentials, options);
4549

46-
this.apiVersion = '2021-03-01';
47-
this.acceptLanguage = 'en-US';
50+
this.apiVersion = "2021-03-01";
51+
this.acceptLanguage = "en-US";
4852
this.longRunningOperationRetryTimeout = 30;
4953
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5054
this.requestContentType = "application/json; charset=utf-8";
@@ -54,7 +58,10 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
5458
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5559
this.acceptLanguage = options.acceptLanguage;
5660
}
57-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
61+
if (
62+
options.longRunningOperationRetryTimeout !== null &&
63+
options.longRunningOperationRetryTimeout !== undefined
64+
) {
5865
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
5966
}
6067
}

0 commit comments

Comments
 (0)