diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 86892ff665ac..b9ca55b6901a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1228,9 +1228,9 @@ packages: - supports-color dev: false - /@azure/arm-network@26.0.0: - resolution: {integrity: sha512-Hp0Q4ZzChs8C0DUdGZOChWKMrhzZ53V0Q681puREZ9S1E6o2yWM0Vb+cYuWoyPOylwuzP2fjNjJZGtB7WuFd3w==} - engines: {node: '>=12.0.0'} + /@azure/arm-network@32.2.0: + resolution: {integrity: sha512-6QmZ9aGdiz+9u7jPhQEg2zY/Tn8hwJrmjAMuHlWpnqE2kHvSDnKCE3BiNLZsENfi/IeLKBuW0QIdZ5UhbSSA0A==} + engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-auth': 1.5.0 @@ -4487,7 +4487,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230922 + typescript: 5.3.0-dev.20230924 dev: false /eastasianwidth@0.2.0: @@ -9207,8 +9207,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20230922: - resolution: {integrity: sha512-QmuWGuk9Uk3blOaDo5P9wVLAOw7CfhrHmWoQAD+5UAQeR52S0/W0BjuYgCMGwmxVJJgYK1WCeBdbTi2jLxvoog==} + /typescript@5.3.0-dev.20230924: + resolution: {integrity: sha512-eoURpy2KdMkio8jVtNbZp5BOuoOJV1FEQyaWK8gqq+8EzVoBKWyt50tDsblDeSIcstigCWujQGhVhOPu5bkDbg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11542,11 +11542,11 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-hIdM8b63M27DLc8rvVLoTQJyPZwT4pCT1fnEzw+bmx491Oy3ZThHySK506arbce2W2kPH4PGyXCdLgijSvBD2w==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-fZ5qDRfT7qQ496yERgDhpFceK971ash6s536tcVqFHP19Uldw6z+LcT3qQpBj2Zbe59lTDsYp4TxmtT5QYTz5A==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: - '@azure/arm-network': 26.0.0 + '@azure/arm-network': 32.2.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.36.4(@types/node@14.18.56) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) @@ -11570,6 +11570,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: @@ -11603,12 +11604,12 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-a3DXhbSec1hXP0k017VAX/X8nUt324Uszra4g/ooiJaiTks1vaFI12erDPPyM5OlaW6/B3mM7vVSwPPOM5aeQw==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-ZRZ8Wd9Q2Eczp0QNj9eDsdKnLBcuz2AWou9Of7FDvLEIUzmPwDhfoSkCXsiX1fdCF6XH9tswzckMFXP4BD9+oA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: '@azure-rest/core-client': 1.0.0-beta.10 - '@azure/arm-network': 26.0.0 + '@azure/arm-network': 32.2.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.36.4(@types/node@14.18.56) '@types/chai': 4.3.6 @@ -12969,11 +12970,11 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-1MuvlX2jOSakBGdIHHN+n8DkBHTyd/OyJ3xL/J9L9iL06H5uxaZ3flY3LNwJVtjfc51RE+RHNvfoibmOzWx48w==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-VqPqq4HE/Qi7vDFyXE8Yrnv38RsL3X1ud+Z3BuuvieTzDOVnrBZMu8Wmmwq9Px+Rcowyc9GtMs3oWF93l3T9FQ==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: - '@azure/arm-network': 26.0.0 + '@azure/arm-network': 32.2.0 '@azure/arm-storage': 17.2.1 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.36.4(@types/node@14.18.56) @@ -12998,6 +12999,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-extendedlocation.tgz: @@ -14516,7 +14518,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-bqxvQALQ2mPjZN8wWDZwe2eYytuqi/sGAWXTD35lbVFgwjVl57CG3lhKR/HPm16GIx8fljY3yDvepHyMRFi/wA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-Y3udiumT06uyq1tvLNW/UhxItdJYF7tL21wGN7NtbxumY5lMtsg5A4IPNAjz8hKrPG08mBL6unRZrdz66npZpw==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -14533,7 +14535,7 @@ packages: dotenv: 16.3.1 mkdirp: 2.1.6 mocha: 7.2.0 - rimraf: 3.0.2 + rimraf: 5.0.1 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.56)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.56)(typescript@5.0.4) @@ -14543,6 +14545,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: @@ -15421,11 +15424,11 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-NH/Ba6FSKP2bAyrLHKyZLDwL60+mAIscysnEFp9ARgqL76my/A/aU9lyScsKdvXnnR7ctlPZI+2s5aaZpiEAwQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-hs2Wfr1pwMlphrKlIwLw22Xo5CTsk47WiTOvfYeSymEbE8y4QlVvw61oZ8siiMpWJ/hqu1lgGxvIkyYumEQoQg==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: - '@azure/arm-network': 26.0.0 + '@azure/arm-network': 32.2.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.36.4(@types/node@14.18.56) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) @@ -15449,6 +15452,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-redisenterprisecache.tgz: diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index bbb448dc6bb7..f082bf7fda32 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History + +## 32.3.0 (2023-09-24) + +**Features** -## 32.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface BastionShareableLinkTokenListRequest + - Added Interface DeleteBastionShareableLinkByTokenOptionalParams + - Added Type Alias FirewallPolicyIntrusionDetectionProfileType + - Interface FirewallPolicyIntrusionDetection has a new optional parameter profile + - Added Enum KnownFirewallPolicyIntrusionDetectionProfileType + - Enum KnownBastionHostSkuName has a new value Developer + + ## 32.2.0 (2023-09-07) **Features** diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index a60e4a22d99b..d39ed973bc13 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "241397aafd74aaad6161cd0058449f9eb6d5163c", + "commit": "7091a6f5c00fdfe5851df39621159a8f209e9293", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index f5817b2f434f..94b8bae70830 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "32.2.1", + "version": "32.3.0", "engines": { "node": ">=14.0.0" }, @@ -38,9 +38,9 @@ "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network" +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index a1cc3b682ac5..b9f4eaeb27be 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -2128,6 +2128,11 @@ export interface BastionShareableLinkListResult { value?: BastionShareableLink[]; } +// @public +export interface BastionShareableLinkTokenListRequest { + tokens?: string[]; +} + // @public export interface BGPCommunity { communityName?: string; @@ -3128,6 +3133,12 @@ export interface DelegationProperties { serviceName?: string; } +// @public +export interface DeleteBastionShareableLinkByTokenOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4815,7 +4826,7 @@ export interface FirewallPolicyHttpHeaderToInsert { export type FirewallPolicyIdpsQuerySortOrder = string; // @public -export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4; // @public export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; @@ -4894,6 +4905,7 @@ export interface FirewallPolicyInsights { export interface FirewallPolicyIntrusionDetection { configuration?: FirewallPolicyIntrusionDetectionConfiguration; mode?: FirewallPolicyIntrusionDetectionStateType; + profile?: FirewallPolicyIntrusionDetectionProfileType; } // @public @@ -4915,6 +4927,9 @@ export interface FirewallPolicyIntrusionDetectionConfiguration { signatureOverrides?: FirewallPolicyIntrusionDetectionSignatureSpecification[]; } +// @public +export type FirewallPolicyIntrusionDetectionProfileType = string; + // @public export type FirewallPolicyIntrusionDetectionProtocol = string; @@ -6273,6 +6288,7 @@ export enum KnownBastionConnectProtocol { // @public export enum KnownBastionHostSkuName { Basic = "Basic", + Developer = "Developer", Standard = "Standard" } @@ -6585,6 +6601,14 @@ export enum KnownFirewallPolicyIdpsQuerySortOrder { Descending = "Descending" } +// @public +export enum KnownFirewallPolicyIntrusionDetectionProfileType { + Advanced = "Advanced", + Basic = "Basic", + Extended = "Extended", + Standard = "Standard" +} + // @public export enum KnownFirewallPolicyIntrusionDetectionProtocol { ANY = "ANY", @@ -9010,6 +9034,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { bastionHosts: BastionHosts; beginDeleteBastionShareableLink(resourceGroupName: string, bastionHostName: string, bslRequest: BastionShareableLinkListRequest, options?: DeleteBastionShareableLinkOptionalParams): Promise, void>>; beginDeleteBastionShareableLinkAndWait(resourceGroupName: string, bastionHostName: string, bslRequest: BastionShareableLinkListRequest, options?: DeleteBastionShareableLinkOptionalParams): Promise; + beginDeleteBastionShareableLinkByToken(resourceGroupName: string, bastionHostName: string, bslTokenRequest: BastionShareableLinkTokenListRequest, options?: DeleteBastionShareableLinkByTokenOptionalParams): Promise, void>>; + beginDeleteBastionShareableLinkByTokenAndWait(resourceGroupName: string, bastionHostName: string, bslTokenRequest: BastionShareableLinkTokenListRequest, options?: DeleteBastionShareableLinkByTokenOptionalParams): Promise; beginGeneratevirtualwanvpnserverconfigurationvpnprofile(resourceGroupName: string, virtualWANName: string, vpnClientParams: VirtualWanVpnProfileParameters, options?: GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams): Promise, GeneratevirtualwanvpnserverconfigurationvpnprofileResponse>>; beginGeneratevirtualwanvpnserverconfigurationvpnprofileAndWait(resourceGroupName: string, virtualWANName: string, vpnClientParams: VirtualWanVpnProfileParameters, options?: GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams): Promise; beginListActiveSessionsAndWait(resourceGroupName: string, bastionHostName: string, options?: GetActiveSessionsOptionalParams): PagedAsyncIterableIterator; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index ea928d566358..3a8d31fbd7c0 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -994,7 +994,7 @@ export interface BastionHostListResult { nextLink?: string; } -/** Post request for all the Bastion Shareable Link endpoints. */ +/** Post request for Create/Delete/Get Bastion Shareable Link endpoints. */ export interface BastionShareableLinkListRequest { /** List of VM references. */ vms?: BastionShareableLink[]; @@ -1029,6 +1029,12 @@ export interface BastionShareableLinkListResult { nextLink?: string; } +/** Post request for Delete Bastion Shareable Link By Token endpoint. */ +export interface BastionShareableLinkTokenListRequest { + /** List of Bastion Shareable Link Token. */ + tokens?: string[]; +} + /** Response for GetActiveSessions. */ export interface BastionActiveSessionListResult { /** List of active sessions on the bastion. */ @@ -1717,8 +1723,10 @@ export interface ExplicitProxy { /** Configuration for intrusion detection mode and rules. */ export interface FirewallPolicyIntrusionDetection { - /** Intrusion detection general state. */ + /** Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two. */ mode?: FirewallPolicyIntrusionDetectionStateType; + /** IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy. */ + profile?: FirewallPolicyIntrusionDetectionProfileType; /** Intrusion detection configuration properties. */ configuration?: FirewallPolicyIntrusionDetectionConfiguration; } @@ -1852,9 +1860,9 @@ export interface SingleQueryResult { signatureId?: number; /** The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny */ mode?: FirewallPolicyIdpsSignatureMode; - /** Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High */ + /** Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low */ severity?: FirewallPolicyIdpsSignatureSeverity; - /** Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional */ + /** Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound */ direction?: FirewallPolicyIdpsSignatureDirection; /** Describes the groups the signature belongs to */ group?: string; @@ -12983,7 +12991,9 @@ export enum KnownBastionHostSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", + /** Developer */ + Developer = "Developer" } /** @@ -12992,7 +13002,8 @@ export enum KnownBastionHostSkuName { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Basic** \ - * **Standard** + * **Standard** \ + * **Developer** */ export type BastionHostSkuName = string; @@ -13506,6 +13517,30 @@ export enum KnownFirewallPolicyIntrusionDetectionStateType { */ export type FirewallPolicyIntrusionDetectionStateType = string; +/** Known values of {@link FirewallPolicyIntrusionDetectionProfileType} that the service accepts. */ +export enum KnownFirewallPolicyIntrusionDetectionProfileType { + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Advanced */ + Advanced = "Advanced", + /** Extended */ + Extended = "Extended" +} + +/** + * Defines values for FirewallPolicyIntrusionDetectionProfileType. \ + * {@link KnownFirewallPolicyIntrusionDetectionProfileType} can be used interchangeably with FirewallPolicyIntrusionDetectionProfileType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic** \ + * **Standard** \ + * **Advanced** \ + * **Extended** + */ +export type FirewallPolicyIntrusionDetectionProfileType = string; + /** Known values of {@link FirewallPolicyIntrusionDetectionProtocol} that the service accepts. */ export enum KnownFirewallPolicyIntrusionDetectionProtocol { /** TCP */ @@ -16530,7 +16565,7 @@ export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; /** Defines values for FirewallPolicyIdpsSignatureSeverity. */ export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3; /** Defines values for FirewallPolicyIdpsSignatureDirection. */ -export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4; /** Defines values for PacketCaptureTargetType. */ export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; @@ -17123,6 +17158,15 @@ export interface DeleteBastionShareableLinkOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface DeleteBastionShareableLinkByTokenOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Optional parameters. */ export interface GetBastionShareableLinkOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 916a86a92b73..6ad96c5e99bf 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -2931,6 +2931,26 @@ export const BastionShareableLinkListResult: coreClient.CompositeMapper = { } }; +export const BastionShareableLinkTokenListRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BastionShareableLinkTokenListRequest", + modelProperties: { + tokens: { + serializedName: "tokens", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const BastionActiveSessionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4787,6 +4807,12 @@ export const FirewallPolicyIntrusionDetection: coreClient.CompositeMapper = { name: "String" } }, + profile: { + serializedName: "profile", + type: { + name: "String" + } + }, configuration: { serializedName: "configuration", type: { @@ -5243,7 +5269,7 @@ export const SingleQueryResult: coreClient.CompositeMapper = { serializedName: "direction", type: { name: "Enum", - allowedValues: [0, 1, 2] + allowedValues: [0, 1, 2, 3, 4] } }, group: { diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 002323e88dd6..522e22fece34 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -21,6 +21,7 @@ import { FirewallPacketCaptureParameters as FirewallPacketCaptureParametersMapper, BastionHost as BastionHostMapper, BastionShareableLinkListRequest as BastionShareableLinkListRequestMapper, + BastionShareableLinkTokenListRequest as BastionShareableLinkTokenListRequestMapper, SessionIds as SessionIdsMapper, ActiveConfigurationParameter as ActiveConfigurationParameterMapper, QueryRequestOptions as QueryRequestOptionsMapper, @@ -204,7 +205,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-05-01", + defaultValue: "2023-06-01", isConstant: true, serializedName: "api-version", type: { @@ -411,6 +412,11 @@ export const bslRequest: OperationParameter = { mapper: BastionShareableLinkListRequestMapper }; +export const bslTokenRequest: OperationParameter = { + parameterPath: "bslTokenRequest", + mapper: BastionShareableLinkTokenListRequestMapper +}; + export const sessionIds: OperationParameter = { parameterPath: "sessionIds", mapper: SessionIdsMapper diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 881d4e469dee..ee52e517e170 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -307,6 +307,8 @@ import { DisconnectActiveSessionsOptionalParams, DisconnectActiveSessionsResponse, DeleteBastionShareableLinkOptionalParams, + BastionShareableLinkTokenListRequest, + DeleteBastionShareableLinkByTokenOptionalParams, CheckDnsNameAvailabilityOptionalParams, CheckDnsNameAvailabilityResponse, ExpressRouteProviderPortOptionalParams, @@ -379,7 +381,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/32.2.1`; + const packageDetails = `azsdk-js-arm-network/32.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -650,7 +652,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * Creates a Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ public beginListPutBastionShareableLinkAndWait( @@ -744,7 +746,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * Return the Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ public listBastionShareableLink( @@ -1015,7 +1017,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * Creates a Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ private async _putBastionShareableLink( @@ -1089,7 +1091,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * Deletes the Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ async beginDeleteBastionShareableLink( @@ -1155,7 +1157,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * Deletes the Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ async beginDeleteBastionShareableLinkAndWait( @@ -1173,11 +1175,99 @@ export class NetworkManagementClient extends coreClient.ServiceClient { return poller.pollUntilDone(); } + /** + * Deletes the Bastion Shareable Links for all the tokens specified in the request. + * @param resourceGroupName The name of the resource group. + * @param bastionHostName The name of the Bastion Host. + * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. + * @param options The options parameters. + */ + async beginDeleteBastionShareableLinkByToken( + resourceGroupName: string, + bastionHostName: string, + bslTokenRequest: BastionShareableLinkTokenListRequest, + options?: DeleteBastionShareableLinkByTokenOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, bastionHostName, bslTokenRequest, options }, + spec: deleteBastionShareableLinkByTokenOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the Bastion Shareable Links for all the tokens specified in the request. + * @param resourceGroupName The name of the resource group. + * @param bastionHostName The name of the Bastion Host. + * @param bslTokenRequest Post request for Delete Bastion Shareable Link By Token endpoint. + * @param options The options parameters. + */ + async beginDeleteBastionShareableLinkByTokenAndWait( + resourceGroupName: string, + bastionHostName: string, + bslTokenRequest: BastionShareableLinkTokenListRequest, + options?: DeleteBastionShareableLinkByTokenOptionalParams + ): Promise { + const poller = await this.beginDeleteBastionShareableLinkByToken( + resourceGroupName, + bastionHostName, + bslTokenRequest, + options + ); + return poller.pollUntilDone(); + } + /** * Return the Bastion Shareable Links for all the VMs specified in the request. * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param options The options parameters. */ private _getBastionShareableLink( @@ -1515,7 +1605,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * PutBastionShareableLinkNext * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param nextLink The nextLink from the previous successful call to the PutBastionShareableLink * method. * @param options The options parameters. @@ -1537,7 +1627,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { * GetBastionShareableLinkNext * @param resourceGroupName The name of the resource group. * @param bastionHostName The name of the Bastion Host. - * @param bslRequest Post request for all the Bastion Shareable Link endpoints. + * @param bslRequest Post request for Create/Delete/Get Bastion Shareable Link endpoints. * @param nextLink The nextLink from the previous successful call to the GetBastionShareableLink * method. * @param options The options parameters. @@ -1790,6 +1880,31 @@ const deleteBastionShareableLinkOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const deleteBastionShareableLinkByTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.bslTokenRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.bastionHostName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const getBastionShareableLinkOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks", diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts index 80a78a7a78b8..783627659c44 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts @@ -31,7 +31,8 @@ export class FirewallPolicyIdpsSignaturesImpl } /** - * Retrieves the current status of IDPS signatures for the relevant policy + * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned + * signatures is 1000. * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will describe the query to run against the IDPS signatures DB diff --git a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts index 8e60911f7696..8d76278a65ef 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/firewallPolicyIdpsSignatures.ts @@ -15,7 +15,8 @@ import { /** Interface representing a FirewallPolicyIdpsSignatures. */ export interface FirewallPolicyIdpsSignatures { /** - * Retrieves the current status of IDPS signatures for the relevant policy + * Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of returned + * signatures is 1000. * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Will describe the query to run against the IDPS signatures DB diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"