From 5d48effdcb2f5609cbc7d10a8eea29733680c699 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 3 Dec 2018 09:54:01 -0800 Subject: [PATCH] Generated from 1a3d050a91b1025aab0f16c33f1a48daa858b1bf (#4296) typo: powerbiembedded/resource-manager/Microsoft.PowerBI - defintion -> definition --- lib/services/powerbiembedded/LICENSE.txt | 42 +-- .../lib/models/checkNameRequest.js | 4 +- .../lib/models/checkNameResponse.js | 14 +- .../createWorkspaceCollectionRequest.js | 6 +- .../powerbiembedded/lib/models/display.js | 28 +- .../powerbiembedded/lib/models/errorDetail.js | 6 +- .../powerbiembedded/lib/models/errorModel.js | 10 +- .../powerbiembedded/lib/models/index.d.ts | 267 +++++++----------- .../migrateWorkspaceCollectionRequest.js | 4 +- .../powerbiembedded/lib/models/operation.js | 33 ++- .../lib/models/operationList.js | 4 +- .../updateWorkspaceCollectionRequest.js | 4 +- .../powerbiembedded/lib/models/workspace.js | 8 +- .../lib/models/workspaceCollection.js | 14 +- .../models/workspaceCollectionAccessKey.js | 2 +- .../models/workspaceCollectionAccessKeys.js | 4 +- .../lib/powerBIEmbeddedManagementClient.d.ts | 10 +- .../lib/powerBIEmbeddedManagementClient.js | 9 +- lib/services/powerbiembedded/package.json | 30 +- 19 files changed, 202 insertions(+), 297 deletions(-) diff --git a/lib/services/powerbiembedded/LICENSE.txt b/lib/services/powerbiembedded/LICENSE.txt index 0313a903d7..5431ba98b9 100644 --- a/lib/services/powerbiembedded/LICENSE.txt +++ b/lib/services/powerbiembedded/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2017 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. \ No newline at end of file +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/lib/services/powerbiembedded/lib/models/checkNameRequest.js b/lib/services/powerbiembedded/lib/models/checkNameRequest.js index a5060c4115..d68a7d12a3 100644 --- a/lib/services/powerbiembedded/lib/models/checkNameRequest.js +++ b/lib/services/powerbiembedded/lib/models/checkNameRequest.js @@ -16,8 +16,8 @@ class CheckNameRequest { /** * Create a CheckNameRequest. - * @member {string} [name] Workspace collection name - * @member {string} [type] Resource type. Default value: + * @property {string} [name] Workspace collection name + * @property {string} [type] Resource type. Default value: * 'Microsoft.PowerBI/workspaceCollections' . */ constructor() { diff --git a/lib/services/powerbiembedded/lib/models/checkNameResponse.js b/lib/services/powerbiembedded/lib/models/checkNameResponse.js index 4e927e9f18..27354d44e2 100644 --- a/lib/services/powerbiembedded/lib/models/checkNameResponse.js +++ b/lib/services/powerbiembedded/lib/models/checkNameResponse.js @@ -16,13 +16,13 @@ class CheckNameResponse { /** * Create a CheckNameResponse. - * @member {boolean} [nameAvailable] Specifies a Boolean value that indicates - * whether the specified Power BI Workspace Collection name is available to - * use. - * @member {string} [reason] Reason why the workspace collection name cannot - * be used. Possible values include: 'Unavailable', 'Invalid' - * @member {string} [message] Message indicating an unavailable name due to a - * conflict, or a description of the naming rules that are violated. + * @property {boolean} [nameAvailable] Specifies a Boolean value that + * indicates whether the specified Power BI Workspace Collection name is + * available to use. + * @property {string} [reason] Reason why the workspace collection name + * cannot be used. Possible values include: 'Unavailable', 'Invalid' + * @property {string} [message] Message indicating an unavailable name due to + * a conflict, or a description of the naming rules that are violated. */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/createWorkspaceCollectionRequest.js b/lib/services/powerbiembedded/lib/models/createWorkspaceCollectionRequest.js index 62779ec095..e4a386f42e 100644 --- a/lib/services/powerbiembedded/lib/models/createWorkspaceCollectionRequest.js +++ b/lib/services/powerbiembedded/lib/models/createWorkspaceCollectionRequest.js @@ -10,16 +10,14 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a CreateWorkspaceCollectionRequest. */ class CreateWorkspaceCollectionRequest { /** * Create a CreateWorkspaceCollectionRequest. - * @member {string} [location] Azure location - * @member {object} [tags] + * @property {string} [location] Azure location + * @property {object} [tags] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/display.js b/lib/services/powerbiembedded/lib/models/display.js index 685833cf65..d322aa7c4c 100644 --- a/lib/services/powerbiembedded/lib/models/display.js +++ b/lib/services/powerbiembedded/lib/models/display.js @@ -16,24 +16,24 @@ class Display { /** * Create a Display. - * @member {string} [provider] The localized friendly form of the resource + * @property {string} [provider] The localized friendly form of the resource * provider name. This form is also expected to include the publisher/company - * responsible. Use Title Casing. Begin with “Microsoft” for 1st party + * responsible. Use Title Casing. Begin with "Microsoft" for 1st party * services. - * @member {string} [resource] The localized friendly form of the resource + * @property {string} [resource] The localized friendly form of the resource * type related to this action/operation. This form should match the public * documentation for the resource provider. Use Title Casing. For examples, - * refer to the “name” section. - * @member {string} [operation] The localized friendly name for the operation - * as shown to the user. This name should be concise (to fit in drop downs), - * but clear (self-documenting). Use Title Casing and include the - * entity/resource to which it applies. - * @member {string} [description] The localized friendly description for the - * operation as shown to the user. This description should be thorough, yet - * concise. It will be used in tool-tips and detailed views. - * @member {string} [origin] The intended executor of the operation; governs - * the display of the operation in the RBAC UX and the audit logs UX. Default - * value is 'user,system' + * refer to the "name" section. + * @property {string} [operation] The localized friendly name for the + * operation as shown to the user. This name should be concise (to fit in + * drop downs), but clear (self-documenting). Use Title Casing and include + * the entity/resource to which it applies. + * @property {string} [description] The localized friendly description for + * the operation as shown to the user. This description should be thorough, + * yet concise. It will be used in tool-tips and detailed views. + * @property {string} [origin] The intended executor of the operation; + * governs the display of the operation in the RBAC UX and the audit logs UX. + * Default value is 'user,system' */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/errorDetail.js b/lib/services/powerbiembedded/lib/models/errorDetail.js index a2f44ffa6c..76c1a0f6e9 100644 --- a/lib/services/powerbiembedded/lib/models/errorDetail.js +++ b/lib/services/powerbiembedded/lib/models/errorDetail.js @@ -16,9 +16,9 @@ class ErrorDetail { /** * Create a ErrorDetail. - * @member {string} [code] - * @member {string} [message] - * @member {string} [target] + * @property {string} [code] + * @property {string} [message] + * @property {string} [target] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/errorModel.js b/lib/services/powerbiembedded/lib/models/errorModel.js index 6e36478d6f..113738a827 100644 --- a/lib/services/powerbiembedded/lib/models/errorModel.js +++ b/lib/services/powerbiembedded/lib/models/errorModel.js @@ -10,18 +10,16 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a ErrorModel. */ class ErrorModel { /** * Create a ErrorModel. - * @member {string} [code] - * @member {string} [message] - * @member {string} [target] - * @member {array} [details] + * @property {string} [code] + * @property {string} [message] + * @property {string} [target] + * @property {array} [details] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/index.d.ts b/lib/services/powerbiembedded/lib/models/index.d.ts index fc1287372d..39d47d439b 100644 --- a/lib/services/powerbiembedded/lib/models/index.d.ts +++ b/lib/services/powerbiembedded/lib/models/index.d.ts @@ -1,44 +1,26 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; -/** - * @class - * Initializes a new instance of the ErrorDetail class. - * @constructor - * @member {string} [code] - * @member {string} [message] - * @member {string} [target] - */ export interface ErrorDetail { code?: string; message?: string; target?: string; } -/** - * @class - * Initializes a new instance of the ErrorModel class. - * @constructor - * @member {string} [code] - * @member {string} [message] - * @member {string} [target] - * @member {array} [details] - */ export interface ErrorModel { code?: string; message?: string; @@ -46,224 +28,165 @@ export interface ErrorModel { details?: ErrorDetail[]; } -/** - * @class - * Initializes a new instance of the AzureSku class. - * @constructor - */ export interface AzureSku { } -/** - * @class - * Initializes a new instance of the WorkspaceCollection class. - * @constructor - * @member {string} [id] Resource id - * @member {string} [name] Workspace collection name - * @member {string} [type] Resource type - * @member {string} [location] Azure location - * @member {object} [tags] - * @member {object} [properties] Properties - */ export interface WorkspaceCollection { + /** + * Resource id + */ id?: string; + /** + * Workspace collection name + */ name?: string; + /** + * Resource type + */ type?: string; + /** + * Azure location + */ location?: string; tags?: { [propertyName: string]: string }; + /** + * Properties + */ properties?: any; } -/** - * @class - * Initializes a new instance of the Workspace class. - * @constructor - * @member {string} [id] Workspace id - * @member {string} [name] Workspace name - * @member {string} [type] Resource type - * @member {object} [properties] Property bag - */ export interface Workspace { + /** + * Workspace id + */ id?: string; + /** + * Workspace name + */ name?: string; + /** + * Resource type + */ type?: string; + /** + * Property bag + */ properties?: any; } -/** - * @class - * Initializes a new instance of the Display class. - * @constructor - * @member {string} [provider] The localized friendly form of the resource - * provider name. This form is also expected to include the publisher/company - * responsible. Use Title Casing. Begin with “Microsoft” for 1st party - * services. - * @member {string} [resource] The localized friendly form of the resource type - * related to this action/operation. This form should match the public - * documentation for the resource provider. Use Title Casing. For examples, - * refer to the “name” section. - * @member {string} [operation] The localized friendly name for the operation - * as shown to the user. This name should be concise (to fit in drop downs), - * but clear (self-documenting). Use Title Casing and include the - * entity/resource to which it applies. - * @member {string} [description] The localized friendly description for the - * operation as shown to the user. This description should be thorough, yet - * concise. It will be used in tool-tips and detailed views. - * @member {string} [origin] The intended executor of the operation; governs - * the display of the operation in the RBAC UX and the audit logs UX. Default - * value is 'user,system' - */ export interface Display { + /** + * The localized friendly form of the resource provider name. This form is also expected to + * include the publisher/company responsible. Use Title Casing. Begin with "Microsoft" for 1st + * party services. + */ provider?: string; + /** + * The localized friendly form of the resource type related to this action/operation. This form + * should match the public documentation for the resource provider. Use Title Casing. For + * examples, refer to the "name" section. + */ resource?: string; + /** + * The localized friendly name for the operation as shown to the user. This name should be + * concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the + * entity/resource to which it applies. + */ operation?: string; + /** + * The localized friendly description for the operation as shown to the user. This description + * should be thorough, yet concise. It will be used in tool-tips and detailed views. + */ description?: string; + /** + * The intended executor of the operation; governs the display of the operation in the RBAC UX + * and the audit logs UX. Default value is 'user,system' + */ origin?: string; } -/** - * @class - * Initializes a new instance of the Operation class. - * @constructor - * @member {string} [name] The name of the operation being performed on this - * particular object. This name should match the action name that appears in - * RBAC / the event service. - * @member {object} [display] - * @member {string} [display.provider] The localized friendly form of the - * resource provider name. This form is also expected to include the - * publisher/company responsible. Use Title Casing. Begin with “Microsoft” for - * 1st party services. - * @member {string} [display.resource] The localized friendly form of the - * resource type related to this action/operation. This form should match the - * public documentation for the resource provider. Use Title Casing. For - * examples, refer to the “name” section. - * @member {string} [display.operation] The localized friendly name for the - * operation as shown to the user. This name should be concise (to fit in drop - * downs), but clear (self-documenting). Use Title Casing and include the - * entity/resource to which it applies. - * @member {string} [display.description] The localized friendly description - * for the operation as shown to the user. This description should be thorough, - * yet concise. It will be used in tool-tips and detailed views. - * @member {string} [display.origin] The intended executor of the operation; - * governs the display of the operation in the RBAC UX and the audit logs UX. - * Default value is 'user,system' - */ export interface Operation { + /** + * The name of the operation being performed on this particular object. This name should match + * the action name that appears in RBAC / the event service. + */ name?: string; display?: Display; } -/** - * @class - * Initializes a new instance of the OperationList class. - * @constructor - * @member {array} [value] - */ export interface OperationList { value?: Operation[]; } -/** - * @class - * Initializes a new instance of the WorkspaceCollectionAccessKeys class. - * @constructor - * @member {string} [key1] Access key 1 - * @member {string} [key2] Access key 2 - */ export interface WorkspaceCollectionAccessKeys { + /** + * Access key 1 + */ key1?: string; + /** + * Access key 2 + */ key2?: string; } -/** - * @class - * Initializes a new instance of the WorkspaceCollectionAccessKey class. - * @constructor - * @member {string} [keyName] Key name. Possible values include: 'key1', 'key2' - */ export interface WorkspaceCollectionAccessKey { + /** + * Key name. Possible values include: 'key1', 'key2' + */ keyName?: string; } -/** - * @class - * Initializes a new instance of the CreateWorkspaceCollectionRequest class. - * @constructor - * @member {string} [location] Azure location - * @member {object} [tags] - */ export interface CreateWorkspaceCollectionRequest { + /** + * Azure location + */ location?: string; tags?: { [propertyName: string]: string }; } -/** - * @class - * Initializes a new instance of the UpdateWorkspaceCollectionRequest class. - * @constructor - * @member {object} [tags] - */ export interface UpdateWorkspaceCollectionRequest { tags?: { [propertyName: string]: string }; } -/** - * @class - * Initializes a new instance of the CheckNameRequest class. - * @constructor - * @member {string} [name] Workspace collection name - * @member {string} [type] Resource type. Default value: - * 'Microsoft.PowerBI/workspaceCollections' . - */ export interface CheckNameRequest { + /** + * Workspace collection name + */ name?: string; + /** + * Resource type + */ type?: string; } -/** - * @class - * Initializes a new instance of the CheckNameResponse class. - * @constructor - * @member {boolean} [nameAvailable] Specifies a Boolean value that indicates - * whether the specified Power BI Workspace Collection name is available to - * use. - * @member {string} [reason] Reason why the workspace collection name cannot be - * used. Possible values include: 'Unavailable', 'Invalid' - * @member {string} [message] Message indicating an unavailable name due to a - * conflict, or a description of the naming rules that are violated. - */ export interface CheckNameResponse { + /** + * Specifies a Boolean value that indicates whether the specified Power BI Workspace Collection + * name is available to use. + */ nameAvailable?: boolean; + /** + * Reason why the workspace collection name cannot be used. Possible values include: + * 'Unavailable', 'Invalid' + */ reason?: string; + /** + * Message indicating an unavailable name due to a conflict, or a description of the naming rules + * that are violated. + */ message?: string; } -/** - * @class - * Initializes a new instance of the MigrateWorkspaceCollectionRequest class. - * @constructor - * @member {string} [targetResourceGroup] Name of the resource group the Power - * BI workspace collections will be migrated to. - * @member {array} [resources] - */ export interface MigrateWorkspaceCollectionRequest { + /** + * Name of the resource group the Power BI workspace collections will be migrated to. + */ targetResourceGroup?: string; resources?: string[]; } - -/** - * @class - * Initializes a new instance of the WorkspaceCollectionList class. - * @constructor - */ export interface WorkspaceCollectionList extends Array { } -/** - * @class - * Initializes a new instance of the WorkspaceList class. - * @constructor - */ export interface WorkspaceList extends Array { } diff --git a/lib/services/powerbiembedded/lib/models/migrateWorkspaceCollectionRequest.js b/lib/services/powerbiembedded/lib/models/migrateWorkspaceCollectionRequest.js index 1da2133483..f9f1d45ca2 100644 --- a/lib/services/powerbiembedded/lib/models/migrateWorkspaceCollectionRequest.js +++ b/lib/services/powerbiembedded/lib/models/migrateWorkspaceCollectionRequest.js @@ -16,9 +16,9 @@ class MigrateWorkspaceCollectionRequest { /** * Create a MigrateWorkspaceCollectionRequest. - * @member {string} [targetResourceGroup] Name of the resource group the + * @property {string} [targetResourceGroup] Name of the resource group the * Power BI workspace collections will be migrated to. - * @member {array} [resources] + * @property {array} [resources] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/operation.js b/lib/services/powerbiembedded/lib/models/operation.js index d5d4937559..db33865873 100644 --- a/lib/services/powerbiembedded/lib/models/operation.js +++ b/lib/services/powerbiembedded/lib/models/operation.js @@ -10,36 +10,35 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a Operation. */ class Operation { /** * Create a Operation. - * @member {string} [name] The name of the operation being performed on this - * particular object. This name should match the action name that appears in - * RBAC / the event service. - * @member {object} [display] - * @member {string} [display.provider] The localized friendly form of the + * @property {string} [name] The name of the operation being performed on + * this particular object. This name should match the action name that + * appears in RBAC / the event service. + * @property {object} [display] + * @property {string} [display.provider] The localized friendly form of the * resource provider name. This form is also expected to include the - * publisher/company responsible. Use Title Casing. Begin with “Microsoft” + * publisher/company responsible. Use Title Casing. Begin with "Microsoft" * for 1st party services. - * @member {string} [display.resource] The localized friendly form of the + * @property {string} [display.resource] The localized friendly form of the * resource type related to this action/operation. This form should match the * public documentation for the resource provider. Use Title Casing. For - * examples, refer to the “name” section. - * @member {string} [display.operation] The localized friendly name for the + * examples, refer to the "name" section. + * @property {string} [display.operation] The localized friendly name for the * operation as shown to the user. This name should be concise (to fit in * drop downs), but clear (self-documenting). Use Title Casing and include * the entity/resource to which it applies. - * @member {string} [display.description] The localized friendly description - * for the operation as shown to the user. This description should be - * thorough, yet concise. It will be used in tool-tips and detailed views. - * @member {string} [display.origin] The intended executor of the operation; - * governs the display of the operation in the RBAC UX and the audit logs UX. - * Default value is 'user,system' + * @property {string} [display.description] The localized friendly + * description for the operation as shown to the user. This description + * should be thorough, yet concise. It will be used in tool-tips and detailed + * views. + * @property {string} [display.origin] The intended executor of the + * operation; governs the display of the operation in the RBAC UX and the + * audit logs UX. Default value is 'user,system' */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/operationList.js b/lib/services/powerbiembedded/lib/models/operationList.js index 8d2e8264b4..0f5742d756 100644 --- a/lib/services/powerbiembedded/lib/models/operationList.js +++ b/lib/services/powerbiembedded/lib/models/operationList.js @@ -10,15 +10,13 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a OperationList. */ class OperationList { /** * Create a OperationList. - * @member {array} [value] + * @property {array} [value] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/updateWorkspaceCollectionRequest.js b/lib/services/powerbiembedded/lib/models/updateWorkspaceCollectionRequest.js index 80df75e330..099caccb22 100644 --- a/lib/services/powerbiembedded/lib/models/updateWorkspaceCollectionRequest.js +++ b/lib/services/powerbiembedded/lib/models/updateWorkspaceCollectionRequest.js @@ -10,15 +10,13 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a UpdateWorkspaceCollectionRequest. */ class UpdateWorkspaceCollectionRequest { /** * Create a UpdateWorkspaceCollectionRequest. - * @member {object} [tags] + * @property {object} [tags] */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/workspace.js b/lib/services/powerbiembedded/lib/models/workspace.js index 07150b6245..2c5914a5ac 100644 --- a/lib/services/powerbiembedded/lib/models/workspace.js +++ b/lib/services/powerbiembedded/lib/models/workspace.js @@ -16,10 +16,10 @@ class Workspace { /** * Create a Workspace. - * @member {string} [id] Workspace id - * @member {string} [name] Workspace name - * @member {string} [type] Resource type - * @member {object} [properties] Property bag + * @property {string} [id] Workspace id + * @property {string} [name] Workspace name + * @property {string} [type] Resource type + * @property {object} [properties] Property bag */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/workspaceCollection.js b/lib/services/powerbiembedded/lib/models/workspaceCollection.js index ffa0307441..e6cc556dbc 100644 --- a/lib/services/powerbiembedded/lib/models/workspaceCollection.js +++ b/lib/services/powerbiembedded/lib/models/workspaceCollection.js @@ -10,20 +10,18 @@ 'use strict'; -const models = require('./index'); - /** * Class representing a WorkspaceCollection. */ class WorkspaceCollection { /** * Create a WorkspaceCollection. - * @member {string} [id] Resource id - * @member {string} [name] Workspace collection name - * @member {string} [type] Resource type - * @member {string} [location] Azure location - * @member {object} [tags] - * @member {object} [properties] Properties + * @property {string} [id] Resource id + * @property {string} [name] Workspace collection name + * @property {string} [type] Resource type + * @property {string} [location] Azure location + * @property {object} [tags] + * @property {object} [properties] Properties */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKey.js b/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKey.js index 8c563b5116..21d88f15a1 100644 --- a/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKey.js +++ b/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKey.js @@ -16,7 +16,7 @@ class WorkspaceCollectionAccessKey { /** * Create a WorkspaceCollectionAccessKey. - * @member {string} [keyName] Key name. Possible values include: 'key1', + * @property {string} [keyName] Key name. Possible values include: 'key1', * 'key2' */ constructor() { diff --git a/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKeys.js b/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKeys.js index 4206f3f5ff..05ad08cf7b 100644 --- a/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKeys.js +++ b/lib/services/powerbiembedded/lib/models/workspaceCollectionAccessKeys.js @@ -16,8 +16,8 @@ class WorkspaceCollectionAccessKeys { /** * Create a WorkspaceCollectionAccessKeys. - * @member {string} [key1] Access key 1 - * @member {string} [key2] Access key 2 + * @property {string} [key1] Access key 1 + * @property {string} [key2] Access key 2 */ constructor() { } diff --git a/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.d.ts b/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.d.ts index e1edbd9ac3..9706afdd10 100644 --- a/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.d.ts +++ b/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.d.ts @@ -13,7 +13,7 @@ import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as models from "./models"; import * as operations from "./operations"; -declare class PowerBIEmbeddedManagementClient extends AzureServiceClient { +export default class PowerBIEmbeddedManagementClient extends AzureServiceClient { /** * Initializes a new instance of the PowerBIEmbeddedManagementClient class. * @constructor @@ -34,11 +34,11 @@ declare class PowerBIEmbeddedManagementClient extends AzureServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {string} [options.acceptLanguage] - The preferred language for the response. * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); @@ -113,4 +113,4 @@ declare class PowerBIEmbeddedManagementClient extends AzureServiceClient { getAvailableOperations(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } -export = PowerBIEmbeddedManagementClient; +export { PowerBIEmbeddedManagementClient, models as PowerBIEmbeddedManagementModels }; diff --git a/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.js b/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.js index e1c3cbf9bc..a841d1ed68 100644 --- a/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.js +++ b/lib/services/powerbiembedded/lib/powerBIEmbeddedManagementClient.js @@ -166,9 +166,9 @@ class PowerBIEmbeddedManagementClient extends ServiceClient { * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { @@ -294,3 +294,6 @@ class PowerBIEmbeddedManagementClient extends ServiceClient { } module.exports = PowerBIEmbeddedManagementClient; +module.exports['default'] = PowerBIEmbeddedManagementClient; +module.exports.PowerBIEmbeddedManagementClient = PowerBIEmbeddedManagementClient; +module.exports.PowerBIEmbeddedManagementModels = models; diff --git a/lib/services/powerbiembedded/package.json b/lib/services/powerbiembedded/package.json index 3d7582de8c..a0550a594f 100644 --- a/lib/services/powerbiembedded/package.json +++ b/lib/services/powerbiembedded/package.json @@ -1,35 +1,25 @@ { "name": "azure-arm-powerbiembedded", "author": "Microsoft Corporation", - "contributors": [ - "Mazzola, Matt " - ], + "description": "PowerBIEmbeddedManagementClient Library with typescript type definitions for node", "version": "1.2.0-preview", - "description": "Microsoft Azure Power BI Embedded Client Library for node", - "tags": [ - "azure", - "sdk" - ], + "dependencies": { + "ms-rest": "^2.3.3", + "ms-rest-azure": "^2.5.5" + }, "keywords": [ "node", "azure" ], + "license": "MIT", "main": "./lib/powerBIEmbeddedManagementClient.js", "types": "./lib/powerBIEmbeddedManagementClient.d.ts", - "license": "MIT", - "dependencies": { - "ms-rest": "^2.2.2", - "ms-rest-azure": "^2.3.3" - }, - "homepage": "http://github.com/Azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/powerbiembedded", "repository": { "type": "git", - "url": "git@github.com:Azure/azure-sdk-for-node.git" + "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" - }, - "scripts": { - "test": "npm -s run-script jshint" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}