This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2676 from Azure/daschult/dnsManagement
Regenerate dnsManagement and change version to 2.1.0
- Loading branch information
Showing
13 changed files
with
1,285 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,44 @@ | ||
# Microsoft Azure SDK for Node.js - DNSManagement | ||
--- | ||
uid: azure-arm-dns | ||
summary: *content | ||
|
||
--- | ||
# Microsoft Azure SDK for Node.js - DnsManagementClient | ||
This project provides a Node.js package for accessing Azure. Right now it supports: | ||
- **Node.js version 6.x.x or higher** | ||
|
||
## Features | ||
|
||
This project provides a Node.js package that makes it easy to manage Microsoft Azure DNS. | ||
## API-Version: 2017-09-01 | ||
## Minimum node.js version >= 6.x.x | ||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-arm-dns | ||
``` | ||
|
||
## How to Use | ||
|
||
### Authentication, client creation and listing zones as an example | ||
|
||
```javascript | ||
const msRestAzure = require('ms-rest-azure'); | ||
const DNSManagement = require("azure-arm-dns"); | ||
|
||
// Interactive Login | ||
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful, | ||
// the user will get a DeviceTokenCredentials object. | ||
msRestAzure.interactiveLogin().then((credentials) => { | ||
let client = new DNSManagement(credentials, 'your-subscription-id'); | ||
return client.zones.list(); | ||
}).then((zones) => { | ||
console.log('List of zones:'); | ||
console.dir(zones, {depth: null, colors: true}); | ||
## How to use | ||
|
||
### Authentication, client creation and get recordSets as an example. | ||
|
||
```javascript | ||
const msRestAzure = require("ms-rest-azure"); | ||
const DnsManagementClient = require("azure-arm-dns"); | ||
msRestAzure.interactiveLogin().then((creds) => { | ||
const subscriptionId = "<Subscription_Id>"; | ||
const client = new DnsManagementClient(creds, subscriptionId); | ||
const resourceGroupName = "testresourceGroupName"; | ||
const zoneName = "testzoneName"; | ||
const relativeRecordSetName = "testrelativeRecordSetName"; | ||
const recordType = "A"; | ||
return client.recordSets.get(resourceGroupName, zoneName, relativeRecordSetName, recordType).then((result) => { | ||
console.log("The result is:"); | ||
console.log(result); | ||
}); | ||
}).catch((err) => { | ||
console.log('An error ocurred'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
``` | ||
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) | ||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
|
||
/** | ||
* A reference to a another resource | ||
* | ||
*/ | ||
class SubResource { | ||
/** | ||
* Create a SubResource. | ||
* @member {string} [id] Resource Id. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of SubResource | ||
* | ||
* @returns {object} metadata of SubResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'SubResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'SubResource', | ||
modelProperties: { | ||
id: { | ||
required: false, | ||
serializedName: 'id', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = SubResource; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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 a request to update a DNS zone. | ||
* | ||
*/ | ||
class ZoneUpdate { | ||
/** | ||
* Create a ZoneUpdate. | ||
* @member {object} [tags] Resource tags. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ZoneUpdate | ||
* | ||
* @returns {object} metadata of ZoneUpdate | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ZoneUpdate', | ||
type: { | ||
name: 'Composite', | ||
className: 'ZoneUpdate', | ||
modelProperties: { | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ZoneUpdate; |
Oops, something went wrong.