Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/powerbidedicatedManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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) 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.
79 changes: 42 additions & 37 deletions lib/services/powerbidedicatedManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
# 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 = "<Subscription_Id>";
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)
---
uid: azure-arm-powerbidedicated
summary: *content

---
# 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 = "<Subscription_Id>";
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)
Original file line number Diff line number Diff line change
@@ -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.
* @member {string} [name] Name for checking availability.
* @member {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;
Original file line number Diff line number Diff line change
@@ -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 availibility.
*
*/
class CheckCapacityNameAvailabilityResult {
/**
* Create a CheckCapacityNameAvailabilityResult.
* @member {boolean} [nameAvailable] Indicator of availablity of the capacity
* name.
* @member {string} [reason] The reason of unavailability.
* @member {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;
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Provision request specification
*
Expand Down
33 changes: 33 additions & 0 deletions lib/services/powerbidedicatedManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,39 @@ export interface ErrorResponse {
message?: string;
}

/**
* @class
* Initializes a new instance of the CheckCapacityNameAvailabilityParameters class.
* @constructor
* Details of capacity name request body.
*
* @member {string} [name] Name for checking availability.
* @member {string} [type] The resource type of powerbi dedicated. Default
* value: 'Microsoft.PowerBIDedicated/capacities' .
*/
export interface CheckCapacityNameAvailabilityParameters {
name?: string;
type?: string;
}

/**
* @class
* Initializes a new instance of the CheckCapacityNameAvailabilityResult class.
* @constructor
* The checking result of capacity name availibility.
*
* @member {boolean} [nameAvailable] Indicator of availablity of the capacity
* name.
* @member {string} [reason] The reason of unavailability.
* @member {string} [message] The detailed message of the request
* unavailability.
*/
export interface CheckCapacityNameAvailabilityResult {
nameAvailable?: boolean;
reason?: string;
message?: string;
}


/**
* @class
Expand Down
2 changes: 2 additions & 0 deletions lib/services/powerbidedicatedManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Capacities REST API operation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An object that represents SKU details for existing resources
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An object that represents enumerating SKUs for existing resources
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An object that represents enumerating SKUs for new resources
*
Expand Down
Loading