Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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/dnsManagement/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.
88 changes: 44 additions & 44 deletions lib/services/dnsManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
---
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


## How to Install

```bash
npm install azure-arm-dns
```

## 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});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
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
## How to Install
```bash
npm install azure-arm-dns
```
## 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 occurred:');
console.dir(err, {depth: null, colors: true});
});
## Related projects
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
8 changes: 4 additions & 4 deletions lib/services/dnsManagement/lib/dnsManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class DnsManagementClient extends AzureServiceClient {
* @class
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
* @param {string} subscriptionId - The ID of the target subscription.
*
* @param {string} [baseUri] - The base URI of the service.
*
Expand All @@ -34,11 +34,11 @@ export default class DnsManagementClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand Down
8 changes: 4 additions & 4 deletions lib/services/dnsManagement/lib/dnsManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ class DnsManagementClient extends ServiceClient {
/**
* Create a DnsManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
* @param {string} subscriptionId - The ID of the target subscription.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand Down
82 changes: 82 additions & 0 deletions lib/services/dnsManagement/lib/models/azureEntityResource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* 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';

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

/**
* The resource model definition for a Azure Resource Manager resource with an
* etag.
*
* @extends models['Resource']
*/
class AzureEntityResource extends models['Resource'] {
/**
* Create a AzureEntityResource.
* @member {string} [etag] Resource Etag.
*/
constructor() {
super();
}

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

module.exports = AzureEntityResource;
52 changes: 43 additions & 9 deletions lib/services/dnsManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,20 +299,30 @@ export interface SubResource {
* @class
* Initializes a new instance of the Resource class.
* @constructor
* Common properties of an Azure Resource Manager resource
*
* @member {string} [id] Resource ID.
* @member {string} [name] Resource name.
* @member {string} [type] Resource type.
* @member {string} location Resource location.
* @member {object} [tags] Resource tags.
* @member {string} [id] Fully qualified resource Id for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @member {string} [name] The name of the resource
* @member {string} [type] The type of the resource. Ex-
* Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
*/
export interface Resource extends BaseResource {
readonly id?: string;
readonly name?: string;
readonly type?: string;
location: string;
}

/**
* @class
* Initializes a new instance of the TrackedResource class.
* @constructor
* The resource model definition for a ARM tracked top level resource
*
* @member {object} [tags] Resource tags.
* @member {string} location The geo-location where the resource lives
*/
export interface TrackedResource extends Resource {
tags?: { [propertyName: string]: string };
location: string;
}

/**
Expand All @@ -339,7 +349,7 @@ export interface Resource extends BaseResource {
* networks that resolve records in this DNS zone. This is a only when ZoneType
* is Private.
*/
export interface Zone extends Resource {
export interface Zone extends TrackedResource {
etag?: string;
readonly maxNumberOfRecordSets?: number;
readonly numberOfRecordSets?: number;
Expand All @@ -361,6 +371,30 @@ export interface ZoneUpdate {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
* @constructor
* The resource model definition for a ARM proxy resource. It will have
* everything other than required location and tags
*
*/
export interface ProxyResource extends Resource {
}

/**
* @class
* Initializes a new instance of the AzureEntityResource class.
* @constructor
* The resource model definition for a Azure Resource Manager resource with an
* etag.
*
* @member {string} [etag] Resource Etag.
*/
export interface AzureEntityResource extends Resource {
readonly etag?: string;
}


/**
* @class
Expand Down
3 changes: 3 additions & 0 deletions lib/services/dnsManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ exports.RecordSet = require('./recordSet');
exports.RecordSetUpdateParameters = require('./recordSetUpdateParameters');
exports.SubResource = require('./subResource');
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
exports.Zone = require('./zone');
exports.ZoneUpdate = require('./zoneUpdate');
exports.ProxyResource = require('./proxyResource');
exports.AzureEntityResource = require('./azureEntityResource');
exports.RecordSetListResult = require('./recordSetListResult');
exports.ZoneListResult = require('./zoneListResult');
Loading