Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR powerbidedicated/resource-manager] fix: Casing powerbidedicated/resource-manager/Microsoft.PowerBIDedicated #5033

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) 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.
85 changes: 45 additions & 40 deletions lib/services/powerbidedicatedManagement/README.md
Original file line number Diff line number Diff line change
@@ -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 = "<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)


![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 = "<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.
* @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;
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 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;
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,22 @@

'use strict';

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

/**
* Provision request specification
*
*/
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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading