Skip to content

Commit 53992db

Browse files
author
SDKAuto
committed
CodeGen from PR 15001 in Azure/azure-rest-api-specs
Merge e8f1edfd9b18970a5cd22a9d77dcb3fec8782205 into 3cf8aa90fbdf15379f62a1e8e0c3dcbd9c4d46af
1 parent b8da289 commit 53992db

16 files changed

+166
-71
lines changed

sdk/dns/arm-dns/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/dns/arm-dns/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure DnsManagementClient SDK for JavaScript
22

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

55
### Currently supported environments
66

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

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-dns @azure/identity
2323
```
24-
2524
> **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.
2625
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.
2726

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

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
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.
40-
4139
#### nodejs - Authentication, client creation, and get recordSets as an example written in JavaScript.
4240

4341
##### Sample code
@@ -89,7 +87,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8987
const credential = new InteractiveBrowserCredential(
9088
{
9189
clientId: "<client id for your Azure AD app>",
92-
tenantId: "<optional tenant for your organization>"
90+
tenant: "<optional tenant for your organization>"
9391
});
9492
const client = new Azure.ArmDns.DnsManagementClient(creds, subscriptionId);
9593
const resourceGroupName = "testresourceGroupName";

sdk/dns/arm-dns/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dns/arm-dns",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/dns/arm-dns",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/dns/arm-dns/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/dns/arm-dns/src/dnsManagementClient.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is

sdk/dns/arm-dns/src/dnsManagementClientContext.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -10,8 +9,8 @@
109

1110
import * as Models from "./models";
1211
import * as msRest from "@azure/ms-rest-js";
13-
import { TokenCredential } from "@azure/core-auth";
1412
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1514

1615
const packageName = "@azure/arm-dns";
1716
const packageVersion = "4.1.0";
@@ -44,7 +43,7 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient {
4443
if (!options) {
4544
options = {};
4645
}
47-
if(!options.userAgent) {
46+
if (!options.userAgent) {
4847
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4948
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
5049
}
@@ -59,10 +58,10 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient {
5958
this.credentials = credentials;
6059
this.subscriptionId = subscriptionId;
6160

62-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
61+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6362
this.acceptLanguage = options.acceptLanguage;
6463
}
65-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
64+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
6665
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6766
}
6867
}

sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/dns/arm-dns/src/models/index.ts

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -310,6 +310,12 @@ export interface Zone extends Resource {
310310
* **NOTE: This property will not be serialized. It can only be populated by the server.**
311311
*/
312312
readonly maxNumberOfRecordSets?: number;
313+
/**
314+
* The maximum number of records per record set that can be created in this DNS zone. This is a
315+
* read-only property and any attempt to set this value will be ignored.
316+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
317+
*/
318+
readonly maxNumberOfRecordsPerRecordSet?: number;
313319
/**
314320
* The current number of record sets in this DNS zone. This is a read-only property and any
315321
* attempt to set this value will be ignored.
@@ -470,6 +476,54 @@ export interface RecordSetsListAllByDnsZoneOptionalParams extends msRest.Request
470476
recordSetNameSuffix?: string;
471477
}
472478

479+
/**
480+
* Optional Parameters.
481+
*/
482+
export interface RecordSetsListByTypeNextOptionalParams extends msRest.RequestOptionsBase {
483+
/**
484+
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
485+
*/
486+
top?: number;
487+
/**
488+
* The suffix label of the record set name that has to be used to filter the record set
489+
* enumerations. If this parameter is specified, Enumeration will return only records that end
490+
* with .<recordSetNameSuffix>
491+
*/
492+
recordsetnamesuffix?: string;
493+
}
494+
495+
/**
496+
* Optional Parameters.
497+
*/
498+
export interface RecordSetsListByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase {
499+
/**
500+
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
501+
*/
502+
top?: number;
503+
/**
504+
* The suffix label of the record set name that has to be used to filter the record set
505+
* enumerations. If this parameter is specified, Enumeration will return only records that end
506+
* with .<recordSetNameSuffix>
507+
*/
508+
recordsetnamesuffix?: string;
509+
}
510+
511+
/**
512+
* Optional Parameters.
513+
*/
514+
export interface RecordSetsListAllByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase {
515+
/**
516+
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
517+
*/
518+
top?: number;
519+
/**
520+
* The suffix label of the record set name that has to be used to filter the record set
521+
* enumerations. If this parameter is specified, Enumeration will return only records that end
522+
* with .<recordSetNameSuffix>
523+
*/
524+
recordSetNameSuffix?: string;
525+
}
526+
473527
/**
474528
* Optional Parameters.
475529
*/
@@ -539,6 +593,26 @@ export interface ZonesBeginDeleteMethodOptionalParams extends msRest.RequestOpti
539593
ifMatch?: string;
540594
}
541595

596+
/**
597+
* Optional Parameters.
598+
*/
599+
export interface ZonesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
600+
/**
601+
* The maximum number of record sets to return. If not specified, returns up to 100 record sets.
602+
*/
603+
top?: number;
604+
}
605+
606+
/**
607+
* Optional Parameters.
608+
*/
609+
export interface ZonesListNextOptionalParams extends msRest.RequestOptionsBase {
610+
/**
611+
* The maximum number of DNS zones to return. If not specified, returns up to 100 zones.
612+
*/
613+
top?: number;
614+
}
615+
542616
/**
543617
* An interface representing DnsManagementClientOptions.
544618
*/

sdk/dns/arm-dns/src/models/mappers.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -536,6 +536,13 @@ export const Zone: msRest.CompositeMapper = {
536536
name: "Number"
537537
}
538538
},
539+
maxNumberOfRecordsPerRecordSet: {
540+
readOnly: true,
541+
serializedName: "properties.maxNumberOfRecordsPerRecordSet",
542+
type: {
543+
name: "Number"
544+
}
545+
},
539546
numberOfRecordSets: {
540547
readOnly: true,
541548
serializedName: "properties.numberOfRecordSets",

sdk/dns/arm-dns/src/models/parameters.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -65,6 +64,18 @@ export const nextPageLink: msRest.OperationURLParameter = {
6564
},
6665
skipEncoding: true
6766
};
67+
export const recordsetnamesuffix: msRest.OperationQueryParameter = {
68+
parameterPath: [
69+
"options",
70+
"recordsetnamesuffix"
71+
],
72+
mapper: {
73+
serializedName: "$recordsetnamesuffix",
74+
type: {
75+
name: "String"
76+
}
77+
}
78+
};
6879
export const recordSetNameSuffix: msRest.OperationQueryParameter = {
6980
parameterPath: [
7081
"options",
@@ -99,18 +110,6 @@ export const recordType: msRest.OperationURLParameter = {
99110
}
100111
}
101112
};
102-
export const recordsetnamesuffix: msRest.OperationQueryParameter = {
103-
parameterPath: [
104-
"options",
105-
"recordsetnamesuffix"
106-
],
107-
mapper: {
108-
serializedName: "$recordsetnamesuffix",
109-
type: {
110-
name: "String"
111-
}
112-
}
113-
};
114113
export const relativeRecordSetName: msRest.OperationURLParameter = {
115114
parameterPath: "relativeRecordSetName",
116115
mapper: {

0 commit comments

Comments
 (0)