From 5175e57aac8fa6d3f4c084b89ca5dccaaa3b754e Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 22 Mar 2019 18:47:55 +0000 Subject: [PATCH] Generated from 6e77c235f10836e85fb3530fbd439c0c31b5a6cf fix: Casing Microsoft.PowerBIDedicated YAML --- .../powerbidedicatedManagement/LICENSE.txt | 42 +-- .../powerbidedicatedManagement/README.md | 85 +++--- ...checkCapacityNameAvailabilityParameters.js | 67 +++++ .../checkCapacityNameAvailabilityResult.js | 70 +++++ .../lib/models/dedicatedCapacity.js | 22 +- .../models/dedicatedCapacityAdministrators.js | 2 +- .../dedicatedCapacityUpdateParameters.js | 14 +- .../lib/models/errorResponse.js | 4 +- .../lib/models/index.d.ts | 255 +++++++++-------- .../lib/models/index.js | 2 + .../lib/models/operation.js | 13 +- .../lib/models/operationDisplay.js | 10 +- .../lib/models/operationListResult.js | 2 +- .../lib/models/resource.js | 18 +- .../lib/models/resourceSku.js | 4 +- .../models/skuDetailsForExistingResource.js | 8 +- ...skuEnumerationForExistingResourceResult.js | 4 +- .../skuEnumerationForNewResourceResult.js | 5 +- .../lib/operations/capacities.js | 265 ++++++++++++++++++ .../lib/operations/index.d.ts | 72 +++++ .../lib/powerBIDedicatedManagementClient.d.ts | 6 +- .../lib/powerBIDedicatedManagementClient.js | 6 +- .../powerbidedicatedManagement/package.json | 6 +- 23 files changed, 728 insertions(+), 254 deletions(-) create mode 100644 lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityParameters.js create mode 100644 lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityResult.js diff --git a/lib/services/powerbidedicatedManagement/LICENSE.txt b/lib/services/powerbidedicatedManagement/LICENSE.txt index a70e8cf660..8f3d856145 100644 --- a/lib/services/powerbidedicatedManagement/LICENSE.txt +++ b/lib/services/powerbidedicatedManagement/LICENSE.txt @@ -1,21 +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. +The MIT License (MIT) + +Copyright (c) 2019 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/powerbidedicatedManagement/README.md b/lib/services/powerbidedicatedManagement/README.md index 5eb9f4d964..501ccf90c4 100644 --- a/lib/services/powerbidedicatedManagement/README.md +++ b/lib/services/powerbidedicatedManagement/README.md @@ -1,40 +1,45 @@ -# Microsoft Azure SDK for Node.js - PowerBIDedicatedManagementClient -This project provides a Node.js package for accessing Azure. Right now it supports: -- **Node.js version 6.x.x or higher** - -## Features - - -## How to Install - -```bash -npm install azure-arm-powerbidedicated -``` - -## How to use - -### Authentication, client creation and getDetails capacities as an example. - -```javascript -const msRestAzure = require("ms-rest-azure"); -const PowerBIDedicatedManagementClient = require("azure-arm-powerbidedicated"); -msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new PowerBIDedicatedManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const dedicatedCapacityName = "testdedicatedCapacityName"; - return client.capacities.getDetails(resourceGroupName, dedicatedCapacityName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.log('An error ocurred:'); - console.dir(err, {depth: null, colors: true}); -}); - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FpowerbidedicatedManagement%2FREADME.png) +--- +uid: azure-arm-powerbidedicated +summary: *content + +--- +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - PowerBIDedicatedManagementClient + +This project provides a Node.js package for accessing Azure. Right now it supports: +- **Node.js version 6.x.x or higher** + +### Features + + +### How to Install + +```bash +npm install azure-arm-powerbidedicated +``` + +### How to use + +#### Authentication, client creation, and getDetails capacities as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const PowerBIDedicatedManagementClient = require("azure-arm-powerbidedicated"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new PowerBIDedicatedManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const dedicatedCapacityName = "testdedicatedCapacityName"; + + return client.capacities.getDetails(resourceGroupName, dedicatedCapacityName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.log('An error occurred:'); + console.dir(err, {depth: null, colors: true}); +}); +``` +### Related projects + +- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityParameters.js b/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityParameters.js new file mode 100644 index 0000000000..2a154c04ff --- /dev/null +++ b/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityParameters.js @@ -0,0 +1,67 @@ +/* + * 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. + */ + +'use strict'; + +/** + * Details of capacity name request body. + * + */ +class CheckCapacityNameAvailabilityParameters { + /** + * Create a CheckCapacityNameAvailabilityParameters. + * @property {string} [name] Name for checking availability. + * @property {string} [type] The resource type of PowerBI dedicated. Default + * value: 'Microsoft.PowerBIDedicated/capacities' . + */ + constructor() { + } + + /** + * Defines the metadata of CheckCapacityNameAvailabilityParameters + * + * @returns {object} metadata of CheckCapacityNameAvailabilityParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'CheckCapacityNameAvailabilityParameters', + type: { + name: 'Composite', + className: 'CheckCapacityNameAvailabilityParameters', + modelProperties: { + name: { + required: false, + serializedName: 'name', + constraints: { + MaxLength: 63, + MinLength: 3, + Pattern: /^[a-z][a-z0-9]*$/ + }, + type: { + name: 'String' + } + }, + type: { + required: false, + serializedName: 'type', + defaultValue: 'Microsoft.PowerBIDedicated/capacities', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CheckCapacityNameAvailabilityParameters; diff --git a/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityResult.js b/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityResult.js new file mode 100644 index 0000000000..cb8e500e6d --- /dev/null +++ b/lib/services/powerbidedicatedManagement/lib/models/checkCapacityNameAvailabilityResult.js @@ -0,0 +1,70 @@ +/* + * 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. + */ + +'use strict'; + +/** + * The checking result of capacity name availability. + * + */ +class CheckCapacityNameAvailabilityResult { + /** + * Create a CheckCapacityNameAvailabilityResult. + * @property {boolean} [nameAvailable] Indicator of availability of the + * capacity name. + * @property {string} [reason] The reason of unavailability. + * @property {string} [message] The detailed message of the request + * unavailability. + */ + constructor() { + } + + /** + * Defines the metadata of CheckCapacityNameAvailabilityResult + * + * @returns {object} metadata of CheckCapacityNameAvailabilityResult + * + */ + mapper() { + return { + required: false, + serializedName: 'CheckCapacityNameAvailabilityResult', + type: { + name: 'Composite', + className: 'CheckCapacityNameAvailabilityResult', + modelProperties: { + nameAvailable: { + required: false, + serializedName: 'nameAvailable', + type: { + name: 'Boolean' + } + }, + reason: { + required: false, + serializedName: 'reason', + type: { + name: 'String' + } + }, + message: { + required: false, + serializedName: 'message', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CheckCapacityNameAvailabilityResult; diff --git a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacity.js b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacity.js index 27650c6db0..dff5404b59 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacity.js +++ b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacity.js @@ -20,20 +20,20 @@ const models = require('./index'); class DedicatedCapacity extends models['Resource'] { /** * Create a DedicatedCapacity. - * @member {object} [administration] A collection of Dedicated capacity + * @property {object} [administration] A collection of Dedicated capacity * administrators - * @member {array} [administration.members] An array of administrator user + * @property {array} [administration.members] An array of administrator user * identities. - * @member {string} [state] The current state of PowerBI Dedicated resource. - * The state is to indicate more states outside of resource provisioning. - * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', - * 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', - * 'Resuming', 'Preparing', 'Scaling' - * @member {string} [provisioningState] The current deployment state of - * PowerBI Dedicatedresource. The provisioningState is to indicate states for - * resource provisioning. Possible values include: 'Deleting', 'Succeeded', - * 'Failed', 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', + * @property {string} [state] The current state of PowerBI Dedicated + * resource. The state is to indicate more states outside of resource + * provisioning. Possible values include: 'Deleting', 'Succeeded', 'Failed', + * 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', * 'Pausing', 'Resuming', 'Preparing', 'Scaling' + * @property {string} [provisioningState] The current deployment state of + * PowerBI Dedicated resource. The provisioningState is to indicate states + * for resource provisioning. Possible values include: 'Deleting', + * 'Succeeded', 'Failed', 'Paused', 'Suspended', 'Provisioning', 'Updating', + * 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling' */ constructor() { super(); diff --git a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityAdministrators.js b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityAdministrators.js index f723a9b6ab..625bc826f4 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityAdministrators.js +++ b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityAdministrators.js @@ -17,7 +17,7 @@ class DedicatedCapacityAdministrators { /** * Create a DedicatedCapacityAdministrators. - * @member {array} [members] An array of administrator user identities. + * @property {array} [members] An array of administrator user identities. */ constructor() { } diff --git a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityUpdateParameters.js b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityUpdateParameters.js index a359ee1b5c..6889d2cd42 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityUpdateParameters.js +++ b/lib/services/powerbidedicatedManagement/lib/models/dedicatedCapacityUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Provision request specification * @@ -19,15 +17,15 @@ const models = require('./index'); class DedicatedCapacityUpdateParameters { /** * Create a DedicatedCapacityUpdateParameters. - * @member {object} [sku] The SKU of the Dedicated capacity resource. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which + * @property {object} [sku] The SKU of the Dedicated capacity resource. + * @property {string} [sku.name] Name of the SKU level. + * @property {string} [sku.tier] The name of the Azure pricing tier to which * the SKU applies. Possible values include: 'PBIE_Azure' - * @member {object} [tags] Key-value pairs of additional provisioning + * @property {object} [tags] Key-value pairs of additional provisioning * properties. - * @member {object} [administration] A collection of Dedicated capacity + * @property {object} [administration] A collection of Dedicated capacity * administrators - * @member {array} [administration.members] An array of administrator user + * @property {array} [administration.members] An array of administrator user * identities. */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/errorResponse.js b/lib/services/powerbidedicatedManagement/lib/models/errorResponse.js index f952d62061..fc85ac1b8b 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/errorResponse.js +++ b/lib/services/powerbidedicatedManagement/lib/models/errorResponse.js @@ -17,8 +17,8 @@ class ErrorResponse { /** * Create a ErrorResponse. - * @member {string} [code] Error code - * @member {string} [message] Error message indicating why the operation + * @property {string} [code] Error code + * @property {string} [message] Error message indicating why the operation * failed. */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/index.d.ts b/lib/services/powerbidedicatedManagement/lib/models/index.d.ts index 88c6d3af6f..198327a95e 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/index.d.ts +++ b/lib/services/powerbidedicatedManagement/lib/models/index.d.ts @@ -1,239 +1,238 @@ /* * 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 OperationDisplay class. - * @constructor * The object that represents the operation. - * - * @member {string} [provider] Service provider: Microsoft.PowerBIDedicated. - * @member {string} [resource] Resource on which the operation is performed: - * capacity, etc. - * @member {string} [operation] Operation type: create, update, delete, etc. */ export interface OperationDisplay { + /** + * Service provider: Microsoft.PowerBIDedicated. + */ readonly provider?: string; + /** + * Resource on which the operation is performed: capacity, etc. + */ readonly resource?: string; + /** + * Operation type: create, update, delete, etc. + */ readonly operation?: string; } /** - * @class - * Initializes a new instance of the Operation class. - * @constructor * Capacities REST API operation. - * - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. - * @member {object} [display] The object that represents the operation. - * @member {string} [display.provider] Service provider: - * Microsoft.PowerBIDedicated. - * @member {string} [display.resource] Resource on which the operation is - * performed: capacity, etc. - * @member {string} [display.operation] Operation type: create, update, delete, - * etc. */ export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation}. + */ readonly name?: string; + /** + * The object that represents the operation. + */ display?: OperationDisplay; } /** - * @class - * Initializes a new instance of the ResourceSku class. - * @constructor - * Represents the SKU name and Azure pricing tier for PowerBI Dedicated - * resource. - * - * @member {string} name Name of the SKU level. - * @member {string} [tier] The name of the Azure pricing tier to which the SKU - * applies. Possible values include: 'PBIE_Azure' + * Represents the SKU name and Azure pricing tier for PowerBI Dedicated resource. */ export interface ResourceSku { + /** + * Name of the SKU level. + */ name: string; + /** + * The name of the Azure pricing tier to which the SKU applies. Possible values include: + * 'PBIE_Azure' + */ tier?: string; } /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * Represents an instance of an PowerBI Dedicated resource. - * - * @member {string} [id] An identifier that represents the PowerBI Dedicated - * resource. - * @member {string} [name] The name of the PowerBI Dedicated resource. - * @member {string} [type] The type of the PowerBI Dedicated resource. - * @member {string} location Location of the PowerBI Dedicated resource. - * @member {object} sku The SKU of the PowerBI Dedicated resource. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which the - * SKU applies. Possible values include: 'PBIE_Azure' - * @member {object} [tags] Key-value pairs of additional resource provisioning - * properties. */ export interface Resource extends BaseResource { + /** + * An identifier that represents the PowerBI Dedicated resource. + */ readonly id?: string; + /** + * The name of the PowerBI Dedicated resource. + */ readonly name?: string; + /** + * The type of the PowerBI Dedicated resource. + */ readonly type?: string; + /** + * Location of the PowerBI Dedicated resource. + */ location: string; + /** + * The SKU of the PowerBI Dedicated resource. + */ sku: ResourceSku; + /** + * Key-value pairs of additional resource provisioning properties. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the DedicatedCapacity class. - * @constructor * Represents an instance of a Dedicated Capacity resource. - * - * @member {object} [administration] A collection of Dedicated capacity - * administrators - * @member {array} [administration.members] An array of administrator user - * identities. - * @member {string} [state] The current state of PowerBI Dedicated resource. - * The state is to indicate more states outside of resource provisioning. - * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', - * 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', - * 'Resuming', 'Preparing', 'Scaling' - * @member {string} [provisioningState] The current deployment state of PowerBI - * Dedicatedresource. The provisioningState is to indicate states for resource - * provisioning. Possible values include: 'Deleting', 'Succeeded', 'Failed', - * 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', - * 'Resuming', 'Preparing', 'Scaling' */ export interface DedicatedCapacity extends Resource { + /** + * A collection of Dedicated capacity administrators + */ administration?: DedicatedCapacityAdministrators; + /** + * The current state of PowerBI Dedicated resource. The state is to indicate more states outside + * of resource provisioning. Possible values include: 'Deleting', 'Succeeded', 'Failed', + * 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', + * 'Preparing', 'Scaling' + */ readonly state?: string; + /** + * The current deployment state of PowerBI Dedicated resource. The provisioningState is to + * indicate states for resource provisioning. Possible values include: 'Deleting', 'Succeeded', + * 'Failed', 'Paused', 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing', + * 'Resuming', 'Preparing', 'Scaling' + */ readonly provisioningState?: string; } /** - * @class - * Initializes a new instance of the DedicatedCapacityAdministrators class. - * @constructor * An array of administrator user identities - * - * @member {array} [members] An array of administrator user identities. */ export interface DedicatedCapacityAdministrators { + /** + * An array of administrator user identities. + */ members?: string[]; } /** - * @class - * Initializes a new instance of the DedicatedCapacityUpdateParameters class. - * @constructor * Provision request specification - * - * @member {object} [sku] The SKU of the Dedicated capacity resource. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which the - * SKU applies. Possible values include: 'PBIE_Azure' - * @member {object} [tags] Key-value pairs of additional provisioning - * properties. - * @member {object} [administration] A collection of Dedicated capacity - * administrators - * @member {array} [administration.members] An array of administrator user - * identities. */ export interface DedicatedCapacityUpdateParameters { + /** + * The SKU of the Dedicated capacity resource. + */ sku?: ResourceSku; + /** + * Key-value pairs of additional provisioning properties. + */ tags?: { [propertyName: string]: string }; + /** + * A collection of Dedicated capacity administrators + */ administration?: DedicatedCapacityAdministrators; } /** - * @class - * Initializes a new instance of the SkuEnumerationForNewResourceResult class. - * @constructor * An object that represents enumerating SKUs for new resources - * - * @member {array} [value] The collection of available SKUs for new resources */ export interface SkuEnumerationForNewResourceResult { + /** + * The collection of available SKUs for new resources + */ value?: ResourceSku[]; } /** - * @class - * Initializes a new instance of the SkuDetailsForExistingResource class. - * @constructor * An object that represents SKU details for existing resources - * - * @member {object} [sku] The SKU in SKU details for existing resources. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which the - * SKU applies. Possible values include: 'PBIE_Azure' */ export interface SkuDetailsForExistingResource { + /** + * The SKU in SKU details for existing resources. + */ sku?: ResourceSku; } /** - * @class - * Initializes a new instance of the SkuEnumerationForExistingResourceResult class. - * @constructor * An object that represents enumerating SKUs for existing resources - * - * @member {array} [value] The collection of available SKUs for existing - * resources */ export interface SkuEnumerationForExistingResourceResult { + /** + * The collection of available SKUs for existing resources + */ value?: SkuDetailsForExistingResource[]; } /** - * @class - * Initializes a new instance of the ErrorResponse class. - * @constructor * Describes the format of Error response. - * - * @member {string} [code] Error code - * @member {string} [message] Error message indicating why the operation - * failed. */ export interface ErrorResponse { + /** + * Error code + */ code?: string; + /** + * Error message indicating why the operation failed. + */ message?: string; } +/** + * Details of capacity name request body. + */ +export interface CheckCapacityNameAvailabilityParameters { + /** + * Name for checking availability. + */ + name?: string; + /** + * The resource type of PowerBI dedicated. + */ + type?: string; +} + +/** + * The checking result of capacity name availability. + */ +export interface CheckCapacityNameAvailabilityResult { + /** + * Indicator of availability of the capacity name. + */ + nameAvailable?: boolean; + /** + * The reason of unavailability. + */ + reason?: string; + /** + * The detailed message of the request unavailability. + */ + message?: string; +} /** - * @class - * Initializes a new instance of the DedicatedCapacities class. - * @constructor * An array of Dedicated capacities resources. - * */ export interface DedicatedCapacities extends Array { } /** - * @class - * Initializes a new instance of the OperationListResult class. - * @constructor - * Result listing capacities. It contains a list of operations and a URL link - * to get the next set of results. - * - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * Result listing capacities. It contains a list of operations and a URL link to get the next set + * of results. */ export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ readonly nextLink?: string; } diff --git a/lib/services/powerbidedicatedManagement/lib/models/index.js b/lib/services/powerbidedicatedManagement/lib/models/index.js index ea27643097..2a44ea8384 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/index.js +++ b/lib/services/powerbidedicatedManagement/lib/models/index.js @@ -29,5 +29,7 @@ exports.SkuEnumerationForNewResourceResult = require('./skuEnumerationForNewReso exports.SkuDetailsForExistingResource = require('./skuDetailsForExistingResource'); exports.SkuEnumerationForExistingResourceResult = require('./skuEnumerationForExistingResourceResult'); exports.ErrorResponse = require('./errorResponse'); +exports.CheckCapacityNameAvailabilityParameters = require('./checkCapacityNameAvailabilityParameters'); +exports.CheckCapacityNameAvailabilityResult = require('./checkCapacityNameAvailabilityResult'); exports.DedicatedCapacities = require('./dedicatedCapacities'); exports.OperationListResult = require('./operationListResult'); diff --git a/lib/services/powerbidedicatedManagement/lib/models/operation.js b/lib/services/powerbidedicatedManagement/lib/models/operation.js index d0cc4c6e82..cd5cc51b0c 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/operation.js +++ b/lib/services/powerbidedicatedManagement/lib/models/operation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Capacities REST API operation. * @@ -19,13 +17,14 @@ const models = require('./index'); class Operation { /** * Create a Operation. - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. - * @member {object} [display] The object that represents the operation. - * @member {string} [display.provider] Service provider: + * @property {string} [name] Operation name: + * {provider}/{resource}/{operation}. + * @property {object} [display] The object that represents the operation. + * @property {string} [display.provider] Service provider: * Microsoft.PowerBIDedicated. - * @member {string} [display.resource] Resource on which the operation is + * @property {string} [display.resource] Resource on which the operation is * performed: capacity, etc. - * @member {string} [display.operation] Operation type: create, update, + * @property {string} [display.operation] Operation type: create, update, * delete, etc. */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/operationDisplay.js b/lib/services/powerbidedicatedManagement/lib/models/operationDisplay.js index 5b08367b92..3700556db2 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/operationDisplay.js +++ b/lib/services/powerbidedicatedManagement/lib/models/operationDisplay.js @@ -17,10 +17,12 @@ class OperationDisplay { /** * Create a OperationDisplay. - * @member {string} [provider] Service provider: Microsoft.PowerBIDedicated. - * @member {string} [resource] Resource on which the operation is performed: - * capacity, etc. - * @member {string} [operation] Operation type: create, update, delete, etc. + * @property {string} [provider] Service provider: + * Microsoft.PowerBIDedicated. + * @property {string} [resource] Resource on which the operation is + * performed: capacity, etc. + * @property {string} [operation] Operation type: create, update, delete, + * etc. */ constructor() { } diff --git a/lib/services/powerbidedicatedManagement/lib/models/operationListResult.js b/lib/services/powerbidedicatedManagement/lib/models/operationListResult.js index bd621129cc..bc0470bc9f 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/operationListResult.js +++ b/lib/services/powerbidedicatedManagement/lib/models/operationListResult.js @@ -17,7 +17,7 @@ class OperationListResult extends Array { /** * Create a OperationListResult. - * @member {string} [nextLink] URL to get the next set of operation list + * @property {string} [nextLink] URL to get the next set of operation list * results if there are any. */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/resource.js b/lib/services/powerbidedicatedManagement/lib/models/resource.js index 9c22921fe8..59cf3525da 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/resource.js +++ b/lib/services/powerbidedicatedManagement/lib/models/resource.js @@ -20,16 +20,16 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] An identifier that represents the PowerBI Dedicated - * resource. - * @member {string} [name] The name of the PowerBI Dedicated resource. - * @member {string} [type] The type of the PowerBI Dedicated resource. - * @member {string} location Location of the PowerBI Dedicated resource. - * @member {object} sku The SKU of the PowerBI Dedicated resource. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which + * @property {string} [id] An identifier that represents the PowerBI + * Dedicated resource. + * @property {string} [name] The name of the PowerBI Dedicated resource. + * @property {string} [type] The type of the PowerBI Dedicated resource. + * @property {string} location Location of the PowerBI Dedicated resource. + * @property {object} sku The SKU of the PowerBI Dedicated resource. + * @property {string} [sku.name] Name of the SKU level. + * @property {string} [sku.tier] The name of the Azure pricing tier to which * the SKU applies. Possible values include: 'PBIE_Azure' - * @member {object} [tags] Key-value pairs of additional resource + * @property {object} [tags] Key-value pairs of additional resource * provisioning properties. */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/resourceSku.js b/lib/services/powerbidedicatedManagement/lib/models/resourceSku.js index fe53883a6a..580b4fcb23 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/resourceSku.js +++ b/lib/services/powerbidedicatedManagement/lib/models/resourceSku.js @@ -18,8 +18,8 @@ class ResourceSku { /** * Create a ResourceSku. - * @member {string} name Name of the SKU level. - * @member {string} [tier] The name of the Azure pricing tier to which the + * @property {string} name Name of the SKU level. + * @property {string} [tier] The name of the Azure pricing tier to which the * SKU applies. Possible values include: 'PBIE_Azure' */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/skuDetailsForExistingResource.js b/lib/services/powerbidedicatedManagement/lib/models/skuDetailsForExistingResource.js index b6d8b55959..90f277f424 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/skuDetailsForExistingResource.js +++ b/lib/services/powerbidedicatedManagement/lib/models/skuDetailsForExistingResource.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An object that represents SKU details for existing resources * @@ -19,9 +17,9 @@ const models = require('./index'); class SkuDetailsForExistingResource { /** * Create a SkuDetailsForExistingResource. - * @member {object} [sku] The SKU in SKU details for existing resources. - * @member {string} [sku.name] Name of the SKU level. - * @member {string} [sku.tier] The name of the Azure pricing tier to which + * @property {object} [sku] The SKU in SKU details for existing resources. + * @property {string} [sku.name] Name of the SKU level. + * @property {string} [sku.tier] The name of the Azure pricing tier to which * the SKU applies. Possible values include: 'PBIE_Azure' */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForExistingResourceResult.js b/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForExistingResourceResult.js index 678652760a..3e2d95fe80 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForExistingResourceResult.js +++ b/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForExistingResourceResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An object that represents enumerating SKUs for existing resources * @@ -19,7 +17,7 @@ const models = require('./index'); class SkuEnumerationForExistingResourceResult { /** * Create a SkuEnumerationForExistingResourceResult. - * @member {array} [value] The collection of available SKUs for existing + * @property {array} [value] The collection of available SKUs for existing * resources */ constructor() { diff --git a/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForNewResourceResult.js b/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForNewResourceResult.js index 54d5d36e81..f3470a241b 100644 --- a/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForNewResourceResult.js +++ b/lib/services/powerbidedicatedManagement/lib/models/skuEnumerationForNewResourceResult.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * An object that represents enumerating SKUs for new resources * @@ -19,7 +17,8 @@ const models = require('./index'); class SkuEnumerationForNewResourceResult { /** * Create a SkuEnumerationForNewResourceResult. - * @member {array} [value] The collection of available SKUs for new resources + * @property {array} [value] The collection of available SKUs for new + * resources */ constructor() { } diff --git a/lib/services/powerbidedicatedManagement/lib/operations/capacities.js b/lib/services/powerbidedicatedManagement/lib/operations/capacities.js index 32e6d0bb6d..c5034ec7ac 100644 --- a/lib/services/powerbidedicatedManagement/lib/operations/capacities.js +++ b/lib/services/powerbidedicatedManagement/lib/operations/capacities.js @@ -1193,6 +1193,171 @@ function _listSkusForCapacity(resourceGroupName, dedicatedCapacityName, options, }); } +/** + * Check the name availability in the target location. + * + * @param {string} location The region name which the operation will lookup + * into. + * + * @param {object} capacityParameters The name of the capacity. + * + * @param {string} [capacityParameters.name] Name for checking availability. + * + * @param {string} [capacityParameters.type] The resource type of PowerBI + * dedicated. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link CheckCapacityNameAvailabilityResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _checkNameAvailability(location, capacityParameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (location === null || location === undefined || typeof location.valueOf() !== 'string') { + throw new Error('location cannot be null or undefined and it must be of type string.'); + } + if (capacityParameters === null || capacityParameters === undefined) { + throw new Error('capacityParameters cannot be null or undefined.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/locations/{location}/checkNameAvailability'; + requestUrl = requestUrl.replace('{location}', encodeURIComponent(location)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (capacityParameters !== null && capacityParameters !== undefined) { + let requestModelMapper = new client.models['CheckCapacityNameAvailabilityParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, capacityParameters, 'capacityParameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(capacityParameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['CheckCapacityNameAvailabilityResult']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Provisions the specified Dedicated capacity based on the configuration * specified in the request. @@ -2149,6 +2314,7 @@ class Capacities { this._list = _list; this._listSkus = _listSkus; this._listSkusForCapacity = _listSkusForCapacity; + this._checkNameAvailability = _checkNameAvailability; this._beginCreate = _beginCreate; this._beginDeleteMethod = _beginDeleteMethod; this._beginUpdate = _beginUpdate; @@ -3129,6 +3295,105 @@ class Capacities { } } + /** + * Check the name availability in the target location. + * + * @param {string} location The region name which the operation will lookup + * into. + * + * @param {object} capacityParameters The name of the capacity. + * + * @param {string} [capacityParameters.name] Name for checking availability. + * + * @param {string} [capacityParameters.type] The resource type of PowerBI + * dedicated. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + checkNameAvailabilityWithHttpOperationResponse(location, capacityParameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._checkNameAvailability(location, capacityParameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Check the name availability in the target location. + * + * @param {string} location The region name which the operation will lookup + * into. + * + * @param {object} capacityParameters The name of the capacity. + * + * @param {string} [capacityParameters.name] Name for checking availability. + * + * @param {string} [capacityParameters.type] The resource type of PowerBI + * dedicated. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {CheckCapacityNameAvailabilityResult} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link CheckCapacityNameAvailabilityResult} for + * more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + checkNameAvailability(location, capacityParameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._checkNameAvailability(location, capacityParameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._checkNameAvailability(location, capacityParameters, options, optionalCallback); + } + } + /** * Provisions the specified Dedicated capacity based on the configuration * specified in the request. diff --git a/lib/services/powerbidedicatedManagement/lib/operations/index.d.ts b/lib/services/powerbidedicatedManagement/lib/operations/index.d.ts index 84afd0b10b..a72ae5a97a 100644 --- a/lib/services/powerbidedicatedManagement/lib/operations/index.d.ts +++ b/lib/services/powerbidedicatedManagement/lib/operations/index.d.ts @@ -724,6 +724,78 @@ export interface Capacities { listSkusForCapacity(resourceGroupName: string, dedicatedCapacityName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Check the name availability in the target location. + * + * @param {string} location The region name which the operation will lookup + * into. + * + * @param {object} capacityParameters The name of the capacity. + * + * @param {string} [capacityParameters.name] Name for checking availability. + * + * @param {string} [capacityParameters.type] The resource type of PowerBI + * dedicated. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + checkNameAvailabilityWithHttpOperationResponse(location: string, capacityParameters: models.CheckCapacityNameAvailabilityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Check the name availability in the target location. + * + * @param {string} location The region name which the operation will lookup + * into. + * + * @param {object} capacityParameters The name of the capacity. + * + * @param {string} [capacityParameters.name] Name for checking availability. + * + * @param {string} [capacityParameters.type] The resource type of PowerBI + * dedicated. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {CheckCapacityNameAvailabilityResult} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {CheckCapacityNameAvailabilityResult} [result] - The deserialized result object if an error did not occur. + * See {@link CheckCapacityNameAvailabilityResult} for + * more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + checkNameAvailability(location: string, capacityParameters: models.CheckCapacityNameAvailabilityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + checkNameAvailability(location: string, capacityParameters: models.CheckCapacityNameAvailabilityParameters, callback: ServiceCallback): void; + checkNameAvailability(location: string, capacityParameters: models.CheckCapacityNameAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Provisions the specified Dedicated capacity based on the configuration * specified in the request. diff --git a/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.d.ts b/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.d.ts index 713f7c82c2..e3c2cb67bc 100644 --- a/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.d.ts +++ b/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.d.ts @@ -34,11 +34,11 @@ export default class PowerBIDedicatedManagementClient 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); diff --git a/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.js b/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.js index 2d86d21d49..d7bc6297fb 100644 --- a/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.js +++ b/lib/services/powerbidedicatedManagement/lib/powerBIDedicatedManagementClient.js @@ -34,9 +34,9 @@ class PowerBIDedicatedManagementClient 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) { diff --git a/lib/services/powerbidedicatedManagement/package.json b/lib/services/powerbidedicatedManagement/package.json index 9665e987c1..2f10f3af05 100644 --- a/lib/services/powerbidedicatedManagement/package.json +++ b/lib/services/powerbidedicatedManagement/package.json @@ -14,12 +14,12 @@ "license": "MIT", "main": "./lib/powerBIDedicatedManagementClient.js", "types": "./lib/powerBIDedicatedManagementClient.d.ts", - "homepage": "http://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/powerbidedicatedManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}