From 7510d4b412a44e64e6b5d9043bd9e57deefd0e5a Mon Sep 17 00:00:00 2001 From: colawwj <70128817+colawwj@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:45:28 +0800 Subject: [PATCH] Arm datadog release (#15381) * arm-datadog-release * arm-datadog-release * version-update --- sdk/datadog/arm-datadog/package.json | 2 +- .../src/microsoftDatadogClientContext.ts | 21 +- sdk/datadog/arm-datadog/src/models/index.ts | 709 ++++++++------- sdk/datadog/arm-datadog/src/models/mappers.ts | 11 +- .../arm-datadog/src/operations/monitors.ts | 855 +++++++++++------- 5 files changed, 915 insertions(+), 683 deletions(-) diff --git a/sdk/datadog/arm-datadog/package.json b/sdk/datadog/arm-datadog/package.json index 898d322cf8d1..b82c25bf66fd 100644 --- a/sdk/datadog/arm-datadog/package.json +++ b/sdk/datadog/arm-datadog/package.json @@ -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", diff --git a/sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts b/sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts index 0a05828363b0..6c3e2a613997 100644 --- a/sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts +++ b/sdk/datadog/arm-datadog/src/microsoftDatadogClientContext.ts @@ -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; @@ -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) { @@ -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"; @@ -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; } } diff --git a/sdk/datadog/arm-datadog/src/models/index.ts b/sdk/datadog/arm-datadog/src/models/index.ts index 46bb6b776d71..552753f5eb23 100644 --- a/sdk/datadog/arm-datadog/src/models/index.ts +++ b/sdk/datadog/arm-datadog/src/models/index.ts @@ -431,6 +431,7 @@ export interface DatadogMonitorResourceUpdateParameters { * The new tags of the monitor resource. */ tags?: { [propertyName: string]: string }; + sku?: ResourceSku; } /** @@ -648,7 +649,8 @@ export interface ErrorResponse { /** * Optional Parameters. */ -export interface MarketplaceAgreementsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface MarketplaceAgreementsCreateOrUpdateOptionalParams + extends msRest.RequestOptionsBase { body?: DatadogAgreementResource; } @@ -680,6 +682,13 @@ export interface MonitorsBeginCreateOptionalParams extends msRest.RequestOptions body?: DatadogMonitorResource; } +/** + * Optional Parameters. + */ +export interface MonitorsBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + body?: DatadogMonitorResourceUpdateParameters; +} + /** * Optional Parameters. */ @@ -690,14 +699,16 @@ export interface TagRulesCreateOrUpdateOptionalParams extends msRest.RequestOpti /** * Optional Parameters. */ -export interface SingleSignOnConfigurationsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface SingleSignOnConfigurationsCreateOrUpdateOptionalParams + extends msRest.RequestOptionsBase { body?: DatadogSingleSignOnResource; } /** * Optional Parameters. */ -export interface SingleSignOnConfigurationsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface SingleSignOnConfigurationsBeginCreateOrUpdateOptionalParams + extends msRest.RequestOptionsBase { body?: DatadogSingleSignOnResource; } @@ -809,7 +820,8 @@ export interface MonitoringTagRulesListResponse extends Array */ -export interface DatadogSingleSignOnResourceListResponse extends Array { +export interface DatadogSingleSignOnResourceListResponse + extends Array { /** * Link to the next set of results, if any. */ @@ -822,7 +834,7 @@ export interface DatadogSingleSignOnResourceListResponse extends Array */ - listApiKeys(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + listApiKeys( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - listApiKeys(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + listApiKeys( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - listApiKeys(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApiKeys(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listApiKeys( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listApiKeys( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -55,7 +73,8 @@ export class Monitors { options }, listApiKeysOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -65,21 +84,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - getDefaultKey(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + getDefaultKey( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - getDefaultKey(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + getDefaultKey( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - getDefaultKey(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getDefaultKey(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getDefaultKey( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + getDefaultKey( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -87,7 +124,8 @@ export class Monitors { options }, getDefaultKeyOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -97,21 +135,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - setDefaultKey(resourceGroupName: string, monitorName: string, options?: Models.MonitorsSetDefaultKeyOptionalParams): Promise; + setDefaultKey( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsSetDefaultKeyOptionalParams + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - setDefaultKey(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + setDefaultKey( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - setDefaultKey(resourceGroupName: string, monitorName: string, options: Models.MonitorsSetDefaultKeyOptionalParams, callback: msRest.ServiceCallback): void; - setDefaultKey(resourceGroupName: string, monitorName: string, options?: Models.MonitorsSetDefaultKeyOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + setDefaultKey( + resourceGroupName: string, + monitorName: string, + options: Models.MonitorsSetDefaultKeyOptionalParams, + callback: msRest.ServiceCallback + ): void; + setDefaultKey( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsSetDefaultKeyOptionalParams | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +175,8 @@ export class Monitors { options }, setDefaultKeyOperationSpec, - callback); + callback + ); } /** @@ -129,21 +186,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listHosts(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + listHosts( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - listHosts(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + listHosts( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - listHosts(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHosts(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listHosts( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listHosts( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -151,7 +226,8 @@ export class Monitors { options }, listHostsOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -162,21 +238,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listLinkedResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + listLinkedResources( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - listLinkedResources(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + listLinkedResources( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - listLinkedResources(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listLinkedResources( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listLinkedResources( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -184,7 +278,8 @@ export class Monitors { options }, listLinkedResourcesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -194,21 +289,41 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listMonitoredResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + listMonitoredResources( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - listMonitoredResources(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + listMonitoredResources( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - listMonitoredResources(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMonitoredResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listMonitoredResources( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listMonitoredResources( + resourceGroupName: string, + monitorName: string, + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +331,8 @@ export class Monitors { options }, listMonitoredResourcesOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -233,14 +349,23 @@ export class Monitors { * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + list( + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -249,26 +374,43 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroup( + resourceGroupName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listByResourceGroup( + resourceGroupName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup( + resourceGroupName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listByResourceGroup( + resourceGroupName: string, + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -278,21 +420,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + get( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - get(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + get( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -300,7 +460,8 @@ export class Monitors { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -310,9 +471,14 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - create(resourceGroupName: string, monitorName: string, options?: Models.MonitorsCreateOptionalParams): Promise { - return this.beginCreate(resourceGroupName,monitorName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + create( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsCreateOptionalParams + ): Promise { + return this.beginCreate(resourceGroupName, monitorName, options).then((lroPoller) => + lroPoller.pollUntilFinished() + ) as Promise; } /** @@ -322,29 +488,14 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, monitorName: string, options?: Models.MonitorsUpdateOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param monitorName Monitor resource name - * @param callback The callback - */ - update(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param monitorName Monitor resource name - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, monitorName: string, options: Models.MonitorsUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, monitorName: string, options?: Models.MonitorsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - monitorName, - options - }, - updateOperationSpec, - callback) as Promise; + update( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsUpdateOptionalParams + ): Promise { + return this.beginUpdate(resourceGroupName, monitorName, options).then((lroPoller) => + lroPoller.pollUntilFinished() + ) as Promise; } /** @@ -354,9 +505,14 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,monitorName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + deleteMethod( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise { + return this.beginDeleteMethod(resourceGroupName, monitorName, options).then((lroPoller) => + lroPoller.pollUntilFinished() + ); } /** @@ -366,21 +522,39 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - refreshSetPasswordLink(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise; + refreshSetPasswordLink( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param callback The callback */ - refreshSetPasswordLink(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void; + refreshSetPasswordLink( + resourceGroupName: string, + monitorName: string, + callback: msRest.ServiceCallback + ): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name * @param options The optional parameters * @param callback The callback */ - refreshSetPasswordLink(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - refreshSetPasswordLink(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + refreshSetPasswordLink( + resourceGroupName: string, + monitorName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + refreshSetPasswordLink( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -388,7 +562,8 @@ export class Monitors { options }, refreshSetPasswordLinkOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -398,7 +573,11 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - beginCreate(resourceGroupName: string, monitorName: string, options?: Models.MonitorsBeginCreateOptionalParams): Promise { + beginCreate( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsBeginCreateOptionalParams + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -406,7 +585,31 @@ export class Monitors { options }, beginCreateOperationSpec, - options); + options + ); + } + + /** + * @summary Update a monitor resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param monitorName Monitor resource name + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate( + resourceGroupName: string, + monitorName: string, + options?: Models.MonitorsBeginUpdateOptionalParams + ): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + monitorName, + options + }, + beginUpdateOperationSpec, + options + ); } /** @@ -416,7 +619,11 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod( + resourceGroupName: string, + monitorName: string, + options?: msRest.RequestOptionsBase + ): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -424,7 +631,8 @@ export class Monitors { options }, beginDeleteMethodOperationSpec, - options); + options + ); } /** @@ -433,26 +641,41 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listApiKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listApiKeysNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listApiKeysNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listApiKeysNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listApiKeysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listApiKeysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listApiKeysNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listApiKeysNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listApiKeysNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -461,26 +684,41 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listHostsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listHostsNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listHostsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listHostsNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listHostsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHostsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listHostsNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listHostsNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listHostsNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -490,26 +728,41 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listLinkedResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listLinkedResourcesNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listLinkedResourcesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listLinkedResourcesNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listLinkedResourcesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listLinkedResourcesNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listLinkedResourcesNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listLinkedResourcesNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -518,26 +771,43 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listMonitoredResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listMonitoredResourcesNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listMonitoredResourcesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listMonitoredResourcesNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listMonitoredResourcesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMonitoredResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listMonitoredResourcesNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listMonitoredResourcesNext( + nextPageLink: string, + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listMonitoredResourcesNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -546,26 +816,43 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listNext( + nextPageLink: string, + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -574,26 +861,43 @@ export class Monitors { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext( + nextPageLink: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext( + nextPageLink: string, + callback: msRest.ServiceCallback + ): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext( + nextPageLink: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + listByResourceGroupNext( + nextPageLink: string, + options?: + | msRest.RequestOptionsBase + | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -601,18 +905,11 @@ export class Monitors { const serializer = new msRest.Serializer(Mappers); const listApiKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogApiKeyListResponse @@ -626,18 +923,11 @@ const listApiKeysOperationSpec: msRest.OperationSpec = { const getDefaultKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogApiKey @@ -651,23 +941,13 @@ const getDefaultKeyOperationSpec: msRest.OperationSpec = { const setDefaultKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { - parameterPath: [ - "options", - "body" - ], + parameterPath: ["options", "body"], mapper: Mappers.DatadogApiKey }, responses: { @@ -681,18 +961,11 @@ const setDefaultKeyOperationSpec: msRest.OperationSpec = { const listHostsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogHostListResponse @@ -706,18 +979,11 @@ const listHostsOperationSpec: msRest.OperationSpec = { const listLinkedResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.LinkedResourceListResponse @@ -731,18 +997,11 @@ const listLinkedResourcesOperationSpec: msRest.OperationSpec = { const listMonitoredResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.MonitoredResourceListResponse @@ -757,15 +1016,9 @@ const listMonitoredResourcesOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.subscriptionId], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogMonitorResourceListResponse @@ -779,17 +1032,11 @@ const listOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogMonitorResourceListResponse @@ -803,18 +1050,11 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogMonitorResource @@ -826,30 +1066,16 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: [ - "options", - "body" - ], - mapper: Mappers.DatadogMonitorResourceUpdateParameters - }, +const refreshSetPasswordLinkOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { - bodyMapper: Mappers.DatadogMonitorResource + bodyMapper: Mappers.DatadogSetPasswordLink }, default: { bodyMapper: Mappers.ErrorResponse @@ -858,23 +1084,23 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const refreshSetPasswordLinkOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], + requestBody: { + parameterPath: ["options", "body"], + mapper: Mappers.DatadogMonitorResource + }, responses: { 200: { - bodyMapper: Mappers.DatadogSetPasswordLink + bodyMapper: Mappers.DatadogMonitorResource + }, + 201: { + bodyMapper: Mappers.DatadogMonitorResource }, default: { bodyMapper: Mappers.ErrorResponse @@ -883,26 +1109,16 @@ const refreshSetPasswordLinkOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], requestBody: { - parameterPath: [ - "options", - "body" - ], - mapper: Mappers.DatadogMonitorResource + parameterPath: ["options", "body"], + mapper: Mappers.DatadogMonitorResourceUpdateParameters }, responses: { 200: { @@ -920,18 +1136,11 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.monitorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}", + urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.monitorName], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: {}, 202: {}, @@ -947,15 +1156,9 @@ const listApiKeysNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogApiKeyListResponse @@ -971,15 +1174,9 @@ const listHostsNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogHostListResponse @@ -995,15 +1192,9 @@ const listLinkedResourcesNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.LinkedResourceListResponse @@ -1019,15 +1210,9 @@ const listMonitoredResourcesNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.MonitoredResourceListResponse @@ -1043,15 +1228,9 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogMonitorResourceListResponse @@ -1067,15 +1246,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.DatadogMonitorResourceListResponse