diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 29c35dff55ba..12248e22e442 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1154,6 +1154,21 @@ packages: - supports-color dev: false + /@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 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.12.2 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.20: resolution: {integrity: sha512-Vjsiv6lWiVFqTG51cKNOAwnhuUhKbb6oOsQ833NEaWl9MwlqEQtxSOMJPYsoSCjb+pnIYvbioC+hIHkKfkAxbQ==} engines: {node: '>=8.0.0'} @@ -4495,7 +4510,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.4.0-dev.20231106 + typescript: 5.4.0-dev.20231107 dev: false /eastasianwidth@0.2.0: @@ -9272,8 +9287,8 @@ packages: hasBin: true dev: false - /typescript@5.4.0-dev.20231106: - resolution: {integrity: sha512-Uxjjt7meOHOSXpQJkiObTPUXfQKqSkdcMQOV+ZAjo3U1w/D/1Qah5Pdg0x/jt/fIA6laCNWLogS+QiaT5HOohw==} + /typescript@5.4.0-dev.20231107: + resolution: {integrity: sha512-4bQlfsyFjzZMo1bSLEkFJEcvuQ64pgE0S/BpdWu16lYsQOfJZtntZIyWdED3h+e96IMtVgrC6sxzfPZhj4J/dw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11427,10 +11442,11 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-GNH6eYlcbf2q/gL3gSeFIrGTeu55MJKUeTHcFvtpwckRU5Gl7M+amBD/C3WcgxE9eiMwGdSh7fnY2u9I3kN1Cg==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-woMseNIuijTLmmueZtuEdz2Aa7lEIIlTbyEtYgfYOG1v1yOP6hLuoUShn2b4HsVqbzef0kdkI5mi5alsIZvHRw==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.2(@types/node@18.18.8) '@types/chai': 4.3.9 @@ -11477,10 +11493,11 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-l0ZioJDcuCfgBQvrWRCtT6jnnygpKC4TkWT+M6BqOnOhOdTM8bxGaxmfcXLKUShb4Xd2zZo+FOj+0eimg3MJCw==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-WdhgZLbrpNn861iEG7vXJSTR1ZYIOUORztuIahvzMqsbPG2xctJK5c4GcrsPWhx4NJ0OJmIHkrYcvEPAE1vS9g==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.2(@types/node@18.18.8) '@types/chai': 4.3.9 @@ -12633,10 +12650,11 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-MfPrGJfNBWzwigKTkYZc19i+yeMfEcS2Qqv4b12H6wCup7inRqS3dpnGKQ503XzVVwaaYNzqHdCTrYZo27lo6Q==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-TiVt+aIo/m+zkgm2yVlBDY1Xa7Yi08FpUd5fC/KoqHej0XH2w88gi+iQFwuTio34OwhadQqxhwKjhn8H1TEcYA==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.2(@types/node@18.18.8) '@types/chai': 4.3.9 @@ -13916,20 +13934,22 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-k1AJlE2JlD5JBpEeGn4+wPVcHfP5xwEO/wYGWneUym/POypcrsT1bNajpqRfMXgzWByzcIQwSoBh33OoD3tQow==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-FWmITS228P24PMyeFCSt2aBdMMQwvcn4HmRWtJaQ9UTZujvrknwj1wX6TvnktiysxyzvSe9rkD8LscEcfxLvDg==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.2(@types/node@18.18.8) '@types/chai': 4.3.9 + '@types/mocha': 10.0.3 '@types/node': 18.18.8 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@18.18.8)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -14726,10 +14746,11 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-tXv/RXh41XXxV30jK7/85qDP9tzB13GtuDBvAr6RuqLXwgE+MOtPc43LaS/Y3WyUl/bCxBh8AKK/oltopZuYcg==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-3YSXMeycDrKOeUev8QnHwYtkZnvsh6Rw+OZtbNhQs7Exg+eOYmi/ZY8yOx8qaqJ83HzDocPIDHBMq5+oV1nHgw==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.2(@types/node@18.18.8) '@types/chai': 4.3.9 diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index 48a28c02b8f7..ff75ab460688 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,31 @@ # Release History + +## 33.0.0 (2023-11-07) + +**Features** -## 32.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface BastionShareableLinkTokenListRequest + - Added Interface DdosCustomPoliciesDeleteHeaders + - Added Interface DeleteBastionShareableLinkByTokenOptionalParams + - Added Interface InternetIngressPublicIpsProperties + - Added Interface NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders + - Added Type Alias DeleteBastionShareableLinkByTokenResponse + - Added Type Alias FirewallPolicyIntrusionDetectionProfileType + - Interface ApplicationGatewayListener has a new optional parameter hostNames + - Interface FirewallPolicyIntrusionDetection has a new optional parameter profile + - Interface NetworkVirtualAppliance has a new optional parameter internetIngressPublicIps + - Added Enum KnownFirewallPolicyIntrusionDetectionProfileType + - Enum KnownActionType has a new value JSChallenge + - Enum KnownBastionHostSkuName has a new value Developer + - Enum KnownVirtualNetworkGatewaySkuName has a new value ErGwScale + - Enum KnownVirtualNetworkGatewaySkuTier has a new value ErGwScale + - Enum KnownWebApplicationFirewallAction has a new value JSChallenge -### Other Changes +**Breaking Changes** + - Type of parameter routingConfiguration of interface NetworkVirtualApplianceConnection is changed from RoutingConfigurationNfv to RoutingConfiguration + + ## 32.2.0 (2023-09-07) **Features** @@ -901,4 +917,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index a60e4a22d99b..3a433ce80c7a 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "241397aafd74aaad6161cd0058449f9eb6d5163c", + "commit": "70a668c4b3c708e5df72ac4984a457f34a7a044e", "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.12", "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" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 3c92b5d769e5..bf7f5505b61a 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": "33.0.0", "engines": { "node": ">=18.0.0" }, @@ -32,18 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +79,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", @@ -105,13 +107,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..4bdd99468492 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -572,6 +572,7 @@ export interface ApplicationGatewayListener extends SubResource { readonly etag?: string; frontendIPConfiguration?: SubResource; frontendPort?: SubResource; + hostNames?: string[]; name?: string; protocol?: ApplicationGatewayProtocol; readonly provisioningState?: ProvisioningState; @@ -2128,6 +2129,11 @@ export interface BastionShareableLinkListResult { value?: BastionShareableLink[]; } +// @public +export interface BastionShareableLinkTokenListRequest { + tokens?: string[]; +} + // @public export interface BGPCommunity { communityName?: string; @@ -2936,6 +2942,11 @@ export interface DdosCustomPoliciesCreateOrUpdateOptionalParams extends coreClie // @public export type DdosCustomPoliciesCreateOrUpdateResponse = DdosCustomPolicy; +// @public +export interface DdosCustomPoliciesDeleteHeaders { + location?: string; +} + // @public export interface DdosCustomPoliciesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -3128,6 +3139,15 @@ export interface DelegationProperties { serviceName?: string; } +// @public +export interface DeleteBastionShareableLinkByTokenOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DeleteBastionShareableLinkByTokenResponse = NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders; + // @public export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -4815,7 +4835,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 +4914,7 @@ export interface FirewallPolicyInsights { export interface FirewallPolicyIntrusionDetection { configuration?: FirewallPolicyIntrusionDetectionConfiguration; mode?: FirewallPolicyIntrusionDetectionStateType; + profile?: FirewallPolicyIntrusionDetectionProfileType; } // @public @@ -4915,6 +4936,9 @@ export interface FirewallPolicyIntrusionDetectionConfiguration { signatureOverrides?: FirewallPolicyIntrusionDetectionSignatureSpecification[]; } +// @public +export type FirewallPolicyIntrusionDetectionProfileType = string; + // @public export type FirewallPolicyIntrusionDetectionProtocol = string; @@ -5672,6 +5696,11 @@ export interface InboundSecurityRules { // @public export type InboundSecurityRulesProtocol = string; +// @public +export interface InternetIngressPublicIpsProperties { + id?: string; +} + // @public export interface IPAddressAvailabilityResult { available?: boolean; @@ -5964,6 +5993,7 @@ export enum KnownActionType { Allow = "Allow", AnomalyScoring = "AnomalyScoring", Block = "Block", + JSChallenge = "JSChallenge", Log = "Log" } @@ -6273,6 +6303,7 @@ export enum KnownBastionConnectProtocol { // @public export enum KnownBastionHostSkuName { Basic = "Basic", + Developer = "Developer", Standard = "Standard" } @@ -6585,6 +6616,14 @@ export enum KnownFirewallPolicyIdpsQuerySortOrder { Descending = "Descending" } +// @public +export enum KnownFirewallPolicyIntrusionDetectionProfileType { + Advanced = "Advanced", + Basic = "Basic", + Extended = "Extended", + Standard = "Standard" +} + // @public export enum KnownFirewallPolicyIntrusionDetectionProtocol { ANY = "ANY", @@ -7315,6 +7354,7 @@ export enum KnownVirtualNetworkGatewaySkuName { ErGw1AZ = "ErGw1AZ", ErGw2AZ = "ErGw2AZ", ErGw3AZ = "ErGw3AZ", + ErGwScale = "ErGwScale", HighPerformance = "HighPerformance", Standard = "Standard", UltraPerformance = "UltraPerformance", @@ -7336,6 +7376,7 @@ export enum KnownVirtualNetworkGatewaySkuTier { ErGw1AZ = "ErGw1AZ", ErGw2AZ = "ErGw2AZ", ErGw3AZ = "ErGw3AZ", + ErGwScale = "ErGwScale", HighPerformance = "HighPerformance", Standard = "Standard", UltraPerformance = "UltraPerformance", @@ -7468,6 +7509,7 @@ export enum KnownVpnType { export enum KnownWebApplicationFirewallAction { Allow = "Allow", Block = "Block", + JSChallenge = "JSChallenge", Log = "Log" } @@ -9010,6 +9052,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, DeleteBastionShareableLinkByTokenResponse>>; + 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; @@ -9259,6 +9303,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { webCategories: WebCategories; } +// @public +export interface NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders { + // (undocumented) + location?: string; +} + // @public export interface NetworkManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; @@ -9674,6 +9724,7 @@ export interface NetworkVirtualAppliance extends Resource { readonly etag?: string; identity?: ManagedServiceIdentity; readonly inboundSecurityRules?: SubResource[]; + internetIngressPublicIps?: InternetIngressPublicIpsProperties[]; nvaSku?: VirtualApplianceSkuProperties; partnerManagedResource?: PartnerManagedResourceProperties; readonly provisioningState?: ProvisioningState; @@ -9693,7 +9744,7 @@ export interface NetworkVirtualApplianceConnection extends SubResource { name?: string; namePropertiesName?: string; readonly provisioningState?: ProvisioningState; - routingConfiguration?: RoutingConfigurationNfv; + routingConfiguration?: RoutingConfiguration; tunnelIdentifier?: number; } @@ -11073,12 +11124,6 @@ export interface PropagatedRouteTable { labels?: string[]; } -// @public -export interface PropagatedRouteTableNfv { - ids?: RoutingConfigurationNfvSubResource[]; - labels?: string[]; -} - // @public export type Protocol = string; @@ -11951,19 +11996,6 @@ export interface RoutingConfiguration { vnetRoutes?: VnetRoute; } -// @public -export interface RoutingConfigurationNfv { - associatedRouteTable?: RoutingConfigurationNfvSubResource; - inboundRouteMap?: RoutingConfigurationNfvSubResource; - outboundRouteMap?: RoutingConfigurationNfvSubResource; - propagatedRouteTables?: PropagatedRouteTableNfv; -} - -// @public -export interface RoutingConfigurationNfvSubResource { - resourceUri?: string; -} - // @public export interface RoutingIntent extends SubResource { readonly etag?: string; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index ea928d566358..30d7b509ff70 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; @@ -2652,6 +2660,12 @@ export interface VirtualApplianceAdditionalNicProperties { hasPublicIp?: boolean; } +/** Resource Uri of Public Ip for Standard Load Balancer Frontend End. */ +export interface InternetIngressPublicIpsProperties { + /** Resource Uri of Public Ip */ + id?: string; +} + /** Properties of the delegation. */ export interface DelegationProperties { /** The service name to which the NVA is delegated. */ @@ -5491,32 +5505,6 @@ export interface ExpressRouteConnectionList { value?: ExpressRouteConnection[]; } -/** NFV version of Routing Configuration indicating the associated and propagated route tables for this connection. */ -export interface RoutingConfigurationNfv { - /** The resource id RouteTable associated with this RoutingConfiguration. */ - associatedRouteTable?: RoutingConfigurationNfvSubResource; - /** The list of RouteTables to advertise the routes to. */ - propagatedRouteTables?: PropagatedRouteTableNfv; - /** The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. */ - inboundRouteMap?: RoutingConfigurationNfvSubResource; - /** The resource id of the RouteMap associated with this RoutingConfiguration for outbound advertised routes. */ - outboundRouteMap?: RoutingConfigurationNfvSubResource; -} - -/** Reference to RouteTableV3 associated with the connection. */ -export interface RoutingConfigurationNfvSubResource { - /** Resource ID. */ - resourceUri?: string; -} - -/** Nfv version of the list of RouteTables to advertise the routes to. */ -export interface PropagatedRouteTableNfv { - /** The list of labels. */ - labels?: string[]; - /** The list of resource ids of all the RouteTables. */ - ids?: RoutingConfigurationNfvSubResource[]; -} - /** NetworkVirtualApplianceConnection list. */ export interface NetworkVirtualApplianceConnectionList { /** The list of NetworkVirtualAppliance connections. */ @@ -6978,6 +6966,8 @@ export interface ApplicationGatewayListener extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as well. */ + hostNames?: string[]; } /** SSL profile of an application gateway. */ @@ -8761,7 +8751,7 @@ export interface NetworkVirtualApplianceConnection extends SubResource { /** Enable internet security. */ enableInternetSecurity?: boolean; /** The Routing Configuration indicating the associated and propagated route tables on this connection. */ - routingConfiguration?: RoutingConfigurationNfv; + routingConfiguration?: RoutingConfiguration; } /** Virtual Appliance Site resource. */ @@ -10202,6 +10192,8 @@ export interface NetworkVirtualAppliance extends Resource { readonly virtualApplianceNics?: VirtualApplianceNicProperties[]; /** Details required for Additional Network Interface. */ additionalNics?: VirtualApplianceAdditionalNicProperties[]; + /** List of Resource Uri of Public IPs for Internet Ingress Scenario. */ + internetIngressPublicIps?: InternetIngressPublicIpsProperties[]; /** * List of references to VirtualApplianceSite. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -11634,6 +11626,11 @@ export interface AzureFirewallsPacketCaptureHeaders { location?: string; } +/** Defines headers for NetworkManagementClient_deleteBastionShareableLinkByToken operation. */ +export interface NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders { + location?: string; +} + /** Defines headers for PublicIPAddresses_delete operation. */ export interface PublicIPAddressesDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -11646,6 +11643,12 @@ export interface PublicIPAddressesDdosProtectionStatusHeaders { location?: string; } +/** Defines headers for DdosCustomPolicies_delete operation. */ +export interface DdosCustomPoliciesDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + /** Defines headers for DdosProtectionPlans_delete operation. */ export interface DdosProtectionPlansDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -12017,13 +12020,13 @@ export type IPAllocationMethod = string; /** Known values of {@link ApplicationGatewayProtocol} that the service accepts. */ export enum KnownApplicationGatewayProtocol { - /** Http */ + /** Supported for httpListeners and backendHttpSettingsCollection properties. */ Http = "Http", - /** Https */ + /** Supported for httpListeners and backendHttpSettingsCollection properties. */ Https = "Https", - /** Tcp */ + /** Supported for listeners and backendSettingsCollection properties. */ Tcp = "Tcp", - /** Tls */ + /** Supported for listeners and backendSettingsCollection properties. */ Tls = "Tls" } @@ -12032,10 +12035,10 @@ export enum KnownApplicationGatewayProtocol { * {@link KnownApplicationGatewayProtocol} can be used interchangeably with ApplicationGatewayProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Http** \ - * **Https** \ - * **Tcp** \ - * **Tls** + * **Http**: Supported for httpListeners and backendHttpSettingsCollection properties. \ + * **Https**: Supported for httpListeners and backendHttpSettingsCollection properties. \ + * **Tcp**: Supported for listeners and backendSettingsCollection properties. \ + * **Tls**: Supported for listeners and backendSettingsCollection properties. */ export type ApplicationGatewayProtocol = string; @@ -12983,7 +12986,9 @@ export enum KnownBastionHostSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", + /** Developer */ + Developer = "Developer" } /** @@ -12992,7 +12997,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 +13512,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 */ @@ -14933,7 +14963,9 @@ export enum KnownVirtualNetworkGatewaySkuName { /** ErGw2AZ */ ErGw2AZ = "ErGw2AZ", /** ErGw3AZ */ - ErGw3AZ = "ErGw3AZ" + ErGw3AZ = "ErGw3AZ", + /** ErGwScale */ + ErGwScale = "ErGwScale" } /** @@ -14957,7 +14989,8 @@ export enum KnownVirtualNetworkGatewaySkuName { * **VpnGw5AZ** \ * **ErGw1AZ** \ * **ErGw2AZ** \ - * **ErGw3AZ** + * **ErGw3AZ** \ + * **ErGwScale** */ export type VirtualNetworkGatewaySkuName = string; @@ -14996,7 +15029,9 @@ export enum KnownVirtualNetworkGatewaySkuTier { /** ErGw2AZ */ ErGw2AZ = "ErGw2AZ", /** ErGw3AZ */ - ErGw3AZ = "ErGw3AZ" + ErGw3AZ = "ErGw3AZ", + /** ErGwScale */ + ErGwScale = "ErGwScale" } /** @@ -15020,7 +15055,8 @@ export enum KnownVirtualNetworkGatewaySkuTier { * **VpnGw5AZ** \ * **ErGw1AZ** \ * **ErGw2AZ** \ - * **ErGw3AZ** + * **ErGw3AZ** \ + * **ErGwScale** */ export type VirtualNetworkGatewaySkuTier = string; @@ -16108,7 +16144,9 @@ export enum KnownWebApplicationFirewallAction { /** Block */ Block = "Block", /** Log */ - Log = "Log" + Log = "Log", + /** JSChallenge */ + JSChallenge = "JSChallenge" } /** @@ -16118,7 +16156,8 @@ export enum KnownWebApplicationFirewallAction { * ### Known values supported by the service * **Allow** \ * **Block** \ - * **Log** + * **Log** \ + * **JSChallenge** */ export type WebApplicationFirewallAction = string; @@ -16245,7 +16284,9 @@ export enum KnownActionType { /** Block */ Block = "Block", /** Log */ - Log = "Log" + Log = "Log", + /** JSChallenge */ + JSChallenge = "JSChallenge" } /** @@ -16256,7 +16297,8 @@ export enum KnownActionType { * **AnomalyScoring** \ * **Allow** \ * **Block** \ - * **Log** + * **Log** \ + * **JSChallenge** */ export type ActionType = string; @@ -16530,7 +16572,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 +17165,18 @@ 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; +} + +/** Contains response data for the deleteBastionShareableLinkByToken operation. */ +export type DeleteBastionShareableLinkByTokenResponse = NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders; + /** 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..392de9ab2317 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: { @@ -7540,6 +7566,21 @@ export const VirtualApplianceAdditionalNicProperties: coreClient.CompositeMapper } }; +export const InternetIngressPublicIpsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetIngressPublicIpsProperties", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + export const DelegationProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15502,90 +15543,6 @@ export const ExpressRouteConnectionList: coreClient.CompositeMapper = { } }; -export const RoutingConfigurationNfv: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingConfigurationNfv", - modelProperties: { - associatedRouteTable: { - serializedName: "associatedRouteTable", - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - }, - propagatedRouteTables: { - serializedName: "propagatedRouteTables", - type: { - name: "Composite", - className: "PropagatedRouteTableNfv" - } - }, - inboundRouteMap: { - serializedName: "inboundRouteMap", - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - }, - outboundRouteMap: { - serializedName: "outboundRouteMap", - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - } - } - } -}; - -export const RoutingConfigurationNfvSubResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource", - modelProperties: { - resourceUri: { - serializedName: "resourceUri", - type: { - name: "String" - } - } - } - } -}; - -export const PropagatedRouteTableNfv: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PropagatedRouteTableNfv", - modelProperties: { - labels: { - serializedName: "labels", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ids: { - serializedName: "ids", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - } - } - } - } - } -}; - export const NetworkVirtualApplianceConnectionList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -19343,6 +19300,17 @@ export const ApplicationGatewayListener: coreClient.CompositeMapper = { type: { name: "String" } + }, + hostNames: { + serializedName: "properties.hostNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -23549,7 +23517,7 @@ export const NetworkVirtualApplianceConnection: coreClient.CompositeMapper = { serializedName: "properties.routingConfiguration", type: { name: "Composite", - className: "RoutingConfigurationNfv" + className: "RoutingConfiguration" } } } @@ -27270,6 +27238,18 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { } } }, + internetIngressPublicIps: { + serializedName: "properties.internetIngressPublicIps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InternetIngressPublicIpsProperties" + } + } + } + }, virtualApplianceSites: { serializedName: "properties.virtualApplianceSites", readOnly: true, @@ -30956,6 +30936,22 @@ export const AzureFirewallsPacketCaptureHeaders: coreClient.CompositeMapper = { } }; +export const NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: + "NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const PublicIPAddressesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -30986,6 +30982,21 @@ export const PublicIPAddressesDdosProtectionStatusHeaders: coreClient.CompositeM } }; +export const DdosCustomPoliciesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DdosCustomPoliciesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const DdosProtectionPlansDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", 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..2f593604fb5c 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -307,6 +307,9 @@ import { DisconnectActiveSessionsOptionalParams, DisconnectActiveSessionsResponse, DeleteBastionShareableLinkOptionalParams, + BastionShareableLinkTokenListRequest, + DeleteBastionShareableLinkByTokenOptionalParams, + DeleteBastionShareableLinkByTokenResponse, CheckDnsNameAvailabilityOptionalParams, CheckDnsNameAvailabilityResponse, ExpressRouteProviderPortOptionalParams, @@ -379,7 +382,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/32.2.1`; + const packageDetails = `azsdk-js-arm-network/33.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -650,7 +653,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 +747,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 +1018,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 +1092,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 +1158,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 +1176,107 @@ 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< + SimplePollerLike< + OperationState, + DeleteBastionShareableLinkByTokenResponse + > + > { + 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< + DeleteBastionShareableLinkByTokenResponse, + OperationState + >(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 +1614,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 +1636,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 +1889,43 @@ 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: { + headersMapper: + Mappers.NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders + }, + 201: { + headersMapper: + Mappers.NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders + }, + 202: { + headersMapper: + Mappers.NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders + }, + 204: { + headersMapper: + Mappers.NetworkManagementClientDeleteBastionShareableLinkByTokenHeaders + }, + 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"