Skip to content
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 sdk/dns/arm-dns/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 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
8 changes: 3 additions & 5 deletions sdk/dns/arm-dns/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure DnsManagementClient SDK for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DnsManagementClient.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for DnsManagementClient.

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

### Prerequisites

Expand All @@ -21,7 +21,6 @@ Install both packages using the below command:
```bash
npm install --save @azure/arm-dns @azure/identity
```

> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.

Expand All @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/

In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.

#### nodejs - Authentication, client creation, and get recordSets as an example written in JavaScript.

##### Sample code
Expand Down Expand Up @@ -89,7 +87,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});
const client = new Azure.ArmDns.DnsManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
Expand Down
2 changes: 1 addition & 1 deletion sdk/dns/arm-dns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dns/arm-dns",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/dns/arm-dns",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
4 changes: 2 additions & 2 deletions sdk/dns/arm-dns/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
5 changes: 2 additions & 3 deletions sdk/dns/arm-dns/src/dnsManagementClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
13 changes: 6 additions & 7 deletions sdk/dns/arm-dns/src/dnsManagementClientContext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -10,8 +9,8 @@

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import { TokenCredential } from "@azure/core-auth";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-dns";
const packageVersion = "4.1.0";
Expand Down Expand Up @@ -44,7 +43,7 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if(!options.userAgent) {
if (!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -59,10 +58,10 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient {
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
78 changes: 76 additions & 2 deletions sdk/dns/arm-dns/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -310,6 +310,12 @@ export interface Zone extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly maxNumberOfRecordSets?: number;
/**
* The maximum number of records per record set that can be created in this DNS zone. This is a
* read-only property and any attempt to set this value will be ignored.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly maxNumberOfRecordsPerRecordSet?: number;
/**
* The current number of record sets in this DNS zone. This is a read-only property and any
* attempt to set this value will be ignored.
Expand Down Expand Up @@ -470,6 +476,54 @@ export interface RecordSetsListAllByDnsZoneOptionalParams extends msRest.Request
recordSetNameSuffix?: string;
}

/**
* Optional Parameters.
*/
export interface RecordSetsListByTypeNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
*/
top?: number;
/**
* The suffix label of the record set name that has to be used to filter the record set
* enumerations. If this parameter is specified, Enumeration will return only records that end
* with .<recordSetNameSuffix>
*/
recordsetnamesuffix?: string;
}

/**
* Optional Parameters.
*/
export interface RecordSetsListByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
*/
top?: number;
/**
* The suffix label of the record set name that has to be used to filter the record set
* enumerations. If this parameter is specified, Enumeration will return only records that end
* with .<recordSetNameSuffix>
*/
recordsetnamesuffix?: string;
}

/**
* Optional Parameters.
*/
export interface RecordSetsListAllByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
*/
top?: number;
/**
* The suffix label of the record set name that has to be used to filter the record set
* enumerations. If this parameter is specified, Enumeration will return only records that end
* with .<recordSetNameSuffix>
*/
recordSetNameSuffix?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -539,6 +593,26 @@ export interface ZonesBeginDeleteMethodOptionalParams extends msRest.RequestOpti
ifMatch?: string;
}

/**
* Optional Parameters.
*/
export interface ZonesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
*/
top?: number;
}

/**
* Optional Parameters.
*/
export interface ZonesListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The maximum number of DNS zones to return. If not specified, returns up to 100 zones.
*/
top?: number;
}

/**
* An interface representing DnsManagementClientOptions.
*/
Expand Down
11 changes: 9 additions & 2 deletions sdk/dns/arm-dns/src/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -536,6 +536,13 @@ export const Zone: msRest.CompositeMapper = {
name: "Number"
}
},
maxNumberOfRecordsPerRecordSet: {
readOnly: true,
serializedName: "properties.maxNumberOfRecordsPerRecordSet",
type: {
name: "Number"
}
},
numberOfRecordSets: {
readOnly: true,
serializedName: "properties.numberOfRecordSets",
Expand Down
29 changes: 14 additions & 15 deletions sdk/dns/arm-dns/src/models/parameters.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -65,6 +64,18 @@ export const nextPageLink: msRest.OperationURLParameter = {
},
skipEncoding: true
};
export const recordsetnamesuffix: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"recordsetnamesuffix"
],
mapper: {
serializedName: "$recordsetnamesuffix",
type: {
name: "String"
}
}
};
export const recordSetNameSuffix: msRest.OperationQueryParameter = {
parameterPath: [
"options",
Expand Down Expand Up @@ -99,18 +110,6 @@ export const recordType: msRest.OperationURLParameter = {
}
}
};
export const recordsetnamesuffix: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"recordsetnamesuffix"
],
mapper: {
serializedName: "$recordsetnamesuffix",
type: {
name: "String"
}
}
};
export const relativeRecordSetName: msRest.OperationURLParameter = {
parameterPath: "relativeRecordSetName",
mapper: {
Expand Down
4 changes: 2 additions & 2 deletions sdk/dns/arm-dns/src/models/recordSetsMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
4 changes: 2 additions & 2 deletions sdk/dns/arm-dns/src/models/zonesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
5 changes: 2 additions & 3 deletions sdk/dns/arm-dns/src/operations/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Loading