Skip to content

Commit

Permalink
privatedns release (Azure#25828)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored May 22, 2023
1 parent d88ef7c commit 907a789
Show file tree
Hide file tree
Showing 72 changed files with 1,258 additions and 783 deletions.
5 changes: 3 additions & 2 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 14 additions & 11 deletions sdk/privatedns/arm-privatedns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Release History

## 3.2.0 (2023-05-10)

**Features**

## 3.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface PrivateZonesListByResourceGroupNextOptionalParams no longer has parameter top
- Interface PrivateZonesListNextOptionalParams no longer has parameter top
- Interface RecordSetsListByTypeNextOptionalParams no longer has parameter recordsetnamesuffix
- Interface RecordSetsListByTypeNextOptionalParams no longer has parameter top
- Interface RecordSetsListNextOptionalParams no longer has parameter recordsetnamesuffix
- Interface RecordSetsListNextOptionalParams no longer has parameter top
- Interface VirtualNetworkLinksListNextOptionalParams no longer has parameter top


## 3.1.0 (2022-12-02)

**Features**
Expand All @@ -21,7 +24,7 @@
- Added Interface VirtualNetworkLink


## 3.0.1 (2022-04-28)
### 3.0.1 (2022-04-28)

**Features**

Expand Down
2 changes: 1 addition & 1 deletion sdk/privatedns/arm-privatedns/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 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
10 changes: 5 additions & 5 deletions sdk/privatedns/arm-privatedns/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
"readme": "specification\\privatedns\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\privatedns\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.3.20221108.1 --generate-sample=true",
"commit": "55ea8eefa48ec598ce4426fb535c131bfd897b02",
"readme": "specification/privatedns/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\privatedns\\resource-manager\\readme.md --use=@autorest/[email protected].1 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected]"
}
2 changes: 1 addition & 1 deletion sdk/privatedns/arm-privatedns/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/privatedns/arm-privatedns",
"Tag": "js/privatedns/arm-privatedns_8312588856"
"Tag": "js/privatedns/arm-privatedns_5c6f5d2b6d"
}
11 changes: 6 additions & 5 deletions sdk/privatedns/arm-privatedns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for PrivateDnsManagementClient.",
"version": "3.1.1",
"version": "3.2.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/core-lro": "^2.5.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -33,12 +33,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -49,7 +50,6 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/privatedns/arm-privatedns",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -111,6 +111,7 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/privatedns/arm-privatedns",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
Expand Down
23 changes: 8 additions & 15 deletions sdk/privatedns/arm-privatedns/review/arm-privatedns.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';
import { SimplePollerLike } from '@azure/core-lro';

// @public
export interface AaaaRecord {
Expand Down Expand Up @@ -108,11 +108,11 @@ export interface PrivateZoneListResult {

// @public
export interface PrivateZones {
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateZonesCreateOrUpdateResponse>, PrivateZonesCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateZonesCreateOrUpdateResponse>, PrivateZonesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesCreateOrUpdateOptionalParams): Promise<PrivateZonesCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDelete(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateZonesUpdateResponse>, PrivateZonesUpdateResponse>>;
beginUpdate(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateZonesUpdateResponse>, PrivateZonesUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, privateZoneName: string, parameters: PrivateZone, options?: PrivateZonesUpdateOptionalParams): Promise<PrivateZonesUpdateResponse>;
get(resourceGroupName: string, privateZoneName: string, options?: PrivateZonesGetOptionalParams): Promise<PrivateZonesGetResponse>;
list(options?: PrivateZonesListOptionalParams): PagedAsyncIterableIterator<PrivateZone>;
Expand Down Expand Up @@ -146,7 +146,6 @@ export type PrivateZonesGetResponse = PrivateZone;

// @public
export interface PrivateZonesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand All @@ -162,7 +161,6 @@ export type PrivateZonesListByResourceGroupResponse = PrivateZoneListResult;

// @public
export interface PrivateZonesListNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down Expand Up @@ -256,8 +254,6 @@ export type RecordSetsGetResponse = RecordSet;

// @public
export interface RecordSetsListByTypeNextOptionalParams extends coreClient.OperationOptions {
recordsetnamesuffix?: string;
top?: number;
}

// @public
Expand All @@ -274,8 +270,6 @@ export type RecordSetsListByTypeResponse = RecordSetListResult;

// @public
export interface RecordSetsListNextOptionalParams extends coreClient.OperationOptions {
recordsetnamesuffix?: string;
top?: number;
}

// @public
Expand Down Expand Up @@ -362,11 +356,11 @@ export interface VirtualNetworkLinkListResult {

// @public
export interface VirtualNetworkLinks {
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualNetworkLinksCreateOrUpdateResponse>, VirtualNetworkLinksCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksCreateOrUpdateResponse>, VirtualNetworkLinksCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<PollerLike<PollOperationState<VirtualNetworkLinksUpdateResponse>, VirtualNetworkLinksUpdateResponse>>;
beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksUpdateResponse>, VirtualNetworkLinksUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<VirtualNetworkLinksUpdateResponse>;
get(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksGetOptionalParams): Promise<VirtualNetworkLinksGetResponse>;
list(resourceGroupName: string, privateZoneName: string, options?: VirtualNetworkLinksListOptionalParams): PagedAsyncIterableIterator<VirtualNetworkLink>;
Expand Down Expand Up @@ -399,7 +393,6 @@ export type VirtualNetworkLinksGetResponse = VirtualNetworkLink;

// @public
export interface VirtualNetworkLinksListNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { PrivateZone, PrivateDnsManagementClient } from "@azure/arm-privatedns";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records within the zone.
Expand All @@ -18,8 +21,10 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/privatedns/resource-manager/Microsoft.Network/stable/2020-06-01/examples/PrivateZonePut.json
*/
async function putPrivateDnsZone() {
const subscriptionId = "subscriptionId";
const resourceGroupName = "resourceGroup1";
const subscriptionId =
process.env["PRIVATEDNS_SUBSCRIPTION_ID"] || "subscriptionId";
const resourceGroupName =
process.env["PRIVATEDNS_RESOURCE_GROUP"] || "resourceGroup1";
const privateZoneName = "privatezone1.com";
const parameters: PrivateZone = {
location: "Global",
Expand All @@ -35,4 +40,8 @@ async function putPrivateDnsZone() {
console.log(result);
}

putPrivateDnsZone().catch(console.error);
async function main() {
putPrivateDnsZone();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { PrivateDnsManagementClient } from "@azure/arm-privatedns";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to it are removed.
Expand All @@ -18,8 +21,10 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/privatedns/resource-manager/Microsoft.Network/stable/2020-06-01/examples/PrivateZoneDelete.json
*/
async function deletePrivateDnsZone() {
const subscriptionId = "subscriptionId";
const resourceGroupName = "resourceGroup1";
const subscriptionId =
process.env["PRIVATEDNS_SUBSCRIPTION_ID"] || "subscriptionId";
const resourceGroupName =
process.env["PRIVATEDNS_RESOURCE_GROUP"] || "resourceGroup1";
const privateZoneName = "privatezone1.com";
const credential = new DefaultAzureCredential();
const client = new PrivateDnsManagementClient(credential, subscriptionId);
Expand All @@ -30,4 +35,8 @@ async function deletePrivateDnsZone() {
console.log(result);
}

deletePrivateDnsZone().catch(console.error);
async function main() {
deletePrivateDnsZone();
}

main().catch(console.error);
15 changes: 12 additions & 3 deletions sdk/privatedns/arm-privatedns/samples-dev/privateZonesGetSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { PrivateDnsManagementClient } from "@azure/arm-privatedns";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the record sets within the zone.
Expand All @@ -18,8 +21,10 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/privatedns/resource-manager/Microsoft.Network/stable/2020-06-01/examples/PrivateZoneGet.json
*/
async function getPrivateDnsZone() {
const subscriptionId = "subscriptionId";
const resourceGroupName = "resourceGroup1";
const subscriptionId =
process.env["PRIVATEDNS_SUBSCRIPTION_ID"] || "subscriptionId";
const resourceGroupName =
process.env["PRIVATEDNS_RESOURCE_GROUP"] || "resourceGroup1";
const privateZoneName = "privatezone1.com";
const credential = new DefaultAzureCredential();
const client = new PrivateDnsManagementClient(credential, subscriptionId);
Expand All @@ -30,4 +35,8 @@ async function getPrivateDnsZone() {
console.log(result);
}

getPrivateDnsZone().catch(console.error);
async function main() {
getPrivateDnsZone();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { PrivateDnsManagementClient } from "@azure/arm-privatedns";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Lists the Private DNS zones within a resource group.
Expand All @@ -18,8 +21,10 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/privatedns/resource-manager/Microsoft.Network/stable/2020-06-01/examples/PrivateZoneListInResourceGroup.json
*/
async function getPrivateDnsZoneByResourceGroup() {
const subscriptionId = "subscriptionId";
const resourceGroupName = "resourceGroup1";
const subscriptionId =
process.env["PRIVATEDNS_SUBSCRIPTION_ID"] || "subscriptionId";
const resourceGroupName =
process.env["PRIVATEDNS_RESOURCE_GROUP"] || "resourceGroup1";
const credential = new DefaultAzureCredential();
const client = new PrivateDnsManagementClient(credential, subscriptionId);
const resArray = new Array();
Expand All @@ -31,4 +36,8 @@ async function getPrivateDnsZoneByResourceGroup() {
console.log(resArray);
}

getPrivateDnsZoneByResourceGroup().catch(console.error);
async function main() {
getPrivateDnsZoneByResourceGroup();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Licensed under the MIT License.
import { PrivateDnsManagementClient } from "@azure/arm-privatedns";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Lists the Private DNS zones in all resource groups in a subscription.
Expand All @@ -18,7 +21,8 @@ import { DefaultAzureCredential } from "@azure/identity";
* x-ms-original-file: specification/privatedns/resource-manager/Microsoft.Network/stable/2020-06-01/examples/PrivateZoneListInSubscription.json
*/
async function getPrivateDnsZoneBySubscription() {
const subscriptionId = "subscriptionId";
const subscriptionId =
process.env["PRIVATEDNS_SUBSCRIPTION_ID"] || "subscriptionId";
const credential = new DefaultAzureCredential();
const client = new PrivateDnsManagementClient(credential, subscriptionId);
const resArray = new Array();
Expand All @@ -28,4 +32,8 @@ async function getPrivateDnsZoneBySubscription() {
console.log(resArray);
}

getPrivateDnsZoneBySubscription().catch(console.error);
async function main() {
getPrivateDnsZoneBySubscription();
}

main().catch(console.error);
Loading

0 comments on commit 907a789

Please sign in to comment.