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

Commit

Permalink
[AutoPR privatedns/resource-manager] Adding Private DNS Swagger spec …
Browse files Browse the repository at this point in the history
…for API version 2018-09-01 (#4677)

* Generated from 6edbf0cdc4075da21e679f25e9cd9491e14f3385

Adding examples.

* Generated from 458e0cf9b961fb2e28827f62cda80bd579f128dc

Correcting overwriting spelling.
  • Loading branch information
AutorestCI authored Feb 13, 2019
1 parent bffae85 commit a06a4f2
Show file tree
Hide file tree
Showing 30 changed files with 12,355 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/services/privateDnsManagement/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.
45 changes: 45 additions & 0 deletions lib/services/privateDnsManagement/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
uid: azure-arm-privatedns
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 - PrivateDnsManagementClient

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-privatedns
```

### How to use

#### Authentication, client creation, and get privateZones as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const PrivateDnsManagementClient = require("azure-arm-privatedns");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new PrivateDnsManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const privateZoneName = "testprivateZoneName";

return client.privateZones.get(resourceGroupName, privateZoneName).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/privateDnsManagement/lib/models/aRecord.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';

/**
* An A record.
*
*/
class ARecord {
/**
* Create a ARecord.
* @property {string} [ipv4Address] The IPv4 address of this A record.
*/
constructor() {
}

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

module.exports = ARecord;
52 changes: 52 additions & 0 deletions lib/services/privateDnsManagement/lib/models/aaaaRecord.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';

/**
* An AAAA record.
*
*/
class AaaaRecord {
/**
* Create a AaaaRecord.
* @property {string} [ipv6Address] The IPv6 address of this AAAA record.
*/
constructor() {
}

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

module.exports = AaaaRecord;
52 changes: 52 additions & 0 deletions lib/services/privateDnsManagement/lib/models/cnameRecord.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';

/**
* A CNAME record.
*
*/
class CnameRecord {
/**
* Create a CnameRecord.
* @property {string} [cname] The canonical name for this CNAME record.
*/
constructor() {
}

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

module.exports = CnameRecord;
Loading

0 comments on commit a06a4f2

Please sign in to comment.