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

[AutoPR billing/resource-manager] Add 2018-11-01-preview version billing.json #4692

Closed
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
2 changes: 1 addition & 1 deletion lib/services/billingManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
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
Expand Down
21 changes: 21 additions & 0 deletions lib/services/subscriptionManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.
41 changes: 41 additions & 0 deletions lib/services/subscriptionManagement2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
uid: azure-arm-subscription
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 - SubscriptionClient
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-subscription
```

### How to use

#### Authentication, client creation and list operations as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const SubscriptionClient = require("azure-arm-subscription");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new SubscriptionClient(creds, subscriptionId);
return client.operations.list().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)
52 changes: 52 additions & 0 deletions lib/services/subscriptionManagement2/lib/models/adPrincipal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* 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';

/**
* Active Directory Principal for subscription creation delegated permission
*
*/
class AdPrincipal {
/**
* Create a AdPrincipal.
* @property {string} objectId Object id of the Principal
*/
constructor() {
}

/**
* Defines the metadata of AdPrincipal
*
* @returns {object} metadata of AdPrincipal
*
*/
mapper() {
return {
required: false,
serializedName: 'AdPrincipal',
type: {
name: 'Composite',
className: 'AdPrincipal',
modelProperties: {
objectId: {
required: true,
serializedName: 'objectId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AdPrincipal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* Canceled Subscription Id
*
*/
class CanceledSubscriptionId {
/**
* Create a CanceledSubscriptionId.
* @property {string} [value] Canceled Subscription Id
*/
constructor() {
}

/**
* Defines the metadata of CanceledSubscriptionId
*
* @returns {object} metadata of CanceledSubscriptionId
*
*/
mapper() {
return {
required: false,
serializedName: 'CanceledSubscriptionId',
type: {
name: 'Composite',
className: 'CanceledSubscriptionId',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: 'value',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CanceledSubscriptionId;
61 changes: 61 additions & 0 deletions lib/services/subscriptionManagement2/lib/models/errorResponse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* 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';

/**
* Describes the format of Error response.
*
*/
class ErrorResponse {
/**
* Create a ErrorResponse.
* @property {string} [code] Error code
* @property {string} [message] Error message indicating why the operation
* failed.
*/
constructor() {
}

/**
* Defines the metadata of ErrorResponse
*
* @returns {object} metadata of ErrorResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'ErrorResponse',
type: {
name: 'Composite',
className: 'ErrorResponse',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ErrorResponse;
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* 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';

/**
* New name of the subscription.
*
*/
class GetSubscriptionName {
/**
* Create a GetSubscriptionName.
* @property {string} [subscriptionName] New subscription name
*/
constructor() {
}

/**
* Defines the metadata of GetSubscriptionName
*
* @returns {object} metadata of GetSubscriptionName
*
*/
mapper() {
return {
required: false,
serializedName: 'getSubscriptionName',
type: {
name: 'Composite',
className: 'GetSubscriptionName',
modelProperties: {
subscriptionName: {
required: false,
serializedName: 'subscriptionName',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = GetSubscriptionName;
Loading