Skip to content

Commit

Permalink
Arm datadog release (Azure#15381)
Browse files Browse the repository at this point in the history
* arm-datadog-release

* arm-datadog-release

* version-update
  • Loading branch information
colawwj authored Jun 1, 2021
1 parent b32066c commit 7510d4b
Show file tree
Hide file tree
Showing 5 changed files with 915 additions and 683 deletions.
2 changes: 1 addition & 1 deletion sdk/datadog/arm-datadog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-datadog",
"author": "Microsoft Corporation",
"description": "MicrosoftDatadogClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0",
"version": "2.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
21 changes: 14 additions & 7 deletions sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-datadog";
const packageVersion = "1.0.0";
const packageVersion = "2.0.0";

export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand All @@ -25,12 +25,16 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftDatadogClientOptions) {
constructor(
credentials: msRest.ServiceClientCredentials,
subscriptionId: string,
options?: Models.MicrosoftDatadogClientOptions
) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
throw new Error("'credentials' cannot be null.");
}
if (subscriptionId == undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
throw new Error("'subscriptionId' cannot be null.");
}

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

super(credentials, options);

this.apiVersion = '2021-03-01';
this.acceptLanguage = 'en-US';
this.apiVersion = "2021-03-01";
this.acceptLanguage = "en-US";
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
Expand All @@ -54,7 +58,10 @@ export class MicrosoftDatadogClientContext extends msRestAzure.AzureServiceClien
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if (
options.longRunningOperationRetryTimeout !== null &&
options.longRunningOperationRetryTimeout !== undefined
) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Loading

0 comments on commit 7510d4b

Please sign in to comment.