From 70209140366653186257ce9d922e87fdf565170b Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Thu, 11 Oct 2018 11:30:19 -0700 Subject: [PATCH] Generate @azure/arm-powerbiembedded package --- .../@azure/arm-powerbiembedded/.npmignore | 35 + .../@azure/arm-powerbiembedded/LICENSE.txt | 21 + packages/@azure/arm-powerbiembedded/README.md | 81 ++ .../dist/arm-powerbiembedded.js | 1272 +++++++++++++++++ .../dist/arm-powerbiembedded.js.map | 1 + .../dist/arm-powerbiembedded.min.js | 1 + .../dist/arm-powerbiembedded.min.js.map | 1 + .../arm-powerbiembedded/lib/models/index.ts | 540 +++++++ .../arm-powerbiembedded/lib/models/mappers.ts | 520 +++++++ .../lib/models/parameters.ts | 72 + .../lib/models/workspaceCollectionsMappers.ts | 25 + .../lib/models/workspacesMappers.ts | 17 + .../lib/operations/index.ts | 12 + .../lib/operations/workspaceCollections.ts | 628 ++++++++ .../lib/operations/workspaces.ts | 87 ++ .../lib/powerBIEmbeddedManagementClient.ts | 90 ++ .../powerBIEmbeddedManagementClientContext.ts | 66 + .../@azure/arm-powerbiembedded/package.json | 42 + .../arm-powerbiembedded/rollup.config.js | 31 + .../@azure/arm-powerbiembedded/tsconfig.json | 19 + 20 files changed, 3561 insertions(+) create mode 100644 packages/@azure/arm-powerbiembedded/.npmignore create mode 100644 packages/@azure/arm-powerbiembedded/LICENSE.txt create mode 100644 packages/@azure/arm-powerbiembedded/README.md create mode 100644 packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js create mode 100644 packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js.map create mode 100644 packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.min.js create mode 100644 packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.min.js.map create mode 100644 packages/@azure/arm-powerbiembedded/lib/models/index.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/models/mappers.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/models/parameters.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/models/workspaceCollectionsMappers.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/models/workspacesMappers.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/operations/index.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/operations/workspaceCollections.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/operations/workspaces.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClient.ts create mode 100644 packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClientContext.ts create mode 100644 packages/@azure/arm-powerbiembedded/package.json create mode 100644 packages/@azure/arm-powerbiembedded/rollup.config.js create mode 100644 packages/@azure/arm-powerbiembedded/tsconfig.json diff --git a/packages/@azure/arm-powerbiembedded/.npmignore b/packages/@azure/arm-powerbiembedded/.npmignore new file mode 100644 index 000000000000..3b46bc6202d8 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/.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-powerbiembedded/LICENSE.txt b/packages/@azure/arm-powerbiembedded/LICENSE.txt new file mode 100644 index 000000000000..a70e8cf66038 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/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-powerbiembedded/README.md b/packages/@azure/arm-powerbiembedded/README.md new file mode 100644 index 000000000000..038d43f15e84 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/README.md @@ -0,0 +1,81 @@ +# Azure PowerBIEmbeddedManagementClient SDK for JavaScript +This package contains an isomorphic SDK for PowerBIEmbeddedManagementClient. + +## Currently supported environments +- Node.js version 6.x.x or higher +- Browser JavaScript + +## How to Install +``` +npm install @azure/arm-powerbiembedded +``` + + +## How to use + +### nodejs - Authentication, client creation and getByName workspaceCollections 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 { PowerBIEmbeddedManagementClient, PowerBIEmbeddedManagementModels, PowerBIEmbeddedManagementMappers } from "@azure/arm-powerbiembedded"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new PowerBIEmbeddedManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const workspaceCollectionName = "testworkspaceCollectionName"; + client.workspaceCollections.getByName(resourceGroupName, workspaceCollectionName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +### browser - Authentication, client creation and getByName workspaceCollections 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-powerbiembedded sample + + + + + + + + + +``` + +# Related projects + - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js new file mode 100644 index 000000000000..55b31c50c867 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js @@ -0,0 +1,1272 @@ +/* + * 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.ArmPowerbiembedded = {}),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 AccessKeyName. + * Possible values include: 'key1', 'key2' + * @readonly + * @enum {string} + */ + var AccessKeyName; + (function (AccessKeyName) { + AccessKeyName["Key1"] = "key1"; + AccessKeyName["Key2"] = "key2"; + })(AccessKeyName || (AccessKeyName = {})); + /** + * Defines values for CheckNameReason. + * Possible values include: 'Unavailable', 'Invalid' + * 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: CheckNameReason = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ + var CheckNameReason; + (function (CheckNameReason) { + CheckNameReason["Unavailable"] = "Unavailable"; + CheckNameReason["Invalid"] = "Invalid"; + })(CheckNameReason || (CheckNameReason = {})); + + var index = /*#__PURE__*/Object.freeze({ + get AccessKeyName () { return AccessKeyName; }, + get CheckNameReason () { return CheckNameReason; } + }); + + /* + * 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 ErrorDetail = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } + }; + var ErrorModel = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } + } + } + }; + var AzureSku = { + serializedName: "AzureSku", + type: { + name: "Composite", + className: "AzureSku", + modelProperties: { + name: { + required: true, + isConstant: true, + serializedName: "name", + defaultValue: 'S1', + type: { + name: "String" + } + }, + tier: { + required: true, + isConstant: true, + serializedName: "tier", + defaultValue: 'Standard', + type: { + name: "String" + } + } + } + } + }; + var WorkspaceCollection = { + serializedName: "WorkspaceCollection", + type: { + name: "Composite", + className: "WorkspaceCollection", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } + }; + var Workspace = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } + }; + var Display = { + serializedName: "Display", + type: { + name: "Composite", + className: "Display", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + 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: "Display" + } + } + } + } + }; + var OperationList = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + } + } + }; + var WorkspaceCollectionAccessKeys = { + serializedName: "WorkspaceCollectionAccessKeys", + type: { + name: "Composite", + className: "WorkspaceCollectionAccessKeys", + modelProperties: { + key1: { + serializedName: "key1", + type: { + name: "String" + } + }, + key2: { + serializedName: "key2", + type: { + name: "String" + } + } + } + } + }; + var WorkspaceCollectionAccessKey = { + serializedName: "WorkspaceCollectionAccessKey", + type: { + name: "Composite", + className: "WorkspaceCollectionAccessKey", + modelProperties: { + keyName: { + serializedName: "keyName", + type: { + name: "Enum", + allowedValues: [ + "key1", + "key2" + ] + } + } + } + } + }; + var CreateWorkspaceCollectionRequest = { + serializedName: "CreateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "CreateWorkspaceCollectionRequest", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + } + } + } + }; + var UpdateWorkspaceCollectionRequest = { + serializedName: "UpdateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "UpdateWorkspaceCollectionRequest", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + } + } + } + }; + var CheckNameRequest = { + serializedName: "CheckNameRequest", + type: { + name: "Composite", + className: "CheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + defaultValue: 'Microsoft.PowerBI/workspaceCollections', + type: { + name: "String" + } + } + } + } + }; + var CheckNameResponse = { + serializedName: "CheckNameResponse", + type: { + name: "Composite", + className: "CheckNameResponse", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } + }; + var MigrateWorkspaceCollectionRequest = { + serializedName: "MigrateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "MigrateWorkspaceCollectionRequest", + modelProperties: { + targetResourceGroup: { + serializedName: "targetResourceGroup", + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + }; + var WorkspaceCollectionList = { + serializedName: "WorkspaceCollectionList", + type: { + name: "Composite", + className: "WorkspaceCollectionList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceCollection" + } + } + } + } + } + } + }; + var WorkspaceList = { + serializedName: "WorkspaceList", + type: { + name: "Composite", + className: "WorkspaceList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + } + } + } + }; + + var Mappers = /*#__PURE__*/Object.freeze({ + CloudError: CloudError, + BaseResource: BaseResource, + ErrorDetail: ErrorDetail, + ErrorModel: ErrorModel, + AzureSku: AzureSku, + WorkspaceCollection: WorkspaceCollection, + Workspace: Workspace, + Display: Display, + Operation: Operation, + OperationList: OperationList, + WorkspaceCollectionAccessKeys: WorkspaceCollectionAccessKeys, + WorkspaceCollectionAccessKey: WorkspaceCollectionAccessKey, + CreateWorkspaceCollectionRequest: CreateWorkspaceCollectionRequest, + UpdateWorkspaceCollectionRequest: UpdateWorkspaceCollectionRequest, + CheckNameRequest: CheckNameRequest, + CheckNameResponse: CheckNameResponse, + MigrateWorkspaceCollectionRequest: MigrateWorkspaceCollectionRequest, + WorkspaceCollectionList: WorkspaceCollectionList, + WorkspaceList: WorkspaceList + }); + + /* + * 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 location = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + }; + var resourceGroupName = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } + }; + var subscriptionId = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } + }; + var workspaceCollectionName = { + parameterPath: "workspaceCollectionName", + mapper: { + required: true, + serializedName: "workspaceCollectionName", + 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. + */ + + var Mappers$1 = /*#__PURE__*/Object.freeze({ + WorkspaceCollection: WorkspaceCollection, + AzureSku: AzureSku, + ErrorModel: ErrorModel, + ErrorDetail: ErrorDetail, + CreateWorkspaceCollectionRequest: CreateWorkspaceCollectionRequest, + UpdateWorkspaceCollectionRequest: UpdateWorkspaceCollectionRequest, + CheckNameRequest: CheckNameRequest, + CheckNameResponse: CheckNameResponse, + WorkspaceCollectionList: WorkspaceCollectionList, + WorkspaceCollectionAccessKeys: WorkspaceCollectionAccessKeys, + WorkspaceCollectionAccessKey: WorkspaceCollectionAccessKey, + MigrateWorkspaceCollectionRequest: MigrateWorkspaceCollectionRequest + }); + + /* + * 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 WorkspaceCollections. */ + var WorkspaceCollections = /** @class */ (function () { + /** + * Create a WorkspaceCollections. + * @param {PowerBIEmbeddedManagementClientContext} client Reference to the service client. + */ + function WorkspaceCollections(client) { + this.client = client; + } + WorkspaceCollections.prototype.getByName = function (resourceGroupName$$1, workspaceCollectionName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + options: options + }, getByNameOperationSpec, callback); + }; + WorkspaceCollections.prototype.create = function (resourceGroupName$$1, workspaceCollectionName$$1, body, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + body: body, + options: options + }, createOperationSpec, callback); + }; + WorkspaceCollections.prototype.update = function (resourceGroupName$$1, workspaceCollectionName$$1, body, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + body: body, + options: options + }, updateOperationSpec, callback); + }; + /** + * Delete a Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + WorkspaceCollections.prototype.deleteMethod = function (resourceGroupName$$1, workspaceCollectionName$$1, options) { + return this.beginDeleteMethod(resourceGroupName$$1, workspaceCollectionName$$1, options) + .then(function (lroPoller) { return lroPoller.pollUntilFinished(); }); + }; + WorkspaceCollections.prototype.checkNameAvailability = function (location$$1, body, options, callback) { + return this.client.sendOperationRequest({ + location: location$$1, + body: body, + options: options + }, checkNameAvailabilityOperationSpec, callback); + }; + WorkspaceCollections.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + options: options + }, listByResourceGroupOperationSpec, callback); + }; + WorkspaceCollections.prototype.listBySubscription = function (options, callback) { + return this.client.sendOperationRequest({ + options: options + }, listBySubscriptionOperationSpec, callback); + }; + WorkspaceCollections.prototype.getAccessKeys = function (resourceGroupName$$1, workspaceCollectionName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + options: options + }, getAccessKeysOperationSpec, callback); + }; + WorkspaceCollections.prototype.regenerateKey = function (resourceGroupName$$1, workspaceCollectionName$$1, body, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + body: body, + options: options + }, regenerateKeyOperationSpec, callback); + }; + WorkspaceCollections.prototype.migrate = function (resourceGroupName$$1, body, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + body: body, + options: options + }, migrateOperationSpec, callback); + }; + /** + * Delete a Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + WorkspaceCollections.prototype.beginDeleteMethod = function (resourceGroupName$$1, workspaceCollectionName$$1, options) { + return this.client.sendLRORequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + options: options + }, beginDeleteMethodOperationSpec, options); + }; + return WorkspaceCollections; + }()); + // Operation Specifications + var serializer = new msRest.Serializer(Mappers$1); + var getByNameOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceCollection + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var createOperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: __assign({}, CreateWorkspaceCollectionRequest, { required: true }) + }, + responses: { + 200: { + bodyMapper: WorkspaceCollection + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var updateOperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: __assign({}, UpdateWorkspaceCollectionRequest, { required: true }) + }, + responses: { + 200: { + bodyMapper: WorkspaceCollection + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var checkNameAvailabilityOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/locations/{location}/checkNameAvailability", + urlParameters: [ + subscriptionId, + location + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: __assign({}, CheckNameRequest, { required: true }) + }, + responses: { + 200: { + bodyMapper: CheckNameResponse + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listByResourceGroupOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections", + urlParameters: [ + subscriptionId, + resourceGroupName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceCollectionList + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var listBySubscriptionOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/workspaceCollections", + urlParameters: [ + subscriptionId + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceCollectionList + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var getAccessKeysOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceCollectionAccessKeys + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var regenerateKeyOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/regenerateKey", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: __assign({}, WorkspaceCollectionAccessKey, { required: true }) + }, + responses: { + 200: { + bodyMapper: WorkspaceCollectionAccessKeys + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var migrateOperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources", + urlParameters: [ + subscriptionId, + resourceGroupName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: __assign({}, MigrateWorkspaceCollectionRequest, { required: true }) + }, + responses: { + 200: {}, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer + }; + var beginDeleteMethodOperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 202: {}, + default: { + bodyMapper: ErrorModel + } + }, + 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$2 = /*#__PURE__*/Object.freeze({ + WorkspaceList: WorkspaceList, + Workspace: Workspace, + ErrorModel: ErrorModel, + 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 Workspaces. */ + var Workspaces = /** @class */ (function () { + /** + * Create a Workspaces. + * @param {PowerBIEmbeddedManagementClientContext} client Reference to the service client. + */ + function Workspaces(client) { + this.client = client; + } + Workspaces.prototype.list = function (resourceGroupName$$1, workspaceCollectionName$$1, options, callback) { + return this.client.sendOperationRequest({ + resourceGroupName: resourceGroupName$$1, + workspaceCollectionName: workspaceCollectionName$$1, + options: options + }, listOperationSpec, callback); + }; + return Workspaces; + }()); + // Operation Specifications + var serializer$1 = new msRest.Serializer(Mappers$2); + var listOperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces", + urlParameters: [ + subscriptionId, + resourceGroupName, + workspaceCollectionName + ], + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: WorkspaceList + }, + default: { + bodyMapper: ErrorModel + } + }, + 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-powerbiembedded"; + var packageVersion = "1.0.0"; + var PowerBIEmbeddedManagementClientContext = /** @class */ (function (_super) { + __extends(PowerBIEmbeddedManagementClientContext, _super); + /** + * Initializes a new instance of the PowerBIEmbeddedManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + function PowerBIEmbeddedManagementClientContext(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 = '2016-01-29'; + _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 PowerBIEmbeddedManagementClientContext; + }(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 PowerBIEmbeddedManagementClient = /** @class */ (function (_super) { + __extends(PowerBIEmbeddedManagementClient, _super); + /** + * Initializes a new instance of the PowerBIEmbeddedManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + function PowerBIEmbeddedManagementClient(credentials, subscriptionId$$1, options) { + var _this = _super.call(this, credentials, subscriptionId$$1, options) || this; + _this.workspaceCollections = new WorkspaceCollections(_this); + _this.workspaces = new Workspaces(_this); + return _this; + } + PowerBIEmbeddedManagementClient.prototype.getAvailableOperations = function (options, callback) { + return this.sendOperationRequest({ + options: options + }, getAvailableOperationsOperationSpec, callback); + }; + return PowerBIEmbeddedManagementClient; + }(PowerBIEmbeddedManagementClientContext)); + // Operation Specifications + var serializer$2 = new msRest.Serializer(Mappers); + var getAvailableOperationsOperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.PowerBI/operations", + queryParameters: [ + apiVersion + ], + headerParameters: [ + acceptLanguage + ], + responses: { + 200: { + bodyMapper: OperationList + }, + default: { + bodyMapper: ErrorModel + } + }, + serializer: serializer$2 + }; + + exports.PowerBIEmbeddedManagementClient = PowerBIEmbeddedManagementClient; + exports.PowerBIEmbeddedManagementClientContext = PowerBIEmbeddedManagementClientContext; + exports.PowerBIEmbeddedManagementModels = index; + exports.PowerBIEmbeddedManagementMappers = Mappers; + exports.WorkspaceCollections = WorkspaceCollections; + exports.Workspaces = Workspaces; + + Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=arm-powerbiembedded.js.map diff --git a/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js.map b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js.map new file mode 100644 index 000000000000..18bb42d11d49 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.js.map @@ -0,0 +1 @@ +{"version":3,"file":"arm-powerbiembedded.js","sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/parameters.js","../esm/models/workspaceCollectionsMappers.js","../esm/operations/workspaceCollections.js","../esm/models/workspacesMappers.js","../esm/operations/workspaces.js","../esm/operations/index.js","../esm/powerBIEmbeddedManagementClientContext.js","../esm/powerBIEmbeddedManagementClient.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 AccessKeyName.\r\n * Possible values include: 'key1', 'key2'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var AccessKeyName;\r\n(function (AccessKeyName) {\r\n AccessKeyName[\"Key1\"] = \"key1\";\r\n AccessKeyName[\"Key2\"] = \"key2\";\r\n})(AccessKeyName || (AccessKeyName = {}));\r\n/**\r\n * Defines values for CheckNameReason.\r\n * Possible values include: 'Unavailable', 'Invalid'\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: CheckNameReason =\r\n * \"someUnknownValueThatWillStillBeValid\";\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var CheckNameReason;\r\n(function (CheckNameReason) {\r\n CheckNameReason[\"Unavailable\"] = \"Unavailable\";\r\n CheckNameReason[\"Invalid\"] = \"Invalid\";\r\n})(CheckNameReason || (CheckNameReason = {}));\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 { CloudErrorMapper, BaseResourceMapper } from \"ms-rest-azure-js\";\r\nexport var CloudError = CloudErrorMapper;\r\nexport var BaseResource = BaseResourceMapper;\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 serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\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 ErrorModel = {\r\n serializedName: \"Error\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorModel\",\r\n modelProperties: {\r\n code: {\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\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 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 }\r\n }\r\n};\r\nexport var AzureSku = {\r\n serializedName: \"AzureSku\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AzureSku\",\r\n modelProperties: {\r\n name: {\r\n required: true,\r\n isConstant: true,\r\n serializedName: \"name\",\r\n defaultValue: 'S1',\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n tier: {\r\n required: true,\r\n isConstant: true,\r\n serializedName: \"tier\",\r\n defaultValue: 'Standard',\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceCollection = {\r\n serializedName: \"WorkspaceCollection\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceCollection\",\r\n modelProperties: {\r\n id: {\r\n serializedName: \"id\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n location: {\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\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 sku: {\r\n isConstant: true,\r\n serializedName: \"sku\",\r\n defaultValue: {},\r\n type: {\r\n name: \"Composite\",\r\n className: \"AzureSku\"\r\n }\r\n },\r\n properties: {\r\n serializedName: \"properties\",\r\n type: {\r\n name: \"Object\"\r\n }\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: {\r\n id: {\r\n serializedName: \"id\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n properties: {\r\n serializedName: \"properties\",\r\n type: {\r\n name: \"Object\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Display = {\r\n serializedName: \"Display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Display\",\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 description: {\r\n serializedName: \"description\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n origin: {\r\n serializedName: \"origin\",\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: \"Display\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationList = {\r\n serializedName: \"OperationList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationList\",\r\n modelProperties: {\r\n value: {\r\n serializedName: \"value\",\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 }\r\n }\r\n};\r\nexport var WorkspaceCollectionAccessKeys = {\r\n serializedName: \"WorkspaceCollectionAccessKeys\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceCollectionAccessKeys\",\r\n modelProperties: {\r\n key1: {\r\n serializedName: \"key1\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n key2: {\r\n serializedName: \"key2\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceCollectionAccessKey = {\r\n serializedName: \"WorkspaceCollectionAccessKey\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceCollectionAccessKey\",\r\n modelProperties: {\r\n keyName: {\r\n serializedName: \"keyName\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"key1\",\r\n \"key2\"\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CreateWorkspaceCollectionRequest = {\r\n serializedName: \"CreateWorkspaceCollectionRequest\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CreateWorkspaceCollectionRequest\",\r\n modelProperties: {\r\n location: {\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\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 sku: {\r\n isConstant: true,\r\n serializedName: \"sku\",\r\n defaultValue: {},\r\n type: {\r\n name: \"Composite\",\r\n className: \"AzureSku\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var UpdateWorkspaceCollectionRequest = {\r\n serializedName: \"UpdateWorkspaceCollectionRequest\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"UpdateWorkspaceCollectionRequest\",\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 sku: {\r\n isConstant: true,\r\n serializedName: \"sku\",\r\n defaultValue: {},\r\n type: {\r\n name: \"Composite\",\r\n className: \"AzureSku\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CheckNameRequest = {\r\n serializedName: \"CheckNameRequest\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckNameRequest\",\r\n modelProperties: {\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n serializedName: \"type\",\r\n defaultValue: 'Microsoft.PowerBI/workspaceCollections',\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var CheckNameResponse = {\r\n serializedName: \"CheckNameResponse\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"CheckNameResponse\",\r\n modelProperties: {\r\n nameAvailable: {\r\n serializedName: \"nameAvailable\",\r\n type: {\r\n name: \"Boolean\"\r\n }\r\n },\r\n reason: {\r\n serializedName: \"reason\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var MigrateWorkspaceCollectionRequest = {\r\n serializedName: \"MigrateWorkspaceCollectionRequest\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"MigrateWorkspaceCollectionRequest\",\r\n modelProperties: {\r\n targetResourceGroup: {\r\n serializedName: \"targetResourceGroup\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n resources: {\r\n serializedName: \"resources\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceCollectionList = {\r\n serializedName: \"WorkspaceCollectionList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceCollectionList\",\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: \"WorkspaceCollection\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var WorkspaceList = {\r\n serializedName: \"WorkspaceList\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"WorkspaceList\",\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 }\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 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 location = {\r\n parameterPath: \"location\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var resourceGroupName = {\r\n parameterPath: \"resourceGroupName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"resourceGroupName\",\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 workspaceCollectionName = {\r\n parameterPath: \"workspaceCollectionName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"workspaceCollectionName\",\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\nexport { WorkspaceCollection, AzureSku, ErrorModel, ErrorDetail, CreateWorkspaceCollectionRequest, UpdateWorkspaceCollectionRequest, CheckNameRequest, CheckNameResponse, WorkspaceCollectionList, WorkspaceCollectionAccessKeys, WorkspaceCollectionAccessKey, MigrateWorkspaceCollectionRequest } from \"../models/mappers\";\r\n//# sourceMappingURL=workspaceCollectionsMappers.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/workspaceCollectionsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a WorkspaceCollections. */\r\nvar WorkspaceCollections = /** @class */ (function () {\r\n /**\r\n * Create a WorkspaceCollections.\r\n * @param {PowerBIEmbeddedManagementClientContext} client Reference to the service client.\r\n */\r\n function WorkspaceCollections(client) {\r\n this.client = client;\r\n }\r\n WorkspaceCollections.prototype.getByName = function (resourceGroupName, workspaceCollectionName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n options: options\r\n }, getByNameOperationSpec, callback);\r\n };\r\n WorkspaceCollections.prototype.create = function (resourceGroupName, workspaceCollectionName, body, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n body: body,\r\n options: options\r\n }, createOperationSpec, callback);\r\n };\r\n WorkspaceCollections.prototype.update = function (resourceGroupName, workspaceCollectionName, body, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n body: body,\r\n options: options\r\n }, updateOperationSpec, callback);\r\n };\r\n /**\r\n * Delete a Power BI Workspace Collection.\r\n * @param resourceGroupName Azure resource group\r\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n WorkspaceCollections.prototype.deleteMethod = function (resourceGroupName, workspaceCollectionName, options) {\r\n return this.beginDeleteMethod(resourceGroupName, workspaceCollectionName, options)\r\n .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });\r\n };\r\n WorkspaceCollections.prototype.checkNameAvailability = function (location, body, options, callback) {\r\n return this.client.sendOperationRequest({\r\n location: location,\r\n body: body,\r\n options: options\r\n }, checkNameAvailabilityOperationSpec, callback);\r\n };\r\n WorkspaceCollections.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 WorkspaceCollections.prototype.listBySubscription = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listBySubscriptionOperationSpec, callback);\r\n };\r\n WorkspaceCollections.prototype.getAccessKeys = function (resourceGroupName, workspaceCollectionName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n options: options\r\n }, getAccessKeysOperationSpec, callback);\r\n };\r\n WorkspaceCollections.prototype.regenerateKey = function (resourceGroupName, workspaceCollectionName, body, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n body: body,\r\n options: options\r\n }, regenerateKeyOperationSpec, callback);\r\n };\r\n WorkspaceCollections.prototype.migrate = function (resourceGroupName, body, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n body: body,\r\n options: options\r\n }, migrateOperationSpec, callback);\r\n };\r\n /**\r\n * Delete a Power BI Workspace Collection.\r\n * @param resourceGroupName Azure resource group\r\n * @param workspaceCollectionName Power BI Embedded Workspace Collection name\r\n * @param [options] The optional parameters\r\n * @returns Promise\r\n */\r\n WorkspaceCollections.prototype.beginDeleteMethod = function (resourceGroupName, workspaceCollectionName, options) {\r\n return this.client.sendLRORequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n options: options\r\n }, beginDeleteMethodOperationSpec, options);\r\n };\r\n return WorkspaceCollections;\r\n}());\r\nexport { WorkspaceCollections };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar getByNameOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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.WorkspaceCollection\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar createOperationSpec = {\r\n httpMethod: \"PUT\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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: \"body\",\r\n mapper: tslib_1.__assign({}, Mappers.CreateWorkspaceCollectionRequest, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceCollection\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar updateOperationSpec = {\r\n httpMethod: \"PATCH\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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: \"body\",\r\n mapper: tslib_1.__assign({}, Mappers.UpdateWorkspaceCollectionRequest, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceCollection\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar checkNameAvailabilityOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/locations/{location}/checkNameAvailability\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.location\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: \"body\",\r\n mapper: tslib_1.__assign({}, Mappers.CheckNameRequest, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.CheckNameResponse\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\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.PowerBI/workspaceCollections\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName\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.WorkspaceCollectionList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listBySubscriptionOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/workspaceCollections\",\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.WorkspaceCollectionList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar getAccessKeysOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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.WorkspaceCollectionAccessKeys\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar regenerateKeyOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/regenerateKey\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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: \"body\",\r\n mapper: tslib_1.__assign({}, Mappers.WorkspaceCollectionAccessKey, { required: true })\r\n },\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.WorkspaceCollectionAccessKeys\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar migrateOperationSpec = {\r\n httpMethod: \"POST\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName\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: \"body\",\r\n mapper: tslib_1.__assign({}, Mappers.MigrateWorkspaceCollectionRequest, { required: true })\r\n },\r\n responses: {\r\n 200: {},\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\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.PowerBI/workspaceCollections/{workspaceCollectionName}\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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 default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=workspaceCollections.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 { WorkspaceList, Workspace, ErrorModel, ErrorDetail } 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\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 {PowerBIEmbeddedManagementClientContext} client Reference to the service client.\r\n */\r\n function Workspaces(client) {\r\n this.client = client;\r\n }\r\n Workspaces.prototype.list = function (resourceGroupName, workspaceCollectionName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n workspaceCollectionName: workspaceCollectionName,\r\n options: options\r\n }, listOperationSpec, 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 listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName,\r\n Parameters.workspaceCollectionName\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.WorkspaceList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\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 * from \"./workspaceCollections\";\r\nexport * from \"./workspaces\";\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-powerbiembedded\";\r\nvar packageVersion = \"1.0.0\";\r\nvar PowerBIEmbeddedManagementClientContext = /** @class */ (function (_super) {\r\n tslib_1.__extends(PowerBIEmbeddedManagementClientContext, _super);\r\n /**\r\n * Initializes a new instance of the PowerBIEmbeddedManagementClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure\r\n * subscription. The subscription ID forms part of the URI for every service call.\r\n * @param [options] The parameter options\r\n */\r\n function PowerBIEmbeddedManagementClientContext(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 = '2016-01-29';\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 PowerBIEmbeddedManagementClientContext;\r\n}(msRestAzure.AzureServiceClient));\r\nexport { PowerBIEmbeddedManagementClientContext };\r\n//# sourceMappingURL=powerBIEmbeddedManagementClientContext.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 Models from \"./models\";\r\nimport * as Mappers from \"./models/mappers\";\r\nimport * as Parameters from \"./models/parameters\";\r\nimport * as operations from \"./operations\";\r\nimport { PowerBIEmbeddedManagementClientContext } from \"./powerBIEmbeddedManagementClientContext\";\r\nvar PowerBIEmbeddedManagementClient = /** @class */ (function (_super) {\r\n tslib_1.__extends(PowerBIEmbeddedManagementClient, _super);\r\n /**\r\n * Initializes a new instance of the PowerBIEmbeddedManagementClient class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure\r\n * subscription. The subscription ID forms part of the URI for every service call.\r\n * @param [options] The parameter options\r\n */\r\n function PowerBIEmbeddedManagementClient(credentials, subscriptionId, options) {\r\n var _this = _super.call(this, credentials, subscriptionId, options) || this;\r\n _this.workspaceCollections = new operations.WorkspaceCollections(_this);\r\n _this.workspaces = new operations.Workspaces(_this);\r\n return _this;\r\n }\r\n PowerBIEmbeddedManagementClient.prototype.getAvailableOperations = function (options, callback) {\r\n return this.sendOperationRequest({\r\n options: options\r\n }, getAvailableOperationsOperationSpec, callback);\r\n };\r\n return PowerBIEmbeddedManagementClient;\r\n}(PowerBIEmbeddedManagementClientContext));\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar getAvailableOperationsOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"providers/Microsoft.PowerBI/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.OperationList\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorModel\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nexport { PowerBIEmbeddedManagementClient, PowerBIEmbeddedManagementClientContext, Models as PowerBIEmbeddedManagementModels, Mappers as PowerBIEmbeddedManagementMappers };\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=powerBIEmbeddedManagementClient.js.map"],"names":["CloudErrorMapper","BaseResourceMapper","resourceGroupName","workspaceCollectionName","location","msRest.Serializer","Mappers","Parameters.subscriptionId","Parameters.resourceGroupName","Parameters.workspaceCollectionName","Parameters.apiVersion","Parameters.acceptLanguage","Mappers.WorkspaceCollection","Mappers.ErrorModel","tslib_1.__assign","Mappers.CreateWorkspaceCollectionRequest","Mappers.UpdateWorkspaceCollectionRequest","Parameters.location","Mappers.CheckNameRequest","Mappers.CheckNameResponse","Mappers.WorkspaceCollectionList","Mappers.WorkspaceCollectionAccessKeys","Mappers.WorkspaceCollectionAccessKey","Mappers.MigrateWorkspaceCollectionRequest","serializer","Mappers.WorkspaceList","tslib_1.__extends","msRestAzure.AzureServiceClient","subscriptionId","operations.WorkspaceCollections","operations.Workspaces","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,OAAO,EAAE,QAAQ,EAAE;IACpG,QAAQ,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACzC,YAAY,OAAO,EAAE,OAAO;IAC5B,SAAS,EAAE,mCAAmC,EAAE,QAAQ,CAAC,CAAC;IAC1D,KAAK,CAAC;IACN,IAAI,OAAO,+BAA+B,CAAC;IAC3C,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC;IAC3C;IACA,IAAIN,YAAU,GAAG,IAAInB,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,mCAAmC,GAAG;IAC1C,IAAI,UAAU,EAAE,KAAK;IACrB,IAAI,IAAI,EAAE,wCAAwC;IAClD,IAAI,eAAe,EAAE;IACrB,QAAQK,UAAqB;IAC7B,KAAK;IACL,IAAI,gBAAgB,EAAE;IACtB,QAAQC,cAAyB;IACjC,KAAK;IACL,IAAI,SAAS,EAAE;IACf,QAAQ,GAAG,EAAE;IACb,YAAY,UAAU,EAAEoB,aAAqB;IAC7C,SAAS;IACT,QAAQ,OAAO,EAAE;IACjB,YAAY,UAAU,EAAElB,UAAkB;IAC1C,SAAS;IACT,KAAK;IACL,IAAI,UAAU,EAAEW,YAAU;IAC1B,CAAC,CAAC;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.min.js b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.min.js new file mode 100644 index 000000000000..e8c58b9ecaa4 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/dist/arm-powerbiembedded.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.ArmPowerbiembedded={}),e.msRestAzure,e.msRest)}(this,function(e,r,a){"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(e,r)};function s(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}var o,i,n,p,l=function(){return(l=Object.assign||function(e){for(var r,a=1,t=arguments.length;a + */ +export interface WorkspaceCollectionList extends Array { +} + +/** + * @interface + * An interface representing the WorkspaceList. + * @extends Array + */ +export interface WorkspaceList extends Array { +} + +/** + * Defines values for AccessKeyName. + * Possible values include: 'key1', 'key2' + * @readonly + * @enum {string} + */ +export enum AccessKeyName { + Key1 = 'key1', + Key2 = 'key2', +} + +/** + * Defines values for CheckNameReason. + * Possible values include: 'Unavailable', 'Invalid' + * 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: CheckNameReason = + * "someUnknownValueThatWillStillBeValid"; + * @readonly + * @enum {string} + */ +export enum CheckNameReason { + Unavailable = 'Unavailable', + Invalid = 'Invalid', +} + +/** + * Contains response data for the getByName operation. + */ +export type WorkspaceCollectionsGetByNameResponse = WorkspaceCollection & { + /** + * 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: WorkspaceCollection; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type WorkspaceCollectionsCreateResponse = WorkspaceCollection & { + /** + * 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: WorkspaceCollection; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WorkspaceCollectionsUpdateResponse = WorkspaceCollection & { + /** + * 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: WorkspaceCollection; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type WorkspaceCollectionsCheckNameAvailabilityResponse = CheckNameResponse & { + /** + * 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: CheckNameResponse; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WorkspaceCollectionsListByResourceGroupResponse = WorkspaceCollectionList & { + /** + * 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: WorkspaceCollectionList; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type WorkspaceCollectionsListBySubscriptionResponse = WorkspaceCollectionList & { + /** + * 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: WorkspaceCollectionList; + }; +}; + +/** + * Contains response data for the getAccessKeys operation. + */ +export type WorkspaceCollectionsGetAccessKeysResponse = WorkspaceCollectionAccessKeys & { + /** + * 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: WorkspaceCollectionAccessKeys; + }; +}; + +/** + * Contains response data for the regenerateKey operation. + */ +export type WorkspaceCollectionsRegenerateKeyResponse = WorkspaceCollectionAccessKeys & { + /** + * 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: WorkspaceCollectionAccessKeys; + }; +}; + +/** + * Contains response data for the getAvailableOperations operation. + */ +export type GetAvailableOperationsResponse = OperationList & { + /** + * 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: OperationList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type WorkspacesListResponse = WorkspaceList & { + /** + * 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: WorkspaceList; + }; +}; diff --git a/packages/@azure/arm-powerbiembedded/lib/models/mappers.ts b/packages/@azure/arm-powerbiembedded/lib/models/mappers.ts new file mode 100644 index 000000000000..8a93ab188945 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/models/mappers.ts @@ -0,0 +1,520 @@ +/* + * 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 ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } + } + } +}; + +export const AzureSku: msRest.CompositeMapper = { + serializedName: "AzureSku", + type: { + name: "Composite", + className: "AzureSku", + modelProperties: { + name: { + required: true, + isConstant: true, + serializedName: "name", + defaultValue: 'S1', + type: { + name: "String" + } + }, + tier: { + required: true, + isConstant: true, + serializedName: "tier", + defaultValue: 'Standard', + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceCollection: msRest.CompositeMapper = { + serializedName: "WorkspaceCollection", + type: { + name: "Composite", + className: "WorkspaceCollection", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const Workspace: msRest.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const Display: msRest.CompositeMapper = { + serializedName: "Display", + type: { + name: "Composite", + className: "Display", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + 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: "Display" + } + } + } + } +}; + +export const OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + } + } +}; + +export const WorkspaceCollectionAccessKeys: msRest.CompositeMapper = { + serializedName: "WorkspaceCollectionAccessKeys", + type: { + name: "Composite", + className: "WorkspaceCollectionAccessKeys", + modelProperties: { + key1: { + serializedName: "key1", + type: { + name: "String" + } + }, + key2: { + serializedName: "key2", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceCollectionAccessKey: msRest.CompositeMapper = { + serializedName: "WorkspaceCollectionAccessKey", + type: { + name: "Composite", + className: "WorkspaceCollectionAccessKey", + modelProperties: { + keyName: { + serializedName: "keyName", + type: { + name: "Enum", + allowedValues: [ + "key1", + "key2" + ] + } + } + } + } +}; + +export const CreateWorkspaceCollectionRequest: msRest.CompositeMapper = { + serializedName: "CreateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "CreateWorkspaceCollectionRequest", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + } + } + } +}; + +export const UpdateWorkspaceCollectionRequest: msRest.CompositeMapper = { + serializedName: "UpdateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "UpdateWorkspaceCollectionRequest", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + isConstant: true, + serializedName: "sku", + defaultValue: {}, + type: { + name: "Composite", + className: "AzureSku" + } + } + } + } +}; + +export const CheckNameRequest: msRest.CompositeMapper = { + serializedName: "CheckNameRequest", + type: { + name: "Composite", + className: "CheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + defaultValue: 'Microsoft.PowerBI/workspaceCollections', + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameResponse: msRest.CompositeMapper = { + serializedName: "CheckNameResponse", + type: { + name: "Composite", + className: "CheckNameResponse", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const MigrateWorkspaceCollectionRequest: msRest.CompositeMapper = { + serializedName: "MigrateWorkspaceCollectionRequest", + type: { + name: "Composite", + className: "MigrateWorkspaceCollectionRequest", + modelProperties: { + targetResourceGroup: { + serializedName: "targetResourceGroup", + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkspaceCollectionList: msRest.CompositeMapper = { + serializedName: "WorkspaceCollectionList", + type: { + name: "Composite", + className: "WorkspaceCollectionList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceCollection" + } + } + } + } + } + } +}; + +export const WorkspaceList: msRest.CompositeMapper = { + serializedName: "WorkspaceList", + type: { + name: "Composite", + className: "WorkspaceList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + } + } + } +}; diff --git a/packages/@azure/arm-powerbiembedded/lib/models/parameters.ts b/packages/@azure/arm-powerbiembedded/lib/models/parameters.ts new file mode 100644 index 000000000000..f6d34ced79b3 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/models/parameters.ts @@ -0,0 +1,72 @@ +/* + * 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 location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const workspaceCollectionName: msRest.OperationURLParameter = { + parameterPath: "workspaceCollectionName", + mapper: { + required: true, + serializedName: "workspaceCollectionName", + type: { + name: "String" + } + } +}; diff --git a/packages/@azure/arm-powerbiembedded/lib/models/workspaceCollectionsMappers.ts b/packages/@azure/arm-powerbiembedded/lib/models/workspaceCollectionsMappers.ts new file mode 100644 index 000000000000..c90406e5895b --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/models/workspaceCollectionsMappers.ts @@ -0,0 +1,25 @@ +/* + * 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 { + WorkspaceCollection, + AzureSku, + ErrorModel, + ErrorDetail, + CreateWorkspaceCollectionRequest, + UpdateWorkspaceCollectionRequest, + CheckNameRequest, + CheckNameResponse, + WorkspaceCollectionList, + WorkspaceCollectionAccessKeys, + WorkspaceCollectionAccessKey, + MigrateWorkspaceCollectionRequest +} from "../models/mappers"; + diff --git a/packages/@azure/arm-powerbiembedded/lib/models/workspacesMappers.ts b/packages/@azure/arm-powerbiembedded/lib/models/workspacesMappers.ts new file mode 100644 index 000000000000..1f78d8fb48fd --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/models/workspacesMappers.ts @@ -0,0 +1,17 @@ +/* + * 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 { + WorkspaceList, + Workspace, + ErrorModel, + ErrorDetail +} from "../models/mappers"; + diff --git a/packages/@azure/arm-powerbiembedded/lib/operations/index.ts b/packages/@azure/arm-powerbiembedded/lib/operations/index.ts new file mode 100644 index 000000000000..7bff660521ad --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/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 "./workspaceCollections"; +export * from "./workspaces"; diff --git a/packages/@azure/arm-powerbiembedded/lib/operations/workspaceCollections.ts b/packages/@azure/arm-powerbiembedded/lib/operations/workspaceCollections.ts new file mode 100644 index 000000000000..34d5704a85ea --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/operations/workspaceCollections.ts @@ -0,0 +1,628 @@ +/* + * 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/workspaceCollectionsMappers"; +import * as Parameters from "../models/parameters"; +import { PowerBIEmbeddedManagementClientContext } from "../powerBIEmbeddedManagementClientContext"; + +/** Class representing a WorkspaceCollections. */ +export class WorkspaceCollections { + private readonly client: PowerBIEmbeddedManagementClientContext; + + /** + * Create a WorkspaceCollections. + * @param {PowerBIEmbeddedManagementClientContext} client Reference to the service client. + */ + constructor(client: PowerBIEmbeddedManagementClientContext) { + this.client = client; + } + + /** + * Retrieves an existing Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + getByName(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param callback The callback + */ + getByName(resourceGroupName: string, workspaceCollectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param options The optional parameters + * @param callback The callback + */ + getByName(resourceGroupName: string, workspaceCollectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByName(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + options + }, + getByNameOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace + * Collection contains one or more workspaces, and can be used to provision keys that provide API + * access to those workspaces. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Create workspace collection request + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, workspaceCollectionName: string, body: Models.CreateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Create workspace collection request + * @param callback The callback + */ + create(resourceGroupName: string, workspaceCollectionName: string, body: Models.CreateWorkspaceCollectionRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Create workspace collection request + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, workspaceCollectionName: string, body: Models.CreateWorkspaceCollectionRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, workspaceCollectionName: string, body: Models.CreateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + body, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Update an existing Power BI Workspace Collection with the specified properties. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Update workspace collection request + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, workspaceCollectionName: string, body: Models.UpdateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Update workspace collection request + * @param callback The callback + */ + update(resourceGroupName: string, workspaceCollectionName: string, body: Models.UpdateWorkspaceCollectionRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Update workspace collection request + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, workspaceCollectionName: string, body: Models.UpdateWorkspaceCollectionRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, workspaceCollectionName: string, body: Models.UpdateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + body, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete a Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceCollectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Verify the specified Power BI Workspace Collection name is valid and not already in use. + * @param location Azure location + * @param body Check name availability request + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(location: string, body: Models.CheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Azure location + * @param body Check name availability request + * @param callback The callback + */ + checkNameAvailability(location: string, body: Models.CheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param location Azure location + * @param body Check name availability request + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(location: string, body: Models.CheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, body: Models.CheckNameRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + body, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Retrieves all existing Power BI workspace collections in the specified resource group. + * @param resourceGroupName Azure resource group + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @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; + } + + /** + * Retrieves all existing Power BI workspace collections in the specified 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; + } + + /** + * Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param callback The callback + */ + getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param options The optional parameters + * @param callback The callback + */ + getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAccessKeys(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + options + }, + getAccessKeysOperationSpec, + callback) as Promise; + } + + /** + * Regenerates the primary or secondary access key for the specified Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Access key to regenerate + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: Models.WorkspaceCollectionAccessKey, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Access key to regenerate + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: Models.WorkspaceCollectionAccessKey, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param body Access key to regenerate + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: Models.WorkspaceCollectionAccessKey, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, workspaceCollectionName: string, body: Models.WorkspaceCollectionAccessKey, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + body, + options + }, + regenerateKeyOperationSpec, + callback) as Promise; + } + + /** + * Migrates an existing Power BI Workspace Collection to a different resource group and/or + * subscription. + * @param resourceGroupName Azure resource group + * @param body Workspace migration request + * @param [options] The optional parameters + * @returns Promise + */ + migrate(resourceGroupName: string, body: Models.MigrateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param body Workspace migration request + * @param callback The callback + */ + migrate(resourceGroupName: string, body: Models.MigrateWorkspaceCollectionRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param body Workspace migration request + * @param options The optional parameters + * @param callback The callback + */ + migrate(resourceGroupName: string, body: Models.MigrateWorkspaceCollectionRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + migrate(resourceGroupName: string, body: Models.MigrateWorkspaceCollectionRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + body, + options + }, + migrateOperationSpec, + callback); + } + + /** + * Delete a Power BI Workspace Collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceCollectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getByNameOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CreateWorkspaceCollectionRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.UpdateWorkspaceCollectionRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/locations/{location}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResponse + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollectionList + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/workspaceCollections", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollectionList + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const getAccessKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/listKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollectionAccessKeys + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/regenerateKey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.WorkspaceCollectionAccessKey, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollectionAccessKeys + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const migrateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.MigrateWorkspaceCollectionRequest, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; diff --git a/packages/@azure/arm-powerbiembedded/lib/operations/workspaces.ts b/packages/@azure/arm-powerbiembedded/lib/operations/workspaces.ts new file mode 100644 index 000000000000..0ae46f38e010 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/operations/workspaces.ts @@ -0,0 +1,87 @@ +/* + * 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/workspacesMappers"; +import * as Parameters from "../models/parameters"; +import { PowerBIEmbeddedManagementClientContext } from "../powerBIEmbeddedManagementClientContext"; + +/** Class representing a Workspaces. */ +export class Workspaces { + private readonly client: PowerBIEmbeddedManagementClientContext; + + /** + * Create a Workspaces. + * @param {PowerBIEmbeddedManagementClientContext} client Reference to the service client. + */ + constructor(client: PowerBIEmbeddedManagementClientContext) { + this.client = client; + } + + /** + * Retrieves all existing Power BI workspaces in the specified workspace collection. + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param callback The callback + */ + list(resourceGroupName: string, workspaceCollectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Azure resource group + * @param workspaceCollectionName Power BI Embedded Workspace Collection name + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceCollectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceCollectionName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceCollectionName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/workspaceCollections/{workspaceCollectionName}/workspaces", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceCollectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceList + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; diff --git a/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClient.ts b/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClient.ts new file mode 100644 index 000000000000..39ceb9d8471c --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClient.ts @@ -0,0 +1,90 @@ +/* + * 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/mappers"; +import * as Parameters from "./models/parameters"; +import * as operations from "./operations"; +import { PowerBIEmbeddedManagementClientContext } from "./powerBIEmbeddedManagementClientContext"; + + +class PowerBIEmbeddedManagementClient extends PowerBIEmbeddedManagementClientContext { + // Operation groups + workspaceCollections: operations.WorkspaceCollections; + workspaces: operations.Workspaces; + + /** + * Initializes a new instance of the PowerBIEmbeddedManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { + super(credentials, subscriptionId, options); + this.workspaceCollections = new operations.WorkspaceCollections(this); + this.workspaces = new operations.Workspaces(this); + } + + /** + * Indicates which operations can be performed by the Power BI Resource Provider. + * @param [options] The optional parameters + * @returns Promise + */ + getAvailableOperations(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getAvailableOperations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getAvailableOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAvailableOperations(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + getAvailableOperationsOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getAvailableOperationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.PowerBI/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationList + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +export { + PowerBIEmbeddedManagementClient, + PowerBIEmbeddedManagementClientContext, + Models as PowerBIEmbeddedManagementModels, + Mappers as PowerBIEmbeddedManagementMappers +}; +export * from "./operations"; diff --git a/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClientContext.ts b/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClientContext.ts new file mode 100644 index 000000000000..50a50f053367 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/lib/powerBIEmbeddedManagementClientContext.ts @@ -0,0 +1,66 @@ +/* + * 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 Models from "./models"; +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; + +const packageName = "@azure/arm-powerbiembedded"; +const packageVersion = "1.0.0"; + +export class PowerBIEmbeddedManagementClientContext extends msRestAzure.AzureServiceClient { + + credentials: msRest.ServiceClientCredentials; + + subscriptionId: string; + + apiVersion: string; + + acceptLanguage: string; + + longRunningOperationRetryTimeout: number; + + /** + * Initializes a new instance of the PowerBIEmbeddedManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify a Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.PowerBIEmbeddedManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + super(credentials, options); + + this.apiVersion = '2016-01-29'; + 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; + } + } +} diff --git a/packages/@azure/arm-powerbiembedded/package.json b/packages/@azure/arm-powerbiembedded/package.json new file mode 100644 index 000000000000..adf652152de1 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure/arm-powerbiembedded", + "author": "Microsoft Corporation", + "description": "PowerBIEmbeddedManagementClient 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-powerbiembedded.js", + "module": "./esm/powerBIEmbeddedManagementClient.js", + "types": "./esm/powerBIEmbeddedManagementClient.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-powerbiembedded.js.map'\" -o ./dist/arm-powerbiembedded.min.js ./dist/arm-powerbiembedded.js", + "prepare": "npm run build" + }, + "sideEffects": false +} diff --git a/packages/@azure/arm-powerbiembedded/rollup.config.js b/packages/@azure/arm-powerbiembedded/rollup.config.js new file mode 100644 index 000000000000..1d4ffacedfd9 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/rollup.config.js @@ -0,0 +1,31 @@ +import nodeResolve from "rollup-plugin-node-resolve"; +/** + * @type {import('rollup').RollupFileOptions} + */ +const config = { + input: './esm/powerBIEmbeddedManagementClient.js', + external: ["ms-rest-js", "ms-rest-azure-js"], + output: { + file: "./dist/arm-powerbiembedded.js", + format: "umd", + name: "Azure.ArmPowerbiembedded", + 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-powerbiembedded/tsconfig.json b/packages/@azure/arm-powerbiembedded/tsconfig.json new file mode 100644 index 000000000000..f32d1664f320 --- /dev/null +++ b/packages/@azure/arm-powerbiembedded/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"] +}