diff --git a/sdk/privatedns/arm-privatedns/LICENSE.txt b/sdk/privatedns/arm-privatedns/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/privatedns/arm-privatedns/LICENSE.txt +++ b/sdk/privatedns/arm-privatedns/LICENSE.txt @@ -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 diff --git a/sdk/privatedns/arm-privatedns/README.md b/sdk/privatedns/arm-privatedns/README.md index 855aceddf7bb..dbae3194e6d8 100644 --- a/sdk/privatedns/arm-privatedns/README.md +++ b/sdk/privatedns/arm-privatedns/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-privatedns ### How to use -#### nodejs - Authentication, client creation and get privateZones as an example written in TypeScript. +#### nodejs - client creation and get privateZones as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PrivateDnsManagementClient, PrivateDnsManagementModels, PrivateDnsManagementMappers } from "@azure/arm-privatedns"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { PrivateDnsManagementClient } = require("@azure/arm-privatedns"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/privatedns/arm-privatedns/rollup.config.js b/sdk/privatedns/arm-privatedns/rollup.config.js index 94920a6333ea..b8eb99f172ec 100644 --- a/sdk/privatedns/arm-privatedns/rollup.config.js +++ b/sdk/privatedns/arm-privatedns/rollup.config.js @@ -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. diff --git a/sdk/privatedns/arm-privatedns/src/models/index.ts b/sdk/privatedns/arm-privatedns/src/models/index.ts index 11c737423143..eb19af05a1b8 100644 --- a/sdk/privatedns/arm-privatedns/src/models/index.ts +++ b/sdk/privatedns/arm-privatedns/src/models/index.ts @@ -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. @@ -100,6 +100,11 @@ export interface PrivateZone extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + /** + * Private zone internal Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly internalId?: string; } /** @@ -429,6 +434,26 @@ export interface PrivateZonesBeginDeleteMethodOptionalParams extends msRest.Requ ifMatch?: string; } +/** + * Optional Parameters. + */ +export interface PrivateZonesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of Private DNS zones to return. If not specified, returns up to 100 zones. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PrivateZonesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + top?: number; +} + /** * Optional Parameters. */ @@ -522,6 +547,17 @@ export interface VirtualNetworkLinksBeginDeleteMethodOptionalParams extends msRe ifMatch?: string; } +/** + * Optional Parameters. + */ +export interface VirtualNetworkLinksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of virtual network links to return. If not specified, returns up to 100 + * virtual network links. + */ + top?: number; +} + /** * Optional Parameters. */ @@ -592,6 +628,38 @@ export interface RecordSetsListOptionalParams extends msRest.RequestOptionsBase 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 to be used to filter the record set enumeration. If + * this parameter is specified, the returned enumeration will only contain records that end with + * ".". + */ + recordsetnamesuffix?: string; +} + +/** + * Optional Parameters. + */ +export interface RecordSetsListNextOptionalParams 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 to be used to filter the record set enumeration. If + * this parameter is specified, the returned enumeration will only contain records that end with + * ".". + */ + recordsetnamesuffix?: string; +} + /** * An interface representing PrivateDnsManagementClientOptions. */ diff --git a/sdk/privatedns/arm-privatedns/src/models/mappers.ts b/sdk/privatedns/arm-privatedns/src/models/mappers.ts index 61fd9edd67fa..87327561b7b0 100644 --- a/sdk/privatedns/arm-privatedns/src/models/mappers.ts +++ b/sdk/privatedns/arm-privatedns/src/models/mappers.ts @@ -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. @@ -132,6 +132,13 @@ export const PrivateZone: msRest.CompositeMapper = { type: { name: "String" } + }, + internalId: { + readOnly: true, + serializedName: "properties.internalId", + type: { + name: "String" + } } } } diff --git a/sdk/privatedns/arm-privatedns/src/models/parameters.ts b/sdk/privatedns/arm-privatedns/src/models/parameters.ts index 3b7363610332..5f67985e72cd 100644 --- a/sdk/privatedns/arm-privatedns/src/models/parameters.ts +++ b/sdk/privatedns/arm-privatedns/src/models/parameters.ts @@ -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 diff --git a/sdk/privatedns/arm-privatedns/src/models/privateZonesMappers.ts b/sdk/privatedns/arm-privatedns/src/models/privateZonesMappers.ts index 0ea8da025811..f9613f03276b 100644 --- a/sdk/privatedns/arm-privatedns/src/models/privateZonesMappers.ts +++ b/sdk/privatedns/arm-privatedns/src/models/privateZonesMappers.ts @@ -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. diff --git a/sdk/privatedns/arm-privatedns/src/models/recordSetsMappers.ts b/sdk/privatedns/arm-privatedns/src/models/recordSetsMappers.ts index 792d4c7cc1ce..fb9931dbdbcb 100644 --- a/sdk/privatedns/arm-privatedns/src/models/recordSetsMappers.ts +++ b/sdk/privatedns/arm-privatedns/src/models/recordSetsMappers.ts @@ -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. diff --git a/sdk/privatedns/arm-privatedns/src/models/virtualNetworkLinksMappers.ts b/sdk/privatedns/arm-privatedns/src/models/virtualNetworkLinksMappers.ts index 80da9cae8786..702148765939 100644 --- a/sdk/privatedns/arm-privatedns/src/models/virtualNetworkLinksMappers.ts +++ b/sdk/privatedns/arm-privatedns/src/models/virtualNetworkLinksMappers.ts @@ -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. diff --git a/sdk/privatedns/arm-privatedns/src/operations/index.ts b/sdk/privatedns/arm-privatedns/src/operations/index.ts index 648437d2bdcc..5b3c7baa695d 100644 --- a/sdk/privatedns/arm-privatedns/src/operations/index.ts +++ b/sdk/privatedns/arm-privatedns/src/operations/index.ts @@ -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 diff --git a/sdk/privatedns/arm-privatedns/src/operations/privateZones.ts b/sdk/privatedns/arm-privatedns/src/operations/privateZones.ts index 4cc2557b4046..c55307571b3c 100644 --- a/sdk/privatedns/arm-privatedns/src/operations/privateZones.ts +++ b/sdk/privatedns/arm-privatedns/src/operations/privateZones.ts @@ -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 @@ -222,7 +221,7 @@ export class PrivateZones { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.PrivateZonesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -233,8 +232,8 @@ export class PrivateZones { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.PrivateZonesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.PrivateZonesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -250,7 +249,7 @@ export class PrivateZones { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.PrivateZonesListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -261,8 +260,8 @@ export class PrivateZones { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.PrivateZonesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.PrivateZonesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -454,6 +453,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -475,6 +478,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/privatedns/arm-privatedns/src/operations/recordSets.ts b/sdk/privatedns/arm-privatedns/src/operations/recordSets.ts index ec6cb3c9f403..8e634c4d6288 100644 --- a/sdk/privatedns/arm-privatedns/src/operations/recordSets.ts +++ b/sdk/privatedns/arm-privatedns/src/operations/recordSets.ts @@ -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 @@ -289,7 +288,7 @@ export class RecordSets { * @param [options] The optional parameters * @returns Promise */ - listByTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByTypeNext(nextPageLink: string, options?: Models.RecordSetsListByTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -300,8 +299,8 @@ export class RecordSets { * @param options The optional parameters * @param callback The callback */ - listByTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByTypeNext(nextPageLink: string, options: Models.RecordSetsListByTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listByTypeNext(nextPageLink: string, options?: Models.RecordSetsListByTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -317,7 +316,7 @@ export class RecordSets { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RecordSetsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -328,8 +327,8 @@ export class RecordSets { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RecordSetsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecordSetsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -532,6 +531,11 @@ const listByTypeNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.recordsetnamesuffix, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -553,6 +557,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.recordsetnamesuffix, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/privatedns/arm-privatedns/src/operations/virtualNetworkLinks.ts b/sdk/privatedns/arm-privatedns/src/operations/virtualNetworkLinks.ts index e6a905d5b30f..f703a0de3cd1 100644 --- a/sdk/privatedns/arm-privatedns/src/operations/virtualNetworkLinks.ts +++ b/sdk/privatedns/arm-privatedns/src/operations/virtualNetworkLinks.ts @@ -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 @@ -210,7 +209,7 @@ export class VirtualNetworkLinks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.VirtualNetworkLinksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -221,8 +220,8 @@ export class VirtualNetworkLinks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.VirtualNetworkLinksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.VirtualNetworkLinksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -395,6 +394,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts index 7f3f6ceb4d13..5278e4f0f1a4 100644 --- a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts +++ b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClient.ts @@ -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 diff --git a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts index 70b7dda90690..97f1fff796b8 100644 --- a/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts +++ b/sdk/privatedns/arm-privatedns/src/privateDnsManagementClientContext.ts @@ -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 @@ -45,7 +44,7 @@ export class PrivateDnsManagementClientContext extends msRestAzure.AzureServiceC super(credentials, options); - this.apiVersion = '2018-09-01'; + this.apiVersion = '2020-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";