diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 99371afd82ed..75eb32c284a9 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1303,6 +1303,10 @@ packages: resolution: {integrity: sha512-6QmZ9aGdiz+9u7jPhQEg2zY/Tn8hwJrmjAMuHlWpnqE2kHvSDnKCE3BiNLZsENfi/IeLKBuW0QIdZ5UhbSSA0A==} engines: {node: '>=14.0.0'} + '@azure/arm-network@33.4.0': + resolution: {integrity: sha512-UmYG6dQ7p4MVHh/9UvVQDLlvMsA252EJKJBBeG1KkYsiKwwE1xxFbV5Mk0kt8lFe4h26ElnXXTe2B++u00ukoA==} + engines: {node: '>=18.0.0'} + '@azure/arm-recoveryservices@5.4.0': resolution: {integrity: sha512-+BsxHcFzJH28hMAsyI+bbAYVw79d12WagttmFvoidXXq76/5KpNCA2NWTGSV0AlJ+QaCF6+7I7P91PRYnJsr+w==} engines: {node: '>=14.0.0'} @@ -3111,7 +3115,7 @@ packages: version: 0.0.0 '@rush-temp/arm-mongocluster@file:projects/arm-mongocluster.tgz': - resolution: {integrity: sha512-uHXY8aiy59HNsKOlADr+OcpDG8TihgYdOW4ZXH1ap6Lc+nlMFoMVFYFbM2O0w40S2Me9pQaUbHOe+/94MCjoWQ==, tarball: file:projects/arm-mongocluster.tgz} + resolution: {integrity: sha512-lfEX/MNy4BjwajKfv7V7bZWKy8BWVMvd2mKUtPJ8VSFf1D03lrtMyavP1tLr9bQlnwyLzpRdYNONVVqGCrA+uA==, tarball: file:projects/arm-mongocluster.tgz} version: 0.0.0 '@rush-temp/arm-monitor-profile-2020-09-01-hybrid@file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz': @@ -3143,7 +3147,7 @@ packages: version: 0.0.0 '@rush-temp/arm-network-1@file:projects/arm-network-1.tgz': - resolution: {integrity: sha512-cVAhqcWQjDSupwUm6IMgEy+sUMRBkJz2v4JtXuAznwXp6lVCf6ZsVAX3mYQ5k3nTnJ4uLGShF8q4SRl5WUE0tQ==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-gEfTX82tHzQaJJYS0byxWzSvTX8QsQxYwYp7Iq33gIJpY79jCjCrWpQI9UzuuC9JNJg9bWphU/3RLU8PxhlqDw==, tarball: file:projects/arm-network-1.tgz} version: 0.0.0 '@rush-temp/arm-network-profile-2020-09-01-hybrid@file:projects/arm-network-profile-2020-09-01-hybrid.tgz': @@ -3599,7 +3603,7 @@ packages: version: 0.0.0 '@rush-temp/container-registry@file:projects/container-registry.tgz': - resolution: {integrity: sha512-AHxtCyVOmgFDmFKYr3jgh/D9GLdlJJaGeuvAhCxciN8PpRLPF/CUjp+eNzZeAd+h352yM1xYh/luQzCHcsLKtw==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-TiZ/Z7Ox5LgTvY4HsWVTLaLv+P137p9P473qmw1lqDcrffv+rrg8tQhLFYdK/xc5I+rypBVT75msDDqwPrRBGA==, tarball: file:projects/container-registry.tgz} version: 0.0.0 '@rush-temp/core-amqp@file:projects/core-amqp.tgz': @@ -3819,7 +3823,7 @@ packages: version: 0.0.0 '@rush-temp/monitor-opentelemetry-exporter@file:projects/monitor-opentelemetry-exporter.tgz': - resolution: {integrity: sha512-5qP0zZ0UdyW9xi3gsXl0Ar3Lk75CnP51irHf/jsG21TLZYA39yv6xYQDCFGw+O8DN7MtjzQ4xyDHhsnIde+VQg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-xsjW4M06eNJllSD3XxEBc9of8nqfjVGDaQKZX8mXhUi2sAbl3/yaz81QZr5z2E/LDopf+jEyybFZXmb86CGj5A==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} version: 0.0.0 '@rush-temp/monitor-opentelemetry@file:projects/monitor-opentelemetry.tgz': @@ -6663,6 +6667,11 @@ packages: mlly@1.7.3: resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==} + mocha@10.8.2: + resolution: {integrity: sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==} + engines: {node: '>= 14.0.0'} + hasBin: true + mocha@11.0.2: resolution: {integrity: sha512-IpLqigxxL825rKCce2hlJL6qiUNgxbjhpS79SA6NN+Quzrf6wzLezwk4LcfIJp/OUD5BVWTM/nCYc3oQ5uqmfw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -8504,6 +8513,18 @@ snapshots: transitivePeerDependencies: - supports-color + '@azure/arm-network@33.4.0': + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.9.0 + '@azure/core-client': 1.9.2 + '@azure/core-lro': 2.7.2 + '@azure/core-paging': 1.6.2 + '@azure/core-rest-pipeline': 1.18.1 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + '@azure/arm-recoveryservices@5.4.0': dependencies: '@azure/abort-controller': 1.1.0 @@ -13538,6 +13559,7 @@ snapshots: '@rush-temp/arm-mongocluster@file:projects/arm-mongocluster.tgz(msw@2.6.8(@types/node@20.17.10)(typescript@5.7.2))(vite@5.4.11(@types/node@20.17.10))': dependencies: + '@azure/arm-network': 33.4.0 '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.10))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) @@ -13723,14 +13745,13 @@ snapshots: dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 '@types/mocha': 10.0.10 '@types/node': 18.19.68 chai: 4.5.0 dotenv: 16.4.7 - mocha: 11.0.2 + mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 @@ -22942,6 +22963,29 @@ snapshots: pkg-types: 1.2.1 ufo: 1.5.4 + mocha@10.8.2: + dependencies: + ansi-colors: 4.1.3 + browser-stdout: 1.3.1 + chokidar: 3.6.0 + debug: 4.4.0(supports-color@8.1.1) + diff: 5.2.0 + escape-string-regexp: 4.0.0 + find-up: 5.0.0 + glob: 8.1.0 + he: 1.2.0 + js-yaml: 4.1.0 + log-symbols: 4.1.0 + minimatch: 5.1.6 + ms: 2.1.3 + serialize-javascript: 6.0.2 + strip-json-comments: 3.1.1 + supports-color: 8.1.1 + workerpool: 6.5.1 + yargs: 16.2.0 + yargs-parser: 20.2.9 + yargs-unparser: 2.0.0 + mocha@11.0.2: dependencies: ansi-colors: 4.1.3 diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index cef7bcbe8c71..2c8e39bfe88e 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,168 @@ # Release History - -## 33.4.1 (Unreleased) - + +## 33.5.0 (2024-12-13) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group IpamPools + - Added operation group ReachabilityAnalysisIntents + - Added operation group ReachabilityAnalysisRuns + - Added operation group StaticCidrs + - Added operation group VerifierWorkspaces + - Added operation LoadBalancerLoadBalancingRules.beginHealth + - Added operation LoadBalancerLoadBalancingRules.beginHealthAndWait + - Added operation VirtualNetworkGateways.beginGetFailoverAllTestDetails + - Added operation VirtualNetworkGateways.beginGetFailoverAllTestDetailsAndWait + - Added operation VirtualNetworkGateways.beginGetFailoverSingleTestDetails + - Added operation VirtualNetworkGateways.beginGetFailoverSingleTestDetailsAndWait + - Added operation VirtualNetworkGateways.beginStartExpressRouteSiteFailoverSimulation + - Added operation VirtualNetworkGateways.beginStartExpressRouteSiteFailoverSimulationAndWait + - Added operation VirtualNetworkGateways.beginStopExpressRouteSiteFailoverSimulation + - Added operation VirtualNetworkGateways.beginStopExpressRouteSiteFailoverSimulationAndWait + - Added Interface CommonErrorAdditionalInfo + - Added Interface CommonErrorDetail + - Added Interface CommonErrorResponse + - Added Interface CommonProxyResource + - Added Interface CommonResource + - Added Interface CommonTrackedResource + - Added Interface ExpressRouteFailoverCircuitResourceDetails + - Added Interface ExpressRouteFailoverConnectionResourceDetails + - Added Interface ExpressRouteFailoverRedundantRoute + - Added Interface ExpressRouteFailoverSingleTestDetails + - Added Interface ExpressRouteFailoverStopApiParameters + - Added Interface ExpressRouteFailoverTestDetails + - Added Interface FailoverConnectionDetails + - Added Interface IntentContent + - Added Interface IpamPool + - Added Interface IpamPoolList + - Added Interface IpamPoolPrefixAllocation + - Added Interface IpamPoolProperties + - Added Interface IpamPoolsCreateHeaders + - Added Interface IpamPoolsCreateOptionalParams + - Added Interface IpamPoolsDeleteHeaders + - Added Interface IpamPoolsDeleteOptionalParams + - Added Interface IpamPoolsGetOptionalParams + - Added Interface IpamPoolsGetPoolUsageOptionalParams + - Added Interface IpamPoolsListAssociatedResourcesNextOptionalParams + - Added Interface IpamPoolsListAssociatedResourcesOptionalParams + - Added Interface IpamPoolsListNextOptionalParams + - Added Interface IpamPoolsListOptionalParams + - Added Interface IpamPoolsUpdateOptionalParams + - Added Interface IpamPoolUpdate + - Added Interface IpamPoolUpdateProperties + - Added Interface IPTraffic + - Added Interface LoadBalancerHealthPerRule + - Added Interface LoadBalancerHealthPerRulePerBackendAddress + - Added Interface LoadBalancerLoadBalancingRulesHealthHeaders + - Added Interface LoadBalancerLoadBalancingRulesHealthOptionalParams + - Added Interface PoolAssociation + - Added Interface PoolAssociationList + - Added Interface PoolUsage + - Added Interface ReachabilityAnalysisIntent + - Added Interface ReachabilityAnalysisIntentListResult + - Added Interface ReachabilityAnalysisIntentProperties + - Added Interface ReachabilityAnalysisIntentsCreateOptionalParams + - Added Interface ReachabilityAnalysisIntentsDeleteOptionalParams + - Added Interface ReachabilityAnalysisIntentsGetOptionalParams + - Added Interface ReachabilityAnalysisIntentsListNextOptionalParams + - Added Interface ReachabilityAnalysisIntentsListOptionalParams + - Added Interface ReachabilityAnalysisRun + - Added Interface ReachabilityAnalysisRunListResult + - Added Interface ReachabilityAnalysisRunProperties + - Added Interface ReachabilityAnalysisRunsCreateOptionalParams + - Added Interface ReachabilityAnalysisRunsDeleteHeaders + - Added Interface ReachabilityAnalysisRunsDeleteOptionalParams + - Added Interface ReachabilityAnalysisRunsGetOptionalParams + - Added Interface ReachabilityAnalysisRunsListNextOptionalParams + - Added Interface ReachabilityAnalysisRunsListOptionalParams + - Added Interface ResourceBasics + - Added Interface StaticCidr + - Added Interface StaticCidrList + - Added Interface StaticCidrProperties + - Added Interface StaticCidrsCreateOptionalParams + - Added Interface StaticCidrsDeleteHeaders + - Added Interface StaticCidrsDeleteOptionalParams + - Added Interface StaticCidrsGetOptionalParams + - Added Interface StaticCidrsListNextOptionalParams + - Added Interface StaticCidrsListOptionalParams + - Added Interface VerifierWorkspace + - Added Interface VerifierWorkspaceListResult + - Added Interface VerifierWorkspaceProperties + - Added Interface VerifierWorkspacesCreateOptionalParams + - Added Interface VerifierWorkspacesDeleteHeaders + - Added Interface VerifierWorkspacesDeleteOptionalParams + - Added Interface VerifierWorkspacesGetOptionalParams + - Added Interface VerifierWorkspacesListNextOptionalParams + - Added Interface VerifierWorkspacesListOptionalParams + - Added Interface VerifierWorkspacesUpdateOptionalParams + - Added Interface VerifierWorkspaceUpdate + - Added Interface VerifierWorkspaceUpdateProperties + - Added Interface VirtualNetworkGatewaysGetFailoverAllTestDetailsHeaders + - Added Interface VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams + - Added Interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsHeaders + - Added Interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams + - Added Interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationHeaders + - Added Interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams + - Added Interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationHeaders + - Added Interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams + - Added Type Alias AddressSpaceAggregationOption + - Added Type Alias FailoverConnectionStatus + - Added Type Alias FailoverTestStatus + - Added Type Alias FailoverTestStatusForSingleTest + - Added Type Alias FailoverTestType + - Added Type Alias IpamPoolsCreateResponse + - Added Type Alias IpamPoolsDeleteResponse + - Added Type Alias IpamPoolsGetPoolUsageResponse + - Added Type Alias IpamPoolsGetResponse + - Added Type Alias IpamPoolsListAssociatedResourcesNextResponse + - Added Type Alias IpamPoolsListAssociatedResourcesResponse + - Added Type Alias IpamPoolsListNextResponse + - Added Type Alias IpamPoolsListResponse + - Added Type Alias IpamPoolsUpdateResponse + - Added Type Alias IpType + - Added Type Alias LoadBalancerLoadBalancingRulesHealthResponse + - Added Type Alias NetworkProtocol + - Added Type Alias ReachabilityAnalysisIntentsCreateResponse + - Added Type Alias ReachabilityAnalysisIntentsGetResponse + - Added Type Alias ReachabilityAnalysisIntentsListNextResponse + - Added Type Alias ReachabilityAnalysisIntentsListResponse + - Added Type Alias ReachabilityAnalysisRunsCreateResponse + - Added Type Alias ReachabilityAnalysisRunsDeleteResponse + - Added Type Alias ReachabilityAnalysisRunsGetResponse + - Added Type Alias ReachabilityAnalysisRunsListNextResponse + - Added Type Alias ReachabilityAnalysisRunsListResponse + - Added Type Alias StaticCidrsCreateResponse + - Added Type Alias StaticCidrsDeleteResponse + - Added Type Alias StaticCidrsGetResponse + - Added Type Alias StaticCidrsListNextResponse + - Added Type Alias StaticCidrsListResponse + - Added Type Alias VerifierWorkspacesCreateResponse + - Added Type Alias VerifierWorkspacesDeleteResponse + - Added Type Alias VerifierWorkspacesGetResponse + - Added Type Alias VerifierWorkspacesListNextResponse + - Added Type Alias VerifierWorkspacesListResponse + - Added Type Alias VerifierWorkspacesUpdateResponse + - Added Type Alias VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse + - Added Type Alias VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse + - Added Type Alias VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse + - Added Type Alias VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse + - Interface AddressSpace has a new optional parameter ipamPoolPrefixAllocations + - Interface BastionHost has a new optional parameter enablePrivateOnlyBastion + - Interface NetworkInterface has a new optional parameter defaultOutboundConnectivityEnabled + - Interface SecurityAdminConfiguration has a new optional parameter networkGroupAddressSpaceAggregationOption + - Interface Subnet has a new optional parameter ipamPoolPrefixAllocations + - Added Enum KnownAddressSpaceAggregationOption + - Added Enum KnownFailoverConnectionStatus + - Added Enum KnownFailoverTestStatus + - Added Enum KnownFailoverTestStatusForSingleTest + - Added Enum KnownFailoverTestType + - Added Enum KnownIpType + - Added Enum KnownNetworkProtocol + - Enum KnownAddressPrefixType has a new value NetworkGroup + - Enum KnownProvisioningState has a new value Canceled + - Enum KnownProvisioningState has a new value Creating + + ## 33.4.0 (2024-09-13) ### Features Added diff --git a/sdk/network/arm-network/README.md b/sdk/network/arm-network/README.md index dbafed899284..d8ebabe59538 100644 --- a/sdk/network/arm-network/README.md +++ b/sdk/network/arm-network/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure NetworkManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 3f7682334e50..90eff147e474 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "63aca1b0be7893ffe04891b25d1b4a00d7a22563", + "commit": "61d066ef711238510f63503ad14dd52929a099ca", "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.27 --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.13", - "use": "@autorest/typescript@6.0.27" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "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 77e32236f4b6..d3b3c128252e 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,16 +3,16 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "33.4.1", + "version": "33.5.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-client": "^1.7.0", "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -28,19 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-network.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.1.0", - "@azure-tools/test-recorder": "^3.0.0", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", - "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", "tsx": "^4.7.1", - "typescript": "~5.6.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -68,28 +68,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -102,13 +102,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 de3bdcc391d8..bbd8b57a1c36 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -113,8 +113,12 @@ export type AddressPrefixType = string; // @public export interface AddressSpace { addressPrefixes?: string[]; + ipamPoolPrefixAllocations?: IpamPoolPrefixAllocation[]; } +// @public +export type AddressSpaceAggregationOption = string; + // @public export interface AdminRule extends BaseAdminRule { access?: SecurityConfigurationRuleAccess; @@ -2009,6 +2013,7 @@ export interface BastionHost extends Resource { enableFileCopy?: boolean; enableIpConnect?: boolean; enableKerberos?: boolean; + enablePrivateOnlyBastion?: boolean; enableSessionRecording?: boolean; enableShareableLink?: boolean; enableTunneling?: boolean; @@ -2284,6 +2289,46 @@ export interface CloudErrorBody { // @public export type CommissionedState = string; +// @public +export interface CommonErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface CommonErrorDetail { + readonly additionalInfo?: CommonErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: CommonErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface CommonErrorResponse { + error?: CommonErrorDetail; +} + +// @public +export interface CommonProxyResource extends CommonResource { +} + +// @public +export interface CommonResource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface CommonTrackedResource extends CommonResource { + location: string; + tags?: { + [propertyName: string]: string; + }; +} + // @public (undocumented) export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties { readonly clientId?: string; @@ -4300,6 +4345,59 @@ export interface ExpressRouteCrossConnectionsUpdateTagsOptionalParams extends co // @public export type ExpressRouteCrossConnectionsUpdateTagsResponse = ExpressRouteCrossConnection; +// @public (undocumented) +export interface ExpressRouteFailoverCircuitResourceDetails { + connectionName?: string; + name?: string; + nrpResourceUri?: string; +} + +// @public (undocumented) +export interface ExpressRouteFailoverConnectionResourceDetails { + lastUpdatedTime?: string; + name?: string; + nrpResourceUri?: string; + status?: FailoverConnectionStatus; +} + +// @public (undocumented) +export interface ExpressRouteFailoverRedundantRoute { + peeringLocations?: string[]; + routes?: string[]; +} + +// @public +export interface ExpressRouteFailoverSingleTestDetails { + endTimeUtc?: string; + failoverConnectionDetails?: FailoverConnectionDetails[]; + nonRedundantRoutes?: string[]; + peeringLocation?: string; + redundantRoutes?: ExpressRouteFailoverRedundantRoute[]; + startTimeUtc?: string; + status?: FailoverTestStatusForSingleTest; + wasSimulationSuccessful?: boolean; +} + +// @public +export interface ExpressRouteFailoverStopApiParameters { + details?: FailoverConnectionDetails[]; + peeringLocation?: string; + wasSimulationSuccessful?: boolean; +} + +// @public +export interface ExpressRouteFailoverTestDetails { + circuits?: ExpressRouteFailoverCircuitResourceDetails[]; + connections?: ExpressRouteFailoverConnectionResourceDetails[]; + endTime?: string; + issues?: string[]; + peeringLocation?: string; + startTime?: string; + status?: FailoverTestStatus; + testGuid?: string; + testType?: FailoverTestType; +} + // @public export interface ExpressRouteGateway extends Resource { allowNonVirtualWanTraffic?: boolean; @@ -4776,6 +4874,25 @@ export interface ExtendedLocation { // @public export type ExtendedLocationTypes = string; +// @public (undocumented) +export interface FailoverConnectionDetails { + failoverConnectionName?: string; + failoverLocation?: string; + isVerified?: boolean; +} + +// @public +export type FailoverConnectionStatus = string; + +// @public +export type FailoverTestStatus = string; + +// @public +export type FailoverTestStatusForSingleTest = string; + +// @public +export type FailoverTestType = string; + // @public export interface FilterItems { field?: string; @@ -4975,7 +5092,7 @@ export interface FirewallPolicyHttpHeaderToInsert { export type FirewallPolicyIdpsQuerySortOrder = string; // @public -export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4; +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4 | 5; // @public export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; @@ -5899,6 +6016,15 @@ export type InboundSecurityRulesProtocol = string; // @public export type InboundSecurityRuleType = string; +// @public +export interface IntentContent { + // (undocumented) + description?: string; + destinationResourceId: string; + ipTraffic: IPTraffic; + sourceResourceId: string; +} + // @public export interface InternetIngressPublicIpsProperties { id?: string; @@ -6013,6 +6139,149 @@ export type IpAllocationsUpdateTagsResponse = IpAllocation; // @public export type IpAllocationType = string; +// @public +export interface IpamPool extends CommonTrackedResource { + properties: IpamPoolProperties; +} + +// @public +export interface IpamPoolList { + nextLink?: string; + // (undocumented) + value?: IpamPool[]; +} + +// @public +export interface IpamPoolPrefixAllocation { + readonly allocatedAddressPrefixes?: string[]; + id?: string; + numberOfIpAddresses?: string; +} + +// @public +export interface IpamPoolProperties { + addressPrefixes: string[]; + // (undocumented) + description?: string; + displayName?: string; + readonly ipAddressType?: IpType[]; + parentPoolName?: string; + provisioningState?: ProvisioningState; +} + +// @public +export interface IpamPools { + beginCreate(resourceGroupName: string, networkManagerName: string, poolName: string, body: IpamPool, options?: IpamPoolsCreateOptionalParams): Promise, IpamPoolsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkManagerName: string, poolName: string, body: IpamPool, options?: IpamPoolsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsDeleteOptionalParams): Promise, IpamPoolsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsDeleteOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsGetOptionalParams): Promise; + getPoolUsage(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsGetPoolUsageOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: IpamPoolsListOptionalParams): PagedAsyncIterableIterator; + listAssociatedResources(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, networkManagerName: string, poolName: string, options?: IpamPoolsUpdateOptionalParams): Promise; +} + +// @public +export interface IpamPoolsCreateHeaders { + // (undocumented) + azureAsyncOperation?: string; +} + +// @public +export interface IpamPoolsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IpamPoolsCreateResponse = IpamPool; + +// @public +export interface IpamPoolsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface IpamPoolsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IpamPoolsDeleteResponse = IpamPoolsDeleteHeaders; + +// @public +export interface IpamPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IpamPoolsGetPoolUsageOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpamPoolsGetPoolUsageResponse = PoolUsage; + +// @public +export type IpamPoolsGetResponse = IpamPool; + +// @public +export interface IpamPoolsListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpamPoolsListAssociatedResourcesNextResponse = PoolAssociationList; + +// @public +export interface IpamPoolsListAssociatedResourcesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpamPoolsListAssociatedResourcesResponse = PoolAssociationList; + +// @public +export interface IpamPoolsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpamPoolsListNextResponse = IpamPoolList; + +// @public +export interface IpamPoolsListOptionalParams extends coreClient.OperationOptions { + skip?: number; + skipToken?: string; + sortKey?: string; + sortValue?: string; + top?: number; +} + +// @public +export type IpamPoolsListResponse = IpamPoolList; + +// @public +export interface IpamPoolsUpdateOptionalParams extends coreClient.OperationOptions { + body?: IpamPoolUpdate; +} + +// @public +export type IpamPoolsUpdateResponse = IpamPool; + +// @public +export interface IpamPoolUpdate { + properties?: IpamPoolUpdateProperties; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface IpamPoolUpdateProperties { + // (undocumented) + description?: string; + displayName?: string; +} + // @public export interface IPConfiguration extends SubResource { readonly etag?: string; @@ -6163,6 +6432,19 @@ export interface IpTag { tag?: string; } +// @public +export interface IPTraffic { + destinationIps: string[]; + destinationPorts: string[]; + // (undocumented) + protocols: NetworkProtocol[]; + sourceIps: string[]; + sourcePorts: string[]; +} + +// @public +export type IpType = string; + // @public export interface Ipv6CircuitConnectionConfig { addressPrefix?: string; @@ -6208,9 +6490,16 @@ export enum KnownActionType { // @public export enum KnownAddressPrefixType { IPPrefix = "IPPrefix", + NetworkGroup = "NetworkGroup", ServiceTag = "ServiceTag" } +// @public +export enum KnownAddressSpaceAggregationOption { + Manual = "Manual", + None = "None" +} + // @public export enum KnownAdminRuleKind { Custom = "Custom", @@ -6860,6 +7149,45 @@ export enum KnownExtendedLocationTypes { EdgeZone = "EdgeZone" } +// @public +export enum KnownFailoverConnectionStatus { + Connected = "Connected", + Disconnected = "Disconnected" +} + +// @public +export enum KnownFailoverTestStatus { + Completed = "Completed", + Expired = "Expired", + Invalid = "Invalid", + NotStarted = "NotStarted", + Running = "Running", + StartFailed = "StartFailed", + Starting = "Starting", + StopFailed = "StopFailed", + Stopping = "Stopping" +} + +// @public +export enum KnownFailoverTestStatusForSingleTest { + Completed = "Completed", + Expired = "Expired", + Invalid = "Invalid", + NotStarted = "NotStarted", + Running = "Running", + StartFailed = "StartFailed", + Starting = "Starting", + StopFailed = "StopFailed", + Stopping = "Stopping" +} + +// @public +export enum KnownFailoverTestType { + All = "All", + MultiSiteFailover = "MultiSiteFailover", + SingleSiteFailover = "SingleSiteFailover" +} + // @public export enum KnownFirewallPolicyFilterRuleCollectionActionType { Allow = "Allow", @@ -7086,6 +7414,12 @@ export enum KnownIpsecIntegrity { SHA256 = "SHA256" } +// @public +export enum KnownIpType { + IPv4 = "IPv4", + IPv6 = "IPv6" +} + // @public export enum KnownIPVersion { IPv4 = "IPv4", @@ -7208,6 +7542,14 @@ export enum KnownNetworkOperationStatus { Succeeded = "Succeeded" } +// @public +export enum KnownNetworkProtocol { + Any = "Any", + Icmp = "ICMP", + TCP = "TCP", + UDP = "UDP" +} + // @public export enum KnownNextHopType { HyperNetGateway = "HyperNetGateway", @@ -7379,6 +7721,8 @@ export enum KnownProtocolType { // @public export enum KnownProvisioningState { + Canceled = "Canceled", + Creating = "Creating", Deleting = "Deleting", Failed = "Failed", Succeeded = "Succeeded", @@ -8185,6 +8529,21 @@ export interface LoadBalancerFrontendIPConfigurationsListOptionalParams extends // @public export type LoadBalancerFrontendIPConfigurationsListResponse = LoadBalancerFrontendIPConfigurationListResult; +// @public +export interface LoadBalancerHealthPerRule { + down?: number; + loadBalancerBackendAddresses?: LoadBalancerHealthPerRulePerBackendAddress[]; + up?: number; +} + +// @public +export interface LoadBalancerHealthPerRulePerBackendAddress { + ipAddress?: string; + networkInterfaceIPConfigurationId?: NetworkInterfaceIPConfiguration; + reason?: string; + state?: string; +} + // @public export interface LoadBalancerListResult { readonly nextLink?: string; @@ -8199,6 +8558,8 @@ export interface LoadBalancerLoadBalancingRuleListResult { // @public export interface LoadBalancerLoadBalancingRules { + beginHealth(groupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: LoadBalancerLoadBalancingRulesHealthOptionalParams): Promise, LoadBalancerLoadBalancingRulesHealthResponse>>; + beginHealthAndWait(groupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: LoadBalancerLoadBalancingRulesHealthOptionalParams): Promise; get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: LoadBalancerLoadBalancingRulesGetOptionalParams): Promise; list(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancerLoadBalancingRulesListOptionalParams): PagedAsyncIterableIterator; } @@ -8210,6 +8571,20 @@ export interface LoadBalancerLoadBalancingRulesGetOptionalParams extends coreCli // @public export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule; +// @public +export interface LoadBalancerLoadBalancingRulesHealthHeaders { + location?: string; +} + +// @public +export interface LoadBalancerLoadBalancingRulesHealthOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LoadBalancerLoadBalancingRulesHealthResponse = LoadBalancerHealthPerRule; + // @public export interface LoadBalancerLoadBalancingRulesListNextOptionalParams extends coreClient.OperationOptions { } @@ -8946,6 +9321,7 @@ export interface NetworkIntentPolicyConfiguration { export interface NetworkInterface extends Resource { auxiliaryMode?: NetworkInterfaceAuxiliaryMode; auxiliarySku?: NetworkInterfaceAuxiliarySku; + readonly defaultOutboundConnectivityEnabled?: boolean; disableTcpStateTracking?: boolean; dnsSettings?: NetworkInterfaceDnsSettings; readonly dscpConfiguration?: SubResource; @@ -9469,6 +9845,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) ipAllocations: IpAllocations; // (undocumented) + ipamPools: IpamPools; + // (undocumented) ipGroups: IpGroups; listActiveConnectivityConfigurations(resourceGroupName: string, networkManagerName: string, parameters: ActiveConfigurationParameter, options?: ListActiveConnectivityConfigurationsOptionalParams): Promise; listActiveSecurityAdminRules(resourceGroupName: string, networkManagerName: string, parameters: ActiveConfigurationParameter, options?: ListActiveSecurityAdminRulesOptionalParams): Promise; @@ -9545,6 +9923,10 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) publicIPPrefixes: PublicIPPrefixes; // (undocumented) + reachabilityAnalysisIntents: ReachabilityAnalysisIntents; + // (undocumented) + reachabilityAnalysisRuns: ReachabilityAnalysisRuns; + // (undocumented) resourceNavigationLinks: ResourceNavigationLinks; // (undocumented) routeFilterRules: RouteFilterRules; @@ -9587,6 +9969,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) serviceTags: ServiceTags; // (undocumented) + staticCidrs: StaticCidrs; + // (undocumented) staticMembers: StaticMembers; // (undocumented) subnets: Subnets; @@ -9598,6 +9982,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) usages: Usages; // (undocumented) + verifierWorkspaces: VerifierWorkspaces; + // (undocumented) vipSwap: VipSwap; // (undocumented) virtualApplianceSites: VirtualApplianceSites; @@ -10017,6 +10403,9 @@ export interface NetworkProfilesUpdateTagsOptionalParams extends coreClient.Oper // @public export type NetworkProfilesUpdateTagsResponse = NetworkProfile; +// @public +export type NetworkProtocol = string; + // @public export interface NetworkRule extends FirewallPolicyRule { destinationAddresses?: string[]; @@ -11159,19 +11548,53 @@ export interface PolicySettingsLogScrubbing { } // @public -export type PreferredIPVersion = string; +export interface PoolAssociation { + readonly addressPrefixes?: string[]; + readonly createdAt?: Date; + // (undocumented) + description?: string; + readonly numberOfReservedIPAddresses?: string; + poolId?: string; + readonly reservationExpiresAt?: Date; + readonly reservedPrefixes?: string[]; + resourceId: string; + readonly totalNumberOfIPAddresses?: string; +} // @public -export type PreferredRoutingGateway = string; +export interface PoolAssociationList { + nextLink?: string; + // (undocumented) + value?: PoolAssociation[]; +} // @public -export interface PrepareNetworkPoliciesRequest { - networkIntentPolicyConfigurations?: NetworkIntentPolicyConfiguration[]; - serviceName?: string; +export interface PoolUsage { + readonly addressPrefixes?: string[]; + readonly allocatedAddressPrefixes?: string[]; + readonly availableAddressPrefixes?: string[]; + readonly childPools?: ResourceBasics[]; + readonly numberOfAllocatedIPAddresses?: string; + readonly numberOfAvailableIPAddresses?: string; + readonly numberOfReservedIPAddresses?: string; + readonly reservedAddressPrefixes?: string[]; + readonly totalNumberOfIPAddresses?: string; } // @public -export interface PrivateDnsZoneConfig { +export type PreferredIPVersion = string; + +// @public +export type PreferredRoutingGateway = string; + +// @public +export interface PrepareNetworkPoliciesRequest { + networkIntentPolicyConfigurations?: NetworkIntentPolicyConfiguration[]; + serviceName?: string; +} + +// @public +export interface PrivateDnsZoneConfig { name?: string; privateDnsZoneId?: string; readonly recordSets?: RecordSet[]; @@ -12024,6 +12447,150 @@ export interface RadiusServer { radiusServerSecret?: string; } +// @public +export interface ReachabilityAnalysisIntent extends CommonProxyResource { + properties: ReachabilityAnalysisIntentProperties; +} + +// @public +export interface ReachabilityAnalysisIntentListResult { + nextLink?: string; + value?: ReachabilityAnalysisIntent[]; +} + +// @public +export interface ReachabilityAnalysisIntentProperties { + // (undocumented) + description?: string; + destinationResourceId: string; + ipTraffic: IPTraffic; + provisioningState?: ProvisioningState; + sourceResourceId: string; +} + +// @public +export interface ReachabilityAnalysisIntents { + create(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisIntentName: string, body: ReachabilityAnalysisIntent, options?: ReachabilityAnalysisIntentsCreateOptionalParams): Promise; + delete(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisIntentName: string, options?: ReachabilityAnalysisIntentsDeleteOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisIntentName: string, options?: ReachabilityAnalysisIntentsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: ReachabilityAnalysisIntentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ReachabilityAnalysisIntentsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisIntentsCreateResponse = ReachabilityAnalysisIntent; + +// @public +export interface ReachabilityAnalysisIntentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ReachabilityAnalysisIntentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisIntentsGetResponse = ReachabilityAnalysisIntent; + +// @public +export interface ReachabilityAnalysisIntentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisIntentsListNextResponse = ReachabilityAnalysisIntentListResult; + +// @public +export interface ReachabilityAnalysisIntentsListOptionalParams extends coreClient.OperationOptions { + skip?: number; + skipToken?: string; + sortKey?: string; + sortValue?: string; + top?: number; +} + +// @public +export type ReachabilityAnalysisIntentsListResponse = ReachabilityAnalysisIntentListResult; + +// @public +export interface ReachabilityAnalysisRun extends CommonProxyResource { + properties: ReachabilityAnalysisRunProperties; +} + +// @public +export interface ReachabilityAnalysisRunListResult { + nextLink?: string; + value?: ReachabilityAnalysisRun[]; +} + +// @public +export interface ReachabilityAnalysisRunProperties { + readonly analysisResult?: string; + // (undocumented) + description?: string; + readonly errorMessage?: string; + readonly intentContent?: IntentContent; + intentId: string; + provisioningState?: ProvisioningState; +} + +// @public +export interface ReachabilityAnalysisRuns { + beginDelete(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisRunName: string, options?: ReachabilityAnalysisRunsDeleteOptionalParams): Promise, ReachabilityAnalysisRunsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisRunName: string, options?: ReachabilityAnalysisRunsDeleteOptionalParams): Promise; + create(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisRunName: string, body: ReachabilityAnalysisRun, options?: ReachabilityAnalysisRunsCreateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, workspaceName: string, reachabilityAnalysisRunName: string, options?: ReachabilityAnalysisRunsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: ReachabilityAnalysisRunsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ReachabilityAnalysisRunsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisRunsCreateResponse = ReachabilityAnalysisRun; + +// @public +export interface ReachabilityAnalysisRunsDeleteHeaders { + location?: string; +} + +// @public +export interface ReachabilityAnalysisRunsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ReachabilityAnalysisRunsDeleteResponse = ReachabilityAnalysisRunsDeleteHeaders; + +// @public +export interface ReachabilityAnalysisRunsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisRunsGetResponse = ReachabilityAnalysisRun; + +// @public +export interface ReachabilityAnalysisRunsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReachabilityAnalysisRunsListNextResponse = ReachabilityAnalysisRunListResult; + +// @public +export interface ReachabilityAnalysisRunsListOptionalParams extends coreClient.OperationOptions { + skip?: number; + skipToken?: string; + sortKey?: string; + sortValue?: string; + top?: number; +} + +// @public +export type ReachabilityAnalysisRunsListResponse = ReachabilityAnalysisRunListResult; + // @public export interface RecordSet { fqdn?: string; @@ -12053,6 +12620,12 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceBasics { + addressPrefixes?: string[]; + resourceId?: string; +} + // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; @@ -12781,6 +13354,7 @@ export type ScrubbingRuleEntryState = string; export interface SecurityAdminConfiguration extends ChildResource { applyOnNetworkIntentPolicyBasedServices?: NetworkIntentPolicyBasedService[]; description?: string; + networkGroupAddressSpaceAggregationOption?: AddressSpaceAggregationOption; readonly provisioningState?: ProvisioningState; readonly resourceGuid?: string; readonly systemData?: SystemData; @@ -13590,6 +14164,86 @@ export interface Sku { // @public export type SlotType = "Production" | "Staging"; +// @public +export interface StaticCidr extends CommonProxyResource { + properties?: StaticCidrProperties; +} + +// @public +export interface StaticCidrList { + nextLink?: string; + // (undocumented) + value?: StaticCidr[]; +} + +// @public +export interface StaticCidrProperties { + addressPrefixes?: string[]; + // (undocumented) + description?: string; + numberOfIPAddressesToAllocate?: string; + provisioningState?: ProvisioningState; + readonly totalNumberOfIPAddresses?: string; +} + +// @public +export interface StaticCidrs { + beginDelete(resourceGroupName: string, networkManagerName: string, poolName: string, staticCidrName: string, options?: StaticCidrsDeleteOptionalParams): Promise, StaticCidrsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, poolName: string, staticCidrName: string, options?: StaticCidrsDeleteOptionalParams): Promise; + create(resourceGroupName: string, networkManagerName: string, poolName: string, staticCidrName: string, options?: StaticCidrsCreateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, poolName: string, staticCidrName: string, options?: StaticCidrsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, poolName: string, options?: StaticCidrsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StaticCidrsCreateOptionalParams extends coreClient.OperationOptions { + body?: StaticCidr; +} + +// @public +export type StaticCidrsCreateResponse = StaticCidr; + +// @public +export interface StaticCidrsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface StaticCidrsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type StaticCidrsDeleteResponse = StaticCidrsDeleteHeaders; + +// @public +export interface StaticCidrsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticCidrsGetResponse = StaticCidr; + +// @public +export interface StaticCidrsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticCidrsListNextResponse = StaticCidrList; + +// @public +export interface StaticCidrsListOptionalParams extends coreClient.OperationOptions { + skip?: number; + skipToken?: string; + sortKey?: string; + sortValue?: string; + top?: number; +} + +// @public +export type StaticCidrsListResponse = StaticCidrList; + // @public export interface StaticMember extends ChildResource { readonly provisioningState?: ProvisioningState; @@ -13668,6 +14322,7 @@ export interface Subnet extends SubResource { delegations?: Delegation[]; readonly etag?: string; ipAllocations?: SubResource[]; + ipamPoolPrefixAllocations?: IpamPoolPrefixAllocation[]; readonly ipConfigurationProfiles?: IPConfigurationProfile[]; readonly ipConfigurations?: IPConfiguration[]; name?: string; @@ -14027,6 +14682,103 @@ export interface VerificationIPFlowResult { ruleName?: string; } +// @public +export interface VerifierWorkspace extends CommonTrackedResource { + properties?: VerifierWorkspaceProperties; +} + +// @public +export interface VerifierWorkspaceListResult { + nextLink?: string; + value?: VerifierWorkspace[]; +} + +// @public +export interface VerifierWorkspaceProperties { + // (undocumented) + description?: string; + provisioningState?: ProvisioningState; +} + +// @public +export interface VerifierWorkspaces { + beginDelete(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: VerifierWorkspacesDeleteOptionalParams): Promise, VerifierWorkspacesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: VerifierWorkspacesDeleteOptionalParams): Promise; + create(resourceGroupName: string, networkManagerName: string, workspaceName: string, body: VerifierWorkspace, options?: VerifierWorkspacesCreateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: VerifierWorkspacesGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: VerifierWorkspacesListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, networkManagerName: string, workspaceName: string, options?: VerifierWorkspacesUpdateOptionalParams): Promise; +} + +// @public +export interface VerifierWorkspacesCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VerifierWorkspacesCreateResponse = VerifierWorkspace; + +// @public +export interface VerifierWorkspacesDeleteHeaders { + location?: string; +} + +// @public +export interface VerifierWorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VerifierWorkspacesDeleteResponse = VerifierWorkspacesDeleteHeaders; + +// @public +export interface VerifierWorkspacesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VerifierWorkspacesGetResponse = VerifierWorkspace; + +// @public +export interface VerifierWorkspacesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VerifierWorkspacesListNextResponse = VerifierWorkspaceListResult; + +// @public +export interface VerifierWorkspacesListOptionalParams extends coreClient.OperationOptions { + skip?: number; + skipToken?: string; + sortKey?: string; + sortValue?: string; + top?: number; +} + +// @public +export type VerifierWorkspacesListResponse = VerifierWorkspaceListResult; + +// @public +export interface VerifierWorkspacesUpdateOptionalParams extends coreClient.OperationOptions { + body?: VerifierWorkspaceUpdate; +} + +// @public +export type VerifierWorkspacesUpdateResponse = VerifierWorkspace; + +// @public +export interface VerifierWorkspaceUpdate { + properties?: VerifierWorkspaceUpdateProperties; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface VerifierWorkspaceUpdateProperties { + // (undocumented) + description?: string; +} + // @public export interface VipSwap { beginCreate(groupName: string, resourceName: string, parameters: SwapResource, options?: VipSwapCreateOptionalParams): Promise, void>>; @@ -14949,6 +15701,10 @@ export interface VirtualNetworkGateways { beginGetAdvertisedRoutesAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: VirtualNetworkGatewaysGetAdvertisedRoutesOptionalParams): Promise; beginGetBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysGetBgpPeerStatusOptionalParams): Promise, VirtualNetworkGatewaysGetBgpPeerStatusResponse>>; beginGetBgpPeerStatusAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysGetBgpPeerStatusOptionalParams): Promise; + beginGetFailoverAllTestDetails(resourceGroupName: string, virtualNetworkGatewayName: string, typeParam: string, fetchLatest: boolean, options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams): Promise, VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse>>; + beginGetFailoverAllTestDetailsAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, typeParam: string, fetchLatest: boolean, options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams): Promise; + beginGetFailoverSingleTestDetails(resourceGroupName: string, virtualNetworkGatewayName: string, peeringLocation: string, failoverTestId: string, options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams): Promise, VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse>>; + beginGetFailoverSingleTestDetailsAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, peeringLocation: string, failoverTestId: string, options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams): Promise; beginGetLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysGetLearnedRoutesOptionalParams): Promise, VirtualNetworkGatewaysGetLearnedRoutesResponse>>; beginGetLearnedRoutesAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysGetLearnedRoutesOptionalParams): Promise; beginGetVpnclientConnectionHealth(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysGetVpnclientConnectionHealthOptionalParams): Promise, VirtualNetworkGatewaysGetVpnclientConnectionHealthResponse>>; @@ -14963,8 +15719,12 @@ export interface VirtualNetworkGateways { beginResetVpnClientSharedKeyAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysResetVpnClientSharedKeyOptionalParams): Promise; beginSetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: VpnClientIPsecParameters, options?: VirtualNetworkGatewaysSetVpnclientIpsecParametersOptionalParams): Promise, VirtualNetworkGatewaysSetVpnclientIpsecParametersResponse>>; beginSetVpnclientIpsecParametersAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: VpnClientIPsecParameters, options?: VirtualNetworkGatewaysSetVpnclientIpsecParametersOptionalParams): Promise; + beginStartExpressRouteSiteFailoverSimulation(resourceGroupName: string, virtualNetworkGatewayName: string, peeringLocation: string, options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams): Promise, VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse>>; + beginStartExpressRouteSiteFailoverSimulationAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, peeringLocation: string, options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams): Promise; beginStartPacketCapture(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysStartPacketCaptureOptionalParams): Promise, VirtualNetworkGatewaysStartPacketCaptureResponse>>; beginStartPacketCaptureAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, options?: VirtualNetworkGatewaysStartPacketCaptureOptionalParams): Promise; + beginStopExpressRouteSiteFailoverSimulation(resourceGroupName: string, virtualNetworkGatewayName: string, stopParameters: ExpressRouteFailoverStopApiParameters, options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams): Promise, VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse>>; + beginStopExpressRouteSiteFailoverSimulationAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, stopParameters: ExpressRouteFailoverStopApiParameters, options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams): Promise; beginStopPacketCapture(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: VpnPacketCaptureStopParameters, options?: VirtualNetworkGatewaysStopPacketCaptureOptionalParams): Promise, VirtualNetworkGatewaysStopPacketCaptureResponse>>; beginStopPacketCaptureAndWait(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: VpnPacketCaptureStopParameters, options?: VirtualNetworkGatewaysStopPacketCaptureOptionalParams): Promise; beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: TagsObject, options?: VirtualNetworkGatewaysUpdateTagsOptionalParams): Promise, VirtualNetworkGatewaysUpdateTagsResponse>>; @@ -15038,6 +15798,36 @@ export interface VirtualNetworkGatewaysGetBgpPeerStatusOptionalParams extends co // @public export type VirtualNetworkGatewaysGetBgpPeerStatusResponse = BgpPeerStatusListResult; +// @public +export interface VirtualNetworkGatewaysGetFailoverAllTestDetailsHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse = ExpressRouteFailoverTestDetails[]; + +// @public +export interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse = ExpressRouteFailoverSingleTestDetails[]; + // @public export interface VirtualNetworkGatewaysGetLearnedRoutesOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -15149,6 +15939,23 @@ export interface VirtualNetworkGatewaysSetVpnclientIpsecParametersOptionalParams // @public export type VirtualNetworkGatewaysSetVpnclientIpsecParametersResponse = VpnClientIPsecParameters; +// @public +export interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse = { + body: string; +}; + // @public export interface VirtualNetworkGatewaysStartPacketCaptureOptionalParams extends coreClient.OperationOptions { parameters?: VpnPacketCaptureStartParameters; @@ -15161,6 +15968,23 @@ export type VirtualNetworkGatewaysStartPacketCaptureResponse = { body: string; }; +// @public +export interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse = { + body: string; +}; + // @public export interface VirtualNetworkGatewaysStopPacketCaptureOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/network/arm-network/sample.env b/sdk/network/arm-network/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/network/arm-network/sample.env +++ b/sdk/network/arm-network/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index eeb6e57501f9..12718478c1be 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -310,6 +310,19 @@ export interface NatGatewaySku { name?: NatGatewaySkuName; } +/** IpamPool prefix allocation reference. */ +export interface IpamPoolPrefixAllocation { + /** Number of IP addresses to allocate. */ + numberOfIpAddresses?: string; + /** + * List of assigned IP address prefixes in the IpamPool of the associated resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocatedAddressPrefixes?: string[]; + /** Resource id of the associated Azure IpamPool resource. */ + id?: string; +} + /** Gateway load balancer tunnel interface of a load balancer backend address pool. */ export interface GatewayLoadBalancerTunnelInterface { /** Port of gateway load balancer tunnel interface. */ @@ -1908,7 +1921,7 @@ export interface SingleQueryResult { mode?: FirewallPolicyIdpsSignatureMode; /** Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low */ severity?: FirewallPolicyIdpsSignatureSeverity; - /** Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound */ + /** Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound */ direction?: FirewallPolicyIdpsSignatureDirection; /** Describes the groups the signature belongs to */ group?: string; @@ -1962,6 +1975,261 @@ export interface SignaturesOverridesList { value?: SignaturesOverrides[]; } +/** List of IpamPool */ +export interface IpamPoolList { + value?: IpamPool[]; + /** The link used to get the next page of operations. */ + nextLink?: string; +} + +/** Properties of IpamPool resource properties which are specific to the Pool resource. */ +export interface IpamPoolProperties { + description?: string; + /** String representing a friendly name for the resource. */ + displayName?: string; + /** + * List of IP address type for the IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ipAddressType?: IpType[]; + /** String representing parent IpamPool resource name. If empty the IpamPool will be a root pool. */ + parentPoolName?: string; + /** List of IP address prefixes of the resource. */ + addressPrefixes: string[]; + /** Provisioning states of a resource. */ + provisioningState?: ProvisioningState; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface CommonResource { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The type of identity that last modified the resource. */ + lastModifiedAt?: Date; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface CommonErrorResponse { + /** The error object. */ + error?: CommonErrorDetail; +} + +/** The error detail. */ +export interface CommonErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: CommonErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: CommonErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface CommonErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** Represents the IpamPool update API request interface. */ +export interface IpamPoolUpdate { + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** Represents the IpamPool update properties. */ + properties?: IpamPoolUpdateProperties; +} + +/** Represents the IpamPool update properties. */ +export interface IpamPoolUpdateProperties { + description?: string; + /** String representing a friendly name for the resource. */ + displayName?: string; +} + +/** IpamPool usage information. */ +export interface PoolUsage { + /** + * List of IP address prefixes of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly addressPrefixes?: string[]; + /** + * List of IpamPool that are children of this IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly childPools?: ResourceBasics[]; + /** + * List of assigned IP address prefixes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocatedAddressPrefixes?: string[]; + /** + * List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reservedAddressPrefixes?: string[]; + /** + * List of available IP address prefixes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availableAddressPrefixes?: string[]; + /** + * Total number of IP addresses managed in the IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalNumberOfIPAddresses?: string; + /** + * Total number of assigned IP addresses in the IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfAllocatedIPAddresses?: string; + /** + * Total number of reserved IP addresses in the IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfReservedIPAddresses?: string; + /** + * Total number of available IP addresses in the IpamPool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfAvailableIPAddresses?: string; +} + +/** Representation of basic resource information. */ +export interface ResourceBasics { + /** ResourceId of the Azure resource. */ + resourceId?: string; + /** List of IP address prefixes of the resource. */ + addressPrefixes?: string[]; +} + +/** List of PoolAssociation */ +export interface PoolAssociationList { + value?: PoolAssociation[]; + /** The link used to get the next page of operations. */ + nextLink?: string; +} + +/** IpamPool association information. */ +export interface PoolAssociation { + /** Resource id of the associated Azure resource. */ + resourceId: string; + /** IpamPool id for which the resource is associated to. */ + poolId?: string; + description?: string; + /** + * List of assigned IP address prefixes in the IpamPool of the associated resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly addressPrefixes?: string[]; + /** + * List of reserved IP address prefixes in the IpamPool of the associated resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reservedPrefixes?: string[]; + /** + * Total number of assigned IP addresses of the association. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalNumberOfIPAddresses?: string; + /** + * Total number of reserved IP addresses of the association. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfReservedIPAddresses?: string; + /** + * Creation time of the association. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; + /** + * Expire time for IP addresses reserved. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reservationExpiresAt?: Date; +} + +/** List of StaticCidr */ +export interface StaticCidrList { + value?: StaticCidr[]; + /** The link used to get the next page of operations. */ + nextLink?: string; +} + +/** Properties of static CIDR resource. */ +export interface StaticCidrProperties { + description?: string; + /** Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space. */ + numberOfIPAddressesToAllocate?: string; + /** List of IP address prefixes of the resource. */ + addressPrefixes?: string[]; + /** + * Total number of IP addresses allocated for the static CIDR resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalNumberOfIPAddresses?: string; + /** Provisioning states of a resource. */ + provisioningState?: ProvisioningState; +} + /** Response for the ListIpAllocations API service call. */ export interface IpAllocationListResult { /** A list of IpAllocation resources. */ @@ -2115,6 +2383,28 @@ export interface InboundNatRulePortMapping { readonly backendPort?: number; } +/** The response for a Health API. */ +export interface LoadBalancerHealthPerRule { + /** Number of backend instances associated to the LB rule that are considered healthy. */ + up?: number; + /** Number of backend instances associated to the LB rule that are considered unhealthy. */ + down?: number; + /** Information about the health per rule of the backend addresses. */ + loadBalancerBackendAddresses?: LoadBalancerHealthPerRulePerBackendAddress[]; +} + +/** The information about health per rule per backend address. */ +export interface LoadBalancerHealthPerRulePerBackendAddress { + /** The IP address belonging to the backend address. */ + ipAddress?: string; + /** The id of the network interface ip configuration belonging to the backend address */ + networkInterfaceIPConfigurationId?: NetworkInterfaceIPConfiguration; + /** The current health of the backend instances that is associated to the LB rule. */ + state?: string; + /** The explanation of the State */ + reason?: string; +} + /** The request for a migrateToIpBased API. */ export interface MigrateLoadBalancerToIpBasedRequest { /** A list of pool names that should be migrated from Nic based to IP based pool */ @@ -2296,22 +2586,6 @@ export interface CrossTenantScopes { readonly subscriptions?: string[]; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The type of identity that last modified the resource. */ - lastModifiedAt?: Date; -} - /** Object for patch operations. */ export interface PatchObject { /** Resource tags. */ @@ -2589,6 +2863,52 @@ export interface StaticMemberListResult { nextLink?: string; } +/** A list of network manager routing configurations */ +export interface NetworkManagerRoutingConfigurationListResult { + /** Gets a page of routing configurations */ + value?: NetworkManagerRoutingConfiguration[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** Routing configuration rule collection list result. */ +export interface RoutingRuleCollectionListResult { + /** A list of network manager routing configuration rule collections */ + value?: RoutingRuleCollection[]; + /** Gets the URL to get the next set of results. */ + nextLink?: string; +} + +/** Network manager routing group item. */ +export interface NetworkManagerRoutingGroupItem { + /** Network manager group Id. */ + networkGroupId: string; +} + +/** Routing configuration rule list result. */ +export interface RoutingRuleListResult { + /** A list of routing rules. */ + value?: RoutingRule[]; + /** The URL to get the next set of results. */ + nextLink?: string; +} + +/** Route destination. */ +export interface RoutingRuleRouteDestination { + /** Destination type. */ + type: RoutingRuleDestinationType; + /** Destination address. */ + destinationAddress: string; +} + +/** Next hop. */ +export interface RoutingRuleNextHop { + /** Next hop type. */ + nextHopType: RoutingRuleNextHopType; + /** Next hop address. Only required if the next hop type is VirtualAppliance. */ + nextHopAddress?: string; +} + /** List of scope connections. */ export interface ScopeConnectionListResult { /** List of scope connections. */ @@ -2659,95 +2979,148 @@ export interface AddressPrefixItem { addressPrefixType?: AddressPrefixType; } -/** A list of network manager routing configurations */ -export interface NetworkManagerRoutingConfigurationListResult { - /** Gets a page of routing configurations */ - value?: NetworkManagerRoutingConfiguration[]; - /** Gets the URL to get the next page of results. */ +/** The ip configuration for a container network interface. */ +export interface ContainerNetworkInterfaceIpConfiguration { + /** The name of the resource. This name can be used to access the resource. */ + name?: string; + /** + * Sub Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The provisioning state of the container network interface IP configuration resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Response for ListNetworkProfiles API service call. */ +export interface NetworkProfileListResult { + /** A list of network profiles that exist in a resource group. */ + value?: NetworkProfile[]; + /** The URL to get the next set of results. */ nextLink?: string; } -/** Routing configuration rule collection list result. */ -export interface RoutingRuleCollectionListResult { - /** A list of network manager routing configuration rule collections */ - value?: RoutingRuleCollection[]; - /** Gets the URL to get the next set of results. */ +/** Response for ListNetworkSecurityGroups API service call. */ +export interface NetworkSecurityGroupListResult { + /** A list of NetworkSecurityGroup resources. */ + value?: NetworkSecurityGroup[]; + /** The URL to get the next set of results. */ nextLink?: string; } -/** Network manager routing group item. */ -export interface NetworkManagerRoutingGroupItem { - /** Network manager group Id. */ - networkGroupId: string; -} - -/** Routing configuration rule list result. */ -export interface RoutingRuleListResult { - /** A list of routing rules. */ - value?: RoutingRule[]; +/** Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group. */ +export interface SecurityRuleListResult { + /** The security rules in a network security group. */ + value?: SecurityRule[]; /** The URL to get the next set of results. */ nextLink?: string; } -/** Route destination. */ -export interface RoutingRuleRouteDestination { - /** Destination type. */ - type: RoutingRuleDestinationType; - /** Destination address. */ - destinationAddress: string; +/** A list of Reachability Analysis Intents. */ +export interface ReachabilityAnalysisIntentListResult { + /** Gets a page of Reachability Analysis Intents */ + value?: ReachabilityAnalysisIntent[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; } -/** Next hop. */ -export interface RoutingRuleNextHop { - /** Next hop type. */ - nextHopType: RoutingRuleNextHopType; - /** Next hop address. Only required if the next hop type is VirtualAppliance. */ - nextHopAddress?: string; +/** Represents the Reachability Analysis Intent properties. */ +export interface ReachabilityAnalysisIntentProperties { + /** Provisioning states of a resource. */ + provisioningState?: ProvisioningState; + description?: string; + /** Source resource id to verify the reachability path of. */ + sourceResourceId: string; + /** Destination resource id to verify the reachability path of. */ + destinationResourceId: string; + /** IP traffic information. */ + ipTraffic: IPTraffic; +} + +/** IP traffic information. */ +export interface IPTraffic { + /** List of source IP addresses of the traffic.. */ + sourceIps: string[]; + /** List of destination IP addresses of the traffic.. */ + destinationIps: string[]; + /** The source ports of the traffic. */ + sourcePorts: string[]; + /** The destination ports of the traffic. */ + destinationPorts: string[]; + protocols: NetworkProtocol[]; +} + +/** A list of Reachability Analysis Run */ +export interface ReachabilityAnalysisRunListResult { + /** Gets a page of Reachability Analysis Runs. */ + value?: ReachabilityAnalysisRun[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; } -/** The ip configuration for a container network interface. */ -export interface ContainerNetworkInterfaceIpConfiguration { - /** The name of the resource. This name can be used to access the resource. */ - name?: string; - /** - * Sub Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * A unique read-only string that changes whenever the resource is updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; +/** Represents the Reachability Analysis Run properties. */ +export interface ReachabilityAnalysisRunProperties { + description?: string; + /** Id of the intent resource to run analysis on. */ + intentId: string; /** - * The provisioning state of the container network interface IP configuration resource. + * Intent information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly intentContent?: IntentContent; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly analysisResult?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly errorMessage?: string; + /** Provisioning states of a resource. */ + provisioningState?: ProvisioningState; } -/** Response for ListNetworkProfiles API service call. */ -export interface NetworkProfileListResult { - /** A list of network profiles that exist in a resource group. */ - value?: NetworkProfile[]; - /** The URL to get the next set of results. */ +/** Intent information. */ +export interface IntentContent { + description?: string; + /** Source resource id of the intent. */ + sourceResourceId: string; + /** Destination resource id of the intent. */ + destinationResourceId: string; + /** IP traffic information. */ + ipTraffic: IPTraffic; +} + +/** A list of Verifier Workspace */ +export interface VerifierWorkspaceListResult { + /** Gets a page of Verifier Workspaces. */ + value?: VerifierWorkspace[]; + /** Gets the URL to get the next page of results. */ nextLink?: string; } -/** Response for ListNetworkSecurityGroups API service call. */ -export interface NetworkSecurityGroupListResult { - /** A list of NetworkSecurityGroup resources. */ - value?: NetworkSecurityGroup[]; - /** The URL to get the next set of results. */ - nextLink?: string; +/** Properties of Verifier Workspace resource. */ +export interface VerifierWorkspaceProperties { + description?: string; + /** Provisioning states of a resource. */ + provisioningState?: ProvisioningState; } -/** Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group. */ -export interface SecurityRuleListResult { - /** The security rules in a network security group. */ - value?: SecurityRule[]; - /** The URL to get the next set of results. */ - nextLink?: string; +/** Represents the VerifierWorkspace update API request interface. */ +export interface VerifierWorkspaceUpdate { + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** Represents the VerifierWorkspace update properties. */ + properties?: VerifierWorkspaceUpdateProperties; +} + +/** Represents the VerifierWorkspace update properties. */ +export interface VerifierWorkspaceUpdateProperties { + description?: string; } /** Network Virtual Appliance Sku Properties. */ @@ -2840,7 +3213,7 @@ export interface DelegationProperties { /** The service name to which the NVA is delegated. */ serviceName?: string; /** - * The current provisioning state. + * Provisioning states of a resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; @@ -4568,6 +4941,8 @@ export interface UsageName { export interface AddressSpace { /** A list of address blocks reserved for this virtual network in CIDR notation. */ addressPrefixes?: string[]; + /** A list of IPAM Pools allocating IP address prefixes. */ + ipamPoolPrefixAllocations?: IpamPoolPrefixAllocation[]; } /** DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options. */ @@ -5091,6 +5466,94 @@ export interface VpnPacketCaptureStopParameters { sasUrl?: string; } +/** ExpressRoute failover test details */ +export interface ExpressRouteFailoverTestDetails { + /** Peering location of the test */ + peeringLocation?: string; + /** All circuits in the peering location */ + circuits?: ExpressRouteFailoverCircuitResourceDetails[]; + /** The current status of the test */ + status?: FailoverTestStatus; + /** Time when the test was started */ + startTime?: string; + /** Time when the test was completed */ + endTime?: string; + /** All connections to the circuits in the peering location */ + connections?: ExpressRouteFailoverConnectionResourceDetails[]; + /** The unique GUID associated with the test */ + testGuid?: string; + /** The type of failover test */ + testType?: FailoverTestType; + /** A list of all issues with the test */ + issues?: string[]; +} + +export interface ExpressRouteFailoverCircuitResourceDetails { + /** NRP Resource URI of the circuit */ + nrpResourceUri?: string; + /** Circuit Name */ + name?: string; + /** Connection name associated with the circuit */ + connectionName?: string; +} + +export interface ExpressRouteFailoverConnectionResourceDetails { + /** NRP Resource URI of the connection */ + nrpResourceUri?: string; + /** Connection Name */ + name?: string; + /** The current status of the connection */ + status?: FailoverConnectionStatus; + /** Time when the connection was last updated */ + lastUpdatedTime?: string; +} + +/** ExpressRoute failover single test details */ +export interface ExpressRouteFailoverSingleTestDetails { + /** Peering location of the test */ + peeringLocation?: string; + /** The current status of the test */ + status?: FailoverTestStatusForSingleTest; + /** Time when the test was started */ + startTimeUtc?: string; + /** Time when the test was completed */ + endTimeUtc?: string; + /** List of routes received from this peering as well as some other peering location */ + redundantRoutes?: ExpressRouteFailoverRedundantRoute[]; + /** List of al the routes that were received only from this peering location */ + nonRedundantRoutes?: string[]; + /** Whether the failover simulation was successful or not */ + wasSimulationSuccessful?: boolean; + /** List of all the failover connections for this peering location */ + failoverConnectionDetails?: FailoverConnectionDetails[]; +} + +export interface ExpressRouteFailoverRedundantRoute { + /** A list of all the peering locations for the redundant routes */ + peeringLocations?: string[]; + /** A list of all the redundant routes in the peering locations */ + routes?: string[]; +} + +export interface FailoverConnectionDetails { + /** Name of the failover connection */ + failoverConnectionName?: string; + /** Location of the failover connection */ + failoverLocation?: string; + /** Whether the customer was able to establish connectivity through this failover connection or not */ + isVerified?: boolean; +} + +/** Start packet capture parameters on virtual network gateway. */ +export interface ExpressRouteFailoverStopApiParameters { + /** Peering location of the test */ + peeringLocation?: string; + /** Whether the failover simulation was successful or not */ + wasSimulationSuccessful?: boolean; + /** List of all the failover connections for this peering location */ + details?: FailoverConnectionDetails[]; +} + /** Response for the ListVirtualNetworkGatewayConnections API service call. */ export interface VirtualNetworkGatewayConnectionListResult { /** A list of VirtualNetworkGatewayConnection resources that exists in a resource group. */ @@ -6841,6 +7304,8 @@ export interface Subnet extends SubResource { sharingScope?: SharingScope; /** Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. */ defaultOutboundAccess?: boolean; + /** A list of IPAM Pools for allocating IP address prefixes. */ + ipamPoolPrefixAllocations?: IpamPoolPrefixAllocation[]; } /** Frontend IP address of the load balancer. */ @@ -7735,7 +8200,7 @@ export interface BastionHostIPConfiguration extends SubResource { readonly type?: string; /** Reference of the subnet resource. */ subnet?: SubResource; - /** Reference of the PublicIP resource. */ + /** Reference of the PublicIP resource. Null for private only bastion */ publicIPAddress?: SubResource; /** * The provisioning state of the bastion host IP configuration resource. @@ -9385,6 +9850,11 @@ export interface NetworkInterface extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vnetEncryptionSupported?: boolean; + /** + * Whether default outbound connectivity for nic was configured or not. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultOutboundConnectivityEnabled?: boolean; /** If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. */ enableAcceleratedNetworking?: boolean; /** Indicates whether to disable tcp state tracking. */ @@ -9918,6 +10388,8 @@ export interface BastionHost extends Resource { enableKerberos?: boolean; /** Enable/Disable Session Recording feature of the Bastion Host resource. */ enableSessionRecording?: boolean; + /** Enable/Disable Private Only feature of the Bastion Host resource. */ + enablePrivateOnlyBastion?: boolean; } /** Describes a Virtual Machine. */ @@ -11402,6 +11874,17 @@ export interface FirewallPolicyFilterRuleCollection rules?: FirewallPolicyRuleUnion[]; } +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface CommonTrackedResource extends CommonResource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface CommonProxyResource extends CommonResource {} + /** Active connectivity configuration. */ export interface ActiveConnectivityConfiguration extends EffectiveConnectivityConfiguration { @@ -11602,6 +12085,77 @@ export interface StaticMember extends ChildResource { readonly provisioningState?: ProvisioningState; } +/** Defines the routing configuration */ +export interface NetworkManagerRoutingConfiguration extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the routing configuration. */ + description?: string; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Unique identifier for this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceGuid?: string; +} + +/** Defines the routing rule collection. */ +export interface RoutingRuleCollection extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the routing rule collection. */ + description?: string; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Unique identifier for this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceGuid?: string; + /** Groups for configuration */ + appliesTo?: NetworkManagerRoutingGroupItem[]; + /** Determines whether BGP route propagation is enabled. Defaults to true. */ + disableBgpRoutePropagation?: DisableBgpRoutePropagation; +} + +/** Network routing rule. */ +export interface RoutingRule extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description for this rule. */ + description?: string; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Unique identifier for this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceGuid?: string; + /** Indicates the destination for this particular rule. */ + destination?: RoutingRuleRouteDestination; + /** Indicates the next hop for this particular rule. */ + nextHop?: RoutingRuleNextHop; +} + /** The Scope Connections resource */ export interface ScopeConnection extends ChildResource { /** @@ -11633,6 +12187,8 @@ export interface SecurityAdminConfiguration extends ChildResource { description?: string; /** Enum list of network intent policy based services. */ applyOnNetworkIntentPolicyBasedServices?: NetworkIntentPolicyBasedService[]; + /** Determine update behavior for changes to network groups referenced within the rules in this configuration. */ + networkGroupAddressSpaceAggregationOption?: AddressSpaceAggregationOption; /** * The provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -11756,77 +12312,6 @@ export interface SecurityUserRule extends ChildResource { readonly resourceGuid?: string; } -/** Defines the routing configuration */ -export interface NetworkManagerRoutingConfiguration extends ChildResource { - /** - * The system metadata related to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** A description of the routing configuration. */ - description?: string; - /** - * The provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; -} - -/** Defines the routing rule collection. */ -export interface RoutingRuleCollection extends ChildResource { - /** - * The system metadata related to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** A description of the routing rule collection. */ - description?: string; - /** - * The provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; - /** Groups for configuration */ - appliesTo?: NetworkManagerRoutingGroupItem[]; - /** Determines whether BGP route propagation is enabled. Defaults to true. */ - disableBgpRoutePropagation?: DisableBgpRoutePropagation; -} - -/** Network routing rule. */ -export interface RoutingRule extends ChildResource { - /** - * The system metadata related to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** A description for this rule. */ - description?: string; - /** - * The provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; - /** Indicates the destination for this particular rule. */ - destination?: RoutingRuleRouteDestination; - /** Indicates the next hop for this particular rule. */ - nextHop?: RoutingRuleNextHop; -} - /** Network admin rule. */ export interface EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdminRule { @@ -12028,11 +12513,41 @@ export interface NetworkRule extends FirewallPolicyRule { destinationFqdns?: string[]; } -/** Network admin rule. */ -export interface AdminRule extends BaseAdminRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Custom"; - /** A description for this rule. Restricted to 140 chars. */ +/** Instance of Pool resource. */ +export interface IpamPool extends CommonTrackedResource { + /** Properties of IpamPool resource properties which are specific to the Pool resource. */ + properties: IpamPoolProperties; +} + +/** Instance of Verifier Workspace. */ +export interface VerifierWorkspace extends CommonTrackedResource { + /** Properties of Verifier Workspace resource. */ + properties?: VerifierWorkspaceProperties; +} + +/** Instance of StaticCidr resource. */ +export interface StaticCidr extends CommonProxyResource { + /** Properties of static CIDR resource. */ + properties?: StaticCidrProperties; +} + +/** Configuration information or intent on which to do the analysis on. */ +export interface ReachabilityAnalysisIntent extends CommonProxyResource { + /** Represents the Reachability Analysis Intent properties. */ + properties: ReachabilityAnalysisIntentProperties; +} + +/** Configuration information for analysis run. */ +export interface ReachabilityAnalysisRun extends CommonProxyResource { + /** Represents the Reachability Analysis Run properties. */ + properties: ReachabilityAnalysisRunProperties; +} + +/** Network admin rule. */ +export interface AdminRule extends BaseAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom"; + /** A description for this rule. Restricted to 140 chars. */ description?: string; /** Network protocol this rule applies to. */ protocol?: SecurityConfigurationRuleProtocol; @@ -12203,12 +12718,33 @@ export interface FirewallPolicyDeploymentsDeployHeaders { azureAsyncOperation?: string; } +/** Defines headers for IpamPools_create operation. */ +export interface IpamPoolsCreateHeaders { + azureAsyncOperation?: string; +} + +/** Defines headers for IpamPools_delete operation. */ +export interface IpamPoolsDeleteHeaders { + location?: string; +} + +/** Defines headers for StaticCidrs_delete operation. */ +export interface StaticCidrsDeleteHeaders { + location?: string; +} + /** Defines headers for IpAllocations_delete operation. */ export interface IpAllocationsDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ location?: string; } +/** Defines headers for LoadBalancerLoadBalancingRules_health operation. */ +export interface LoadBalancerLoadBalancingRulesHealthHeaders { + /** URI to query the status of the long-running operation. */ + location?: string; +} + /** Defines headers for NetworkManagers_delete operation. */ export interface NetworkManagersDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -12239,6 +12775,24 @@ export interface NetworkGroupsDeleteHeaders { location?: string; } +/** Defines headers for NetworkManagerRoutingConfigurations_delete operation. */ +export interface NetworkManagerRoutingConfigurationsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for RoutingRuleCollections_delete operation. */ +export interface RoutingRuleCollectionsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for RoutingRules_delete operation. */ +export interface RoutingRulesDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + /** Defines headers for SecurityAdminConfigurations_delete operation. */ export interface SecurityAdminConfigurationsDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -12275,20 +12829,14 @@ export interface SecurityUserRulesDeleteHeaders { location?: string; } -/** Defines headers for NetworkManagerRoutingConfigurations_delete operation. */ -export interface NetworkManagerRoutingConfigurationsDeleteHeaders { - /** The URL of the resource used to check the status of the asynchronous operation. */ - location?: string; -} - -/** Defines headers for RoutingRuleCollections_delete operation. */ -export interface RoutingRuleCollectionsDeleteHeaders { +/** Defines headers for ReachabilityAnalysisRuns_delete operation. */ +export interface ReachabilityAnalysisRunsDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ location?: string; } -/** Defines headers for RoutingRules_delete operation. */ -export interface RoutingRulesDeleteHeaders { +/** Defines headers for VerifierWorkspaces_delete operation. */ +export interface VerifierWorkspacesDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ location?: string; } @@ -12347,6 +12895,26 @@ export interface RouteFilterRulesDeleteHeaders { azureAsyncOperation?: string; } +/** Defines headers for VirtualNetworkGateways_getFailoverAllTestDetails operation. */ +export interface VirtualNetworkGatewaysGetFailoverAllTestDetailsHeaders { + location?: string; +} + +/** Defines headers for VirtualNetworkGateways_getFailoverSingleTestDetails operation. */ +export interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsHeaders { + location?: string; +} + +/** Defines headers for VirtualNetworkGateways_startExpressRouteSiteFailoverSimulation operation. */ +export interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationHeaders { + location?: string; +} + +/** Defines headers for VirtualNetworkGateways_stopExpressRouteSiteFailoverSimulation operation. */ +export interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationHeaders { + location?: string; +} + /** Defines headers for NetworkVirtualApplianceConnections_delete operation. */ export interface NetworkVirtualApplianceConnectionsDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -12628,14 +13196,18 @@ export type ApplicationGatewayOperationalState = string; /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { + /** Failed */ + Failed = "Failed", /** Succeeded */ Succeeded = "Succeeded", + /** Canceled */ + Canceled = "Canceled", + /** Creating */ + Creating = "Creating", /** Updating */ Updating = "Updating", /** Deleting */ Deleting = "Deleting", - /** Failed */ - Failed = "Failed", } /** @@ -12643,10 +13215,12 @@ export enum KnownProvisioningState { * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Failed** \ * **Succeeded** \ + * **Canceled** \ + * **Creating** \ * **Updating** \ - * **Deleting** \ - * **Failed** + * **Deleting** */ export type ProvisioningState = string; @@ -14318,6 +14892,48 @@ export enum KnownFirewallPolicyIdpsQuerySortOrder { */ export type FirewallPolicyIdpsQuerySortOrder = string; +/** Known values of {@link IpType} that the service accepts. */ +export enum KnownIpType { + /** IPv4 */ + IPv4 = "IPv4", + /** IPv6 */ + IPv6 = "IPv6", +} + +/** + * Defines values for IpType. \ + * {@link KnownIpType} can be used interchangeably with IpType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPv4** \ + * **IPv6** + */ +export type IpType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Known values of {@link IpAllocationType} that the service accepts. */ export enum KnownIpAllocationType { /** Undefined */ @@ -14543,30 +15159,6 @@ export enum KnownConfigurationType { */ export type ConfigurationType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link DeploymentStatus} that the service accepts. */ export enum KnownDeploymentStatus { /** NotStarted */ @@ -14744,6 +15336,69 @@ export enum KnownScopeConnectionState { */ export type ScopeConnectionState = string; +/** Known values of {@link DisableBgpRoutePropagation} that the service accepts. */ +export enum KnownDisableBgpRoutePropagation { + /** False */ + False = "False", + /** True */ + True = "True", +} + +/** + * Defines values for DisableBgpRoutePropagation. \ + * {@link KnownDisableBgpRoutePropagation} can be used interchangeably with DisableBgpRoutePropagation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **False** \ + * **True** + */ +export type DisableBgpRoutePropagation = string; + +/** Known values of {@link RoutingRuleDestinationType} that the service accepts. */ +export enum KnownRoutingRuleDestinationType { + /** AddressPrefix */ + AddressPrefix = "AddressPrefix", + /** ServiceTag */ + ServiceTag = "ServiceTag", +} + +/** + * Defines values for RoutingRuleDestinationType. \ + * {@link KnownRoutingRuleDestinationType} can be used interchangeably with RoutingRuleDestinationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AddressPrefix** \ + * **ServiceTag** + */ +export type RoutingRuleDestinationType = string; + +/** Known values of {@link RoutingRuleNextHopType} that the service accepts. */ +export enum KnownRoutingRuleNextHopType { + /** Internet */ + Internet = "Internet", + /** NoNextHop */ + NoNextHop = "NoNextHop", + /** VirtualAppliance */ + VirtualAppliance = "VirtualAppliance", + /** VirtualNetworkGateway */ + VirtualNetworkGateway = "VirtualNetworkGateway", + /** VnetLocal */ + VnetLocal = "VnetLocal", +} + +/** + * Defines values for RoutingRuleNextHopType. \ + * {@link KnownRoutingRuleNextHopType} can be used interchangeably with RoutingRuleNextHopType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internet** \ + * **NoNextHop** \ + * **VirtualAppliance** \ + * **VirtualNetworkGateway** \ + * **VnetLocal** + */ +export type RoutingRuleNextHopType = string; + /** Known values of {@link NetworkIntentPolicyBasedService} that the service accepts. */ export enum KnownNetworkIntentPolicyBasedService { /** None */ @@ -14765,6 +15420,24 @@ export enum KnownNetworkIntentPolicyBasedService { */ export type NetworkIntentPolicyBasedService = string; +/** Known values of {@link AddressSpaceAggregationOption} that the service accepts. */ +export enum KnownAddressSpaceAggregationOption { + /** None */ + None = "None", + /** Manual */ + Manual = "Manual", +} + +/** + * Defines values for AddressSpaceAggregationOption. \ + * {@link KnownAddressSpaceAggregationOption} can be used interchangeably with AddressSpaceAggregationOption, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Manual** + */ +export type AddressSpaceAggregationOption = string; + /** Known values of {@link AdminRuleKind} that the service accepts. */ export enum KnownAdminRuleKind { /** Custom */ @@ -14819,6 +15492,8 @@ export enum KnownAddressPrefixType { IPPrefix = "IPPrefix", /** ServiceTag */ ServiceTag = "ServiceTag", + /** NetworkGroup */ + NetworkGroup = "NetworkGroup", } /** @@ -14827,7 +15502,8 @@ export enum KnownAddressPrefixType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **IPPrefix** \ - * **ServiceTag** + * **ServiceTag** \ + * **NetworkGroup** */ export type AddressPrefixType = string; @@ -14849,82 +15525,43 @@ export enum KnownSecurityConfigurationRuleDirection { */ export type SecurityConfigurationRuleDirection = string; -/** Known values of {@link DisableBgpRoutePropagation} that the service accepts. */ -export enum KnownDisableBgpRoutePropagation { - /** False */ - False = "False", - /** True */ - True = "True", +/** Known values of {@link NetworkProtocol} that the service accepts. */ +export enum KnownNetworkProtocol { + /** Any */ + Any = "Any", + /** TCP */ + TCP = "TCP", + /** UDP */ + UDP = "UDP", + /** Icmp */ + Icmp = "ICMP", } /** - * Defines values for DisableBgpRoutePropagation. \ - * {@link KnownDisableBgpRoutePropagation} can be used interchangeably with DisableBgpRoutePropagation, + * Defines values for NetworkProtocol. \ + * {@link KnownNetworkProtocol} can be used interchangeably with NetworkProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **False** \ - * **True** + * **Any** \ + * **TCP** \ + * **UDP** \ + * **ICMP** */ -export type DisableBgpRoutePropagation = string; +export type NetworkProtocol = string; -/** Known values of {@link RoutingRuleDestinationType} that the service accepts. */ -export enum KnownRoutingRuleDestinationType { - /** AddressPrefix */ - AddressPrefix = "AddressPrefix", - /** ServiceTag */ - ServiceTag = "ServiceTag", +/** Known values of {@link NicTypeInResponse} that the service accepts. */ +export enum KnownNicTypeInResponse { + /** PublicNic */ + PublicNic = "PublicNic", + /** PrivateNic */ + PrivateNic = "PrivateNic", + /** AdditionalNic */ + AdditionalNic = "AdditionalNic", } /** - * Defines values for RoutingRuleDestinationType. \ - * {@link KnownRoutingRuleDestinationType} can be used interchangeably with RoutingRuleDestinationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AddressPrefix** \ - * **ServiceTag** - */ -export type RoutingRuleDestinationType = string; - -/** Known values of {@link RoutingRuleNextHopType} that the service accepts. */ -export enum KnownRoutingRuleNextHopType { - /** Internet */ - Internet = "Internet", - /** NoNextHop */ - NoNextHop = "NoNextHop", - /** VirtualAppliance */ - VirtualAppliance = "VirtualAppliance", - /** VirtualNetworkGateway */ - VirtualNetworkGateway = "VirtualNetworkGateway", - /** VnetLocal */ - VnetLocal = "VnetLocal", -} - -/** - * Defines values for RoutingRuleNextHopType. \ - * {@link KnownRoutingRuleNextHopType} can be used interchangeably with RoutingRuleNextHopType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internet** \ - * **NoNextHop** \ - * **VirtualAppliance** \ - * **VirtualNetworkGateway** \ - * **VnetLocal** - */ -export type RoutingRuleNextHopType = string; - -/** Known values of {@link NicTypeInResponse} that the service accepts. */ -export enum KnownNicTypeInResponse { - /** PublicNic */ - PublicNic = "PublicNic", - /** PrivateNic */ - PrivateNic = "PrivateNic", - /** AdditionalNic */ - AdditionalNic = "AdditionalNic", -} - -/** - * Defines values for NicTypeInResponse. \ - * {@link KnownNicTypeInResponse} can be used interchangeably with NicTypeInResponse, + * Defines values for NicTypeInResponse. \ + * {@link KnownNicTypeInResponse} can be used interchangeably with NicTypeInResponse, * this enum contains the known values that the service supports. * ### Known values supported by the service * **PublicNic** \ @@ -16502,6 +17139,123 @@ export enum KnownBgpPeerState { */ export type BgpPeerState = string; +/** Known values of {@link FailoverTestStatus} that the service accepts. */ +export enum KnownFailoverTestStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** Starting */ + Starting = "Starting", + /** Running */ + Running = "Running", + /** StartFailed */ + StartFailed = "StartFailed", + /** Stopping */ + Stopping = "Stopping", + /** Completed */ + Completed = "Completed", + /** StopFailed */ + StopFailed = "StopFailed", + /** Invalid */ + Invalid = "Invalid", + /** Expired */ + Expired = "Expired", +} + +/** + * Defines values for FailoverTestStatus. \ + * {@link KnownFailoverTestStatus} can be used interchangeably with FailoverTestStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Starting** \ + * **Running** \ + * **StartFailed** \ + * **Stopping** \ + * **Completed** \ + * **StopFailed** \ + * **Invalid** \ + * **Expired** + */ +export type FailoverTestStatus = string; + +/** Known values of {@link FailoverConnectionStatus} that the service accepts. */ +export enum KnownFailoverConnectionStatus { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", +} + +/** + * Defines values for FailoverConnectionStatus. \ + * {@link KnownFailoverConnectionStatus} can be used interchangeably with FailoverConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Connected** \ + * **Disconnected** + */ +export type FailoverConnectionStatus = string; + +/** Known values of {@link FailoverTestType} that the service accepts. */ +export enum KnownFailoverTestType { + /** SingleSiteFailover */ + SingleSiteFailover = "SingleSiteFailover", + /** MultiSiteFailover */ + MultiSiteFailover = "MultiSiteFailover", + /** All */ + All = "All", +} + +/** + * Defines values for FailoverTestType. \ + * {@link KnownFailoverTestType} can be used interchangeably with FailoverTestType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SingleSiteFailover** \ + * **MultiSiteFailover** \ + * **All** + */ +export type FailoverTestType = string; + +/** Known values of {@link FailoverTestStatusForSingleTest} that the service accepts. */ +export enum KnownFailoverTestStatusForSingleTest { + /** NotStarted */ + NotStarted = "NotStarted", + /** Starting */ + Starting = "Starting", + /** Running */ + Running = "Running", + /** StartFailed */ + StartFailed = "StartFailed", + /** Stopping */ + Stopping = "Stopping", + /** Completed */ + Completed = "Completed", + /** StopFailed */ + StopFailed = "StopFailed", + /** Invalid */ + Invalid = "Invalid", + /** Expired */ + Expired = "Expired", +} + +/** + * Defines values for FailoverTestStatusForSingleTest. \ + * {@link KnownFailoverTestStatusForSingleTest} can be used interchangeably with FailoverTestStatusForSingleTest, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Starting** \ + * **Running** \ + * **StartFailed** \ + * **Stopping** \ + * **Completed** \ + * **StopFailed** \ + * **Invalid** \ + * **Expired** + */ +export type FailoverTestStatusForSingleTest = string; + /** Known values of {@link OfficeTrafficCategory} that the service accepts. */ export enum KnownOfficeTrafficCategory { /** Optimize */ @@ -17570,7 +18324,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 | 3 | 4; +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4 | 5; /** Defines values for PacketCaptureTargetType. */ export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; @@ -19804,6 +20558,147 @@ export interface FirewallPolicyRuleCollectionGroupDraftsGetOptionalParams export type FirewallPolicyRuleCollectionGroupDraftsGetResponse = FirewallPolicyRuleCollectionGroupDraft; +/** Optional parameters. */ +export interface IpamPoolsListOptionalParams + extends coreClient.OperationOptions { + /** Optional skip token. */ + skipToken?: string; + /** Optional num entries to skip. */ + skip?: number; + /** Optional num entries to show. */ + top?: number; + /** Optional key by which to sort. */ + sortKey?: string; + /** Optional sort value for pagination. */ + sortValue?: string; +} + +/** Contains response data for the list operation. */ +export type IpamPoolsListResponse = IpamPoolList; + +/** Optional parameters. */ +export interface IpamPoolsCreateOptionalParams + 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 create operation. */ +export type IpamPoolsCreateResponse = IpamPool; + +/** Optional parameters. */ +export interface IpamPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Pool resource object to update partially. */ + body?: IpamPoolUpdate; +} + +/** Contains response data for the update operation. */ +export type IpamPoolsUpdateResponse = IpamPool; + +/** Optional parameters. */ +export interface IpamPoolsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IpamPoolsGetResponse = IpamPool; + +/** Optional parameters. */ +export interface IpamPoolsDeleteOptionalParams + 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 delete operation. */ +export type IpamPoolsDeleteResponse = IpamPoolsDeleteHeaders; + +/** Optional parameters. */ +export interface IpamPoolsGetPoolUsageOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPoolUsage operation. */ +export type IpamPoolsGetPoolUsageResponse = PoolUsage; + +/** Optional parameters. */ +export interface IpamPoolsListAssociatedResourcesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAssociatedResources operation. */ +export type IpamPoolsListAssociatedResourcesResponse = PoolAssociationList; + +/** Optional parameters. */ +export interface IpamPoolsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type IpamPoolsListNextResponse = IpamPoolList; + +/** Optional parameters. */ +export interface IpamPoolsListAssociatedResourcesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAssociatedResourcesNext operation. */ +export type IpamPoolsListAssociatedResourcesNextResponse = PoolAssociationList; + +/** Optional parameters. */ +export interface StaticCidrsListOptionalParams + extends coreClient.OperationOptions { + /** Optional skip token. */ + skipToken?: string; + /** Optional num entries to skip. */ + skip?: number; + /** Optional num entries to show. */ + top?: number; + /** Optional key by which to sort. */ + sortKey?: string; + /** Optional sort value for pagination. */ + sortValue?: string; +} + +/** Contains response data for the list operation. */ +export type StaticCidrsListResponse = StaticCidrList; + +/** Optional parameters. */ +export interface StaticCidrsCreateOptionalParams + extends coreClient.OperationOptions { + /** StaticCidr resource object to create/update. */ + body?: StaticCidr; +} + +/** Contains response data for the create operation. */ +export type StaticCidrsCreateResponse = StaticCidr; + +/** Optional parameters. */ +export interface StaticCidrsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type StaticCidrsGetResponse = StaticCidr; + +/** Optional parameters. */ +export interface StaticCidrsDeleteOptionalParams + 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 delete operation. */ +export type StaticCidrsDeleteResponse = StaticCidrsDeleteHeaders; + +/** Optional parameters. */ +export interface StaticCidrsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type StaticCidrsListNextResponse = StaticCidrList; + /** Optional parameters. */ export interface IpAllocationsDeleteOptionalParams extends coreClient.OperationOptions { @@ -20163,6 +21058,19 @@ export interface LoadBalancerLoadBalancingRulesGetOptionalParams /** Contains response data for the get operation. */ export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule; +/** Optional parameters. */ +export interface LoadBalancerLoadBalancingRulesHealthOptionalParams + 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 health operation. */ +export type LoadBalancerLoadBalancingRulesHealthResponse = + LoadBalancerHealthPerRule; + /** Optional parameters. */ export interface LoadBalancerLoadBalancingRulesListNextOptionalParams extends coreClient.OperationOptions {} @@ -20693,44 +21601,55 @@ export interface StaticMembersListNextOptionalParams export type StaticMembersListNextResponse = StaticMemberListResult; /** Optional parameters. */ -export interface ScopeConnectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkManagerRoutingConfigurationsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ + skipToken?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type ScopeConnectionsCreateOrUpdateResponse = ScopeConnection; +/** Contains response data for the list operation. */ +export type NetworkManagerRoutingConfigurationsListResponse = + NetworkManagerRoutingConfigurationListResult; /** Optional parameters. */ -export interface ScopeConnectionsGetOptionalParams +export interface NetworkManagerRoutingConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ScopeConnectionsGetResponse = ScopeConnection; +export type NetworkManagerRoutingConfigurationsGetResponse = + NetworkManagerRoutingConfiguration; /** Optional parameters. */ -export interface ScopeConnectionsDeleteOptionalParams +export interface NetworkManagerRoutingConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NetworkManagerRoutingConfigurationsCreateOrUpdateResponse = + NetworkManagerRoutingConfiguration; + /** Optional parameters. */ -export interface ScopeConnectionsListOptionalParams +export interface NetworkManagerRoutingConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; - /** SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; + /** 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 list operation. */ -export type ScopeConnectionsListResponse = ScopeConnectionListResult; - /** Optional parameters. */ -export interface ScopeConnectionsListNextOptionalParams +export interface NetworkManagerRoutingConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeConnectionsListNextResponse = ScopeConnectionListResult; +export type NetworkManagerRoutingConfigurationsListNextResponse = + NetworkManagerRoutingConfigurationListResult; /** Optional parameters. */ -export interface SecurityAdminConfigurationsListOptionalParams +export interface RoutingRuleCollectionsListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -20739,26 +21658,26 @@ export interface SecurityAdminConfigurationsListOptionalParams } /** Contains response data for the list operation. */ -export type SecurityAdminConfigurationsListResponse = - SecurityAdminConfigurationListResult; +export type RoutingRuleCollectionsListResponse = + RoutingRuleCollectionListResult; /** Optional parameters. */ -export interface SecurityAdminConfigurationsGetOptionalParams +export interface RoutingRuleCollectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityAdminConfigurationsGetResponse = SecurityAdminConfiguration; +export type RoutingRuleCollectionsGetResponse = RoutingRuleCollection; /** Optional parameters. */ -export interface SecurityAdminConfigurationsCreateOrUpdateOptionalParams +export interface RoutingRuleCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SecurityAdminConfigurationsCreateOrUpdateResponse = - SecurityAdminConfiguration; +export type RoutingRuleCollectionsCreateOrUpdateResponse = + RoutingRuleCollection; /** Optional parameters. */ -export interface SecurityAdminConfigurationsDeleteOptionalParams +export interface RoutingRuleCollectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -20769,15 +21688,15 @@ export interface SecurityAdminConfigurationsDeleteOptionalParams } /** Optional parameters. */ -export interface SecurityAdminConfigurationsListNextOptionalParams +export interface RoutingRuleCollectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityAdminConfigurationsListNextResponse = - SecurityAdminConfigurationListResult; +export type RoutingRuleCollectionsListNextResponse = + RoutingRuleCollectionListResult; /** Optional parameters. */ -export interface AdminRuleCollectionsListOptionalParams +export interface RoutingRulesListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -20786,24 +21705,24 @@ export interface AdminRuleCollectionsListOptionalParams } /** Contains response data for the list operation. */ -export type AdminRuleCollectionsListResponse = AdminRuleCollectionListResult; +export type RoutingRulesListResponse = RoutingRuleListResult; /** Optional parameters. */ -export interface AdminRuleCollectionsGetOptionalParams +export interface RoutingRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AdminRuleCollectionsGetResponse = AdminRuleCollection; +export type RoutingRulesGetResponse = RoutingRule; /** Optional parameters. */ -export interface AdminRuleCollectionsCreateOrUpdateOptionalParams +export interface RoutingRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AdminRuleCollectionsCreateOrUpdateResponse = AdminRuleCollection; +export type RoutingRulesCreateOrUpdateResponse = RoutingRule; /** Optional parameters. */ -export interface AdminRuleCollectionsDeleteOptionalParams +export interface RoutingRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -20814,59 +21733,51 @@ export interface AdminRuleCollectionsDeleteOptionalParams } /** Optional parameters. */ -export interface AdminRuleCollectionsListNextOptionalParams +export interface RoutingRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AdminRuleCollectionsListNextResponse = - AdminRuleCollectionListResult; +export type RoutingRulesListNextResponse = RoutingRuleListResult; /** Optional parameters. */ -export interface AdminRulesListOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; - /** SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ - skipToken?: string; -} +export interface ScopeConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AdminRulesListResponse = AdminRuleListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ScopeConnectionsCreateOrUpdateResponse = ScopeConnection; /** Optional parameters. */ -export interface AdminRulesGetOptionalParams +export interface ScopeConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AdminRulesGetResponse = BaseAdminRuleUnion; +export type ScopeConnectionsGetResponse = ScopeConnection; /** Optional parameters. */ -export interface AdminRulesCreateOrUpdateOptionalParams +export interface ScopeConnectionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AdminRulesCreateOrUpdateResponse = BaseAdminRuleUnion; - /** Optional parameters. */ -export interface AdminRulesDeleteOptionalParams +export interface ScopeConnectionsListOptionalParams extends coreClient.OperationOptions { - /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ - force?: boolean; - /** 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; + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */ + skipToken?: string; } +/** Contains response data for the list operation. */ +export type ScopeConnectionsListResponse = ScopeConnectionListResult; + /** Optional parameters. */ -export interface AdminRulesListNextOptionalParams +export interface ScopeConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AdminRulesListNextResponse = AdminRuleListResult; +export type ScopeConnectionsListNextResponse = ScopeConnectionListResult; /** Optional parameters. */ -export interface SecurityUserConfigurationsListOptionalParams +export interface SecurityAdminConfigurationsListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -20875,26 +21786,26 @@ export interface SecurityUserConfigurationsListOptionalParams } /** Contains response data for the list operation. */ -export type SecurityUserConfigurationsListResponse = - SecurityUserConfigurationListResult; +export type SecurityAdminConfigurationsListResponse = + SecurityAdminConfigurationListResult; /** Optional parameters. */ -export interface SecurityUserConfigurationsGetOptionalParams +export interface SecurityAdminConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityUserConfigurationsGetResponse = SecurityUserConfiguration; +export type SecurityAdminConfigurationsGetResponse = SecurityAdminConfiguration; /** Optional parameters. */ -export interface SecurityUserConfigurationsCreateOrUpdateOptionalParams +export interface SecurityAdminConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SecurityUserConfigurationsCreateOrUpdateResponse = - SecurityUserConfiguration; +export type SecurityAdminConfigurationsCreateOrUpdateResponse = + SecurityAdminConfiguration; /** Optional parameters. */ -export interface SecurityUserConfigurationsDeleteOptionalParams +export interface SecurityAdminConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -20905,15 +21816,15 @@ export interface SecurityUserConfigurationsDeleteOptionalParams } /** Optional parameters. */ -export interface SecurityUserConfigurationsListNextOptionalParams +export interface SecurityAdminConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityUserConfigurationsListNextResponse = - SecurityUserConfigurationListResult; +export type SecurityAdminConfigurationsListNextResponse = + SecurityAdminConfigurationListResult; /** Optional parameters. */ -export interface SecurityUserRuleCollectionsListOptionalParams +export interface AdminRuleCollectionsListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -20922,26 +21833,24 @@ export interface SecurityUserRuleCollectionsListOptionalParams } /** Contains response data for the list operation. */ -export type SecurityUserRuleCollectionsListResponse = - SecurityUserRuleCollectionListResult; +export type AdminRuleCollectionsListResponse = AdminRuleCollectionListResult; /** Optional parameters. */ -export interface SecurityUserRuleCollectionsGetOptionalParams +export interface AdminRuleCollectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityUserRuleCollectionsGetResponse = SecurityUserRuleCollection; +export type AdminRuleCollectionsGetResponse = AdminRuleCollection; /** Optional parameters. */ -export interface SecurityUserRuleCollectionsCreateOrUpdateOptionalParams +export interface AdminRuleCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SecurityUserRuleCollectionsCreateOrUpdateResponse = - SecurityUserRuleCollection; +export type AdminRuleCollectionsCreateOrUpdateResponse = AdminRuleCollection; /** Optional parameters. */ -export interface SecurityUserRuleCollectionsDeleteOptionalParams +export interface AdminRuleCollectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -20952,15 +21861,15 @@ export interface SecurityUserRuleCollectionsDeleteOptionalParams } /** Optional parameters. */ -export interface SecurityUserRuleCollectionsListNextOptionalParams +export interface AdminRuleCollectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityUserRuleCollectionsListNextResponse = - SecurityUserRuleCollectionListResult; +export type AdminRuleCollectionsListNextResponse = + AdminRuleCollectionListResult; /** Optional parameters. */ -export interface SecurityUserRulesListOptionalParams +export interface AdminRulesListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -20969,24 +21878,24 @@ export interface SecurityUserRulesListOptionalParams } /** Contains response data for the list operation. */ -export type SecurityUserRulesListResponse = SecurityUserRuleListResult; +export type AdminRulesListResponse = AdminRuleListResult; /** Optional parameters. */ -export interface SecurityUserRulesGetOptionalParams +export interface AdminRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityUserRulesGetResponse = SecurityUserRule; +export type AdminRulesGetResponse = BaseAdminRuleUnion; /** Optional parameters. */ -export interface SecurityUserRulesCreateOrUpdateOptionalParams +export interface AdminRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SecurityUserRulesCreateOrUpdateResponse = SecurityUserRule; +export type AdminRulesCreateOrUpdateResponse = BaseAdminRuleUnion; /** Optional parameters. */ -export interface SecurityUserRulesDeleteOptionalParams +export interface AdminRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -20997,14 +21906,14 @@ export interface SecurityUserRulesDeleteOptionalParams } /** Optional parameters. */ -export interface SecurityUserRulesListNextOptionalParams +export interface AdminRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityUserRulesListNextResponse = SecurityUserRuleListResult; +export type AdminRulesListNextResponse = AdminRuleListResult; /** Optional parameters. */ -export interface NetworkManagerRoutingConfigurationsListOptionalParams +export interface SecurityUserConfigurationsListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -21013,27 +21922,26 @@ export interface NetworkManagerRoutingConfigurationsListOptionalParams } /** Contains response data for the list operation. */ -export type NetworkManagerRoutingConfigurationsListResponse = - NetworkManagerRoutingConfigurationListResult; +export type SecurityUserConfigurationsListResponse = + SecurityUserConfigurationListResult; /** Optional parameters. */ -export interface NetworkManagerRoutingConfigurationsGetOptionalParams +export interface SecurityUserConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkManagerRoutingConfigurationsGetResponse = - NetworkManagerRoutingConfiguration; +export type SecurityUserConfigurationsGetResponse = SecurityUserConfiguration; /** Optional parameters. */ -export interface NetworkManagerRoutingConfigurationsCreateOrUpdateOptionalParams +export interface SecurityUserConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type NetworkManagerRoutingConfigurationsCreateOrUpdateResponse = - NetworkManagerRoutingConfiguration; +export type SecurityUserConfigurationsCreateOrUpdateResponse = + SecurityUserConfiguration; /** Optional parameters. */ -export interface NetworkManagerRoutingConfigurationsDeleteOptionalParams +export interface SecurityUserConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -21044,15 +21952,15 @@ export interface NetworkManagerRoutingConfigurationsDeleteOptionalParams } /** Optional parameters. */ -export interface NetworkManagerRoutingConfigurationsListNextOptionalParams +export interface SecurityUserConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NetworkManagerRoutingConfigurationsListNextResponse = - NetworkManagerRoutingConfigurationListResult; +export type SecurityUserConfigurationsListNextResponse = + SecurityUserConfigurationListResult; /** Optional parameters. */ -export interface RoutingRuleCollectionsListOptionalParams +export interface SecurityUserRuleCollectionsListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -21061,26 +21969,26 @@ export interface RoutingRuleCollectionsListOptionalParams } /** Contains response data for the list operation. */ -export type RoutingRuleCollectionsListResponse = - RoutingRuleCollectionListResult; +export type SecurityUserRuleCollectionsListResponse = + SecurityUserRuleCollectionListResult; /** Optional parameters. */ -export interface RoutingRuleCollectionsGetOptionalParams +export interface SecurityUserRuleCollectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoutingRuleCollectionsGetResponse = RoutingRuleCollection; +export type SecurityUserRuleCollectionsGetResponse = SecurityUserRuleCollection; /** Optional parameters. */ -export interface RoutingRuleCollectionsCreateOrUpdateOptionalParams +export interface SecurityUserRuleCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RoutingRuleCollectionsCreateOrUpdateResponse = - RoutingRuleCollection; +export type SecurityUserRuleCollectionsCreateOrUpdateResponse = + SecurityUserRuleCollection; /** Optional parameters. */ -export interface RoutingRuleCollectionsDeleteOptionalParams +export interface SecurityUserRuleCollectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -21091,15 +21999,15 @@ export interface RoutingRuleCollectionsDeleteOptionalParams } /** Optional parameters. */ -export interface RoutingRuleCollectionsListNextOptionalParams +export interface SecurityUserRuleCollectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RoutingRuleCollectionsListNextResponse = - RoutingRuleCollectionListResult; +export type SecurityUserRuleCollectionsListNextResponse = + SecurityUserRuleCollectionListResult; /** Optional parameters. */ -export interface RoutingRulesListOptionalParams +export interface SecurityUserRulesListOptionalParams extends coreClient.OperationOptions { /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ top?: number; @@ -21108,24 +22016,24 @@ export interface RoutingRulesListOptionalParams } /** Contains response data for the list operation. */ -export type RoutingRulesListResponse = RoutingRuleListResult; +export type SecurityUserRulesListResponse = SecurityUserRuleListResult; /** Optional parameters. */ -export interface RoutingRulesGetOptionalParams +export interface SecurityUserRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoutingRulesGetResponse = RoutingRule; +export type SecurityUserRulesGetResponse = SecurityUserRule; /** Optional parameters. */ -export interface RoutingRulesCreateOrUpdateOptionalParams +export interface SecurityUserRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RoutingRulesCreateOrUpdateResponse = RoutingRule; +export type SecurityUserRulesCreateOrUpdateResponse = SecurityUserRule; /** Optional parameters. */ -export interface RoutingRulesDeleteOptionalParams +export interface SecurityUserRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ force?: boolean; @@ -21136,11 +22044,11 @@ export interface RoutingRulesDeleteOptionalParams } /** Optional parameters. */ -export interface RoutingRulesListNextOptionalParams +export interface SecurityUserRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RoutingRulesListNextResponse = RoutingRuleListResult; +export type SecurityUserRulesListNextResponse = SecurityUserRuleListResult; /** Optional parameters. */ export interface NetworkProfilesDeleteOptionalParams @@ -21335,6 +22243,167 @@ export interface DefaultSecurityRulesListNextOptionalParams /** Contains response data for the listNext operation. */ export type DefaultSecurityRulesListNextResponse = SecurityRuleListResult; +/** Optional parameters. */ +export interface ReachabilityAnalysisIntentsListOptionalParams + extends coreClient.OperationOptions { + /** Optional skip token. */ + skipToken?: string; + /** Optional num entries to skip. */ + skip?: number; + /** Optional num entries to show. */ + top?: number; + /** Optional key by which to sort. */ + sortKey?: string; + /** Optional sort value for pagination. */ + sortValue?: string; +} + +/** Contains response data for the list operation. */ +export type ReachabilityAnalysisIntentsListResponse = + ReachabilityAnalysisIntentListResult; + +/** Optional parameters. */ +export interface ReachabilityAnalysisIntentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ReachabilityAnalysisIntentsGetResponse = ReachabilityAnalysisIntent; + +/** Optional parameters. */ +export interface ReachabilityAnalysisIntentsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type ReachabilityAnalysisIntentsCreateResponse = + ReachabilityAnalysisIntent; + +/** Optional parameters. */ +export interface ReachabilityAnalysisIntentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ReachabilityAnalysisIntentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ReachabilityAnalysisIntentsListNextResponse = + ReachabilityAnalysisIntentListResult; + +/** Optional parameters. */ +export interface ReachabilityAnalysisRunsListOptionalParams + extends coreClient.OperationOptions { + /** Optional skip token. */ + skipToken?: string; + /** Optional num entries to skip. */ + skip?: number; + /** Optional num entries to show. */ + top?: number; + /** Optional key by which to sort. */ + sortKey?: string; + /** Optional sort value for pagination. */ + sortValue?: string; +} + +/** Contains response data for the list operation. */ +export type ReachabilityAnalysisRunsListResponse = + ReachabilityAnalysisRunListResult; + +/** Optional parameters. */ +export interface ReachabilityAnalysisRunsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ReachabilityAnalysisRunsGetResponse = ReachabilityAnalysisRun; + +/** Optional parameters. */ +export interface ReachabilityAnalysisRunsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type ReachabilityAnalysisRunsCreateResponse = ReachabilityAnalysisRun; + +/** Optional parameters. */ +export interface ReachabilityAnalysisRunsDeleteOptionalParams + 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 delete operation. */ +export type ReachabilityAnalysisRunsDeleteResponse = + ReachabilityAnalysisRunsDeleteHeaders; + +/** Optional parameters. */ +export interface ReachabilityAnalysisRunsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ReachabilityAnalysisRunsListNextResponse = + ReachabilityAnalysisRunListResult; + +/** Optional parameters. */ +export interface VerifierWorkspacesListOptionalParams + extends coreClient.OperationOptions { + /** Optional skip token. */ + skipToken?: string; + /** Optional num entries to skip. */ + skip?: number; + /** Optional num entries to show. */ + top?: number; + /** Optional key by which to sort. */ + sortKey?: string; + /** Optional sort value for pagination. */ + sortValue?: string; +} + +/** Contains response data for the list operation. */ +export type VerifierWorkspacesListResponse = VerifierWorkspaceListResult; + +/** Optional parameters. */ +export interface VerifierWorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VerifierWorkspacesGetResponse = VerifierWorkspace; + +/** Optional parameters. */ +export interface VerifierWorkspacesCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type VerifierWorkspacesCreateResponse = VerifierWorkspace; + +/** Optional parameters. */ +export interface VerifierWorkspacesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Verifier Workspace object to create/update. */ + body?: VerifierWorkspaceUpdate; +} + +/** Contains response data for the update operation. */ +export type VerifierWorkspacesUpdateResponse = VerifierWorkspace; + +/** Optional parameters. */ +export interface VerifierWorkspacesDeleteOptionalParams + 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 delete operation. */ +export type VerifierWorkspacesDeleteResponse = VerifierWorkspacesDeleteHeaders; + +/** Optional parameters. */ +export interface VerifierWorkspacesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VerifierWorkspacesListNextResponse = VerifierWorkspaceListResult; + /** Optional parameters. */ export interface NetworkVirtualAppliancesDeleteOptionalParams extends coreClient.OperationOptions { @@ -22780,10 +23849,10 @@ export type VirtualNetworksListUsageResponse = VirtualNetworkListUsageResult; /** Optional parameters. */ export interface VirtualNetworksListDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { - /** The max number of ip addresses to return. */ - top?: number; /** The skipToken that is given with nextLink. */ skipToken?: string; + /** The max number of ip addresses to return. */ + top?: number; /** 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. */ @@ -23193,6 +24262,64 @@ export type VirtualNetworkGatewaysStopPacketCaptureResponse = { body: string; }; +/** Optional parameters. */ +export interface VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams + 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 getFailoverAllTestDetails operation. */ +export type VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse = + ExpressRouteFailoverTestDetails[]; + +/** Optional parameters. */ +export interface VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams + 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 getFailoverSingleTestDetails operation. */ +export type VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse = + ExpressRouteFailoverSingleTestDetails[]; + +/** Optional parameters. */ +export interface VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams + 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 startExpressRouteSiteFailoverSimulation operation. */ +export type VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse = + { + /** The parsed response body. */ + body: string; + }; + +/** Optional parameters. */ +export interface VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams + 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 stopExpressRouteSiteFailoverSimulation operation. */ +export type VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse = + { + /** The parsed response body. */ + body: string; + }; + /** Optional parameters. */ export interface VirtualNetworkGatewaysGetVpnclientConnectionHealthOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index c1973ab9d5ed..92972fdaaab1 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -754,6 +754,39 @@ export const NatGatewaySku: coreClient.CompositeMapper = { }, }; +export const IpamPoolPrefixAllocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolPrefixAllocation", + modelProperties: { + numberOfIpAddresses: { + serializedName: "numberOfIpAddresses", + type: { + name: "String", + }, + }, + allocatedAddressPrefixes: { + serializedName: "allocatedAddressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + id: { + serializedName: "pool.id", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GatewayLoadBalancerTunnelInterface: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5469,7 +5502,7 @@ export const SingleQueryResult: coreClient.CompositeMapper = { serializedName: "direction", type: { name: "Enum", - allowedValues: [0, 1, 2, 3, 4], + allowedValues: [0, 1, 2, 3, 4, 5], }, }, group: { @@ -5635,6 +5668,615 @@ export const SignaturesOverridesList: coreClient.CompositeMapper = { }, }; +export const IpamPoolList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpamPool", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const IpamPoolProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + ipAddressType: { + serializedName: "ipAddressType", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + parentPoolName: { + serializedName: "parentPoolName", + type: { + name: "String", + }, + }, + addressPrefixes: { + serializedName: "addressPrefixes", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CommonResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const CommonErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CommonErrorDetail", + }, + }, + }, + }, +}; + +export const CommonErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const CommonErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, +}; + +export const IpamPoolUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "IpamPoolUpdateProperties", + }, + }, + }, + }, +}; + +export const IpamPoolUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolUpdateProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PoolUsage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolUsage", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + childPools: { + serializedName: "childPools", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceBasics", + }, + }, + }, + }, + allocatedAddressPrefixes: { + serializedName: "allocatedAddressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + reservedAddressPrefixes: { + serializedName: "reservedAddressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + availableAddressPrefixes: { + serializedName: "availableAddressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + totalNumberOfIPAddresses: { + serializedName: "totalNumberOfIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + numberOfAllocatedIPAddresses: { + serializedName: "numberOfAllocatedIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + numberOfReservedIPAddresses: { + serializedName: "numberOfReservedIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + numberOfAvailableIPAddresses: { + serializedName: "numberOfAvailableIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ResourceBasics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceBasics", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PoolAssociationList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolAssociationList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PoolAssociation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PoolAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PoolAssociation", + modelProperties: { + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, + }, + poolId: { + serializedName: "poolId", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + reservedPrefixes: { + serializedName: "reservedPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + totalNumberOfIPAddresses: { + serializedName: "totalNumberOfIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + numberOfReservedIPAddresses: { + serializedName: "numberOfReservedIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + readOnly: true, + type: { + name: "DateTime", + }, + }, + reservationExpiresAt: { + serializedName: "reservationExpiresAt", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const StaticCidrList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StaticCidrList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticCidr", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const StaticCidrProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StaticCidrProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + numberOfIPAddressesToAllocate: { + serializedName: "numberOfIPAddressesToAllocate", + type: { + name: "String", + }, + }, + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + totalNumberOfIPAddresses: { + serializedName: "totalNumberOfIPAddresses", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + export const IpAllocationListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6035,6 +6677,74 @@ export const InboundNatRulePortMapping: coreClient.CompositeMapper = { }, }; +export const LoadBalancerHealthPerRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LoadBalancerHealthPerRule", + modelProperties: { + up: { + serializedName: "up", + type: { + name: "Number", + }, + }, + down: { + serializedName: "down", + type: { + name: "Number", + }, + }, + loadBalancerBackendAddresses: { + serializedName: "loadBalancerBackendAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerHealthPerRulePerBackendAddress", + }, + }, + }, + }, + }, + }, +}; + +export const LoadBalancerHealthPerRulePerBackendAddress: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LoadBalancerHealthPerRulePerBackendAddress", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String", + }, + }, + networkInterfaceIPConfigurationId: { + serializedName: "networkInterfaceIPConfigurationId", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration", + }, + }, + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + reason: { + serializedName: "reason", + type: { + name: "String", + }, + }, + }, + }, + }; + export const MigrateLoadBalancerToIpBasedRequest: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6593,51 +7303,6 @@ export const CrossTenantScopes: coreClient.CompositeMapper = { }, }; -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String", - }, - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - export const PatchObject: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7480,38 +8145,11 @@ export const StaticMemberListResult: coreClient.CompositeMapper = { }, }; -export const ScopeConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScopeConnectionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScopeConnection", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecurityAdminConfigurationListResult: coreClient.CompositeMapper = +export const NetworkManagerRoutingConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAdminConfigurationListResult", + className: "NetworkManagerRoutingConfigurationListResult", modelProperties: { value: { serializedName: "value", @@ -7520,7 +8158,7 @@ export const SecurityAdminConfigurationListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SecurityAdminConfiguration", + className: "NetworkManagerRoutingConfiguration", }, }, }, @@ -7535,10 +8173,10 @@ export const SecurityAdminConfigurationListResult: coreClient.CompositeMapper = }, }; -export const AdminRuleCollectionListResult: coreClient.CompositeMapper = { +export const RoutingRuleCollectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdminRuleCollectionListResult", + className: "RoutingRuleCollectionListResult", modelProperties: { value: { serializedName: "value", @@ -7547,7 +8185,7 @@ export const AdminRuleCollectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdminRuleCollection", + className: "RoutingRuleCollection", }, }, }, @@ -7562,10 +8200,26 @@ export const AdminRuleCollectionListResult: coreClient.CompositeMapper = { }, }; -export const AdminRuleListResult: coreClient.CompositeMapper = { +export const NetworkManagerRoutingGroupItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdminRuleListResult", + className: "NetworkManagerRoutingGroupItem", + modelProperties: { + networkGroupId: { + serializedName: "networkGroupId", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RoutingRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingRuleListResult", modelProperties: { value: { serializedName: "value", @@ -7574,7 +8228,7 @@ export const AdminRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BaseAdminRule", + className: "RoutingRule", }, }, }, @@ -7589,10 +8243,55 @@ export const AdminRuleListResult: coreClient.CompositeMapper = { }, }; -export const SecurityUserConfigurationListResult: coreClient.CompositeMapper = { +export const RoutingRuleRouteDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserConfigurationListResult", + className: "RoutingRuleRouteDestination", + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + destinationAddress: { + serializedName: "destinationAddress", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RoutingRuleNextHop: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingRuleNextHop", + modelProperties: { + nextHopType: { + serializedName: "nextHopType", + required: true, + type: { + name: "String", + }, + }, + nextHopAddress: { + serializedName: "nextHopAddress", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ScopeConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -7601,7 +8300,7 @@ export const SecurityUserConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityUserConfiguration", + className: "ScopeConnection", }, }, }, @@ -7616,11 +8315,11 @@ export const SecurityUserConfigurationListResult: coreClient.CompositeMapper = { }, }; -export const SecurityUserRuleCollectionListResult: coreClient.CompositeMapper = +export const SecurityAdminConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserRuleCollectionListResult", + className: "SecurityAdminConfigurationListResult", modelProperties: { value: { serializedName: "value", @@ -7629,7 +8328,7 @@ export const SecurityUserRuleCollectionListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SecurityUserRuleCollection", + className: "SecurityAdminConfiguration", }, }, }, @@ -7644,14 +8343,25 @@ export const SecurityUserRuleCollectionListResult: coreClient.CompositeMapper = }, }; -export const SecurityUserGroupItem: coreClient.CompositeMapper = { +export const AdminRuleCollectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserGroupItem", + className: "AdminRuleCollectionListResult", modelProperties: { - networkGroupId: { - serializedName: "networkGroupId", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdminRuleCollection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -7660,10 +8370,10 @@ export const SecurityUserGroupItem: coreClient.CompositeMapper = { }, }; -export const SecurityUserRuleListResult: coreClient.CompositeMapper = { +export const AdminRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserRuleListResult", + className: "AdminRuleListResult", modelProperties: { value: { serializedName: "value", @@ -7672,7 +8382,7 @@ export const SecurityUserRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityUserRule", + className: "BaseAdminRule", }, }, }, @@ -7687,19 +8397,25 @@ export const SecurityUserRuleListResult: coreClient.CompositeMapper = { }, }; -export const AddressPrefixItem: coreClient.CompositeMapper = { +export const SecurityUserConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AddressPrefixItem", + className: "SecurityUserConfigurationListResult", modelProperties: { - addressPrefix: { - serializedName: "addressPrefix", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityUserConfiguration", + }, + }, }, }, - addressPrefixType: { - serializedName: "addressPrefixType", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -7708,11 +8424,11 @@ export const AddressPrefixItem: coreClient.CompositeMapper = { }, }; -export const NetworkManagerRoutingConfigurationListResult: coreClient.CompositeMapper = +export const SecurityUserRuleCollectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkManagerRoutingConfigurationListResult", + className: "SecurityUserRuleCollectionListResult", modelProperties: { value: { serializedName: "value", @@ -7721,7 +8437,7 @@ export const NetworkManagerRoutingConfigurationListResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "NetworkManagerRoutingConfiguration", + className: "SecurityUserRuleCollection", }, }, }, @@ -7736,37 +8452,10 @@ export const NetworkManagerRoutingConfigurationListResult: coreClient.CompositeM }, }; -export const RoutingRuleCollectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingRuleCollectionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoutingRuleCollection", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NetworkManagerRoutingGroupItem: coreClient.CompositeMapper = { +export const SecurityUserGroupItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkManagerRoutingGroupItem", + className: "SecurityUserGroupItem", modelProperties: { networkGroupId: { serializedName: "networkGroupId", @@ -7779,10 +8468,10 @@ export const NetworkManagerRoutingGroupItem: coreClient.CompositeMapper = { }, }; -export const RoutingRuleListResult: coreClient.CompositeMapper = { +export const SecurityUserRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingRuleListResult", + className: "SecurityUserRuleListResult", modelProperties: { value: { serializedName: "value", @@ -7791,7 +8480,7 @@ export const RoutingRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoutingRule", + className: "SecurityUserRule", }, }, }, @@ -7806,43 +8495,19 @@ export const RoutingRuleListResult: coreClient.CompositeMapper = { }, }; -export const RoutingRuleRouteDestination: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingRuleRouteDestination", - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String", - }, - }, - destinationAddress: { - serializedName: "destinationAddress", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RoutingRuleNextHop: coreClient.CompositeMapper = { +export const AddressPrefixItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingRuleNextHop", + className: "AddressPrefixItem", modelProperties: { - nextHopType: { - serializedName: "nextHopType", - required: true, + addressPrefix: { + serializedName: "addressPrefix", type: { name: "String", }, }, - nextHopAddress: { - serializedName: "nextHopAddress", + addressPrefixType: { + serializedName: "addressPrefixType", type: { name: "String", }, @@ -7969,6 +8634,344 @@ export const SecurityRuleListResult: coreClient.CompositeMapper = { }, }; +export const ReachabilityAnalysisIntentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReachabilityAnalysisIntentListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReachabilityAnalysisIntent", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ReachabilityAnalysisIntentProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ReachabilityAnalysisIntentProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + sourceResourceId: { + serializedName: "sourceResourceId", + required: true, + type: { + name: "String", + }, + }, + destinationResourceId: { + serializedName: "destinationResourceId", + required: true, + type: { + name: "String", + }, + }, + ipTraffic: { + serializedName: "ipTraffic", + type: { + name: "Composite", + className: "IPTraffic", + }, + }, + }, + }, + }; + +export const IPTraffic: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPTraffic", + modelProperties: { + sourceIps: { + serializedName: "sourceIps", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + destinationIps: { + serializedName: "destinationIps", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + sourcePorts: { + serializedName: "sourcePorts", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + destinationPorts: { + serializedName: "destinationPorts", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + protocols: { + serializedName: "protocols", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ReachabilityAnalysisRunListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReachabilityAnalysisRunListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReachabilityAnalysisRun", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ReachabilityAnalysisRunProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReachabilityAnalysisRunProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + intentId: { + serializedName: "intentId", + required: true, + type: { + name: "String", + }, + }, + intentContent: { + serializedName: "intentContent", + type: { + name: "Composite", + className: "IntentContent", + }, + }, + analysisResult: { + serializedName: "analysisResult", + readOnly: true, + type: { + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const IntentContent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntentContent", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + sourceResourceId: { + serializedName: "sourceResourceId", + required: true, + type: { + name: "String", + }, + }, + destinationResourceId: { + serializedName: "destinationResourceId", + required: true, + type: { + name: "String", + }, + }, + ipTraffic: { + serializedName: "ipTraffic", + type: { + name: "Composite", + className: "IPTraffic", + }, + }, + }, + }, +}; + +export const VerifierWorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VerifierWorkspaceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VerifierWorkspace", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VerifierWorkspaceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VerifierWorkspaceProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VerifierWorkspaceUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VerifierWorkspaceUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VerifierWorkspaceUpdateProperties", + }, + }, + }, + }, +}; + +export const VerifierWorkspaceUpdateProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VerifierWorkspaceUpdateProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, +}; + export const VirtualApplianceSkuProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13149,6 +14152,18 @@ export const AddressSpace: coreClient.CompositeMapper = { }, }, }, + ipamPoolPrefixAllocations: { + serializedName: "ipamPoolPrefixAllocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpamPoolPrefixAllocation", + }, + }, + }, + }, }, }, }; @@ -14508,6 +15523,315 @@ export const VpnPacketCaptureStopParameters: coreClient.CompositeMapper = { }, }; +export const ExpressRouteFailoverTestDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteFailoverTestDetails", + modelProperties: { + peeringLocation: { + serializedName: "peeringLocation", + type: { + name: "String", + }, + }, + circuits: { + serializedName: "circuits", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverCircuitResourceDetails", + }, + }, + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "String", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "String", + }, + }, + connections: { + serializedName: "connections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverConnectionResourceDetails", + }, + }, + }, + }, + testGuid: { + serializedName: "testGuid", + type: { + name: "String", + }, + }, + testType: { + serializedName: "testType", + type: { + name: "String", + }, + }, + issues: { + serializedName: "issues", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ExpressRouteFailoverCircuitResourceDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExpressRouteFailoverCircuitResourceDetails", + modelProperties: { + nrpResourceUri: { + serializedName: "nrpResourceUri", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + connectionName: { + serializedName: "connectionName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ExpressRouteFailoverConnectionResourceDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExpressRouteFailoverConnectionResourceDetails", + modelProperties: { + nrpResourceUri: { + serializedName: "nrpResourceUri", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + lastUpdatedTime: { + serializedName: "lastUpdatedTime", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ExpressRouteFailoverSingleTestDetails: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExpressRouteFailoverSingleTestDetails", + modelProperties: { + peeringLocation: { + serializedName: "peeringLocation", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + startTimeUtc: { + serializedName: "startTimeUtc", + type: { + name: "String", + }, + }, + endTimeUtc: { + serializedName: "endTimeUtc", + type: { + name: "String", + }, + }, + redundantRoutes: { + serializedName: "redundantRoutes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverRedundantRoute", + }, + }, + }, + }, + nonRedundantRoutes: { + serializedName: "nonRedundantRoutes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + wasSimulationSuccessful: { + serializedName: "wasSimulationSuccessful", + type: { + name: "Boolean", + }, + }, + failoverConnectionDetails: { + serializedName: "failoverConnectionDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverConnectionDetails", + }, + }, + }, + }, + }, + }, + }; + +export const ExpressRouteFailoverRedundantRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteFailoverRedundantRoute", + modelProperties: { + peeringLocations: { + serializedName: "peeringLocations", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + routes: { + serializedName: "routes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const FailoverConnectionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverConnectionDetails", + modelProperties: { + failoverConnectionName: { + serializedName: "failoverConnectionName", + type: { + name: "String", + }, + }, + failoverLocation: { + serializedName: "failoverLocation", + type: { + name: "String", + }, + }, + isVerified: { + serializedName: "isVerified", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ExpressRouteFailoverStopApiParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExpressRouteFailoverStopApiParameters", + modelProperties: { + peeringLocation: { + serializedName: "peeringLocation", + type: { + name: "String", + }, + }, + wasSimulationSuccessful: { + serializedName: "wasSimulationSuccessful", + type: { + name: "Boolean", + }, + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailoverConnectionDetails", + }, + }, + }, + }, + }, + }, + }; + export const VirtualNetworkGatewayConnectionListResult: coreClient.CompositeMapper = { type: { @@ -19268,6 +20592,18 @@ export const Subnet: coreClient.CompositeMapper = { name: "Boolean", }, }, + ipamPoolPrefixAllocations: { + serializedName: "properties.ipamPoolPrefixAllocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpamPoolPrefixAllocation", + }, + }, + }, + }, }, }, }; @@ -25374,6 +26710,13 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "Boolean", }, }, + defaultOutboundConnectivityEnabled: { + serializedName: "properties.defaultOutboundConnectivityEnabled", + readOnly: true, + type: { + name: "Boolean", + }, + }, enableAcceleratedNetworking: { serializedName: "properties.enableAcceleratedNetworking", type: { @@ -26916,6 +28259,13 @@ export const BastionHost: coreClient.CompositeMapper = { name: "Boolean", }, }, + enablePrivateOnlyBastion: { + defaultValue: false, + serializedName: "properties.enablePrivateOnlyBastion", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -30759,6 +32109,40 @@ export const FirewallPolicyFilterRuleCollection: coreClient.CompositeMapper = { }, }; +export const CommonTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonTrackedResource", + modelProperties: { + ...CommonResource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CommonProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonProxyResource", + modelProperties: { + ...CommonResource.type.modelProperties, + }, + }, +}; + export const ActiveConnectivityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -31203,10 +32587,10 @@ export const StaticMember: coreClient.CompositeMapper = { }, }; -export const ScopeConnection: coreClient.CompositeMapper = { +export const NetworkManagerRoutingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScopeConnection", + className: "NetworkManagerRoutingConfiguration", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31216,27 +32600,22 @@ export const ScopeConnection: coreClient.CompositeMapper = { className: "SystemData", }, }, - tenantId: { - serializedName: "properties.tenantId", - type: { - name: "String", - }, - }, - resourceId: { - serializedName: "properties.resourceId", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - connectionState: { - serializedName: "properties.connectionState", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "properties.description", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { name: "String", }, @@ -31245,10 +32624,10 @@ export const ScopeConnection: coreClient.CompositeMapper = { }, }; -export const SecurityAdminConfiguration: coreClient.CompositeMapper = { +export const RoutingRuleCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAdminConfiguration", + className: "RoutingRuleCollection", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31264,17 +32643,6 @@ export const SecurityAdminConfiguration: coreClient.CompositeMapper = { name: "String", }, }, - applyOnNetworkIntentPolicyBasedServices: { - serializedName: "properties.applyOnNetworkIntentPolicyBasedServices", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -31289,14 +32657,32 @@ export const SecurityAdminConfiguration: coreClient.CompositeMapper = { name: "String", }, }, + appliesTo: { + serializedName: "properties.appliesTo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkManagerRoutingGroupItem", + }, + }, + }, + }, + disableBgpRoutePropagation: { + serializedName: "properties.disableBgpRoutePropagation", + type: { + name: "String", + }, + }, }, }, }; -export const AdminRuleCollection: coreClient.CompositeMapper = { +export const RoutingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdminRuleCollection", + className: "RoutingRule", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31312,18 +32698,6 @@ export const AdminRuleCollection: coreClient.CompositeMapper = { name: "String", }, }, - appliesToGroups: { - serializedName: "properties.appliesToGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkManagerSecurityGroupItem", - }, - }, - }, - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -31338,29 +32712,30 @@ export const AdminRuleCollection: coreClient.CompositeMapper = { name: "String", }, }, + destination: { + serializedName: "properties.destination", + type: { + name: "Composite", + className: "RoutingRuleRouteDestination", + }, + }, + nextHop: { + serializedName: "properties.nextHop", + type: { + name: "Composite", + className: "RoutingRuleNextHop", + }, + }, }, }, }; -export const BaseAdminRule: coreClient.CompositeMapper = { - serializedName: "BaseAdminRule", +export const ScopeConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaseAdminRule", - uberParent: "ChildResource", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, + className: "ScopeConnection", modelProperties: { ...ChildResource.type.modelProperties, - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, systemData: { serializedName: "systemData", type: { @@ -31368,14 +32743,39 @@ export const BaseAdminRule: coreClient.CompositeMapper = { className: "SystemData", }, }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String", + }, + }, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String", + }, + }, + connectionState: { + serializedName: "properties.connectionState", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, }, }, }; -export const SecurityUserConfiguration: coreClient.CompositeMapper = { +export const SecurityAdminConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserConfiguration", + className: "SecurityAdminConfiguration", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31391,6 +32791,23 @@ export const SecurityUserConfiguration: coreClient.CompositeMapper = { name: "String", }, }, + applyOnNetworkIntentPolicyBasedServices: { + serializedName: "properties.applyOnNetworkIntentPolicyBasedServices", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + networkGroupAddressSpaceAggregationOption: { + serializedName: "properties.networkGroupAddressSpaceAggregationOption", + type: { + name: "String", + }, + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -31409,10 +32826,10 @@ export const SecurityUserConfiguration: coreClient.CompositeMapper = { }, }; -export const SecurityUserRuleCollection: coreClient.CompositeMapper = { +export const AdminRuleCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityUserRuleCollection", + className: "AdminRuleCollection", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31435,7 +32852,7 @@ export const SecurityUserRuleCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityUserGroupItem", + className: "NetworkManagerSecurityGroupItem", }, }, }, @@ -31458,79 +32875,51 @@ export const SecurityUserRuleCollection: coreClient.CompositeMapper = { }, }; -export const SecurityUserRule: coreClient.CompositeMapper = { +export const BaseAdminRule: coreClient.CompositeMapper = { + serializedName: "BaseAdminRule", type: { name: "Composite", - className: "SecurityUserRule", + className: "BaseAdminRule", + uberParent: "ChildResource", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, modelProperties: { ...ChildResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - description: { - serializedName: "properties.description", - type: { - name: "String", - }, - }, - protocol: { - serializedName: "properties.protocol", + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, }, - sources: { - serializedName: "properties.sources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AddressPrefixItem", - }, - }, - }, - }, - destinations: { - serializedName: "properties.destinations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AddressPrefixItem", - }, - }, - }, - }, - sourcePortRanges: { - serializedName: "properties.sourcePortRanges", + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "SystemData", }, }, - destinationPortRanges: { - serializedName: "properties.destinationPortRanges", + }, + }, +}; + +export const SecurityUserConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityUserConfiguration", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "SystemData", }, }, - direction: { - serializedName: "properties.direction", + description: { + serializedName: "properties.description", type: { name: "String", }, @@ -31553,10 +32942,10 @@ export const SecurityUserRule: coreClient.CompositeMapper = { }, }; -export const NetworkManagerRoutingConfiguration: coreClient.CompositeMapper = { +export const SecurityUserRuleCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkManagerRoutingConfiguration", + className: "SecurityUserRuleCollection", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31572,6 +32961,18 @@ export const NetworkManagerRoutingConfiguration: coreClient.CompositeMapper = { name: "String", }, }, + appliesToGroups: { + serializedName: "properties.appliesToGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityUserGroupItem", + }, + }, + }, + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -31590,10 +32991,10 @@ export const NetworkManagerRoutingConfiguration: coreClient.CompositeMapper = { }, }; -export const RoutingRuleCollection: coreClient.CompositeMapper = { +export const SecurityUserRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingRuleCollection", + className: "SecurityUserRule", modelProperties: { ...ChildResource.type.modelProperties, systemData: { @@ -31609,57 +33010,60 @@ export const RoutingRuleCollection: coreClient.CompositeMapper = { name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + protocol: { + serializedName: "properties.protocol", type: { name: "String", }, }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + sources: { + serializedName: "properties.sources", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddressPrefixItem", + }, + }, }, }, - appliesTo: { - serializedName: "properties.appliesTo", + destinations: { + serializedName: "properties.destinations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkManagerRoutingGroupItem", + className: "AddressPrefixItem", }, }, }, }, - disableBgpRoutePropagation: { - serializedName: "properties.disableBgpRoutePropagation", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - }, - }, -}; - -export const RoutingRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingRule", - modelProperties: { - ...ChildResource.type.modelProperties, - systemData: { - serializedName: "systemData", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", type: { - name: "Composite", - className: "SystemData", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - description: { - serializedName: "properties.description", + direction: { + serializedName: "properties.direction", type: { name: "String", }, @@ -31678,20 +33082,6 @@ export const RoutingRule: coreClient.CompositeMapper = { name: "String", }, }, - destination: { - serializedName: "properties.destination", - type: { - name: "Composite", - className: "RoutingRuleRouteDestination", - }, - }, - nextHop: { - serializedName: "properties.nextHop", - type: { - name: "Composite", - className: "RoutingRuleNextHop", - }, - }, }, }, }; @@ -32151,18 +33541,92 @@ export const NatRule: coreClient.CompositeMapper = { }, }, }, - translatedAddress: { - serializedName: "translatedAddress", - type: { - name: "String", - }, - }, - translatedPort: { - serializedName: "translatedPort", - type: { - name: "String", - }, - }, + translatedAddress: { + serializedName: "translatedAddress", + type: { + name: "String", + }, + }, + translatedPort: { + serializedName: "translatedPort", + type: { + name: "String", + }, + }, + sourceIpGroups: { + serializedName: "sourceIpGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + translatedFqdn: { + serializedName: "translatedFqdn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NetworkRule: coreClient.CompositeMapper = { + serializedName: "NetworkRule", + type: { + name: "Composite", + className: "NetworkRule", + uberParent: "FirewallPolicyRule", + polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, + modelProperties: { + ...FirewallPolicyRule.type.modelProperties, + ipProtocols: { + serializedName: "ipProtocols", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + sourceAddresses: { + serializedName: "sourceAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + destinationAddresses: { + serializedName: "destinationAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + destinationPorts: { + serializedName: "destinationPorts", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, sourceIpGroups: { serializedName: "sourceIpGroups", type: { @@ -32174,27 +33638,8 @@ export const NatRule: coreClient.CompositeMapper = { }, }, }, - translatedFqdn: { - serializedName: "translatedFqdn", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NetworkRule: coreClient.CompositeMapper = { - serializedName: "NetworkRule", - type: { - name: "Composite", - className: "NetworkRule", - uberParent: "FirewallPolicyRule", - polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, - modelProperties: { - ...FirewallPolicyRule.type.modelProperties, - ipProtocols: { - serializedName: "ipProtocols", + destinationIpGroups: { + serializedName: "destinationIpGroups", type: { name: "Sequence", element: { @@ -32204,8 +33649,8 @@ export const NetworkRule: coreClient.CompositeMapper = { }, }, }, - sourceAddresses: { - serializedName: "sourceAddresses", + destinationFqdns: { + serializedName: "destinationFqdns", type: { name: "Sequence", element: { @@ -32215,59 +33660,89 @@ export const NetworkRule: coreClient.CompositeMapper = { }, }, }, - destinationAddresses: { - serializedName: "destinationAddresses", + }, + }, +}; + +export const IpamPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPool", + modelProperties: { + ...CommonTrackedResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "IpamPoolProperties", }, }, - destinationPorts: { - serializedName: "destinationPorts", + }, + }, +}; + +export const VerifierWorkspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VerifierWorkspace", + modelProperties: { + ...CommonTrackedResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "VerifierWorkspaceProperties", }, }, - sourceIpGroups: { - serializedName: "sourceIpGroups", + }, + }, +}; + +export const StaticCidr: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StaticCidr", + modelProperties: { + ...CommonProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "StaticCidrProperties", }, }, - destinationIpGroups: { - serializedName: "destinationIpGroups", + }, + }, +}; + +export const ReachabilityAnalysisIntent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReachabilityAnalysisIntent", + modelProperties: { + ...CommonProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ReachabilityAnalysisIntentProperties", }, }, - destinationFqdns: { - serializedName: "destinationFqdns", + }, + }, +}; + +export const ReachabilityAnalysisRun: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReachabilityAnalysisRun", + modelProperties: { + ...CommonProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "ReachabilityAnalysisRunProperties", }, }, }, @@ -32657,6 +34132,51 @@ export const FirewallPolicyDeploymentsDeployHeaders: coreClient.CompositeMapper }, }; +export const IpamPoolsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const IpamPoolsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpamPoolsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const StaticCidrsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StaticCidrsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const IpAllocationsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -32672,6 +34192,22 @@ export const IpAllocationsDeleteHeaders: coreClient.CompositeMapper = { }, }; +export const LoadBalancerLoadBalancingRulesHealthHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LoadBalancerLoadBalancingRulesHealthHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + export const NetworkManagersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -32748,6 +34284,52 @@ export const NetworkGroupsDeleteHeaders: coreClient.CompositeMapper = { }, }; +export const NetworkManagerRoutingConfigurationsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkManagerRoutingConfigurationsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RoutingRuleCollectionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingRuleCollectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RoutingRulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingRulesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const SecurityAdminConfigurationsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -32841,11 +34423,11 @@ export const SecurityUserRulesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const NetworkManagerRoutingConfigurationsDeleteHeaders: coreClient.CompositeMapper = +export const ReachabilityAnalysisRunsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkManagerRoutingConfigurationsDeleteHeaders", + className: "ReachabilityAnalysisRunsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -32857,25 +34439,10 @@ export const NetworkManagerRoutingConfigurationsDeleteHeaders: coreClient.Compos }, }; -export const RoutingRuleCollectionsDeleteHeaders: coreClient.CompositeMapper = { +export const VerifierWorkspacesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingRuleCollectionsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RoutingRulesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingRulesDeleteHeaders", + className: "VerifierWorkspacesDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -32977,6 +34544,72 @@ export const RouteFilterRulesDeleteHeaders: coreClient.CompositeMapper = { }, }; +export const VirtualNetworkGatewaysGetFailoverAllTestDetailsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualNetworkGatewaysGetFailoverAllTestDetailsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualNetworkGatewaysGetFailoverSingleTestDetailsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualNetworkGatewaysGetFailoverSingleTestDetailsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + export const NetworkVirtualApplianceConnectionsDeleteHeaders: coreClient.CompositeMapper = { type: { diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 89207c24ff13..28fb5297ca6e 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -49,6 +49,9 @@ import { SignatureOverridesFilterValuesQuery as SignatureOverridesFilterValuesQueryMapper, FirewallPolicyDraft as FirewallPolicyDraftMapper, FirewallPolicyRuleCollectionGroupDraft as FirewallPolicyRuleCollectionGroupDraftMapper, + IpamPool as IpamPoolMapper, + IpamPoolUpdate as IpamPoolUpdateMapper, + StaticCidr as StaticCidrMapper, IpAllocation as IpAllocationMapper, IpGroup as IpGroupMapper, LoadBalancer as LoadBalancerMapper, @@ -67,6 +70,9 @@ import { ConnectivityConfiguration as ConnectivityConfigurationMapper, NetworkGroup as NetworkGroupMapper, StaticMember as StaticMemberMapper, + NetworkManagerRoutingConfiguration as NetworkManagerRoutingConfigurationMapper, + RoutingRuleCollection as RoutingRuleCollectionMapper, + RoutingRule as RoutingRuleMapper, ScopeConnection as ScopeConnectionMapper, SecurityAdminConfiguration as SecurityAdminConfigurationMapper, AdminRuleCollection as AdminRuleCollectionMapper, @@ -74,12 +80,13 @@ import { SecurityUserConfiguration as SecurityUserConfigurationMapper, SecurityUserRuleCollection as SecurityUserRuleCollectionMapper, SecurityUserRule as SecurityUserRuleMapper, - NetworkManagerRoutingConfiguration as NetworkManagerRoutingConfigurationMapper, - RoutingRuleCollection as RoutingRuleCollectionMapper, - RoutingRule as RoutingRuleMapper, NetworkProfile as NetworkProfileMapper, NetworkSecurityGroup as NetworkSecurityGroupMapper, SecurityRule as SecurityRuleMapper, + ReachabilityAnalysisIntent as ReachabilityAnalysisIntentMapper, + ReachabilityAnalysisRun as ReachabilityAnalysisRunMapper, + VerifierWorkspace as VerifierWorkspaceMapper, + VerifierWorkspaceUpdate as VerifierWorkspaceUpdateMapper, NetworkVirtualAppliance as NetworkVirtualApplianceMapper, NetworkVirtualApplianceInstanceIds as NetworkVirtualApplianceInstanceIdsMapper, VirtualApplianceSite as VirtualApplianceSiteMapper, @@ -124,6 +131,7 @@ import { VpnDeviceScriptParameters as VpnDeviceScriptParametersMapper, VpnPacketCaptureStartParameters as VpnPacketCaptureStartParametersMapper, VpnPacketCaptureStopParameters as VpnPacketCaptureStopParametersMapper, + ExpressRouteFailoverStopApiParameters as ExpressRouteFailoverStopApiParametersMapper, P2SVpnConnectionRequest as P2SVpnConnectionRequestMapper, VirtualNetworkGatewayConnection as VirtualNetworkGatewayConnectionMapper, ConnectionSharedKey as ConnectionSharedKeyMapper, @@ -215,7 +223,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-03-01", + defaultValue: "2024-05-01", isConstant: true, serializedName: "api-version", type: { @@ -951,6 +959,115 @@ export const parameters25: OperationParameter = { mapper: FirewallPolicyRuleCollectionGroupDraftMapper, }; +export const networkManagerName1: OperationURLParameter = { + parameterPath: "networkManagerName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "networkManagerName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], + mapper: { + serializedName: "skipToken", + type: { + name: "String", + }, + }, +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + defaultValue: 0, + serializedName: "skip", + type: { + name: "Number", + }, + }, +}; + +export const top1: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + defaultValue: 50, + serializedName: "top", + type: { + name: "Number", + }, + }, +}; + +export const sortKey: OperationQueryParameter = { + parameterPath: ["options", "sortKey"], + mapper: { + serializedName: "sortKey", + type: { + name: "String", + }, + }, +}; + +export const sortValue: OperationQueryParameter = { + parameterPath: ["options", "sortValue"], + mapper: { + serializedName: "sortValue", + type: { + name: "String", + }, + }, +}; + +export const body: OperationParameter = { + parameterPath: "body", + mapper: IpamPoolMapper, +}; + +export const poolName: OperationURLParameter = { + parameterPath: "poolName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "poolName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body1: OperationParameter = { + parameterPath: ["options", "body"], + mapper: IpamPoolUpdateMapper, +}; + +export const body2: OperationParameter = { + parameterPath: ["options", "body"], + mapper: StaticCidrMapper, +}; + +export const staticCidrName: OperationURLParameter = { + parameterPath: "staticCidrName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "staticCidrName", + required: true, + type: { + name: "String", + }, + }, +}; + export const ipAllocationName: OperationURLParameter = { parameterPath: "ipAllocationName", mapper: { @@ -1107,6 +1224,20 @@ export const loadBalancingRuleName: OperationURLParameter = { }, }; +export const loadBalancingRuleName1: OperationURLParameter = { + parameterPath: "loadBalancingRuleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + }, + serializedName: "loadBalancingRuleName", + required: true, + type: { + name: "String", + }, + }, +}; + export const outboundRuleName: OperationURLParameter = { parameterPath: "outboundRuleName", mapper: { @@ -1181,7 +1312,7 @@ export const parameters35: OperationParameter = { mapper: PatchObjectMapper, }; -export const skipToken: OperationQueryParameter = { +export const skipToken1: OperationQueryParameter = { parameterPath: ["options", "skipToken"], mapper: { serializedName: "$skipToken", @@ -1286,15 +1417,14 @@ export const parameters40: OperationParameter = { mapper: StaticMemberMapper, }; -export const parameters41: OperationParameter = { - parameterPath: "parameters", - mapper: ScopeConnectionMapper, -}; - -export const scopeConnectionName: OperationURLParameter = { - parameterPath: "scopeConnectionName", +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "scopeConnectionName", + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", required: true, type: { name: "String", @@ -1302,15 +1432,13 @@ export const scopeConnectionName: OperationURLParameter = { }, }; -export const securityAdminConfiguration: OperationParameter = { - parameterPath: "securityAdminConfiguration", - mapper: SecurityAdminConfigurationMapper, -}; - -export const ruleCollectionName: OperationURLParameter = { - parameterPath: "ruleCollectionName", +export const networkManagerName2: OperationURLParameter = { + parameterPath: "networkManagerName", mapper: { - serializedName: "ruleCollectionName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), + }, + serializedName: "networkManagerName", required: true, type: { name: "String", @@ -1318,15 +1446,13 @@ export const ruleCollectionName: OperationURLParameter = { }, }; -export const ruleCollection: OperationParameter = { - parameterPath: "ruleCollection", - mapper: AdminRuleCollectionMapper, -}; - -export const ruleName: OperationURLParameter = { - parameterPath: "ruleName", +export const configurationName1: OperationURLParameter = { + parameterPath: "configurationName", mapper: { - serializedName: "ruleName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), + }, + serializedName: "configurationName", required: true, type: { name: "String", @@ -1334,19 +1460,18 @@ export const ruleName: OperationURLParameter = { }, }; -export const adminRule: OperationParameter = { - parameterPath: "adminRule", - mapper: BaseAdminRuleMapper, +export const routingConfiguration: OperationParameter = { + parameterPath: "routingConfiguration", + mapper: NetworkManagerRoutingConfigurationMapper, }; -export const resourceGroupName1: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const ruleCollectionName: OperationURLParameter = { + parameterPath: "ruleCollectionName", mapper: { constraints: { - MaxLength: 90, - MinLength: 1, + Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), }, - serializedName: "resourceGroupName", + serializedName: "ruleCollectionName", required: true, type: { name: "String", @@ -1354,13 +1479,18 @@ export const resourceGroupName1: OperationURLParameter = { }, }; -export const networkManagerName1: OperationURLParameter = { - parameterPath: "networkManagerName", +export const ruleCollection: OperationParameter = { + parameterPath: "ruleCollection", + mapper: RoutingRuleCollectionMapper, +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), }, - serializedName: "networkManagerName", + serializedName: "ruleName", required: true, type: { name: "String", @@ -1368,13 +1498,20 @@ export const networkManagerName1: OperationURLParameter = { }, }; -export const configurationName1: OperationURLParameter = { - parameterPath: "configurationName", +export const routingRule: OperationParameter = { + parameterPath: "routingRule", + mapper: RoutingRuleMapper, +}; + +export const parameters41: OperationParameter = { + parameterPath: "parameters", + mapper: ScopeConnectionMapper, +}; + +export const scopeConnectionName: OperationURLParameter = { + parameterPath: "scopeConnectionName", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), - }, - serializedName: "configurationName", + serializedName: "scopeConnectionName", required: true, type: { name: "String", @@ -1382,17 +1519,14 @@ export const configurationName1: OperationURLParameter = { }, }; -export const securityUserConfiguration: OperationParameter = { - parameterPath: "securityUserConfiguration", - mapper: SecurityUserConfigurationMapper, +export const securityAdminConfiguration: OperationParameter = { + parameterPath: "securityAdminConfiguration", + mapper: SecurityAdminConfigurationMapper, }; export const ruleCollectionName1: OperationURLParameter = { parameterPath: "ruleCollectionName", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), - }, serializedName: "ruleCollectionName", required: true, type: { @@ -1401,17 +1535,14 @@ export const ruleCollectionName1: OperationURLParameter = { }, }; -export const securityUserRuleCollection: OperationParameter = { - parameterPath: "securityUserRuleCollection", - mapper: SecurityUserRuleCollectionMapper, +export const ruleCollection1: OperationParameter = { + parameterPath: "ruleCollection", + mapper: AdminRuleCollectionMapper, }; export const ruleName1: OperationURLParameter = { parameterPath: "ruleName", mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9_.-]*$"), - }, serializedName: "ruleName", required: true, type: { @@ -1420,24 +1551,24 @@ export const ruleName1: OperationURLParameter = { }, }; -export const securityUserRule: OperationParameter = { - parameterPath: "securityUserRule", - mapper: SecurityUserRuleMapper, +export const adminRule: OperationParameter = { + parameterPath: "adminRule", + mapper: BaseAdminRuleMapper, }; -export const routingConfiguration: OperationParameter = { - parameterPath: "routingConfiguration", - mapper: NetworkManagerRoutingConfigurationMapper, +export const securityUserConfiguration: OperationParameter = { + parameterPath: "securityUserConfiguration", + mapper: SecurityUserConfigurationMapper, }; -export const ruleCollection1: OperationParameter = { - parameterPath: "ruleCollection", - mapper: RoutingRuleCollectionMapper, +export const securityUserRuleCollection: OperationParameter = { + parameterPath: "securityUserRuleCollection", + mapper: SecurityUserRuleCollectionMapper, }; -export const routingRule: OperationParameter = { - parameterPath: "routingRule", - mapper: RoutingRuleMapper, +export const securityUserRule: OperationParameter = { + parameterPath: "securityUserRule", + mapper: SecurityUserRuleMapper, }; export const networkProfileName: OperationURLParameter = { @@ -1499,6 +1630,68 @@ export const defaultSecurityRuleName: OperationURLParameter = { }, }; +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "workspaceName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const reachabilityAnalysisIntentName: OperationURLParameter = { + parameterPath: "reachabilityAnalysisIntentName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "reachabilityAnalysisIntentName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body3: OperationParameter = { + parameterPath: "body", + mapper: ReachabilityAnalysisIntentMapper, +}; + +export const reachabilityAnalysisRunName: OperationURLParameter = { + parameterPath: "reachabilityAnalysisRunName", + mapper: { + constraints: { + Pattern: new RegExp("^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"), + }, + serializedName: "reachabilityAnalysisRunName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body4: OperationParameter = { + parameterPath: "body", + mapper: ReachabilityAnalysisRunMapper, +}; + +export const body5: OperationParameter = { + parameterPath: "body", + mapper: VerifierWorkspaceMapper, +}; + +export const body6: OperationParameter = { + parameterPath: ["options", "body"], + mapper: VerifierWorkspaceUpdateMapper, +}; + export const networkVirtualApplianceName: OperationURLParameter = { parameterPath: "networkVirtualApplianceName", mapper: { @@ -1922,7 +2115,7 @@ export const ipAddress: OperationQueryParameter = { }, }; -export const top1: OperationQueryParameter = { +export const top2: OperationQueryParameter = { parameterPath: ["options", "top"], mapper: { serializedName: "top", @@ -1932,16 +2125,6 @@ export const top1: OperationQueryParameter = { }, }; -export const skipToken1: OperationQueryParameter = { - parameterPath: ["options", "skipToken"], - mapper: { - serializedName: "skipToken", - type: { - name: "String", - }, - }, -}; - export const subnetName: OperationURLParameter = { parameterPath: "subnetName", mapper: { @@ -2077,6 +2260,55 @@ export const parameters77: OperationParameter = { mapper: VpnPacketCaptureStopParametersMapper, }; +export const typeParam: OperationQueryParameter = { + parameterPath: "typeParam", + mapper: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, +}; + +export const fetchLatest: OperationQueryParameter = { + parameterPath: "fetchLatest", + mapper: { + serializedName: "fetchLatest", + required: true, + type: { + name: "Boolean", + }, + }, +}; + +export const peeringLocation: OperationQueryParameter = { + parameterPath: "peeringLocation", + mapper: { + serializedName: "peeringLocation", + required: true, + type: { + name: "String", + }, + }, +}; + +export const failoverTestId: OperationQueryParameter = { + parameterPath: "failoverTestId", + mapper: { + serializedName: "failoverTestId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const stopParameters: OperationParameter = { + parameterPath: "stopParameters", + mapper: ExpressRouteFailoverStopApiParametersMapper, +}; + export const request1: OperationParameter = { parameterPath: "request", mapper: P2SVpnConnectionRequestMapper, diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 97628fcaff6e..6c778b53d668 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -60,6 +60,8 @@ import { FirewallPolicyDraftsImpl, FirewallPolicyDeploymentsImpl, FirewallPolicyRuleCollectionGroupDraftsImpl, + IpamPoolsImpl, + StaticCidrsImpl, IpAllocationsImpl, IpGroupsImpl, LoadBalancersImpl, @@ -82,6 +84,9 @@ import { ConnectivityConfigurationsImpl, NetworkGroupsImpl, StaticMembersImpl, + NetworkManagerRoutingConfigurationsImpl, + RoutingRuleCollectionsImpl, + RoutingRulesImpl, ScopeConnectionsImpl, SecurityAdminConfigurationsImpl, AdminRuleCollectionsImpl, @@ -89,13 +94,13 @@ import { SecurityUserConfigurationsImpl, SecurityUserRuleCollectionsImpl, SecurityUserRulesImpl, - NetworkManagerRoutingConfigurationsImpl, - RoutingRuleCollectionsImpl, - RoutingRulesImpl, NetworkProfilesImpl, NetworkSecurityGroupsImpl, SecurityRulesImpl, DefaultSecurityRulesImpl, + ReachabilityAnalysisIntentsImpl, + ReachabilityAnalysisRunsImpl, + VerifierWorkspacesImpl, NetworkVirtualAppliancesImpl, VirtualApplianceSitesImpl, VirtualApplianceSkusImpl, @@ -203,6 +208,8 @@ import { FirewallPolicyDrafts, FirewallPolicyDeployments, FirewallPolicyRuleCollectionGroupDrafts, + IpamPools, + StaticCidrs, IpAllocations, IpGroups, LoadBalancers, @@ -225,6 +232,9 @@ import { ConnectivityConfigurations, NetworkGroups, StaticMembers, + NetworkManagerRoutingConfigurations, + RoutingRuleCollections, + RoutingRules, ScopeConnections, SecurityAdminConfigurations, AdminRuleCollections, @@ -232,13 +242,13 @@ import { SecurityUserConfigurations, SecurityUserRuleCollections, SecurityUserRules, - NetworkManagerRoutingConfigurations, - RoutingRuleCollections, - RoutingRules, NetworkProfiles, NetworkSecurityGroups, SecurityRules, DefaultSecurityRules, + ReachabilityAnalysisIntents, + ReachabilityAnalysisRuns, + VerifierWorkspaces, NetworkVirtualAppliances, VirtualApplianceSites, VirtualApplianceSkus, @@ -400,7 +410,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-network/33.4.1`; + const packageDetails = `azsdk-js-arm-network/33.5.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -521,6 +531,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.firewallPolicyDeployments = new FirewallPolicyDeploymentsImpl(this); this.firewallPolicyRuleCollectionGroupDrafts = new FirewallPolicyRuleCollectionGroupDraftsImpl(this); + this.ipamPools = new IpamPoolsImpl(this); + this.staticCidrs = new StaticCidrsImpl(this); this.ipAllocations = new IpAllocationsImpl(this); this.ipGroups = new IpGroupsImpl(this); this.loadBalancers = new LoadBalancersImpl(this); @@ -555,6 +567,10 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.connectivityConfigurations = new ConnectivityConfigurationsImpl(this); this.networkGroups = new NetworkGroupsImpl(this); this.staticMembers = new StaticMembersImpl(this); + this.networkManagerRoutingConfigurations = + new NetworkManagerRoutingConfigurationsImpl(this); + this.routingRuleCollections = new RoutingRuleCollectionsImpl(this); + this.routingRules = new RoutingRulesImpl(this); this.scopeConnections = new ScopeConnectionsImpl(this); this.securityAdminConfigurations = new SecurityAdminConfigurationsImpl( this, @@ -566,14 +582,15 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this, ); this.securityUserRules = new SecurityUserRulesImpl(this); - this.networkManagerRoutingConfigurations = - new NetworkManagerRoutingConfigurationsImpl(this); - this.routingRuleCollections = new RoutingRuleCollectionsImpl(this); - this.routingRules = new RoutingRulesImpl(this); this.networkProfiles = new NetworkProfilesImpl(this); this.networkSecurityGroups = new NetworkSecurityGroupsImpl(this); this.securityRules = new SecurityRulesImpl(this); this.defaultSecurityRules = new DefaultSecurityRulesImpl(this); + this.reachabilityAnalysisIntents = new ReachabilityAnalysisIntentsImpl( + this, + ); + this.reachabilityAnalysisRuns = new ReachabilityAnalysisRunsImpl(this); + this.verifierWorkspaces = new VerifierWorkspacesImpl(this); this.networkVirtualAppliances = new NetworkVirtualAppliancesImpl(this); this.virtualApplianceSites = new VirtualApplianceSitesImpl(this); this.virtualApplianceSkus = new VirtualApplianceSkusImpl(this); @@ -1735,6 +1752,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { firewallPolicyDrafts: FirewallPolicyDrafts; firewallPolicyDeployments: FirewallPolicyDeployments; firewallPolicyRuleCollectionGroupDrafts: FirewallPolicyRuleCollectionGroupDrafts; + ipamPools: IpamPools; + staticCidrs: StaticCidrs; ipAllocations: IpAllocations; ipGroups: IpGroups; loadBalancers: LoadBalancers; @@ -1757,6 +1776,9 @@ export class NetworkManagementClient extends coreClient.ServiceClient { connectivityConfigurations: ConnectivityConfigurations; networkGroups: NetworkGroups; staticMembers: StaticMembers; + networkManagerRoutingConfigurations: NetworkManagerRoutingConfigurations; + routingRuleCollections: RoutingRuleCollections; + routingRules: RoutingRules; scopeConnections: ScopeConnections; securityAdminConfigurations: SecurityAdminConfigurations; adminRuleCollections: AdminRuleCollections; @@ -1764,13 +1786,13 @@ export class NetworkManagementClient extends coreClient.ServiceClient { securityUserConfigurations: SecurityUserConfigurations; securityUserRuleCollections: SecurityUserRuleCollections; securityUserRules: SecurityUserRules; - networkManagerRoutingConfigurations: NetworkManagerRoutingConfigurations; - routingRuleCollections: RoutingRuleCollections; - routingRules: RoutingRules; networkProfiles: NetworkProfiles; networkSecurityGroups: NetworkSecurityGroups; securityRules: SecurityRules; defaultSecurityRules: DefaultSecurityRules; + reachabilityAnalysisIntents: ReachabilityAnalysisIntents; + reachabilityAnalysisRuns: ReachabilityAnalysisRuns; + verifierWorkspaces: VerifierWorkspaces; networkVirtualAppliances: NetworkVirtualAppliances; virtualApplianceSites: VirtualApplianceSites; virtualApplianceSkus: VirtualApplianceSkus; diff --git a/sdk/network/arm-network/src/operations/adminRuleCollections.ts b/sdk/network/arm-network/src/operations/adminRuleCollections.ts index 6671f28de5ad..6d8c172b612b 100644 --- a/sdk/network/arm-network/src/operations/adminRuleCollections.ts +++ b/sdk/network/arm-network/src/operations/adminRuleCollections.ts @@ -350,19 +350,19 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, ], headerParameters: [Parameters.accept], @@ -376,7 +376,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleCollection, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -384,9 +384,9 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, ], headerParameters: [Parameters.accept], serializer, @@ -402,18 +402,18 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleCollection, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, - requestBody: Parameters.ruleCollection, + requestBody: Parameters.ruleCollection1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -428,7 +428,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion, Parameters.force], @@ -436,9 +436,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, ], headerParameters: [Parameters.accept], serializer, @@ -451,7 +451,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, urlParameters: [ @@ -459,7 +459,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, ], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/adminRules.ts b/sdk/network/arm-network/src/operations/adminRules.ts index 883ff15aa038..ceacff0c8ba3 100644 --- a/sdk/network/arm-network/src/operations/adminRules.ts +++ b/sdk/network/arm-network/src/operations/adminRules.ts @@ -382,21 +382,21 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, ], headerParameters: [Parameters.accept], serializer, @@ -409,7 +409,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.BaseAdminRule, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -417,10 +417,10 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, - Parameters.ruleName, + Parameters.ruleCollectionName1, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -436,7 +436,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.BaseAdminRule, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, requestBody: Parameters.adminRule, @@ -445,10 +445,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, - Parameters.ruleName, + Parameters.ruleCollectionName1, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -463,7 +463,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion, Parameters.force], @@ -471,10 +471,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, - Parameters.ruleName, + Parameters.ruleCollectionName1, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -487,7 +487,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AdminRuleListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, urlParameters: [ @@ -495,9 +495,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/connectivityConfigurations.ts b/sdk/network/arm-network/src/operations/connectivityConfigurations.ts index f5da1542b226..986786c45383 100644 --- a/sdk/network/arm-network/src/operations/connectivityConfigurations.ts +++ b/sdk/network/arm-network/src/operations/connectivityConfigurations.ts @@ -394,7 +394,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts index 657ab633ddd8..21b1e4440a2d 100644 --- a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts @@ -200,7 +200,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, Parameters.networkVirtualApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -223,7 +223,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.ruleCollectionName, + Parameters.ruleCollectionName1, Parameters.networkVirtualApplianceName, ], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/index.ts b/sdk/network/arm-network/src/operations/index.ts index 7fdbc259397b..e7e7bdb4a70a 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -48,6 +48,8 @@ export * from "./firewallPolicyIdpsSignaturesFilterValues"; export * from "./firewallPolicyDrafts"; export * from "./firewallPolicyDeployments"; export * from "./firewallPolicyRuleCollectionGroupDrafts"; +export * from "./ipamPools"; +export * from "./staticCidrs"; export * from "./ipAllocations"; export * from "./ipGroups"; export * from "./loadBalancers"; @@ -70,6 +72,9 @@ export * from "./managementGroupNetworkManagerConnections"; export * from "./connectivityConfigurations"; export * from "./networkGroups"; export * from "./staticMembers"; +export * from "./networkManagerRoutingConfigurations"; +export * from "./routingRuleCollections"; +export * from "./routingRules"; export * from "./scopeConnections"; export * from "./securityAdminConfigurations"; export * from "./adminRuleCollections"; @@ -77,13 +82,13 @@ export * from "./adminRules"; export * from "./securityUserConfigurations"; export * from "./securityUserRuleCollections"; export * from "./securityUserRules"; -export * from "./networkManagerRoutingConfigurations"; -export * from "./routingRuleCollections"; -export * from "./routingRules"; export * from "./networkProfiles"; export * from "./networkSecurityGroups"; export * from "./securityRules"; export * from "./defaultSecurityRules"; +export * from "./reachabilityAnalysisIntents"; +export * from "./reachabilityAnalysisRuns"; +export * from "./verifierWorkspaces"; export * from "./networkVirtualAppliances"; export * from "./virtualApplianceSites"; export * from "./virtualApplianceSkus"; diff --git a/sdk/network/arm-network/src/operations/ipamPools.ts b/sdk/network/arm-network/src/operations/ipamPools.ts new file mode 100644 index 000000000000..73eff76932b1 --- /dev/null +++ b/sdk/network/arm-network/src/operations/ipamPools.ts @@ -0,0 +1,787 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { IpamPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + IpamPool, + IpamPoolsListNextOptionalParams, + IpamPoolsListOptionalParams, + IpamPoolsListResponse, + PoolAssociation, + IpamPoolsListAssociatedResourcesNextOptionalParams, + IpamPoolsListAssociatedResourcesOptionalParams, + IpamPoolsListAssociatedResourcesResponse, + IpamPoolsCreateOptionalParams, + IpamPoolsCreateResponse, + IpamPoolsUpdateOptionalParams, + IpamPoolsUpdateResponse, + IpamPoolsGetOptionalParams, + IpamPoolsGetResponse, + IpamPoolsDeleteOptionalParams, + IpamPoolsDeleteResponse, + IpamPoolsGetPoolUsageOptionalParams, + IpamPoolsGetPoolUsageResponse, + IpamPoolsListNextResponse, + IpamPoolsListAssociatedResourcesNextResponse, +} from "../models"; + +/// +/** Class containing IpamPools operations. */ +export class IpamPoolsImpl implements IpamPools { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class IpamPools class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets list of Pool resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: IpamPoolsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: IpamPoolsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: IpamPoolsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: IpamPoolsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + )) { + yield* page; + } + } + + /** + * List Associated Resource in the Pool. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + public listAssociatedResources( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsListAssociatedResourcesOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAssociatedResourcesPagingAll( + resourceGroupName, + networkManagerName, + poolName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listAssociatedResourcesPagingPage( + resourceGroupName, + networkManagerName, + poolName, + options, + settings, + ); + }, + }; + } + + private async *listAssociatedResourcesPagingPage( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsListAssociatedResourcesOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: IpamPoolsListAssociatedResourcesResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAssociatedResources( + resourceGroupName, + networkManagerName, + poolName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAssociatedResourcesNext( + resourceGroupName, + networkManagerName, + poolName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAssociatedResourcesPagingAll( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsListAssociatedResourcesOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAssociatedResourcesPagingPage( + resourceGroupName, + networkManagerName, + poolName, + options, + )) { + yield* page; + } + } + + /** + * Gets list of Pool resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: IpamPoolsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec, + ); + } + + /** + * Creates/Updates the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param body Pool resource object to create/update. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + body: IpamPool, + options?: IpamPoolsCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + IpamPoolsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, networkManagerName, poolName, body, options }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + IpamPoolsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Creates/Updates the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param body Pool resource object to create/update. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + body: IpamPool, + options?: IpamPoolsCreateOptionalParams, + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + networkManagerName, + poolName, + body, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specific Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, options }, + updateOperationSpec, + ); + } + + /** + * Gets the specific Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, options }, + getOperationSpec, + ); + } + + /** + * Delete the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + IpamPoolsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, networkManagerName, poolName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + IpamPoolsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Delete the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + poolName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Get the Pool Usage. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + getPoolUsage( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsGetPoolUsageOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, options }, + getPoolUsageOperationSpec, + ); + } + + /** + * List Associated Resource in the Pool. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + private _listAssociatedResources( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsListAssociatedResourcesOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, options }, + listAssociatedResourcesOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: IpamPoolsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAssociatedResourcesNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param nextLink The nextLink from the previous successful call to the ListAssociatedResources + * method. + * @param options The options parameters. + */ + private _listAssociatedResourcesNext( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + nextLink: string, + options?: IpamPoolsListAssociatedResourcesNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, nextLink, options }, + listAssociatedResourcesNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IpamPoolList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.skip, + Parameters.top1, + Parameters.sortKey, + Parameters.sortValue, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.IpamPool, + }, + 201: { + bodyMapper: Mappers.IpamPool, + }, + 202: { + bodyMapper: Mappers.IpamPool, + }, + 204: { + bodyMapper: Mappers.IpamPool, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.IpamPool, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IpamPool, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.IpamPoolsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.IpamPoolsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.IpamPoolsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.IpamPoolsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getPoolUsageOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/getPoolUsage", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PoolUsage, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/listAssociatedResources", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PoolAssociationList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.IpamPoolList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PoolAssociationList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts b/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts index 3e6c0c8e1fa5..400bba800656 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerLoadBalancingRules.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NetworkManagementClient } from "../networkManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { LoadBalancingRule, LoadBalancerLoadBalancingRulesListNextOptionalParams, @@ -20,6 +26,8 @@ import { LoadBalancerLoadBalancingRulesListResponse, LoadBalancerLoadBalancingRulesGetOptionalParams, LoadBalancerLoadBalancingRulesGetResponse, + LoadBalancerLoadBalancingRulesHealthOptionalParams, + LoadBalancerLoadBalancingRulesHealthResponse, LoadBalancerLoadBalancingRulesListNextResponse, } from "../models"; @@ -154,6 +162,101 @@ export class LoadBalancerLoadBalancingRulesImpl ); } + /** + * Get health details of a load balancing rule. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param options The options parameters. + */ + async beginHealth( + groupName: string, + loadBalancerName: string, + loadBalancingRuleName: string, + options?: LoadBalancerLoadBalancingRulesHealthOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LoadBalancerLoadBalancingRulesHealthResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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: { groupName, loadBalancerName, loadBalancingRuleName, options }, + spec: healthOperationSpec, + }); + const poller = await createHttpPoller< + LoadBalancerLoadBalancingRulesHealthResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Get health details of a load balancing rule. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param options The options parameters. + */ + async beginHealthAndWait( + groupName: string, + loadBalancerName: string, + loadBalancingRuleName: string, + options?: LoadBalancerLoadBalancingRulesHealthOptionalParams, + ): Promise { + const poller = await this.beginHealth( + groupName, + loadBalancerName, + loadBalancingRuleName, + options, + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. @@ -219,6 +322,37 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; +const healthOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}/health", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerHealthPerRule, + }, + 201: { + bodyMapper: Mappers.LoadBalancerHealthPerRule, + }, + 202: { + bodyMapper: Mappers.LoadBalancerHealthPerRule, + }, + 204: { + bodyMapper: Mappers.LoadBalancerHealthPerRule, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.groupName1, + Parameters.loadBalancerName1, + Parameters.loadBalancingRuleName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts index 172635f01af8..e51974479913 100644 --- a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts @@ -275,7 +275,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/networkGroups.ts b/sdk/network/arm-network/src/operations/networkGroups.ts index 208268f1cd04..26f46b43a794 100644 --- a/sdk/network/arm-network/src/operations/networkGroups.ts +++ b/sdk/network/arm-network/src/operations/networkGroups.ts @@ -394,7 +394,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerCommits.ts b/sdk/network/arm-network/src/operations/networkManagerCommits.ts index 84d8a8274fdc..df426360ff4a 100644 --- a/sdk/network/arm-network/src/operations/networkManagerCommits.ts +++ b/sdk/network/arm-network/src/operations/networkManagerCommits.ts @@ -159,7 +159,7 @@ const postOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts index 3707e58a91a1..6595d68588fc 100644 --- a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts @@ -70,7 +70,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/network/arm-network/src/operations/networkManagerRoutingConfigurations.ts b/sdk/network/arm-network/src/operations/networkManagerRoutingConfigurations.ts index 42c5c3dde599..3b8ccafe9278 100644 --- a/sdk/network/arm-network/src/operations/networkManagerRoutingConfigurations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerRoutingConfigurations.ts @@ -318,13 +318,13 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, ], headerParameters: [Parameters.accept], serializer, @@ -345,7 +345,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -371,7 +371,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -395,7 +395,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -417,7 +417,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/networkManagers.ts b/sdk/network/arm-network/src/operations/networkManagers.ts index e9c3d66e85d3..c96b68ff0409 100644 --- a/sdk/network/arm-network/src/operations/networkManagers.ts +++ b/sdk/network/arm-network/src/operations/networkManagers.ts @@ -384,7 +384,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, @@ -409,7 +409,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -432,7 +432,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, @@ -454,7 +454,7 @@ const patchOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -474,7 +474,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], @@ -494,7 +494,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/reachabilityAnalysisIntents.ts b/sdk/network/arm-network/src/operations/reachabilityAnalysisIntents.ts new file mode 100644 index 000000000000..b43dc3ac1e86 --- /dev/null +++ b/sdk/network/arm-network/src/operations/reachabilityAnalysisIntents.ts @@ -0,0 +1,393 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ReachabilityAnalysisIntents } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + ReachabilityAnalysisIntent, + ReachabilityAnalysisIntentsListNextOptionalParams, + ReachabilityAnalysisIntentsListOptionalParams, + ReachabilityAnalysisIntentsListResponse, + ReachabilityAnalysisIntentsGetOptionalParams, + ReachabilityAnalysisIntentsGetResponse, + ReachabilityAnalysisIntentsCreateOptionalParams, + ReachabilityAnalysisIntentsCreateResponse, + ReachabilityAnalysisIntentsDeleteOptionalParams, + ReachabilityAnalysisIntentsListNextResponse, +} from "../models"; + +/// +/** Class containing ReachabilityAnalysisIntents operations. */ +export class ReachabilityAnalysisIntentsImpl + implements ReachabilityAnalysisIntents +{ + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ReachabilityAnalysisIntents class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets list of Reachability Analysis Intents . + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisIntentsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + workspaceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + workspaceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisIntentsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ReachabilityAnalysisIntentsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + workspaceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + workspaceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisIntentsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + workspaceName, + options, + )) { + yield* page; + } + } + + /** + * Gets list of Reachability Analysis Intents . + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisIntentsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, workspaceName, options }, + listOperationSpec, + ); + } + + /** + * Get the Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + options?: ReachabilityAnalysisIntentsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisIntentName, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param body Reachability Analysis Intent object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + body: ReachabilityAnalysisIntent, + options?: ReachabilityAnalysisIntentsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisIntentName, + body, + options, + }, + createOperationSpec, + ); + } + + /** + * Deletes Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + options?: ReachabilityAnalysisIntentsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisIntentName, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + nextLink: string, + options?: ReachabilityAnalysisIntentsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + nextLink, + options, + }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisIntentListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.skip, + Parameters.top1, + Parameters.sortKey, + Parameters.sortValue, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisIntent, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisIntentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisIntent, + }, + 201: { + bodyMapper: Mappers.ReachabilityAnalysisIntent, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisIntentName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisIntentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisIntentListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/network/arm-network/src/operations/reachabilityAnalysisRuns.ts b/sdk/network/arm-network/src/operations/reachabilityAnalysisRuns.ts new file mode 100644 index 000000000000..fb78020932c0 --- /dev/null +++ b/sdk/network/arm-network/src/operations/reachabilityAnalysisRuns.ts @@ -0,0 +1,487 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ReachabilityAnalysisRuns } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ReachabilityAnalysisRun, + ReachabilityAnalysisRunsListNextOptionalParams, + ReachabilityAnalysisRunsListOptionalParams, + ReachabilityAnalysisRunsListResponse, + ReachabilityAnalysisRunsGetOptionalParams, + ReachabilityAnalysisRunsGetResponse, + ReachabilityAnalysisRunsCreateOptionalParams, + ReachabilityAnalysisRunsCreateResponse, + ReachabilityAnalysisRunsDeleteOptionalParams, + ReachabilityAnalysisRunsDeleteResponse, + ReachabilityAnalysisRunsListNextResponse, +} from "../models"; + +/// +/** Class containing ReachabilityAnalysisRuns operations. */ +export class ReachabilityAnalysisRunsImpl implements ReachabilityAnalysisRuns { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ReachabilityAnalysisRuns class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets list of Reachability Analysis Runs. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisRunsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + workspaceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + workspaceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisRunsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ReachabilityAnalysisRunsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + workspaceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + workspaceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisRunsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + workspaceName, + options, + )) { + yield* page; + } + } + + /** + * Gets list of Reachability Analysis Runs. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisRunsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, workspaceName, options }, + listOperationSpec, + ); + } + + /** + * Gets Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisRunName, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates Reachability Analysis Runs. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param body Analysis Run resource object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + body: ReachabilityAnalysisRun, + options?: ReachabilityAnalysisRunsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisRunName, + body, + options, + }, + createOperationSpec, + ); + } + + /** + * Deletes Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReachabilityAnalysisRunsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + networkManagerName, + workspaceName, + reachabilityAnalysisRunName, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ReachabilityAnalysisRunsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + workspaceName, + reachabilityAnalysisRunName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + nextLink: string, + options?: ReachabilityAnalysisRunsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + workspaceName, + nextLink, + options, + }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisRunListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.skip, + Parameters.top1, + Parameters.sortKey, + Parameters.sortValue, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisRun, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisRunName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisRun, + }, + 201: { + bodyMapper: Mappers.ReachabilityAnalysisRun, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisRunName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.ReachabilityAnalysisRunsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ReachabilityAnalysisRunsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ReachabilityAnalysisRunsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ReachabilityAnalysisRunsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + Parameters.reachabilityAnalysisRunName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReachabilityAnalysisRunListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/network/arm-network/src/operations/routeFilterRules.ts b/sdk/network/arm-network/src/operations/routeFilterRules.ts index 05020bf4d5f4..8381ffc579ba 100644 --- a/sdk/network/arm-network/src/operations/routeFilterRules.ts +++ b/sdk/network/arm-network/src/operations/routeFilterRules.ts @@ -399,7 +399,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.ruleName, + Parameters.ruleName1, Parameters.routeFilterName, ], headerParameters: [Parameters.accept], @@ -421,7 +421,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.ruleName, + Parameters.ruleName1, Parameters.routeFilterName, ], headerParameters: [Parameters.accept], @@ -453,7 +453,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.ruleName, + Parameters.ruleName1, Parameters.routeFilterName, ], headerParameters: [Parameters.accept, Parameters.contentType], diff --git a/sdk/network/arm-network/src/operations/routingRuleCollections.ts b/sdk/network/arm-network/src/operations/routingRuleCollections.ts index 32f3b616bba5..91d021c06729 100644 --- a/sdk/network/arm-network/src/operations/routingRuleCollections.ts +++ b/sdk/network/arm-network/src/operations/routingRuleCollections.ts @@ -356,13 +356,13 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -384,9 +384,9 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -405,15 +405,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.ruleCollection1, + requestBody: Parameters.ruleCollection, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -436,9 +436,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -459,7 +459,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/routingRules.ts b/sdk/network/arm-network/src/operations/routingRules.ts index c99f7e4e3b8a..140a0a0062ad 100644 --- a/sdk/network/arm-network/src/operations/routingRules.ts +++ b/sdk/network/arm-network/src/operations/routingRules.ts @@ -388,15 +388,15 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -417,10 +417,10 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept], serializer, @@ -445,10 +445,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -471,10 +471,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept], serializer, @@ -495,9 +495,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/scopeConnections.ts b/sdk/network/arm-network/src/operations/scopeConnections.ts index 465ae004a6db..bbecf3fb5cc1 100644 --- a/sdk/network/arm-network/src/operations/scopeConnections.ts +++ b/sdk/network/arm-network/src/operations/scopeConnections.ts @@ -243,7 +243,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.scopeConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -266,7 +266,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.scopeConnectionName, ], headerParameters: [Parameters.accept], @@ -287,7 +287,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.scopeConnectionName, ], headerParameters: [Parameters.accept], @@ -307,13 +307,13 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, @@ -334,7 +334,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/securityAdminConfigurations.ts b/sdk/network/arm-network/src/operations/securityAdminConfigurations.ts index 8a80b1490bc8..c66451ba0d78 100644 --- a/sdk/network/arm-network/src/operations/securityAdminConfigurations.ts +++ b/sdk/network/arm-network/src/operations/securityAdminConfigurations.ts @@ -314,19 +314,19 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SecurityAdminConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, @@ -339,7 +339,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SecurityAdminConfiguration, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion], @@ -347,7 +347,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, ], headerParameters: [Parameters.accept], @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SecurityAdminConfiguration, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, requestBody: Parameters.securityAdminConfiguration, @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -389,7 +389,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, queryParameters: [Parameters.apiVersion, Parameters.force], @@ -397,7 +397,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkManagerName, + Parameters.networkManagerName1, Parameters.configurationName, ], headerParameters: [Parameters.accept], @@ -411,7 +411,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SecurityAdminConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.CommonErrorResponse, }, }, urlParameters: [ @@ -419,7 +419,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.networkManagerName, + Parameters.networkManagerName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/securityUserConfigurations.ts b/sdk/network/arm-network/src/operations/securityUserConfigurations.ts index b204c036485e..141e50d0721e 100644 --- a/sdk/network/arm-network/src/operations/securityUserConfigurations.ts +++ b/sdk/network/arm-network/src/operations/securityUserConfigurations.ts @@ -320,13 +320,13 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, ], headerParameters: [Parameters.accept], serializer, @@ -347,7 +347,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -397,7 +397,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -419,7 +419,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/securityUserRuleCollections.ts b/sdk/network/arm-network/src/operations/securityUserRuleCollections.ts index bfa7626b45a4..72cc98f6f670 100644 --- a/sdk/network/arm-network/src/operations/securityUserRuleCollections.ts +++ b/sdk/network/arm-network/src/operations/securityUserRuleCollections.ts @@ -358,13 +358,13 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], @@ -386,9 +386,9 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -413,9 +413,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -438,9 +438,9 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -461,7 +461,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, ], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/securityUserRules.ts b/sdk/network/arm-network/src/operations/securityUserRules.ts index 1bc8f0783933..95664903de23 100644 --- a/sdk/network/arm-network/src/operations/securityUserRules.ts +++ b/sdk/network/arm-network/src/operations/securityUserRules.ts @@ -388,15 +388,15 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, @@ -417,10 +417,10 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept], serializer, @@ -445,10 +445,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -471,10 +471,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, - Parameters.ruleName1, + Parameters.ruleCollectionName, + Parameters.ruleName, ], headerParameters: [Parameters.accept], serializer, @@ -495,9 +495,9 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, - Parameters.networkManagerName1, + Parameters.networkManagerName2, Parameters.configurationName1, - Parameters.ruleCollectionName1, + Parameters.ruleCollectionName, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/network/arm-network/src/operations/staticCidrs.ts b/sdk/network/arm-network/src/operations/staticCidrs.ts new file mode 100644 index 000000000000..5c44ce8b6be9 --- /dev/null +++ b/sdk/network/arm-network/src/operations/staticCidrs.ts @@ -0,0 +1,478 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { StaticCidrs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + StaticCidr, + StaticCidrsListNextOptionalParams, + StaticCidrsListOptionalParams, + StaticCidrsListResponse, + StaticCidrsCreateOptionalParams, + StaticCidrsCreateResponse, + StaticCidrsGetOptionalParams, + StaticCidrsGetResponse, + StaticCidrsDeleteOptionalParams, + StaticCidrsDeleteResponse, + StaticCidrsListNextResponse, +} from "../models"; + +/// +/** Class containing StaticCidrs operations. */ +export class StaticCidrsImpl implements StaticCidrs { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class StaticCidrs class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets list of Static CIDR resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: StaticCidrsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + poolName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + poolName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: StaticCidrsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: StaticCidrsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + poolName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + poolName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: StaticCidrsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + poolName, + options, + )) { + yield* page; + } + } + + /** + * Gets list of Static CIDR resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: StaticCidrsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, options }, + listOperationSpec, + ); + } + + /** + * Creates/Updates the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param staticCidrName Static Cidr allocation name. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + poolName, + staticCidrName, + options, + }, + createOperationSpec, + ); + } + + /** + * Gets the specific Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + poolName, + staticCidrName, + options, + }, + getOperationSpec, + ); + } + + /** + * Delete the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to delete. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StaticCidrsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + networkManagerName, + poolName, + staticCidrName, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + StaticCidrsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Delete the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to delete. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + poolName, + staticCidrName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + nextLink: string, + options?: StaticCidrsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, poolName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticCidrList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.skip, + Parameters.top1, + Parameters.sortKey, + Parameters.sortValue, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StaticCidr, + }, + 201: { + bodyMapper: Mappers.StaticCidr, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + Parameters.staticCidrName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticCidr, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + Parameters.staticCidrName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.StaticCidrsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.StaticCidrsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.StaticCidrsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.StaticCidrsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.poolName, + Parameters.staticCidrName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticCidrList, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + Parameters.poolName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/network/arm-network/src/operations/staticMembers.ts b/sdk/network/arm-network/src/operations/staticMembers.ts index 49d82ea71f30..d36d6f2fe255 100644 --- a/sdk/network/arm-network/src/operations/staticMembers.ts +++ b/sdk/network/arm-network/src/operations/staticMembers.ts @@ -352,7 +352,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts index 94b498b46b1a..d10a28dbaefe 100644 --- a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts @@ -248,7 +248,7 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.top, - Parameters.skipToken, + Parameters.skipToken1, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], diff --git a/sdk/network/arm-network/src/operations/verifierWorkspaces.ts b/sdk/network/arm-network/src/operations/verifierWorkspaces.ts new file mode 100644 index 000000000000..c78d054818fc --- /dev/null +++ b/sdk/network/arm-network/src/operations/verifierWorkspaces.ts @@ -0,0 +1,476 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { VerifierWorkspaces } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + VerifierWorkspace, + VerifierWorkspacesListNextOptionalParams, + VerifierWorkspacesListOptionalParams, + VerifierWorkspacesListResponse, + VerifierWorkspacesGetOptionalParams, + VerifierWorkspacesGetResponse, + VerifierWorkspacesCreateOptionalParams, + VerifierWorkspacesCreateResponse, + VerifierWorkspacesUpdateOptionalParams, + VerifierWorkspacesUpdateResponse, + VerifierWorkspacesDeleteOptionalParams, + VerifierWorkspacesDeleteResponse, + VerifierWorkspacesListNextResponse, +} from "../models"; + +/// +/** Class containing VerifierWorkspaces operations. */ +export class VerifierWorkspacesImpl implements VerifierWorkspaces { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class VerifierWorkspaces class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets list of Verifier Workspaces. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: VerifierWorkspacesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: VerifierWorkspacesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VerifierWorkspacesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: VerifierWorkspacesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + )) { + yield* page; + } + } + + /** + * Gets list of Verifier Workspaces. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: VerifierWorkspacesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec, + ); + } + + /** + * Gets Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, workspaceName, options }, + getOperationSpec, + ); + } + + /** + * Creates Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param body Verifier Workspace object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + body: VerifierWorkspace, + options?: VerifierWorkspacesCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, workspaceName, body, options }, + createOperationSpec, + ); + } + + /** + * Updates Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, workspaceName, options }, + updateOperationSpec, + ); + } + + /** + * Deletes Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VerifierWorkspacesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, networkManagerName, workspaceName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + VerifierWorkspacesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + workspaceName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: VerifierWorkspacesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VerifierWorkspaceListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.skip, + Parameters.top1, + Parameters.sortKey, + Parameters.sortValue, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VerifierWorkspace, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VerifierWorkspace, + }, + 201: { + bodyMapper: Mappers.VerifierWorkspace, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.VerifierWorkspace, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.VerifierWorkspacesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.VerifierWorkspacesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.VerifierWorkspacesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.VerifierWorkspacesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName1, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VerifierWorkspaceListResult, + }, + default: { + bodyMapper: Mappers.CommonErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts index 45ca7847635c..6b8fc2736597 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts @@ -67,6 +67,15 @@ import { VpnPacketCaptureStopParameters, VirtualNetworkGatewaysStopPacketCaptureOptionalParams, VirtualNetworkGatewaysStopPacketCaptureResponse, + VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse, + ExpressRouteFailoverStopApiParameters, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse, VirtualNetworkGatewaysGetVpnclientConnectionHealthOptionalParams, VirtualNetworkGatewaysGetVpnclientConnectionHealthResponse, P2SVpnConnectionRequest, @@ -1748,6 +1757,424 @@ export class VirtualNetworkGatewaysImpl implements VirtualNetworkGateways { return poller.pollUntilDone(); } + /** + * This operation retrieves the details of all the failover tests performed on the gateway for + * different peering locations + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param typeParam The type of failover test + * @param fetchLatest Fetch only the latest tests for each peering location + * @param options The options parameters. + */ + async beginGetFailoverAllTestDetails( + resourceGroupName: string, + virtualNetworkGatewayName: string, + typeParam: string, + fetchLatest: boolean, + options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + virtualNetworkGatewayName, + typeParam, + fetchLatest, + options, + }, + spec: getFailoverAllTestDetailsOperationSpec, + }); + const poller = await createHttpPoller< + VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * This operation retrieves the details of all the failover tests performed on the gateway for + * different peering locations + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param typeParam The type of failover test + * @param fetchLatest Fetch only the latest tests for each peering location + * @param options The options parameters. + */ + async beginGetFailoverAllTestDetailsAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + typeParam: string, + fetchLatest: boolean, + options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + ): Promise { + const poller = await this.beginGetFailoverAllTestDetails( + resourceGroupName, + virtualNetworkGatewayName, + typeParam, + fetchLatest, + options, + ); + return poller.pollUntilDone(); + } + + /** + * This operation retrieves the details of a particular failover test performed on the gateway based on + * the test Guid + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param failoverTestId The unique Guid value which identifies the test + * @param options The options parameters. + */ + async beginGetFailoverSingleTestDetails( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + failoverTestId: string, + options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + virtualNetworkGatewayName, + peeringLocation, + failoverTestId, + options, + }, + spec: getFailoverSingleTestDetailsOperationSpec, + }); + const poller = await createHttpPoller< + VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * This operation retrieves the details of a particular failover test performed on the gateway based on + * the test Guid + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param failoverTestId The unique Guid value which identifies the test + * @param options The options parameters. + */ + async beginGetFailoverSingleTestDetailsAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + failoverTestId: string, + options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + ): Promise { + const poller = await this.beginGetFailoverSingleTestDetails( + resourceGroupName, + virtualNetworkGatewayName, + peeringLocation, + failoverTestId, + options, + ); + return poller.pollUntilDone(); + } + + /** + * This operation starts failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param options The options parameters. + */ + async beginStartExpressRouteSiteFailoverSimulation( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + virtualNetworkGatewayName, + peeringLocation, + options, + }, + spec: startExpressRouteSiteFailoverSimulationOperationSpec, + }); + const poller = await createHttpPoller< + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * This operation starts failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param options The options parameters. + */ + async beginStartExpressRouteSiteFailoverSimulationAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise { + const poller = await this.beginStartExpressRouteSiteFailoverSimulation( + resourceGroupName, + virtualNetworkGatewayName, + peeringLocation, + options, + ); + return poller.pollUntilDone(); + } + + /** + * This operation stops failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover + * simulation on gateway. + * @param options The options parameters. + */ + async beginStopExpressRouteSiteFailoverSimulation( + resourceGroupName: string, + virtualNetworkGatewayName: string, + stopParameters: ExpressRouteFailoverStopApiParameters, + options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.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, + virtualNetworkGatewayName, + stopParameters, + options, + }, + spec: stopExpressRouteSiteFailoverSimulationOperationSpec, + }); + const poller = await createHttpPoller< + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * This operation stops failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover + * simulation on gateway. + * @param options The options parameters. + */ + async beginStopExpressRouteSiteFailoverSimulationAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + stopParameters: ExpressRouteFailoverStopApiParameters, + options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise { + const poller = await this.beginStopExpressRouteSiteFailoverSimulation( + resourceGroupName, + virtualNetworkGatewayName, + stopParameters, + options, + ); + return poller.pollUntilDone(); + } + /** * Get VPN client connection health detail per P2S client connection of the virtual network gateway in * the specified resource group. @@ -2521,6 +2948,218 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; +const getFailoverAllTestDetailsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverAllTestsDetails", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverTestDetails", + }, + }, + }, + }, + }, + 201: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverTestDetails", + }, + }, + }, + }, + }, + 202: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverTestDetails", + }, + }, + }, + }, + }, + 204: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverTestDetails", + }, + }, + }, + }, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.typeParam, + Parameters.fetchLatest, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkGatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getFailoverSingleTestDetailsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverSingleTestDetails", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverSingleTestDetails", + }, + }, + }, + }, + }, + 201: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverSingleTestDetails", + }, + }, + }, + }, + }, + 202: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverSingleTestDetails", + }, + }, + }, + }, + }, + 204: { + bodyMapper: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteFailoverSingleTestDetails", + }, + }, + }, + }, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.peeringLocation, + Parameters.failoverTestId, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkGatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const startExpressRouteSiteFailoverSimulationOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startSiteFailoverTest", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { type: { name: "String" } }, + }, + 201: { + bodyMapper: { type: { name: "String" } }, + }, + 202: { + bodyMapper: { type: { name: "String" } }, + }, + 204: { + bodyMapper: { type: { name: "String" } }, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.peeringLocation], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkGatewayName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const stopExpressRouteSiteFailoverSimulationOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopSiteFailoverTest", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { type: { name: "String" } }, + }, + 201: { + bodyMapper: { type: { name: "String" } }, + }, + 202: { + bodyMapper: { type: { name: "String" } }, + }, + 204: { + bodyMapper: { type: { name: "String" } }, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.stopParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkGatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getVpnclientConnectionHealthOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getVpnClientConnectionHealth", httpMethod: "POST", diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index cc4ea450540d..95338b46ea4b 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -966,8 +966,8 @@ const listDdosProtectionStatusOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.top1, - Parameters.skipToken1, + Parameters.skipToken, + Parameters.top2, ], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operationsInterfaces/index.ts b/sdk/network/arm-network/src/operationsInterfaces/index.ts index 7fdbc259397b..e7e7bdb4a70a 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -48,6 +48,8 @@ export * from "./firewallPolicyIdpsSignaturesFilterValues"; export * from "./firewallPolicyDrafts"; export * from "./firewallPolicyDeployments"; export * from "./firewallPolicyRuleCollectionGroupDrafts"; +export * from "./ipamPools"; +export * from "./staticCidrs"; export * from "./ipAllocations"; export * from "./ipGroups"; export * from "./loadBalancers"; @@ -70,6 +72,9 @@ export * from "./managementGroupNetworkManagerConnections"; export * from "./connectivityConfigurations"; export * from "./networkGroups"; export * from "./staticMembers"; +export * from "./networkManagerRoutingConfigurations"; +export * from "./routingRuleCollections"; +export * from "./routingRules"; export * from "./scopeConnections"; export * from "./securityAdminConfigurations"; export * from "./adminRuleCollections"; @@ -77,13 +82,13 @@ export * from "./adminRules"; export * from "./securityUserConfigurations"; export * from "./securityUserRuleCollections"; export * from "./securityUserRules"; -export * from "./networkManagerRoutingConfigurations"; -export * from "./routingRuleCollections"; -export * from "./routingRules"; export * from "./networkProfiles"; export * from "./networkSecurityGroups"; export * from "./securityRules"; export * from "./defaultSecurityRules"; +export * from "./reachabilityAnalysisIntents"; +export * from "./reachabilityAnalysisRuns"; +export * from "./verifierWorkspaces"; export * from "./networkVirtualAppliances"; export * from "./virtualApplianceSites"; export * from "./virtualApplianceSkus"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/ipamPools.ts b/sdk/network/arm-network/src/operationsInterfaces/ipamPools.ts new file mode 100644 index 000000000000..2296d0321f16 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/ipamPools.ts @@ -0,0 +1,160 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + IpamPool, + IpamPoolsListOptionalParams, + PoolAssociation, + IpamPoolsListAssociatedResourcesOptionalParams, + IpamPoolsCreateOptionalParams, + IpamPoolsCreateResponse, + IpamPoolsUpdateOptionalParams, + IpamPoolsUpdateResponse, + IpamPoolsGetOptionalParams, + IpamPoolsGetResponse, + IpamPoolsDeleteOptionalParams, + IpamPoolsDeleteResponse, + IpamPoolsGetPoolUsageOptionalParams, + IpamPoolsGetPoolUsageResponse, +} from "../models"; + +/// +/** Interface representing a IpamPools. */ +export interface IpamPools { + /** + * Gets list of Pool resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: IpamPoolsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * List Associated Resource in the Pool. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + listAssociatedResources( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsListAssociatedResourcesOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Creates/Updates the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param body Pool resource object to create/update. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + body: IpamPool, + options?: IpamPoolsCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + IpamPoolsCreateResponse + > + >; + /** + * Creates/Updates the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param body Pool resource object to create/update. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + body: IpamPool, + options?: IpamPoolsCreateOptionalParams, + ): Promise; + /** + * Updates the specific Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsUpdateOptionalParams, + ): Promise; + /** + * Gets the specific Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsGetOptionalParams, + ): Promise; + /** + * Delete the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + IpamPoolsDeleteResponse + > + >; + /** + * Delete the Pool resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsDeleteOptionalParams, + ): Promise; + /** + * Get the Pool Usage. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + getPoolUsage( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: IpamPoolsGetPoolUsageOptionalParams, + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts index 921e808c466d..86d13ee7700e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancerLoadBalancingRules.ts @@ -7,11 +7,14 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { LoadBalancingRule, LoadBalancerLoadBalancingRulesListOptionalParams, LoadBalancerLoadBalancingRulesGetOptionalParams, LoadBalancerLoadBalancingRulesGetResponse, + LoadBalancerLoadBalancingRulesHealthOptionalParams, + LoadBalancerLoadBalancingRulesHealthResponse, } from "../models"; /// @@ -41,4 +44,35 @@ export interface LoadBalancerLoadBalancingRules { loadBalancingRuleName: string, options?: LoadBalancerLoadBalancingRulesGetOptionalParams, ): Promise; + /** + * Get health details of a load balancing rule. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param options The options parameters. + */ + beginHealth( + groupName: string, + loadBalancerName: string, + loadBalancingRuleName: string, + options?: LoadBalancerLoadBalancingRulesHealthOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LoadBalancerLoadBalancingRulesHealthResponse + > + >; + /** + * Get health details of a load balancing rule. + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param options The options parameters. + */ + beginHealthAndWait( + groupName: string, + loadBalancerName: string, + loadBalancingRuleName: string, + options?: LoadBalancerLoadBalancingRulesHealthOptionalParams, + ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisIntents.ts b/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisIntents.ts new file mode 100644 index 000000000000..f1a5f9ea378f --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisIntents.ts @@ -0,0 +1,83 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ReachabilityAnalysisIntent, + ReachabilityAnalysisIntentsListOptionalParams, + ReachabilityAnalysisIntentsGetOptionalParams, + ReachabilityAnalysisIntentsGetResponse, + ReachabilityAnalysisIntentsCreateOptionalParams, + ReachabilityAnalysisIntentsCreateResponse, + ReachabilityAnalysisIntentsDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ReachabilityAnalysisIntents. */ +export interface ReachabilityAnalysisIntents { + /** + * Gets list of Reachability Analysis Intents . + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisIntentsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get the Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + options?: ReachabilityAnalysisIntentsGetOptionalParams, + ): Promise; + /** + * Creates Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param body Reachability Analysis Intent object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + body: ReachabilityAnalysisIntent, + options?: ReachabilityAnalysisIntentsCreateOptionalParams, + ): Promise; + /** + * Deletes Reachability Analysis Intent. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisIntentName Reachability Analysis Intent name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisIntentName: string, + options?: ReachabilityAnalysisIntentsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisRuns.ts b/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisRuns.ts new file mode 100644 index 000000000000..47d64b033517 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/reachabilityAnalysisRuns.ts @@ -0,0 +1,105 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ReachabilityAnalysisRun, + ReachabilityAnalysisRunsListOptionalParams, + ReachabilityAnalysisRunsGetOptionalParams, + ReachabilityAnalysisRunsGetResponse, + ReachabilityAnalysisRunsCreateOptionalParams, + ReachabilityAnalysisRunsCreateResponse, + ReachabilityAnalysisRunsDeleteOptionalParams, + ReachabilityAnalysisRunsDeleteResponse, +} from "../models"; + +/// +/** Interface representing a ReachabilityAnalysisRuns. */ +export interface ReachabilityAnalysisRuns { + /** + * Gets list of Reachability Analysis Runs. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: ReachabilityAnalysisRunsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsGetOptionalParams, + ): Promise; + /** + * Creates Reachability Analysis Runs. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param body Analysis Run resource object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + body: ReachabilityAnalysisRun, + options?: ReachabilityAnalysisRunsCreateOptionalParams, + ): Promise; + /** + * Deletes Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ReachabilityAnalysisRunsDeleteResponse + > + >; + /** + * Deletes Reachability Analysis Run. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param reachabilityAnalysisRunName Reachability Analysis Run name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + reachabilityAnalysisRunName: string, + options?: ReachabilityAnalysisRunsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/staticCidrs.ts b/sdk/network/arm-network/src/operationsInterfaces/staticCidrs.ts new file mode 100644 index 000000000000..c42a96985a42 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/staticCidrs.ts @@ -0,0 +1,103 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + StaticCidr, + StaticCidrsListOptionalParams, + StaticCidrsCreateOptionalParams, + StaticCidrsCreateResponse, + StaticCidrsGetOptionalParams, + StaticCidrsGetResponse, + StaticCidrsDeleteOptionalParams, + StaticCidrsDeleteResponse, +} from "../models"; + +/// +/** Interface representing a StaticCidrs. */ +export interface StaticCidrs { + /** + * Gets list of Static CIDR resources at Network Manager level. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + options?: StaticCidrsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Creates/Updates the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName IP Address Manager Pool resource name. + * @param staticCidrName Static Cidr allocation name. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsCreateOptionalParams, + ): Promise; + /** + * Gets the specific Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsGetOptionalParams, + ): Promise; + /** + * Delete the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to delete. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StaticCidrsDeleteResponse + > + >; + /** + * Delete the Static CIDR resource. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param poolName Pool resource name. + * @param staticCidrName StaticCidr resource name to delete. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + poolName: string, + staticCidrName: string, + options?: StaticCidrsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/verifierWorkspaces.ts b/sdk/network/arm-network/src/operationsInterfaces/verifierWorkspaces.ts new file mode 100644 index 000000000000..9f7db32554f3 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/verifierWorkspaces.ts @@ -0,0 +1,110 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + VerifierWorkspace, + VerifierWorkspacesListOptionalParams, + VerifierWorkspacesGetOptionalParams, + VerifierWorkspacesGetResponse, + VerifierWorkspacesCreateOptionalParams, + VerifierWorkspacesCreateResponse, + VerifierWorkspacesUpdateOptionalParams, + VerifierWorkspacesUpdateResponse, + VerifierWorkspacesDeleteOptionalParams, + VerifierWorkspacesDeleteResponse, +} from "../models"; + +/// +/** Interface representing a VerifierWorkspaces. */ +export interface VerifierWorkspaces { + /** + * Gets list of Verifier Workspaces. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: VerifierWorkspacesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesGetOptionalParams, + ): Promise; + /** + * Creates Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param body Verifier Workspace object to create/update. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + body: VerifierWorkspace, + options?: VerifierWorkspacesCreateOptionalParams, + ): Promise; + /** + * Updates Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesUpdateOptionalParams, + ): Promise; + /** + * Deletes Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VerifierWorkspacesDeleteResponse + > + >; + /** + * Deletes Verifier Workspace. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param workspaceName Workspace name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + workspaceName: string, + options?: VerifierWorkspacesDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts index c1ef73ede27e..1490e162ecc6 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworkGateways.ts @@ -52,6 +52,15 @@ import { VpnPacketCaptureStopParameters, VirtualNetworkGatewaysStopPacketCaptureOptionalParams, VirtualNetworkGatewaysStopPacketCaptureResponse, + VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse, + ExpressRouteFailoverStopApiParameters, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse, VirtualNetworkGatewaysGetVpnclientConnectionHealthOptionalParams, VirtualNetworkGatewaysGetVpnclientConnectionHealthResponse, P2SVpnConnectionRequest, @@ -564,6 +573,144 @@ export interface VirtualNetworkGateways { parameters: VpnPacketCaptureStopParameters, options?: VirtualNetworkGatewaysStopPacketCaptureOptionalParams, ): Promise; + /** + * This operation retrieves the details of all the failover tests performed on the gateway for + * different peering locations + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param typeParam The type of failover test + * @param fetchLatest Fetch only the latest tests for each peering location + * @param options The options parameters. + */ + beginGetFailoverAllTestDetails( + resourceGroupName: string, + virtualNetworkGatewayName: string, + typeParam: string, + fetchLatest: boolean, + options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysGetFailoverAllTestDetailsResponse + > + >; + /** + * This operation retrieves the details of all the failover tests performed on the gateway for + * different peering locations + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param typeParam The type of failover test + * @param fetchLatest Fetch only the latest tests for each peering location + * @param options The options parameters. + */ + beginGetFailoverAllTestDetailsAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + typeParam: string, + fetchLatest: boolean, + options?: VirtualNetworkGatewaysGetFailoverAllTestDetailsOptionalParams, + ): Promise; + /** + * This operation retrieves the details of a particular failover test performed on the gateway based on + * the test Guid + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param failoverTestId The unique Guid value which identifies the test + * @param options The options parameters. + */ + beginGetFailoverSingleTestDetails( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + failoverTestId: string, + options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysGetFailoverSingleTestDetailsResponse + > + >; + /** + * This operation retrieves the details of a particular failover test performed on the gateway based on + * the test Guid + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param failoverTestId The unique Guid value which identifies the test + * @param options The options parameters. + */ + beginGetFailoverSingleTestDetailsAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + failoverTestId: string, + options?: VirtualNetworkGatewaysGetFailoverSingleTestDetailsOptionalParams, + ): Promise; + /** + * This operation starts failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param options The options parameters. + */ + beginStartExpressRouteSiteFailoverSimulation( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationResponse + > + >; + /** + * This operation starts failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peeringLocation Peering location of the test + * @param options The options parameters. + */ + beginStartExpressRouteSiteFailoverSimulationAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + peeringLocation: string, + options?: VirtualNetworkGatewaysStartExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise; + /** + * This operation stops failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover + * simulation on gateway. + * @param options The options parameters. + */ + beginStopExpressRouteSiteFailoverSimulation( + resourceGroupName: string, + virtualNetworkGatewayName: string, + stopParameters: ExpressRouteFailoverStopApiParameters, + options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationResponse + > + >; + /** + * This operation stops failover simulation on the gateway for the specified peering location + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param stopParameters Virtual network gateway stop simulation parameters supplied to stop failover + * simulation on gateway. + * @param options The options parameters. + */ + beginStopExpressRouteSiteFailoverSimulationAndWait( + resourceGroupName: string, + virtualNetworkGatewayName: string, + stopParameters: ExpressRouteFailoverStopApiParameters, + options?: VirtualNetworkGatewaysStopExpressRouteSiteFailoverSimulationOptionalParams, + ): Promise; /** * Get VPN client connection health detail per P2S client connection of the virtual network gateway in * the specified resource group. diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /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..b35d05ad6e9d 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" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"