From 8c5b94983564ea6ff1c909804781a92fbd48d725 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Thu, 11 Oct 2018 09:00:42 -0700 Subject: [PATCH] Generate @azure/arm-databricks package --- packages/@azure/arm-databricks/.npmignore | 35 + packages/@azure/arm-databricks/LICENSE.txt | 21 + packages/@azure/arm-databricks/README.md | 81 ++ .../arm-databricks/dist/arm-databricks.js | 1150 +++++++++++++++++ .../arm-databricks/dist/arm-databricks.js.map | 1 + .../arm-databricks/dist/arm-databricks.min.js | 1 + .../dist/arm-databricks.min.js.map | 1 + .../arm-databricks/lib/databricksClient.ts | 44 + .../lib/databricksClientContext.ts | 65 + .../@azure/arm-databricks/lib/models/index.ts | 575 +++++++++ .../arm-databricks/lib/models/mappers.ts | 444 +++++++ .../lib/models/operationsMappers.ts | 19 + .../arm-databricks/lib/models/parameters.ts | 82 ++ .../lib/models/workspacesMappers.ts | 24 + .../arm-databricks/lib/operations/index.ts | 12 + .../lib/operations/operations.ts | 123 ++ .../lib/operations/workspaces.ts | 474 +++++++ packages/@azure/arm-databricks/package.json | 42 + .../@azure/arm-databricks/rollup.config.js | 31 + packages/@azure/arm-databricks/tsconfig.json | 19 + 20 files changed, 3244 insertions(+) create mode 100644 packages/@azure/arm-databricks/.npmignore create mode 100644 packages/@azure/arm-databricks/LICENSE.txt create mode 100644 packages/@azure/arm-databricks/README.md create mode 100644 packages/@azure/arm-databricks/dist/arm-databricks.js create mode 100644 packages/@azure/arm-databricks/dist/arm-databricks.js.map create mode 100644 packages/@azure/arm-databricks/dist/arm-databricks.min.js create mode 100644 packages/@azure/arm-databricks/dist/arm-databricks.min.js.map create mode 100644 packages/@azure/arm-databricks/lib/databricksClient.ts create mode 100644 packages/@azure/arm-databricks/lib/databricksClientContext.ts create mode 100644 packages/@azure/arm-databricks/lib/models/index.ts create mode 100644 packages/@azure/arm-databricks/lib/models/mappers.ts create mode 100644 packages/@azure/arm-databricks/lib/models/operationsMappers.ts create mode 100644 packages/@azure/arm-databricks/lib/models/parameters.ts create mode 100644 packages/@azure/arm-databricks/lib/models/workspacesMappers.ts create mode 100644 packages/@azure/arm-databricks/lib/operations/index.ts create mode 100644 packages/@azure/arm-databricks/lib/operations/operations.ts create mode 100644 packages/@azure/arm-databricks/lib/operations/workspaces.ts create mode 100644 packages/@azure/arm-databricks/package.json create mode 100644 packages/@azure/arm-databricks/rollup.config.js create mode 100644 packages/@azure/arm-databricks/tsconfig.json diff --git a/packages/@azure/arm-databricks/.npmignore b/packages/@azure/arm-databricks/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-databricks/.npmignore @@ -0,0 +1,35 @@ +#git +.git +.gitignore +#gulp +gulpfile.js +#documentation +doc/ +docs/ +#dependencies +node_modules/ +#samples +sample/ +samples/ +#tests +test/ +tests/ +coverage/ +#tools and scripts +tools/ +scripts/ +#IDE settings +*.sln +.vscode/ +.idea +.editorconfig +.ntvs_analysis.* +#build tools +.travis.yml +.jenkins.yml +.codeclimate.yml +appveyor.yml +# Nuget packages # +.nuget/ +packages/ +packages.config diff --git a/packages/@azure/arm-databricks/LICENSE.txt b/packages/@azure/arm-databricks/LICENSE.txt new file mode 100644 index 000000000000..a70e8cf66038 --- /dev/null +++ b/packages/@azure/arm-databricks/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 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 +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-databricks/README.md b/packages/@azure/arm-databricks/README.md new file mode 100644 index 000000000000..62f02abe364d --- /dev/null +++ b/packages/@azure/arm-databricks/README.md @@ -0,0 +1,81 @@ +# Azure DatabricksClient SDK for JavaScript +This package contains an isomorphic SDK for DatabricksClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-databricks +``` + + +## How to use + +### nodejs - Authentication, client creation and get workspaces as an example written in TypeScript. + +```ts +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as msRestNodeAuth from "ms-rest-nodeauth"; +import { DatabricksClient, DatabricksModels, DatabricksMappers } from "@azure/arm-databricks"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DatabricksClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const workspaceName = "testworkspaceName"; + client.workspaces.get(resourceGroupName, workspaceName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and get workspaces as an example written in JavaScript. +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-databricks sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-databricks/dist/arm-databricks.js b/packages/@azure/arm-databricks/dist/arm-databricks.js new file mode 100644 index 000000000000..ed90f79c6001 --- /dev/null +++ b/packages/@azure/arm-databricks/dist/arm-databricks.js @@ -0,0 +1,1150 @@ +/* + * 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. + */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ms-rest-azure-js'), require('ms-rest-js')) : + typeof define === 'function' && define.amd ? define(['exports', 'ms-rest-azure-js', 'ms-rest-js'], factory) : + (factory((global.Azure = global.Azure || {}, global.Azure.ArmDatabricks = {}),global.msRestAzure,global.msRest)); +}(this, (function (exports,msRestAzure,msRest) { 'use strict'; + + /*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ + /* global Reflect, Promise */ + + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + } + + var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + }; + + /* + * 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. + */ + /** + * Defines values for ProvisioningState. + * Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + * 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + * 'Updating' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProvisioningState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var ProvisioningState; + (function (ProvisioningState) { + ProvisioningState["Accepted"] = "Accepted"; + ProvisioningState["Running"] = "Running"; + ProvisioningState["Ready"] = "Ready"; + ProvisioningState["Creating"] = "Creating"; + ProvisioningState["Created"] = "Created"; + ProvisioningState["Deleting"] = "Deleting"; + ProvisioningState["Deleted"] = "Deleted"; + ProvisioningState["Canceled"] = "Canceled"; + ProvisioningState["Failed"] = "Failed"; + ProvisioningState["Succeeded"] = "Succeeded"; + ProvisioningState["Updating"] = "Updating"; + })(ProvisioningState || (ProvisioningState = {})); + + var index = /*#__PURE__*/Object.freeze({ + get ProvisioningState () { return ProvisioningState; } + }); + + /* + * 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. + */ + var CloudError = msRestAzure.CloudErrorMapper; + var BaseResource = msRestAzure.BaseResourceMapper; + var WorkspaceProviderAuthorization = { + serializedName: "WorkspaceProviderAuthorization", + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization", + modelProperties: { + principalId: { + required: true, + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + roleDefinitionId: { + required: true, + serializedName: "roleDefinitionId", + type: { + name: "Uuid" + } + } + } + } + }; + var WorkspaceProperties = { + serializedName: "WorkspaceProperties", + type: { + name: "Composite", + className: "WorkspaceProperties", + modelProperties: { + managedResourceGroupId: { + required: true, + serializedName: "managedResourceGroupId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Object" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + uiDefinitionUri: { + serializedName: "uiDefinitionUri", + type: { + name: "String" + } + }, + authorizations: { + serializedName: "authorizations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization" + } + } + } + } + } + } + }; + var Sku = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } + }; + var Resource = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } + }; + var TrackedResource = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: __assign({}, Resource.type.modelProperties, { tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } }) + } + }; + var Workspace = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "Workspace", + modelProperties: __assign({}, TrackedResource.type.modelProperties, { managedResourceGroupId: { + required: true, + serializedName: "properties.managedResourceGroupId", + type: { + name: "String" + } + }, parameters: { + serializedName: "properties.parameters", + type: { + name: "Object" + } + }, provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, uiDefinitionUri: { + serializedName: "properties.uiDefinitionUri", + type: { + name: "String" + } + }, authorizations: { + serializedName: "properties.authorizations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization" + } + } + } + }, sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } }) + } + }; + var WorkspaceUpdate = { + serializedName: "WorkspaceUpdate", + type: { + name: "Composite", + className: "WorkspaceUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } + }; + var ErrorDetail = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } + }; + var ErrorInfo = { + serializedName: "ErrorInfo", + type: { + name: "Composite", + className: "ErrorInfo", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + innererror: { + serializedName: "innererror", + type: { + name: "String" + } + } + } + } + }; + var ErrorResponse = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + required: true, + serializedName: "error", + type: { + name: "Composite", + className: "ErrorInfo" + } + } + } + } + }; + var OperationDisplay = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + } + } + } + }; + var Operation = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } + }; + var WorkspaceListResult = { + serializedName: "WorkspaceListResult", + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } + }; + var OperationListResult = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } + }; + + var mappers = /*#__PURE__*/Object.freeze({ + CloudError: CloudError, + BaseResource: BaseResource, + WorkspaceProviderAuthorization: WorkspaceProviderAuthorization, + WorkspaceProperties: WorkspaceProperties, + Sku: Sku, + Resource: Resource, + TrackedResource: TrackedResource, + Workspace: Workspace, + WorkspaceUpdate: WorkspaceUpdate, + ErrorDetail: ErrorDetail, + ErrorInfo: ErrorInfo, + ErrorResponse: ErrorResponse, + OperationDisplay: OperationDisplay, + Operation: Operation, + WorkspaceListResult: WorkspaceListResult, + OperationListResult: OperationListResult + }); + + /* + * 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. + */ + + var Mappers = /*#__PURE__*/Object.freeze({ + Workspace: Workspace, + TrackedResource: TrackedResource, + Resource: Resource, + BaseResource: BaseResource, + WorkspaceProviderAuthorization: WorkspaceProviderAuthorization, + Sku: Sku, + ErrorResponse: ErrorResponse, + ErrorInfo: ErrorInfo, + ErrorDetail: ErrorDetail, + WorkspaceUpdate: WorkspaceUpdate, + WorkspaceListResult: WorkspaceListResult + }); + + /* + * 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. + */ + var acceptLanguage = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } + }; + var apiVersion = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } + }; + var nextPageLink = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true + }; + var resourceGroupName = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, + type: { + name: "String" + } + } + }; + var subscriptionId = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } + }; + var workspaceName = { + parameterPath: "workspaceName", + mapper: { + required: true, + serializedName: "workspaceName", + constraints: { + MaxLength: 64, + MinLength: 3 + }, + type: { + name: "String" + } + } + }; + + /* + * 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. + */ + /** Class representing a Workspaces. */ + var Workspaces = /** @class */ (function () { + /** + * Create a Workspaces. + * @param {DatabricksClientContext} client Reference to the service client. + */ + function Workspaces(client) { + this.client = client; + } + Workspaces.prototype.get = function (resourceGroupName$$1, workspaceName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceName: workspaceName$$1, + options: options + }, getOperationSpec, callback); + }; + /** + * Deletes the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.deleteMethod = function (resourceGroupName$$1, workspaceName$$1, options) { + return this.beginDeleteMethod(resourceGroupName$$1, workspaceName$$1, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + /** + * Creates a new workspace. + * @param parameters Parameters supplied to the create or update a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.createOrUpdate = function (parameters, resourceGroupName$$1, workspaceName$$1, options) { + return this.beginCreateOrUpdate(parameters, resourceGroupName$$1, workspaceName$$1, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + /** + * Updates a workspace. + * @param parameters The update to the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.update = function (parameters, resourceGroupName$$1, workspaceName$$1, options) { + return this.beginUpdate(parameters, resourceGroupName$$1, workspaceName$$1, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + Workspaces.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + options: options + }, listByResourceGroupOperationSpec, callback); + }; + Workspaces.prototype.listBySubscription = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listBySubscriptionOperationSpec, callback); + }; + /** + * Deletes the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.beginDeleteMethod = function (resourceGroupName$$1, workspaceName$$1, options) { + return this.client.sendLRORequest({ + resourceGroupName: resourceGroupName$$1, + workspaceName: workspaceName$$1, + options: options + }, beginDeleteMethodOperationSpec, options); + }; + /** + * Creates a new workspace. + * @param parameters Parameters supplied to the create or update a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.beginCreateOrUpdate = function (parameters, resourceGroupName$$1, workspaceName$$1, options) { + return this.client.sendLRORequest({ + parameters: parameters, + resourceGroupName: resourceGroupName$$1, + workspaceName: workspaceName$$1, + options: options + }, beginCreateOrUpdateOperationSpec, options); + }; + /** + * Updates a workspace. + * @param parameters The update to the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + Workspaces.prototype.beginUpdate = function (parameters, resourceGroupName$$1, workspaceName$$1, options) { + return this.client.sendLRORequest({ + parameters: parameters, + resourceGroupName: resourceGroupName$$1, + workspaceName: workspaceName$$1, + options: options + }, beginUpdateOperationSpec, options); + }; + Workspaces.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listByResourceGroupNextOperationSpec, callback); + }; + Workspaces.prototype.listBySubscriptionNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listBySubscriptionNextOperationSpec, callback); + }; + return Workspaces; + }()); + // Operation Specifications + var serializer = new msRest.Serializer(Mappers); + var getOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + resourceGroupName, + workspaceName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: Workspace + }, + 404: {}, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var listByResourceGroupOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces", + urlParameters: [ + resourceGroupName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var listBySubscriptionOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces", + urlParameters: [ + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var beginDeleteMethodOperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + resourceGroupName, + workspaceName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var beginCreateOrUpdateOperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + resourceGroupName, + workspaceName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: __assign({}, Workspace, { required: true }) + }, + responses: { + 200: { + bodyMapper: Workspace + }, + 201: { + bodyMapper: Workspace + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var beginUpdateOperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + resourceGroupName, + workspaceName, + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: __assign({}, WorkspaceUpdate, { required: true }) + }, + responses: { + 200: { + bodyMapper: Workspace + }, + 202: {}, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var listByResourceGroupNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + var listBySubscriptionNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer + }; + + /* + * 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. + */ + + var Mappers$1 = /*#__PURE__*/Object.freeze({ + OperationListResult: OperationListResult, + Operation: Operation, + OperationDisplay: OperationDisplay, + ErrorResponse: ErrorResponse, + ErrorInfo: ErrorInfo, + ErrorDetail: ErrorDetail + }); + + /* + * 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. + */ + /** Class representing a Operations. */ + var Operations = /** @class */ (function () { + /** + * Create a Operations. + * @param {DatabricksClientContext} client Reference to the service client. + */ + function Operations(client) { + this.client = client; + } + Operations.prototype.list = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listOperationSpec, callback); + }; + Operations.prototype.listNext = function (nextPageLink$$1, options, callback) { + return this.client.sendOperationRequest({ + nextPageLink: nextPageLink$$1, + options: options + }, listNextOperationSpec, callback); + }; + return Operations; + }()); + // Operation Specifications + var serializer$1 = new msRest.Serializer(Mappers$1); + var listOperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Databricks/operations", + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: OperationListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + var listNextOperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + nextPageLink + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: OperationListResult + }, + default: { + bodyMapper: ErrorResponse + } + }, + serializer: serializer$1 + }; + + /* + * 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. + */ + + /* + * 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. + */ + var packageName = "@azure/arm-databricks"; + var packageVersion = "1.0.0"; + var DatabricksClientContext = /** @class */ (function (_super) { + __extends(DatabricksClientContext, _super); + /** + * Initializes a new instance of the DatabricksClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The ID of the target subscription. + * @param [options] The parameter options + */ + function DatabricksClientContext(credentials, subscriptionId, options) { + var _this = this; + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + if (!options) { + options = {}; + } + _this = _super.call(this, credentials, options) || this; + _this.apiVersion = '2018-04-01'; + _this.acceptLanguage = 'en-US'; + _this.longRunningOperationRetryTimeout = 30; + _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com"; + _this.requestContentType = "application/json; charset=utf-8"; + _this.credentials = credentials; + _this.subscriptionId = subscriptionId; + _this.addUserAgentInfo(packageName + "/" + packageVersion); + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + _this.acceptLanguage = options.acceptLanguage; + } + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + return _this; + } + return DatabricksClientContext; + }(msRestAzure.AzureServiceClient)); + + /* + * 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. + */ + var DatabricksClient = /** @class */ (function (_super) { + __extends(DatabricksClient, _super); + /** + * Initializes a new instance of the DatabricksClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The ID of the target subscription. + * @param [options] The parameter options + */ + function DatabricksClient(credentials, subscriptionId, options) { + var _this = _super.call(this, credentials, subscriptionId, options) || this; + _this.workspaces = new Workspaces(_this); + _this.operations = new Operations(_this); + return _this; + } + return DatabricksClient; + }(DatabricksClientContext)); + + exports.DatabricksClient = DatabricksClient; + exports.DatabricksClientContext = DatabricksClientContext; + exports.DatabricksModels = index; + exports.DatabricksMappers = mappers; + exports.Workspaces = Workspaces; + exports.Operations = Operations; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=arm-databricks.js.map diff --git a/packages/@azure/arm-databricks/dist/arm-databricks.js.map b/packages/@azure/arm-databricks/dist/arm-databricks.js.map new file mode 100644 index 000000000000..83179dbd84a3 --- /dev/null +++ b/packages/@azure/arm-databricks/dist/arm-databricks.js.map @@ -0,0 +1 @@ +{"version":3,"file":"arm-databricks.js","sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/workspacesMappers.js","../esm/models/parameters.js","../esm/operations/workspaces.js","../esm/models/operationsMappers.js","../esm/operations/operations.js","../esm/operations/index.js","../esm/databricksClientContext.js","../esm/databricksClient.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\n/**\r\n * Defines values for ProvisioningState.\r\n * Possible values include: 'Accepted', 'Running', 'Ready', 'Creating',\r\n * 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded',\r\n * 'Updating'\r\n * There could be more values for this enum apart from the ones defined here.If\r\n * you want to set a value that is not from the known values then you can do\r\n * the following:\r\n * let param: ProvisioningState =\r\n * \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var ProvisioningState;\r\n(function (ProvisioningState) {\r\n ProvisioningState[\"Accepted\"] = \"Accepted\";\r\n ProvisioningState[\"Running\"] = \"Running\";\r\n ProvisioningState[\"Ready\"] = \"Ready\";\r\n ProvisioningState[\"Creating\"] = \"Creating\";\r\n ProvisioningState[\"Created\"] = \"Created\";\r\n ProvisioningState[\"Deleting\"] = \"Deleting\";\r\n ProvisioningState[\"Deleted\"] = \"Deleted\";\r\n ProvisioningState[\"Canceled\"] = \"Canceled\";\r\n ProvisioningState[\"Failed\"] = \"Failed\";\r\n ProvisioningState[\"Succeeded\"] = \"Succeeded\";\r\n ProvisioningState[\"Updating\"] = \"Updating\";\r\n})(ProvisioningState || (ProvisioningState = {}));\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport { CloudErrorMapper, BaseResourceMapper } from \"ms-rest-azure-js\";\r\nexport var CloudError = CloudErrorMapper;\r\nexport var BaseResource = BaseResourceMapper;\r\nexport var WorkspaceProviderAuthorization = {\r\n serializedName: \"WorkspaceProviderAuthorization\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceProviderAuthorization\",\r\n modelProperties: {\r\n principalId: {\r\n required: true,\r\n serializedName: \"principalId\",\r\n type: {\r\n name: \"Uuid\"\r\n }\r\n },\r\n roleDefinitionId: {\r\n required: true,\r\n serializedName: \"roleDefinitionId\",\r\n type: {\r\n name: \"Uuid\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceProperties = {\r\n serializedName: \"WorkspaceProperties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceProperties\",\r\n modelProperties: {\r\n managedResourceGroupId: {\r\n required: true,\r\n serializedName: \"managedResourceGroupId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n parameters: {\r\n serializedName: \"parameters\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n },\r\n provisioningState: {\r\n readOnly: true,\r\n serializedName: \"provisioningState\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n uiDefinitionUri: {\r\n serializedName: \"uiDefinitionUri\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n authorizations: {\r\n serializedName: \"authorizations\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceProviderAuthorization\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Sku = {\r\n serializedName: \"Sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\",\r\n modelProperties: {\r\n name: {\r\n required: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tier: {\r\n serializedName: \"tier\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Resource = {\r\n serializedName: \"Resource\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Resource\",\r\n modelProperties: {\r\n id: {\r\n readOnly: true,\r\n serializedName: \"id\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n readOnly: true,\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n readOnly: true,\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var TrackedResource = {\r\n serializedName: \"TrackedResource\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"TrackedResource\",\r\n modelProperties: tslib_1.__assign({}, Resource.type.modelProperties, { tags: {\r\n serializedName: \"tags\",\r\n type: {\r\n name: \"Dictionary\",\r\n value: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }, location: {\r\n required: true,\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n } })\r\n }\r\n};\r\nexport var Workspace = {\r\n serializedName: \"Workspace\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Workspace\",\r\n modelProperties: tslib_1.__assign({}, TrackedResource.type.modelProperties, { managedResourceGroupId: {\r\n required: true,\r\n serializedName: \"properties.managedResourceGroupId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, parameters: {\r\n serializedName: \"properties.parameters\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n }, provisioningState: {\r\n readOnly: true,\r\n serializedName: \"properties.provisioningState\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, uiDefinitionUri: {\r\n serializedName: \"properties.uiDefinitionUri\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }, authorizations: {\r\n serializedName: \"properties.authorizations\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceProviderAuthorization\"\r\n }\r\n }\r\n }\r\n }, sku: {\r\n serializedName: \"sku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Sku\"\r\n }\r\n } })\r\n }\r\n};\r\nexport var WorkspaceUpdate = {\r\n serializedName: \"WorkspaceUpdate\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceUpdate\",\r\n modelProperties: {\r\n tags: {\r\n serializedName: \"tags\",\r\n type: {\r\n name: \"Dictionary\",\r\n value: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorDetail = {\r\n serializedName: \"ErrorDetail\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorDetail\",\r\n modelProperties: {\r\n code: {\r\n required: true,\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n required: true,\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n target: {\r\n serializedName: \"target\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorInfo = {\r\n serializedName: \"ErrorInfo\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorInfo\",\r\n modelProperties: {\r\n code: {\r\n required: true,\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n required: true,\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n details: {\r\n serializedName: \"details\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorDetail\"\r\n }\r\n }\r\n }\r\n },\r\n innererror: {\r\n serializedName: \"innererror\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorResponse = {\r\n serializedName: \"ErrorResponse\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorResponse\",\r\n modelProperties: {\r\n error: {\r\n required: true,\r\n serializedName: \"error\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorInfo\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationDisplay = {\r\n serializedName: \"Operation_display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplay\",\r\n modelProperties: {\r\n provider: {\r\n serializedName: \"provider\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n resource: {\r\n serializedName: \"resource\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n operation: {\r\n serializedName: \"operation\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Operation = {\r\n serializedName: \"Operation\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Operation\",\r\n modelProperties: {\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n display: {\r\n serializedName: \"display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplay\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceListResult = {\r\n serializedName: \"WorkspaceListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceListResult\",\r\n modelProperties: {\r\n value: {\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"Workspace\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationListResult = {\r\n serializedName: \"OperationListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationListResult\",\r\n modelProperties: {\r\n value: {\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"Operation\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=mappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { Workspace, TrackedResource, Resource, BaseResource, WorkspaceProviderAuthorization, Sku, ErrorResponse, ErrorInfo, ErrorDetail, WorkspaceUpdate, WorkspaceListResult } from \"../models/mappers\";\r\n//# sourceMappingURL=workspacesMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport var acceptLanguage = {\r\n parameterPath: \"acceptLanguage\",\r\n mapper: {\r\n serializedName: \"accept-language\",\r\n defaultValue: 'en-US',\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var apiVersion = {\r\n parameterPath: \"apiVersion\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"api-version\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var nextPageLink = {\r\n parameterPath: \"nextPageLink\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skipEncoding: true\r\n};\r\nexport var resourceGroupName = {\r\n parameterPath: \"resourceGroupName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"resourceGroupName\",\r\n constraints: {\r\n MaxLength: 90,\r\n MinLength: 1,\r\n Pattern: /^[-\\w\\._\\(\\)]+$/\r\n },\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var subscriptionId = {\r\n parameterPath: \"subscriptionId\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"subscriptionId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var workspaceName = {\r\n parameterPath: \"workspaceName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"workspaceName\",\r\n constraints: {\r\n MaxLength: 64,\r\n MinLength: 3\r\n },\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=parameters.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/workspacesMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Workspaces. */\r\nvar Workspaces = /** @class */ (function () {\r\n /**\r\n * Create a Workspaces.\r\n * @param {DatabricksClientContext} client Reference to the service client.\r\n */\r\n function Workspaces(client) {\r\n this.client = client;\r\n }\r\n Workspaces.prototype.get = function (resourceGroupName, workspaceName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceName: workspaceName,\r\n options: options\r\n }, getOperationSpec, callback);\r\n };\r\n /**\r\n * Deletes the workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.deleteMethod = function (resourceGroupName, workspaceName, options) {\r\n return this.beginDeleteMethod(resourceGroupName, workspaceName, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n /**\r\n * Creates a new workspace.\r\n * @param parameters Parameters supplied to the create or update a workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.createOrUpdate = function (parameters, resourceGroupName, workspaceName, options) {\r\n return this.beginCreateOrUpdate(parameters, resourceGroupName, workspaceName, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n /**\r\n * Updates a workspace.\r\n * @param parameters The update to the workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.update = function (parameters, resourceGroupName, workspaceName, options) {\r\n return this.beginUpdate(parameters, resourceGroupName, workspaceName, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n Workspaces.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n options: options\r\n }, listByResourceGroupOperationSpec, callback);\r\n };\r\n Workspaces.prototype.listBySubscription = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listBySubscriptionOperationSpec, callback);\r\n };\r\n /**\r\n * Deletes the workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.beginDeleteMethod = function (resourceGroupName, workspaceName, options) {\r\n return this.client.sendLRORequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceName: workspaceName,\r\n options: options\r\n }, beginDeleteMethodOperationSpec, options);\r\n };\r\n /**\r\n * Creates a new workspace.\r\n * @param parameters Parameters supplied to the create or update a workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.beginCreateOrUpdate = function (parameters, resourceGroupName, workspaceName, options) {\r\n return this.client.sendLRORequest({\r\n parameters: parameters,\r\n resourceGroupName: resourceGroupName,\r\n workspaceName: workspaceName,\r\n options: options\r\n }, beginCreateOrUpdateOperationSpec, options);\r\n };\r\n /**\r\n * Updates a workspace.\r\n * @param parameters The update to the workspace.\r\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\r\n * @param workspaceName The name of the workspace.\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n Workspaces.prototype.beginUpdate = function (parameters, resourceGroupName, workspaceName, options) {\r\n return this.client.sendLRORequest({\r\n parameters: parameters,\r\n resourceGroupName: resourceGroupName,\r\n workspaceName: workspaceName,\r\n options: options\r\n }, beginUpdateOperationSpec, options);\r\n };\r\n Workspaces.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listByResourceGroupNextOperationSpec, callback);\r\n };\r\n Workspaces.prototype.listBySubscriptionNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listBySubscriptionNextOperationSpec, callback);\r\n };\r\n return Workspaces;\r\n}());\r\nexport { Workspaces };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar getOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.Workspace\r\n },\r\n 404: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listBySubscriptionOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces\",\r\n urlParameters: [\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar beginDeleteMethodOperationSpec = {\r\n httpMethod: \"DELETE\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 202: {},\r\n 204: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar beginCreateOrUpdateOperationSpec = {\r\n httpMethod: \"PUT\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: \"parameters\",\r\n mapper: tslib_1.__assign({}, Mappers.Workspace, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.Workspace\r\n },\r\n 201: {\r\n bodyMapper: Mappers.Workspace\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar beginUpdateOperationSpec = {\r\n httpMethod: \"PATCH\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}\",\r\n urlParameters: [\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceName,\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n requestBody: {\r\n parameterPath: \"parameters\",\r\n mapper: tslib_1.__assign({}, Mappers.WorkspaceUpdate, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.Workspace\r\n },\r\n 202: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listBySubscriptionNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=workspaces.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { OperationListResult, Operation, OperationDisplay, ErrorResponse, ErrorInfo, ErrorDetail } from \"../models/mappers\";\r\n//# sourceMappingURL=operationsMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/operationsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Operations. */\r\nvar Operations = /** @class */ (function () {\r\n /**\r\n * Create a Operations.\r\n * @param {DatabricksClientContext} client Reference to the service client.\r\n */\r\n function Operations(client) {\r\n this.client = client;\r\n }\r\n Operations.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n Operations.prototype.listNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listNextOperationSpec, callback);\r\n };\r\n return Operations;\r\n}());\r\nexport { Operations };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"providers/Microsoft.Databricks/operations\",\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.OperationListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.OperationListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=operations.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport * from \"./workspaces\";\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRestAzure from \"ms-rest-azure-js\";\r\nvar packageName = \"@azure/arm-databricks\";\r\nvar packageVersion = \"1.0.0\";\r\nvar DatabricksClientContext = /** @class */ (function (_super) {\r\n tslib_1.__extends(DatabricksClientContext, _super);\r\n /**\r\n * Initializes a new instance of the DatabricksClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId The ID of the target subscription.\r\n * @param [options] The parameter options\r\n */\r\n function DatabricksClientContext(credentials, subscriptionId, options) {\r\n var _this = this;\r\n if (credentials == undefined) {\r\n throw new Error('\\'credentials\\' cannot be null.');\r\n }\r\n if (subscriptionId == undefined) {\r\n throw new Error('\\'subscriptionId\\' cannot be null.');\r\n }\r\n if (!options) {\r\n options = {};\r\n }\r\n _this = _super.call(this, credentials, options) || this;\r\n _this.apiVersion = '2018-04-01';\r\n _this.acceptLanguage = 'en-US';\r\n _this.longRunningOperationRetryTimeout = 30;\r\n _this.baseUri = options.baseUri || _this.baseUri || \"https://management.azure.com\";\r\n _this.requestContentType = \"application/json; charset=utf-8\";\r\n _this.credentials = credentials;\r\n _this.subscriptionId = subscriptionId;\r\n _this.addUserAgentInfo(packageName + \"/\" + packageVersion);\r\n if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {\r\n _this.acceptLanguage = options.acceptLanguage;\r\n }\r\n if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {\r\n _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;\r\n }\r\n return _this;\r\n }\r\n return DatabricksClientContext;\r\n}(msRestAzure.AzureServiceClient));\r\nexport { DatabricksClientContext };\r\n//# sourceMappingURL=databricksClientContext.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as Models from \"./models\";\r\nimport * as Mappers from \"./models/mappers\";\r\nimport * as operations from \"./operations\";\r\nimport { DatabricksClientContext } from \"./databricksClientContext\";\r\nvar DatabricksClient = /** @class */ (function (_super) {\r\n tslib_1.__extends(DatabricksClient, _super);\r\n /**\r\n * Initializes a new instance of the DatabricksClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId The ID of the target subscription.\r\n * @param [options] The parameter options\r\n */\r\n function DatabricksClient(credentials, subscriptionId, options) {\r\n var _this = _super.call(this, credentials, subscriptionId, options) || this;\r\n _this.workspaces = new operations.Workspaces(_this);\r\n _this.operations = new operations.Operations(_this);\r\n return _this;\r\n }\r\n return DatabricksClient;\r\n}(DatabricksClientContext));\r\n// Operation Specifications\r\nexport { DatabricksClient, DatabricksClientContext, Models as DatabricksModels, Mappers as DatabricksMappers };\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=databricksClient.js.map"],"names":["CloudErrorMapper","BaseResourceMapper","tslib_1.__assign","resourceGroupName","workspaceName","nextPageLink","msRest.Serializer","Parameters.resourceGroupName","Parameters.workspaceName","Parameters.subscriptionId","Parameters.apiVersion","Parameters.acceptLanguage","Mappers.Workspace","Mappers.ErrorResponse","Mappers.WorkspaceListResult","Mappers.WorkspaceUpdate","Parameters.nextPageLink","serializer","Mappers","Mappers.OperationListResult","tslib_1.__extends","msRestAzure.AzureServiceClient","operations.Workspaces","operations.Operations"],"mappings":";;;;;;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;;AAEF,IAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAChC,IAAI,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,IAAI,SAAS,EAAE,GAAG,EAAE,IAAI,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,CAAC,gCAAgC,CAAC;IAC9F,SAAS;IACT,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,OAAO,uBAAuB,CAAC;IACnC,CAAC,CAACC,8BAA8B,CAAC,CAAC;;IClDlC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA,AAKG,QAAC,gBAAgB,kBAAkB,UAAU,MAAM,EAAE;IACxD,IAAID,SAAiB,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAChD;IACA;IACA;IACA;IACA;IACA;IACA,IAAI,SAAS,gBAAgB,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE;IACpE,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;IACpF,QAAQ,KAAK,CAAC,UAAU,GAAG,IAAIE,UAAqB,CAAC,KAAK,CAAC,CAAC;IAC5D,QAAQ,KAAK,CAAC,UAAU,GAAG,IAAIC,UAAqB,CAAC,KAAK,CAAC,CAAC;IAC5D,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,OAAO,gBAAgB,CAAC;IAC5B,CAAC,CAAC,uBAAuB,CAAC,CAAC;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/@azure/arm-databricks/dist/arm-databricks.min.js b/packages/@azure/arm-databricks/dist/arm-databricks.min.js new file mode 100644 index 000000000000..a564ab4feaba --- /dev/null +++ b/packages/@azure/arm-databricks/dist/arm-databricks.min.js @@ -0,0 +1 @@ +!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("ms-rest-azure-js"),require("ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","ms-rest-azure-js","ms-rest-js"],r):r((e.Azure=e.Azure||{},e.Azure.ArmDatabricks={}),e.msRestAzure,e.msRest)}(this,function(e,r,t){"use strict";var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function s(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var i,o,n=function(){return(n=Object.assign||function(e){for(var r,t=1,a=arguments.length;t + */ +export interface WorkspaceListResult extends Array { + /** + * @member {string} [nextLink] The URL to use for getting the next set of + * results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationListResult. + * Result of the request to list Resource Provider operations. It contains a + * list of operations and a URL link to get the next set of results. + * + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * @member {string} [nextLink] URL to get the next set of operation list + * results if there are any. + */ + nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + * 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + * 'Updating' + * There could be more values for this enum apart from the ones defined here.If + * you want to set a value that is not from the known values then you can do + * the following: + * let param: ProvisioningState = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum ProvisioningState { + Accepted = 'Accepted', + Running = 'Running', + Ready = 'Ready', + Creating = 'Creating', + Created = 'Created', + Deleting = 'Deleting', + Deleted = 'Deleted', + Canceled = 'Canceled', + Failed = 'Failed', + Succeeded = 'Succeeded', + Updating = 'Updating', +} + +/** + * Contains response data for the get operation. + */ +export type WorkspacesGetResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WorkspacesCreateOrUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WorkspacesUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type WorkspacesBeginUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; diff --git a/packages/@azure/arm-databricks/lib/models/mappers.ts b/packages/@azure/arm-databricks/lib/models/mappers.ts new file mode 100644 index 000000000000..9b2a924e7bbe --- /dev/null +++ b/packages/@azure/arm-databricks/lib/models/mappers.ts @@ -0,0 +1,444 @@ +/* + * 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 { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js"; +import * as msRest from "ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const WorkspaceProviderAuthorization: msRest.CompositeMapper = { + serializedName: "WorkspaceProviderAuthorization", + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization", + modelProperties: { + principalId: { + required: true, + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + roleDefinitionId: { + required: true, + serializedName: "roleDefinitionId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const WorkspaceProperties: msRest.CompositeMapper = { + serializedName: "WorkspaceProperties", + type: { + name: "Composite", + className: "WorkspaceProperties", + modelProperties: { + managedResourceGroupId: { + required: true, + serializedName: "managedResourceGroupId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Object" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + uiDefinitionUri: { + serializedName: "uiDefinitionUri", + type: { + name: "String" + } + }, + authorizations: { + serializedName: "authorizations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization" + } + } + } + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: msRest.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...TrackedResource.type.modelProperties, + managedResourceGroupId: { + required: true, + serializedName: "properties.managedResourceGroupId", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Object" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uiDefinitionUri: { + serializedName: "properties.uiDefinitionUri", + type: { + name: "String" + } + }, + authorizations: { + serializedName: "properties.authorizations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceProviderAuthorization" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const WorkspaceUpdate: msRest.CompositeMapper = { + serializedName: "WorkspaceUpdate", + type: { + name: "Composite", + className: "WorkspaceUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorInfo: msRest.CompositeMapper = { + serializedName: "ErrorInfo", + type: { + name: "Composite", + className: "ErrorInfo", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + innererror: { + serializedName: "innererror", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + required: true, + serializedName: "error", + type: { + name: "Composite", + className: "ErrorInfo" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const WorkspaceListResult: msRest.CompositeMapper = { + serializedName: "WorkspaceListResult", + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/packages/@azure/arm-databricks/lib/models/operationsMappers.ts b/packages/@azure/arm-databricks/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..ca1587789d15 --- /dev/null +++ b/packages/@azure/arm-databricks/lib/models/operationsMappers.ts @@ -0,0 +1,19 @@ +/* + * 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 { + OperationListResult, + Operation, + OperationDisplay, + ErrorResponse, + ErrorInfo, + ErrorDetail +} from "../models/mappers"; + diff --git a/packages/@azure/arm-databricks/lib/models/parameters.ts b/packages/@azure/arm-databricks/lib/models/parameters.ts new file mode 100644 index 000000000000..2fe8dc66163b --- /dev/null +++ b/packages/@azure/arm-databricks/lib/models/parameters.ts @@ -0,0 +1,82 @@ +/* + * 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 "ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const workspaceName: msRest.OperationURLParameter = { + parameterPath: "workspaceName", + mapper: { + required: true, + serializedName: "workspaceName", + constraints: { + MaxLength: 64, + MinLength: 3 + }, + type: { + name: "String" + } + } +}; diff --git a/packages/@azure/arm-databricks/lib/models/workspacesMappers.ts b/packages/@azure/arm-databricks/lib/models/workspacesMappers.ts new file mode 100644 index 000000000000..e6f592d4a993 --- /dev/null +++ b/packages/@azure/arm-databricks/lib/models/workspacesMappers.ts @@ -0,0 +1,24 @@ +/* + * 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 { + Workspace, + TrackedResource, + Resource, + BaseResource, + WorkspaceProviderAuthorization, + Sku, + ErrorResponse, + ErrorInfo, + ErrorDetail, + WorkspaceUpdate, + WorkspaceListResult +} from "../models/mappers"; + diff --git a/packages/@azure/arm-databricks/lib/operations/index.ts b/packages/@azure/arm-databricks/lib/operations/index.ts new file mode 100644 index 000000000000..74640cd56b69 --- /dev/null +++ b/packages/@azure/arm-databricks/lib/operations/index.ts @@ -0,0 +1,12 @@ +/* + * 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 * from "./workspaces"; +export * from "./operations"; diff --git a/packages/@azure/arm-databricks/lib/operations/operations.ts b/packages/@azure/arm-databricks/lib/operations/operations.ts new file mode 100644 index 000000000000..1625297a0f2c --- /dev/null +++ b/packages/@azure/arm-databricks/lib/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * 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 "ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { DatabricksClientContext } from "../databricksClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: DatabricksClientContext; + + /** + * Create a Operations. + * @param {DatabricksClientContext} client Reference to the service client. + */ + constructor(client: DatabricksClientContext) { + this.client = client; + } + + /** + * Lists all of the available RP operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the available RP operations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Databricks/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-databricks/lib/operations/workspaces.ts b/packages/@azure/arm-databricks/lib/operations/workspaces.ts new file mode 100644 index 000000000000..dccabd9bbae4 --- /dev/null +++ b/packages/@azure/arm-databricks/lib/operations/workspaces.ts @@ -0,0 +1,474 @@ +/* + * 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 "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/workspacesMappers"; +import * as Parameters from "../models/parameters"; +import { DatabricksClientContext } from "../databricksClientContext"; + +/** Class representing a Workspaces. */ +export class Workspaces { + private readonly client: DatabricksClientContext; + + /** + * Create a Workspaces. + * @param {DatabricksClientContext} client Reference to the service client. + */ + constructor(client: DatabricksClientContext) { + this.client = client; + } + + /** + * Gets the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates a new workspace. + * @param parameters Parameters supplied to the create or update a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(parameters: Models.Workspace, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(parameters,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a workspace. + * @param parameters The update to the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + update(parameters: Models.WorkspaceUpdate, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(parameters,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all the workspaces within a 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 resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets all the workspaces within a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Deletes the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates a new workspace. + * @param parameters Parameters supplied to the create or update a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(parameters: Models.Workspace, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + parameters, + resourceGroupName, + workspaceName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a workspace. + * @param parameters The update to the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(parameters: Models.WorkspaceUpdate, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + parameters, + resourceGroupName, + workspaceName, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Gets all the workspaces within a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all the workspaces within a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Workspace, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WorkspaceUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-databricks/package.json b/packages/@azure/arm-databricks/package.json new file mode 100644 index 000000000000..8496c5bbbf80 --- /dev/null +++ b/packages/@azure/arm-databricks/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure/arm-databricks", + "author": "Microsoft Corporation", + "description": "DatabricksClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "ms-rest-azure-js": "^1.0.166", + "ms-rest-js": "^1.0.439", + "tslib": "^1.9.3" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-databricks.js", + "module": "./esm/databricksClient.js", + "types": "./esm/databricksClient.d.ts", + "devDependencies": { + "typescript": "^3.1.1", + "rollup": "^0.66.2", + "rollup-plugin-node-resolve": "^3.4.0", + "uglify-js": "^3.4.9" + }, + "homepage": "https://github.com/azure/azure-sdk-for-js", + "repository": { + "type": "git", + "url": "https://github.com/azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/azure/azure-sdk-for-js/issues" + }, + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-databricks.js.map'\" -o ./dist/arm-databricks.min.js ./dist/arm-databricks.js", + "prepare": "npm run build" + }, + "sideEffects": false +} diff --git a/packages/@azure/arm-databricks/rollup.config.js b/packages/@azure/arm-databricks/rollup.config.js new file mode 100644 index 000000000000..e3bd81e94704 --- /dev/null +++ b/packages/@azure/arm-databricks/rollup.config.js @@ -0,0 +1,31 @@ +import nodeResolve from "rollup-plugin-node-resolve"; +/** + * @type {import('rollup').RollupFileOptions} + */ +const config = { + input: './esm/databricksClient.js', + external: ["ms-rest-js", "ms-rest-azure-js"], + output: { + file: "./dist/arm-databricks.js", + format: "umd", + name: "Azure.ArmDatabricks", + sourcemap: true, + globals: { + "ms-rest-js": "msRest", + "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. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */` + }, + plugins: [ + nodeResolve({ module: true }) + ] +}; +export default config; diff --git a/packages/@azure/arm-databricks/tsconfig.json b/packages/@azure/arm-databricks/tsconfig.json new file mode 100644 index 000000000000..f32d1664f320 --- /dev/null +++ b/packages/@azure/arm-databricks/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./lib/**/*"], + "exclude": ["node_modules"] +}