From 70e2057248d8e07a2e35dfa2c54a4e2cc945c8fb Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 24 Feb 2020 22:09:23 +0000 Subject: [PATCH] Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8 Merge pull request #6 from Khushboo-Baheti/master merge --- sdk/maps/arm-maps/LICENSE.txt | 2 +- sdk/maps/arm-maps/README.md | 14 +- sdk/maps/arm-maps/package.json | 24 +- sdk/maps/arm-maps/rollup.config.js | 22 +- sdk/maps/arm-maps/src/mapsManagementClient.ts | 7 +- .../src/mapsManagementClientContext.ts | 7 +- .../arm-maps/src/models/accountsMappers.ts | 34 +- sdk/maps/arm-maps/src/models/index.ts | 503 +++++++++++------- sdk/maps/arm-maps/src/models/mappers.ts | 378 +++++++++---- sdk/maps/arm-maps/src/models/mapsMappers.ts | 15 + sdk/maps/arm-maps/src/models/parameters.ts | 21 + .../src/models/privateAtlasesMappers.ts | 26 + sdk/maps/arm-maps/src/operations/accounts.ts | 167 +----- sdk/maps/arm-maps/src/operations/index.ts | 2 + sdk/maps/arm-maps/src/operations/maps.ts | 74 +++ .../arm-maps/src/operations/privateAtlases.ts | 365 +++++++++++++ sdk/maps/arm-maps/tsconfig.json | 2 +- 17 files changed, 1195 insertions(+), 468 deletions(-) create mode 100644 sdk/maps/arm-maps/src/models/mapsMappers.ts create mode 100644 sdk/maps/arm-maps/src/models/privateAtlasesMappers.ts create mode 100644 sdk/maps/arm-maps/src/operations/maps.ts create mode 100644 sdk/maps/arm-maps/src/operations/privateAtlases.ts diff --git a/sdk/maps/arm-maps/LICENSE.txt b/sdk/maps/arm-maps/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/maps/arm-maps/LICENSE.txt +++ b/sdk/maps/arm-maps/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 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/maps/arm-maps/README.md b/sdk/maps/arm-maps/README.md index 83ac00dbb066..b5d62969b701 100644 --- a/sdk/maps/arm-maps/README.md +++ b/sdk/maps/arm-maps/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for MapsManagementClient. ### How to Install -``` +```bash npm install @azure/arm-maps ``` @@ -19,13 +19,14 @@ npm install @azure/arm-maps ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```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"; @@ -49,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -99,5 +100,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmaps%2Farm-maps%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/maps/arm-maps/README.png) diff --git a/sdk/maps/arm-maps/package.json b/sdk/maps/arm-maps/package.json index 0c75135b8ac2..d5d9f6392f9a 100644 --- a/sdk/maps/arm-maps/package.json +++ b/sdk/maps/arm-maps/package.json @@ -4,9 +4,9 @@ "description": "MapsManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/mapsManagementClient.js", "types": "./esm/mapsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/maps/arm-maps", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/maps/arm-maps", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/maps/arm-maps/rollup.config.js b/sdk/maps/arm-maps/rollup.config.js index 4ea68c8f828a..9231bb684756 100644 --- a/sdk/maps/arm-maps/rollup.config.js +++ b/sdk/maps/arm-maps/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/mapsManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/mapsManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-maps.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/maps/arm-maps/src/mapsManagementClient.ts b/sdk/maps/arm-maps/src/mapsManagementClient.ts index 067726ebb38c..cbbdca3cde22 100644 --- a/sdk/maps/arm-maps/src/mapsManagementClient.ts +++ b/sdk/maps/arm-maps/src/mapsManagementClient.ts @@ -18,17 +18,20 @@ import { MapsManagementClientContext } from "./mapsManagementClientContext"; class MapsManagementClient extends MapsManagementClientContext { // Operation groups accounts: operations.Accounts; + maps: operations.Maps; + privateAtlases: operations.PrivateAtlases; /** * Initializes a new instance of the MapsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MapsManagementClientOptions) { super(credentials, subscriptionId, options); this.accounts = new operations.Accounts(this); + this.maps = new operations.Maps(this); + this.privateAtlases = new operations.PrivateAtlases(this); } } diff --git a/sdk/maps/arm-maps/src/mapsManagementClientContext.ts b/sdk/maps/arm-maps/src/mapsManagementClientContext.ts index 3e74ac3f6452..43206a3edf28 100644 --- a/sdk/maps/arm-maps/src/mapsManagementClientContext.ts +++ b/sdk/maps/arm-maps/src/mapsManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-maps"; -const packageVersion = "0.1.0"; +const packageVersion = "1.1.0"; export class MapsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -23,8 +23,7 @@ export class MapsManagementClientContext extends msRestAzure.AzureServiceClient /** * Initializes a new instance of the MapsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MapsManagementClientOptions) { @@ -45,7 +44,7 @@ export class MapsManagementClientContext extends msRestAzure.AzureServiceClient super(credentials, options); - this.apiVersion = '2018-05-01'; + this.apiVersion = '2020-02-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/maps/arm-maps/src/models/accountsMappers.ts b/sdk/maps/arm-maps/src/models/accountsMappers.ts index 13e80f28e397..5d9a60761bb3 100644 --- a/sdk/maps/arm-maps/src/models/accountsMappers.ts +++ b/sdk/maps/arm-maps/src/models/accountsMappers.ts @@ -1,28 +1,28 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - MapsAccountCreateParameters, - Sku, - MapsAccount, - Resource, + AzureEntityResource, BaseResource, - ErrorModel, - ErrorDetailsItem, - MapsAccountUpdateParameters, - MapsAccounts, - MapsAccountsMoveRequest, + ErrorAdditionalInfo, + ErrorResponse, + MapsAccount, + MapsAccountCreateParameters, MapsAccountKeys, + MapsAccountProperties, + MapsAccounts, + MapsAccountUpdateParameters, MapsKeySpecification, - MapsOperations, - MapsOperationsValueItem, - MapsOperationsValueItemDisplay + PrivateAtlas, + PrivateAtlasProperties, + ProxyResource, + Resource, + Sku, + SystemData, + TrackedResource } from "../models/mappers"; - diff --git a/sdk/maps/arm-maps/src/models/index.ts b/sdk/maps/arm-maps/src/models/index.ts index 96226ea82da0..c505bd18b83b 100644 --- a/sdk/maps/arm-maps/src/models/index.ts +++ b/sdk/maps/arm-maps/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,338 +11,363 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * Private Atlas resource properties + */ +export interface PrivateAtlasProperties { + /** + * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled + */ + provisioningState?: string; +} /** - * @interface - * An interface representing ErrorDetailsItem. + * An interface representing Resource. */ -export interface ErrorDetailsItem { +export interface Resource extends BaseResource { /** - * @member {string} [code] Error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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.** */ - readonly code?: string; + readonly id?: string; /** - * @member {string} [message] If available, a human readable description of - * the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly name?: string; /** - * @member {string} [target] If available, the component generating the - * error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or + * Microsoft.Storage/storageAccounts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly target?: string; + readonly type?: string; } /** - * @interface - * An interface representing ErrorModel. - * This object is returned when an error occurs in the Maps API - * + * The resource model definition for a ARM tracked top level resource */ -export interface ErrorModel { +export interface TrackedResource extends Resource { /** - * @member {string} [code] Error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource tags. */ - readonly code?: string; + tags?: { [propertyName: string]: string }; /** - * @member {string} [message] If available, a human readable description of - * the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The geo-location where the resource lives */ - readonly message?: string; + location: string; +} + +/** + * An Azure resource which represents which will provision the ability to create private location + * data. + */ +export interface PrivateAtlas extends TrackedResource { /** - * @member {string} [target] If available, the component generating the - * error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Private Atlas resource properties. */ - readonly target?: string; + properties?: PrivateAtlasProperties; +} + +/** + * The SKU of the Maps Account. + */ +export interface Sku { /** - * @member {ErrorDetailsItem[]} [details] If available, a list of additional - * details about the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the SKU, in standard format (such as S0). */ - readonly details?: ErrorDetailsItem[]; + name: string; + /** + * Gets the sku tier. This is based on the SKU name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tier?: string; } /** - * @interface - * An interface representing Resource. - * An Azure resource - * - * @extends BaseResource + * Metadata pertaining to creation and last modification of the resource. */ -export interface Resource extends BaseResource { +export interface SystemData { /** - * @member {string} [id] The fully qualified Maps Account resource - * identifier. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The identity that created the resource. */ - readonly id?: string; + createdBy?: string; /** - * @member {string} [name] The name of the Maps Account, which is unique - * within a Resource Group. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - readonly name?: string; + createdByType?: CreatedByType; /** - * @member {string} [type] Azure resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The timestamp of resource creation (UTC). */ - readonly type?: string; + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The type of identity that last modified the resource. + */ + lastModifiedAt?: Date; } /** - * @interface - * An interface representing Sku. - * The SKU of the Maps Account. - * + * Additional Map account properties */ -export interface Sku { - /** - * @member {string} name The name of the SKU, in standard format (such as - * S0). - */ - name: string; +export interface MapsAccountProperties { /** - * @member {string} [tier] Gets the sku tier. This is based on the SKU name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A unique identifier for the maps account */ - readonly tier?: string; + xMsClientId?: string; } /** - * @interface - * An interface representing MapsAccount. * An Azure resource which represents access to a suite of Maps REST APIs. - * - * @extends Resource */ -export interface MapsAccount extends Resource { +export interface MapsAccount extends TrackedResource { /** - * @member {string} [location] The location of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The SKU of this account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly sku?: Sku; /** - * @member {{ [propertyName: string]: string }} [tags] Gets a list of key - * value pairs that describe the resource. These tags can be used in viewing - * and grouping this resource (across resource groups). A maximum of 15 tags - * can be provided for a resource. Each tag must have a key no greater than - * 128 characters and value no greater than 256 characters. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tags?: { [propertyName: string]: string }; + readonly systemData?: SystemData; /** - * @member {Sku} [sku] The SKU of this account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The map account properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sku?: Sku; + readonly properties?: MapsAccountProperties; } /** - * @interface - * An interface representing MapsAccountCreateParameters. * Parameters used to create a new Maps Account. - * */ export interface MapsAccountCreateParameters { /** - * @member {string} location The location of the resource. + * The location of the resource. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Gets or sets a list of - * key value pairs that describe the resource. These tags can be used in - * viewing and grouping this resource (across resource groups). A maximum of - * 15 tags can be provided for a resource. Each tag must have a key no + * Gets or sets a list of key value pairs that describe the resource. These tags can be used in + * viewing and grouping this resource (across resource groups). Each tag must have a key no * greater than 128 characters and value no greater than 256 characters. */ tags?: { [propertyName: string]: string }; /** - * @member {Sku} sku The SKU of this account. + * The SKU of this account. */ sku: Sku; } /** - * @interface - * An interface representing MapsAccountUpdateParameters. + * Parameters used to create a new Private Atlas resource. + */ +export interface PrivateAtlasCreateParameters { + /** + * The location of the resource. + */ + location: string; + /** + * Gets or sets a list of key value pairs that describe the resource. These tags can be used in + * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be + * provided for a resource. Each tag must have a key no greater than 128 characters and value no + * greater than 256 characters. + */ + tags?: { [propertyName: string]: string }; +} + +/** * Parameters used to update an existing Maps Account. - * */ export interface MapsAccountUpdateParameters { /** - * @member {{ [propertyName: string]: string }} [tags] Gets or sets a list of - * key value pairs that describe the resource. These tags can be used in - * viewing and grouping this resource (across resource groups). A maximum of - * 15 tags can be provided for a resource. Each tag must have a key no - * greater than 128 characters and value no greater than 256 characters. + * Gets or sets a list of key value pairs that describe the resource. These tags can be used in + * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be + * provided for a resource. Each tag must have a key no greater than 128 characters and value no + * greater than 256 characters. */ tags?: { [propertyName: string]: string }; /** - * @member {Sku} [sku] The SKU of this account. + * The SKU of this account. */ sku?: Sku; } /** - * @interface - * An interface representing MapsAccountsMoveRequest. - * The description of what resources to move between resource groups. - * + * Parameters used to update an existing Private Atlas resource. */ -export interface MapsAccountsMoveRequest { - /** - * @member {string} targetResourceGroup The name of the destination resource - * group. - */ - targetResourceGroup: string; +export interface PrivateAtlasUpdateParameters { /** - * @member {string[]} resourceIds A list of resource names to move from the - * source resource group. + * Gets or sets a list of key value pairs that describe the resource. These tags can be used in + * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be + * provided for a resource. Each tag must have a key no greater than 128 characters and value no + * greater than 256 characters. */ - resourceIds: string[]; + tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing MapsKeySpecification. * Whether the operation refers to the primary or secondary key. - * */ export interface MapsKeySpecification { /** - * @member {KeyType} keyType Whether the operation refers to the primary or - * secondary key. Possible values include: 'primary', 'secondary' + * Whether the operation refers to the primary or secondary key. Possible values include: + * 'primary', 'secondary' */ keyType: KeyType; } /** - * @interface - * An interface representing MapsAccountKeys. - * The set of keys which can be used to access the Maps REST APIs. Two keys are - * provided for key rotation without interruption. - * + * The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key + * rotation without interruption. */ export interface MapsAccountKeys { /** - * @member {string} [id] The full Azure resource identifier of the Maps - * Account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The full Azure resource identifier of the Maps Account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [primaryKey] The primary key for accessing the Maps REST - * APIs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The primary key for accessing the Maps REST APIs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly primaryKey?: string; /** - * @member {string} [secondaryKey] The secondary key for accessing the Maps - * REST APIs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The secondary key for accessing the Maps REST APIs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondaryKey?: string; } /** - * @interface - * An interface representing MapsOperationsValueItemDisplay. * The human-readable description of the operation. - * */ export interface MapsOperationsValueItemDisplay { /** - * @member {string} [provider] Service provider: Microsoft Maps. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Service provider: Microsoft Maps. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource on which the operation is performed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; /** - * @member {string} [operation] The action that users can perform, based on - * their permission level. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The action that users can perform, based on their permission level. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; /** - * @member {string} [description] The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; } /** - * @interface * An interface representing MapsOperationsValueItem. */ export interface MapsOperationsValueItem { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation name: {provider}/{resource}/{operation}. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {MapsOperationsValueItemDisplay} [display] The human-readable - * description of the operation. + * The human-readable description of the operation. */ display?: MapsOperationsValueItemDisplay; /** - * @member {string} [origin] The origin of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The origin of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly origin?: string; } /** - * @interface - * An interface representing MapsManagementClientOptions. - * @extends AzureServiceClientOptions + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ -export interface MapsManagementClientOptions extends AzureServiceClientOptions { +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for a Azure Resource Manager resource with an etag. + */ +export interface AzureEntityResource extends Resource { /** - * @member {string} [baseUri] + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - baseUri?: string; + readonly etag?: string; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The resource management error response. + */ +export interface ErrorResponse { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponse[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } +/** + * An interface representing MapsManagementClientOptions. + */ +export interface MapsManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** * @interface - * An interface representing the MapsAccounts. * A list of Maps Accounts. - * * @extends Array */ export interface MapsAccounts extends Array { @@ -352,14 +375,28 @@ export interface MapsAccounts extends Array { /** * @interface - * An interface representing the MapsOperations. * The set of operations available for Maps. - * * @extends Array */ export interface MapsOperations extends Array { } +/** + * @interface + * A list of Private Atlas resources. + * @extends Array + */ +export interface PrivateAtlasList extends Array { +} + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + /** * Defines values for KeyType. * Possible values include: 'primary', 'secondary' @@ -380,6 +417,7 @@ export type AccountsCreateOrUpdateResponse = MapsAccount & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -399,6 +437,7 @@ export type AccountsUpdateResponse = MapsAccount & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -418,6 +457,7 @@ export type AccountsGetResponse = MapsAccount & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -437,6 +477,7 @@ export type AccountsListByResourceGroupResponse = MapsAccounts & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -456,6 +497,7 @@ export type AccountsListBySubscriptionResponse = MapsAccounts & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -475,6 +517,7 @@ export type AccountsListKeysResponse = MapsAccountKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -494,6 +537,7 @@ export type AccountsRegenerateKeysResponse = MapsAccountKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -504,7 +548,7 @@ export type AccountsRegenerateKeysResponse = MapsAccountKeys & { /** * Contains response data for the listOperations operation. */ -export type AccountsListOperationsResponse = MapsOperations & { +export type MapsListOperationsResponse = MapsOperations & { /** * The underlying HTTP response. */ @@ -513,9 +557,90 @@ export type AccountsListOperationsResponse = MapsOperations & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ parsedBody: MapsOperations; }; }; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateAtlasesCreateOrUpdateResponse = PrivateAtlas & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAtlas; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PrivateAtlasesUpdateResponse = PrivateAtlas & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAtlas; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateAtlasesGetResponse = PrivateAtlas & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAtlas; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type PrivateAtlasesListByAccountResponse = PrivateAtlasList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateAtlasList; + }; +}; diff --git a/sdk/maps/arm-maps/src/models/mappers.ts b/sdk/maps/arm-maps/src/models/mappers.ts index 906aaeab40a3..2cb705a16ee2 100644 --- a/sdk/maps/arm-maps/src/models/mappers.ts +++ b/sdk/maps/arm-maps/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -14,29 +12,45 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ErrorDetailsItem: msRest.CompositeMapper = { - serializedName: "Error_detailsItem", +export const PrivateAtlasProperties: msRest.CompositeMapper = { + serializedName: "PrivateAtlasProperties", type: { name: "Composite", - className: "ErrorDetailsItem", + className: "PrivateAtlasProperties", modelProperties: { - code: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { readOnly: true, - serializedName: "code", + serializedName: "id", type: { name: "String" } }, - message: { + name: { readOnly: true, - serializedName: "message", + serializedName: "name", type: { name: "String" } }, - target: { + type: { readOnly: true, - serializedName: "target", + serializedName: "type", type: { name: "String" } @@ -45,121 +59,188 @@ export const ErrorDetailsItem: msRest.CompositeMapper = { } }; -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", type: { name: "Composite", - className: "ErrorModel", + className: "TrackedResource", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - message: { - readOnly: true, - serializedName: "message", + location: { + required: true, + serializedName: "location", type: { name: "String" } - }, - target: { - readOnly: true, - serializedName: "target", + } + } + } +}; + +export const PrivateAtlas: msRest.CompositeMapper = { + serializedName: "PrivateAtlas", + type: { + name: "Composite", + className: "PrivateAtlas", + modelProperties: { + ...TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateAtlasProperties" + } + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - details: { + tier: { readOnly: true, - serializedName: "details", + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetailsItem" - } - } + name: "String" } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "Resource", + className: "SystemData", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const MapsAccountProperties: msRest.CompositeMapper = { + serializedName: "MapsAccountProperties", type: { name: "Composite", - className: "Sku", + className: "MapsAccountProperties", modelProperties: { - name: { - required: true, - serializedName: "name", + xMsClientId: { + serializedName: "x-ms-client-id", type: { name: "String" } + } + } + } +}; + +export const MapsAccount: msRest.CompositeMapper = { + serializedName: "MapsAccount", + type: { + name: "Composite", + className: "MapsAccount", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + readOnly: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } }, - tier: { + systemData: { readOnly: true, - serializedName: "tier", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "MapsAccountProperties" } } } } }; -export const MapsAccount: msRest.CompositeMapper = { - serializedName: "MapsAccount", +export const MapsAccountCreateParameters: msRest.CompositeMapper = { + serializedName: "MapsAccountCreateParameters", type: { name: "Composite", - className: "MapsAccount", + className: "MapsAccountCreateParameters", modelProperties: { - ...Resource.type.modelProperties, location: { - readOnly: true, + required: true, serializedName: "location", type: { name: "String" } }, tags: { - readOnly: true, serializedName: "tags", type: { name: "Dictionary", @@ -171,7 +252,7 @@ export const MapsAccount: msRest.CompositeMapper = { } }, sku: { - readOnly: true, + required: true, serializedName: "sku", type: { name: "Composite", @@ -182,11 +263,11 @@ export const MapsAccount: msRest.CompositeMapper = { } }; -export const MapsAccountCreateParameters: msRest.CompositeMapper = { - serializedName: "MapsAccountCreateParameters", +export const PrivateAtlasCreateParameters: msRest.CompositeMapper = { + serializedName: "PrivateAtlasCreateParameters", type: { name: "Composite", - className: "MapsAccountCreateParameters", + className: "PrivateAtlasCreateParameters", modelProperties: { location: { required: true, @@ -205,14 +286,6 @@ export const MapsAccountCreateParameters: msRest.CompositeMapper = { } } } - }, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } @@ -246,25 +319,17 @@ export const MapsAccountUpdateParameters: msRest.CompositeMapper = { } }; -export const MapsAccountsMoveRequest: msRest.CompositeMapper = { - serializedName: "MapsAccountsMoveRequest", +export const PrivateAtlasUpdateParameters: msRest.CompositeMapper = { + serializedName: "PrivateAtlasUpdateParameters", type: { name: "Composite", - className: "MapsAccountsMoveRequest", + className: "PrivateAtlasUpdateParameters", modelProperties: { - targetResourceGroup: { - required: true, - serializedName: "targetResourceGroup", - type: { - name: "String" - } - }, - resourceIds: { - required: true, - serializedName: "resourceIds", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } @@ -392,6 +457,116 @@ export const MapsOperationsValueItem: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + export const MapsAccounts: msRest.CompositeMapper = { serializedName: "MapsAccounts", type: { @@ -437,3 +612,26 @@ export const MapsOperations: msRest.CompositeMapper = { } } }; + +export const PrivateAtlasList: msRest.CompositeMapper = { + serializedName: "PrivateAtlasList", + type: { + name: "Composite", + className: "PrivateAtlasList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateAtlas" + } + } + } + } + } + } +}; diff --git a/sdk/maps/arm-maps/src/models/mapsMappers.ts b/sdk/maps/arm-maps/src/models/mapsMappers.ts new file mode 100644 index 000000000000..01b9141ffad3 --- /dev/null +++ b/sdk/maps/arm-maps/src/models/mapsMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ErrorAdditionalInfo, + ErrorResponse, + MapsOperations, + MapsOperationsValueItem, + MapsOperationsValueItemDisplay +} from "../models/mappers"; diff --git a/sdk/maps/arm-maps/src/models/parameters.ts b/sdk/maps/arm-maps/src/models/parameters.ts index 980bdc0c26ab..4877ac7e17ea 100644 --- a/sdk/maps/arm-maps/src/models/parameters.ts +++ b/sdk/maps/arm-maps/src/models/parameters.ts @@ -35,6 +35,19 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const privateAtlasName: msRest.OperationURLParameter = { + parameterPath: "privateAtlasName", + mapper: { + required: true, + serializedName: "privateAtlasName", type: { name: "String" } @@ -45,6 +58,11 @@ export const resourceGroupName: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } @@ -55,6 +73,9 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/maps/arm-maps/src/models/privateAtlasesMappers.ts b/sdk/maps/arm-maps/src/models/privateAtlasesMappers.ts new file mode 100644 index 000000000000..3b692f2238eb --- /dev/null +++ b/sdk/maps/arm-maps/src/models/privateAtlasesMappers.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ErrorAdditionalInfo, + ErrorResponse, + MapsAccount, + MapsAccountProperties, + PrivateAtlas, + PrivateAtlasCreateParameters, + PrivateAtlasList, + PrivateAtlasProperties, + PrivateAtlasUpdateParameters, + ProxyResource, + Resource, + Sku, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/maps/arm-maps/src/operations/accounts.ts b/sdk/maps/arm-maps/src/operations/accounts.ts index 15614695bbd7..a81b7143c437 100644 --- a/sdk/maps/arm-maps/src/operations/accounts.ts +++ b/sdk/maps/arm-maps/src/operations/accounts.ts @@ -29,7 +29,7 @@ export class Accounts { /** * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps * REST APIs. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountCreateParameters The new or updated parameters for the Maps Account. * @param [options] The optional parameters @@ -37,14 +37,14 @@ export class Accounts { */ createOrUpdate(resourceGroupName: string, accountName: string, mapsAccountCreateParameters: Models.MapsAccountCreateParameters, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountCreateParameters The new or updated parameters for the Maps Account. * @param callback The callback */ createOrUpdate(resourceGroupName: string, accountName: string, mapsAccountCreateParameters: Models.MapsAccountCreateParameters, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountCreateParameters The new or updated parameters for the Maps Account. * @param options The optional parameters @@ -66,7 +66,7 @@ export class Accounts { /** * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as * Sku and Tags. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountUpdateParameters The updated parameters for the Maps Account. * @param [options] The optional parameters @@ -74,14 +74,14 @@ export class Accounts { */ update(resourceGroupName: string, accountName: string, mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountUpdateParameters The updated parameters for the Maps Account. * @param callback The callback */ update(resourceGroupName: string, accountName: string, mapsAccountUpdateParameters: Models.MapsAccountUpdateParameters, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param mapsAccountUpdateParameters The updated parameters for the Maps Account. * @param options The optional parameters @@ -102,20 +102,20 @@ export class Accounts { /** * Delete a Maps Account. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param callback The callback */ deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param options The optional parameters * @param callback The callback @@ -134,20 +134,20 @@ export class Accounts { /** * Get a Maps Account. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param callback The callback */ get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param options The optional parameters * @param callback The callback @@ -166,18 +166,18 @@ export class Accounts { /** * Get all Maps Accounts in a Resource Group - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -216,56 +216,24 @@ export class Accounts { callback) as Promise; } - /** - * Moves Maps Accounts from one ResourceGroup (or Subscription) to another - * @param resourceGroupName The name of the resource group that contains Maps Account to move. - * @param moveRequest The details of the Maps Account move. - * @param [options] The optional parameters - * @returns Promise - */ - move(resourceGroupName: string, moveRequest: Models.MapsAccountsMoveRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains Maps Account to move. - * @param moveRequest The details of the Maps Account move. - * @param callback The callback - */ - move(resourceGroupName: string, moveRequest: Models.MapsAccountsMoveRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains Maps Account to move. - * @param moveRequest The details of the Maps Account move. - * @param options The optional parameters - * @param callback The callback - */ - move(resourceGroupName: string, moveRequest: Models.MapsAccountsMoveRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - move(resourceGroupName: string, moveRequest: Models.MapsAccountsMoveRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - moveRequest, - options - }, - moveOperationSpec, - callback); - } - /** * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to * the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key * regeneration. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param [options] The optional parameters * @returns Promise */ listKeys(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param callback The callback */ listKeys(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param options The optional parameters * @param callback The callback @@ -285,7 +253,7 @@ export class Accounts { /** * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop * working immediately. - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param keySpecification Which key to regenerate: primary or secondary. * @param [options] The optional parameters @@ -293,14 +261,14 @@ export class Accounts { */ regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: Models.MapsKeySpecification, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param keySpecification Which key to regenerate: primary or secondary. * @param callback The callback */ regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: Models.MapsKeySpecification, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the Azure Resource Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of the Maps Account. * @param keySpecification Which key to regenerate: primary or secondary. * @param options The optional parameters @@ -318,30 +286,6 @@ export class Accounts { regenerateKeysOperationSpec, callback) as Promise; } - - /** - * List operations available for the Maps Resource Provider - * @param [options] The optional parameters - * @returns Promise - */ - listOperations(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listOperations(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listOperations(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationsOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -375,7 +319,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MapsAccount }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -406,9 +350,8 @@ const updateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.MapsAccount }, - 404: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -432,7 +375,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -456,9 +399,8 @@ const getOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.MapsAccount }, - 404: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -482,7 +424,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MapsAccounts }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -505,36 +447,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MapsAccounts }, default: { - bodyMapper: Mappers.ErrorModel - } - }, - serializer -}; - -const moveOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "moveRequest", - mapper: { - ...Mappers.MapsAccountsMoveRequest, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -558,9 +471,8 @@ const listKeysOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.MapsAccountKeys }, - 404: {}, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -591,29 +503,8 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.MapsAccountKeys }, - 404: {}, - default: { - bodyMapper: Mappers.ErrorModel - } - }, - serializer -}; - -const listOperationsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.Maps/operations", - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MapsOperations - }, default: { - bodyMapper: Mappers.ErrorModel + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/maps/arm-maps/src/operations/index.ts b/sdk/maps/arm-maps/src/operations/index.ts index 74360bc1853a..8eef4ca28d5e 100644 --- a/sdk/maps/arm-maps/src/operations/index.ts +++ b/sdk/maps/arm-maps/src/operations/index.ts @@ -9,3 +9,5 @@ */ export * from "./accounts"; +export * from "./maps"; +export * from "./privateAtlases"; diff --git a/sdk/maps/arm-maps/src/operations/maps.ts b/sdk/maps/arm-maps/src/operations/maps.ts new file mode 100644 index 000000000000..318d4c401204 --- /dev/null +++ b/sdk/maps/arm-maps/src/operations/maps.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/mapsMappers"; +import * as Parameters from "../models/parameters"; +import { MapsManagementClientContext } from "../mapsManagementClientContext"; + +/** Class representing a Maps. */ +export class Maps { + private readonly client: MapsManagementClientContext; + + /** + * Create a Maps. + * @param {MapsManagementClientContext} client Reference to the service client. + */ + constructor(client: MapsManagementClientContext) { + this.client = client; + } + + /** + * List operations available for the Maps Resource Provider + * @param [options] The optional parameters + * @returns Promise + */ + listOperations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listOperations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOperations(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Maps/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MapsOperations + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/maps/arm-maps/src/operations/privateAtlases.ts b/sdk/maps/arm-maps/src/operations/privateAtlases.ts new file mode 100644 index 000000000000..cd8f7cc7c7a6 --- /dev/null +++ b/sdk/maps/arm-maps/src/operations/privateAtlases.ts @@ -0,0 +1,365 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateAtlasesMappers"; +import * as Parameters from "../models/parameters"; +import { MapsManagementClientContext } from "../mapsManagementClientContext"; + +/** Class representing a PrivateAtlases. */ +export class PrivateAtlases { + private readonly client: MapsManagementClientContext; + + /** + * Create a PrivateAtlases. + * @param {MapsManagementClientContext} client Reference to the service client. + */ + constructor(client: MapsManagementClientContext) { + this.client = client; + } + + /** + * Create or update a Private Atlas resource. Private Atlas resource will enable the usage of Azure + * resources to build a custom set of mapping data. It requires an account to exist before it can + * be created. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasCreateParameters The new or updated parameters for the Private Atlas + * resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasCreateParameters: Models.PrivateAtlasCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasCreateParameters The new or updated parameters for the Private Atlas + * resource. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasCreateParameters: Models.PrivateAtlasCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasCreateParameters The new or updated parameters for the Private Atlas + * resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasCreateParameters: Models.PrivateAtlasCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasCreateParameters: Models.PrivateAtlasCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + privateAtlasName, + privateAtlasCreateParameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the Private Atlas resource. Only a subset of the parameters may be updated after + * creation, such as Tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasUpdateParameters The updated parameters for the Private Atlas. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasUpdateParameters: Models.PrivateAtlasUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasUpdateParameters The updated parameters for the Private Atlas. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasUpdateParameters: Models.PrivateAtlasUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param privateAtlasUpdateParameters The updated parameters for the Private Atlas. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasUpdateParameters: Models.PrivateAtlasUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, privateAtlasName: string, privateAtlasUpdateParameters: Models.PrivateAtlasUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + privateAtlasName, + privateAtlasUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete a Private Atlas resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, privateAtlasName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, privateAtlasName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, privateAtlasName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, privateAtlasName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + privateAtlasName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Get a Private Atlas resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, privateAtlasName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, privateAtlasName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param privateAtlasName The name of the Private Atlas instance. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, privateAtlasName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, privateAtlasName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + privateAtlasName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get all Private Atlas instances for an Azure Map Account + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the Maps Account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateAtlases/{privateAtlasName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.privateAtlasName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateAtlasCreateParameters", + mapper: { + ...Mappers.PrivateAtlasCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateAtlas + }, + 201: { + bodyMapper: Mappers.PrivateAtlas + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateAtlases/{privateAtlasName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.privateAtlasName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateAtlasUpdateParameters", + mapper: { + ...Mappers.PrivateAtlasUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateAtlas + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateAtlases/{privateAtlasName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.privateAtlasName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateAtlases/{privateAtlasName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.privateAtlasName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateAtlas + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateAtlases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateAtlasList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/maps/arm-maps/tsconfig.json b/sdk/maps/arm-maps/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/maps/arm-maps/tsconfig.json +++ b/sdk/maps/arm-maps/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true