diff --git a/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt b/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt +++ b/sdk/deploymentmanager/arm-deploymentmanager/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/deploymentmanager/arm-deploymentmanager/README.md b/sdk/deploymentmanager/arm-deploymentmanager/README.md index a3a985772bf3..d873ebef02b4 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/README.md +++ b/sdk/deploymentmanager/arm-deploymentmanager/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-deploymentmanager ### How to use -#### nodejs - Authentication, client creation and get serviceTopologies as an example written in TypeScript. +#### nodejs - client creation and get serviceTopologies as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureDeploymentManager, AzureDeploymentManagerModels, AzureDeploymentManagerMappers } from "@azure/arm-deploymentmanager"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { AzureDeploymentManager } = require("@azure/arm-deploymentmanager"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js b/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js index 281d71c3e84c..36823de451b1 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js +++ b/sdk/deploymentmanager/arm-deploymentmanager/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts index f948ddd290cd..51345be217f7 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts index 397f56cb3595..98cd836513b8 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManagerContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts index 756b213e1eb6..16913d705123 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/artifactSourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts index 68206a72b062..6dc52136ccf5 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -63,11 +63,12 @@ export interface StepGroup { } /** - * An interface representing Resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -78,15 +79,17 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * The resource model definition for a ARM tracked top level resource + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ export interface TrackedResource extends Resource { /** @@ -893,14 +896,16 @@ export interface WaitStepProperties { } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ export interface ProxyResource extends Resource { } /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ export interface AzureEntityResource extends Resource { /** diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts index 7ebb98108d77..682803f1b6ea 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts index 6c49bbac166a..920aab7d9a3d 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts index 54f7af08e5b8..63afa3834e1d 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts index 1383c12ccac2..ee4d628a5ed0 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/rolloutsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts index 756b213e1eb6..16913d705123 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceTopologiesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts index 810be21eff1f..1ab3e44c7f9b 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/serviceUnitsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts index 756b213e1eb6..16913d705123 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/servicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts index 756b213e1eb6..16913d705123 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/stepsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts index ce948c089105..5b34bfa4eb3d 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts index 47ad7069f14a..efae29d5994f 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts index 77d17ecb0bca..9f63f09fccef 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts index 8d8027a3e50a..b07864cabebb 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -386,7 +385,8 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.RolloutsCreateOrUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.RolloutsCreateOrUpdateHeaders } }, serializer diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts index b03fd4f8f1b5..40065b3e9217 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts index c38f35dcb65e..b9b464ce54b8 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -308,7 +307,8 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.ServiceUnitsCreateOrUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.CloudError, + headersMapper: Mappers.ServiceUnitsCreateOrUpdateHeaders } }, serializer diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts index f46d0036a0a0..b93364aeb2db 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts index 09a13375f8bc..97e474545f47 100644 --- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts +++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is